Live-USB-Abbilder, die mit Live-Helper in Debian erstellt wurden, können nicht geladen werden

1261
mkudlacek

Ich mache benutzerdefinierte Debian-Live-Usb über Live-Helper. Bis jetzt funktioniert es hervorragend, aber wenn ich der Standardinstallation einige zusätzliche Pakete hinzufüge, kann das Ausgabeabbild nicht gemountet werden. Grundsätzlich erstelle ich ein Bild auf diese Weise:

 # lh_config -b usb-hdd -m http://ftp.cz.debian.org/debian/ --packages "..." # lh_build # mount -o loop,offset=512 binary.img /mnt 

Ergebnisse in

 mount: you must specify the filesystem type 

Aber mit weniger zusätzlichen Paketen kann es montiert werden. Interessant sind diese Werte:

 # fdisk -ul small.img You must set cylinders. You can do this from the extra functions menu.  Disk small.img: 0 MB, 0 bytes 54 heads, 36 sectors/track, 0 cylinders, total 0 sectors Units = sectors of 1 * 512 = 512 bytes Disk identifier: 0x0005a3cb  Device Boot Start End Blocks Id System small.img1 * 1 276479 138239+ 83 Linux Partition 1 has different physical/logical endings: phys=(17, 53, 36) logical=(142, 11, 36) 

Und für das größere Bild:

 # fdisk -ul big.img You must set cylinders. You can do this from the extra functions menu.  Disk webstep_rescue_disk_usb.img: 0 MB, 0 bytes 255 heads, 63 sectors/track, 0 cylinders, total 0 sectors Units = sectors of 1 * 512 = 512 bytes Disk identifier: 0x0002a2ab  Device Boot Start End Blocks Id System big.img1 * 63 771119 385528+ 83 Linux 

Was ist also das Problem? Das Ende des Bildes endet in der Mitte des Sektors oder was?

Ich habe die Debian / Live-Info verwendet: http://wiki.debian.org/DebianLive/Howto/USB

Der Hauptgrund für das Mounten des Bildes ist, dass ich das vesa32-benutzerdefinierte syslinux-Menü und den Begrüßungsbildschirm verwenden möchte.

0

1 Antwort auf die Frage

0
mkudlacek

Ich habe das Problem gelöst. Die Partition im größeren Bild beginnt auf Sektor 63, der richtige Mount-Befehl ist also

 mount -o loop,offset=32256 binary.img /mnt 

Der Offset-Parameter muss bytes_per_sector * start_sector sein, der in diesem Fall 512 * 63 = 32256 ist.