Créer une clé bootable

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
User avatar
Hydros
Posts: 5
Joined: 5. Jan 2012, 17:47

Créer une clé bootable

Post by Hydros »

Bonjour,

Je viens de télécharger Framakey Salix et lorsque j’exécute le script install-on-USB.cmd, il me retourne le message d'erreur suivant :

Code: Select all

Checking for GRUB2 files...
Checking for post-MBR gap...
Error: the post MBR gap is missing or not large enough [63 sectors].
  Yours appears to be of -1071600515 sectors.
Suggestion: slightly move the first partition \\.\PHYSICALDRIVE2\Part
each the gap size.
Appuyez sur une touche pour continuer...
Pour moi, c'est du chinois :oops:

Help please :cry:
Shador
Posts: 1295
Joined: 11. Jun 2009, 14:04
Location: Bavaria

Re: Créer une clé bootable

Post by Shador »

First of all it would be nice if you had created that post in the French section of the board or were writing in English. J'éspère que tu comprend l'anglais, pars que mon francais ne suffit pas pour expliquer ce problem et c'est la section anglais tout de même.

The problem is that the partitioning of your system is not compatible with the bootloader. Therefor it's impossible to install it just like that. (Future versions work around this issue which has other downsides though and doesn't help in your case.) Still the gap size you're getting seems a bit weird so it might be something else.

First of all what kind of media are you trying to install to? Can you post the output of this command:

Code: Select all

LANG=C fdisk -l /dev/sdXY
Replace XY with the right values for your drive.
Image
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: Créer une clé bootable

Post by mimosa »

You could try reformatting the USB stick you are trying to install to. Back up any data first.
Shador
Posts: 1295
Joined: 11. Jun 2009, 14:04
Location: Bavaria

Re: Créer une clé bootable

Post by Shador »

mimosa wrote:You could try reformatting the USB stick you are trying to install to. Back up any data first.
First of all reformatting doesn't help here. Most most likely at least. Furthermore I would have suggested already a solution, but I don't know what we have here and I think shooting in the dark is dangerous. Especially when talking about filesystems and partition tables.
Image
User avatar
Hydros
Posts: 5
Joined: 5. Jan 2012, 17:47

Re: Créer une clé bootable

Post by Hydros »

Shador wrote:First of all it would be nice if you had created that post in the French section of the board or were writing in English.
Sorry, it's my first post in this forum ;)
Shador wrote:First of all what kind of media are you trying to install to? Can you post the output of this command:

Code: Select all

LANG=C fdisk -l /dev/sdXY
I try to install salix-live in a usb stick.
The output of this command :

Code: Select all

me@mycomputer:~$ LANG=C fdisk -l /media/SanDisk
last_lba(): I don't know how to handle files with mode 40700
There are no files in /dev/sd00 but the stick is in /media (automount).
I have ubuntu and widows.

When i execute the script whith ubuntu, the console return :

Code: Select all

me@MyComputer:/media/SanDisk/boot$ sudo bash install-on-usb.sh
Error: the post MBR gap is missing or not large enough (63 sectors).
  Yours appears to be of  sectors.
Suggestion: slightly move the first partition (/dev/sd1) to reach the gap size.
Is there an error when the usb is mounted ?
Shador
Posts: 1295
Joined: 11. Jun 2009, 14:04
Location: Bavaria

Re: Créer une clé bootable

Post by Shador »

Hydros wrote:
Shador wrote:First of all what kind of media are you trying to install to? Can you post the output of this command:

Code: Select all

LANG=C fdisk -l /dev/sdXY
I try to install salix-live in a usb stick.
The output of this command :

Code: Select all

me@mycomputer:~$ LANG=C fdisk -l /media/SanDisk
last_lba(): I don't know how to handle files with mode 40700
There are no files in /dev/sd00 but the stick is in /media (automount).
I have ubuntu and widows.
That's wrong. You need to pass the device not the mountpoint, e.g. /dev/sda1 (but that's probably not the right one in your case). Check the output of mount to find out what device is mounted on /media/SanDisk.
You get something like this:

Code: Select all

$ mount
/dev/root on / type ext4 (rw,noatime,barrier=1,data=ordered)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
/dev/sda6 on /home type ext4 (rw)
...
whereas the last line indicates that /dev/sda6 is mounted on /home. In your case it would have to look something like this:

Code: Select all

/dev/sdb1 on /media/SanDisk type ext4 (rw)
Hydros wrote: When i execute the script whith ubuntu, the console return :

Code: Select all

me@MyComputer:/media/SanDisk/boot$ sudo bash install-on-usb.sh
Error: the post MBR gap is missing or not large enough (63 sectors).
  Yours appears to be of  sectors.
Suggestion: slightly move the first partition (/dev/sd1) to reach the gap size.
Is there an error when the usb is mounted ?
No.
Image
User avatar
Hydros
Posts: 5
Joined: 5. Jan 2012, 17:47

Re: Créer une clé bootable

Post by Hydros »

Ahh, I just understand ...

You forgot sudo !!
The command returns :

Code: Select all

~$ sudo LANG=C fdisk -l /dev/sdc1

Disk /dev/sdc1: 16.0 GB, 16007561216 bytes
64 têtes, 32 secteurs/piste, 15266 cylindres, total 31264768 secteurs
Unités = secteurs de 1 * 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Identifiant de disque : 0x00000000

Périphérique Amorce  Début        Fin      Blocs     Id  Système
(sorry, it's in french :mrgreen: )
Shador
Posts: 1295
Joined: 11. Jun 2009, 14:04
Location: Bavaria

Re: Créer une clé bootable

Post by Shador »

Hydros wrote:You forgot sudo !!
No, I didn't. There are various ways to run commands as root and sudo is definitely not a way that always works.
Hydros wrote:(sorry, it's in french :mrgreen: )
Yes, that's exactly what the LANG=C is meant to avoid, but probably the use of sudo which I didn't intend broke it.
Try running:

Code: Select all

$ sudo /bin/sh
# LANG=C fdisk -l /dev/sdc1
# LANG=C parted /dev/sdc1 print
That should give me english output as I intended. Also is there really no other line after the last line you posted?
Image
User avatar
Hydros
Posts: 5
Joined: 5. Jan 2012, 17:47

Re: Créer une clé bootable

Post by Hydros »

I reformat my usb-stick and re-copy files. The boot works therefor the subject is solved.

I didn't wanted to do that but it's easier.

I had already made an ubuntu boot in this usb-stick ; i suppose that the salix boot can't support this one (i didn't uninstall it because i don't know how do it)

Thank you very much for your help ! ;)
User avatar
JRD
Salix Warrior
Posts: 950
Joined: 7. Jun 2009, 22:52
Location: Lyon, France

Re: Créer une clé bootable

Post by JRD »

It should have been

Code: Select all

$ sudo /bin/sh
# LANG=C fdisk -l /dev/sdc
# LANG=C parted /dev/sdc print
Well, apparently the USB disk did not respect the regular gap for msdos partition type. The system seems to have difficulties in compute the correct position, but a full format (means recreating the MBR and partitions and using the regular msdos partition type with the 63 sectors gap) should solve it...and it seems it did.
Image
Post Reply