# file -s /dev/sdb1
/dev/sdb1: x86 boot sector; GRand Unified Bootloader, stage1 version 0x3, 1st
sector stage2 0x44ae, code offset 0x48, sectors/cluster 8, Media descriptor
0xf8, heads 4, sectors 3901408 (volumes > 32 MB) , physical drive 0xdb, physical
drive 0x5b, reserved 0xe, dos < 4.0 BootSector (0x0)
It's actually a vfat partition.
# sh -x /usr/bin/livecd-iso-to-disk ~hadess/Desktop/Fedora-7.91-Live-i686.iso
+ export PATH=/sbin:/usr/sbin:/usr/bin:/bin
++ id -u
+ '[' 0 '!=' 0 ']'
+ '[' 2 -ne 2 ']'
+ '[' '!' -e /home/hadess/Desktop/Fedora-7.91-Live-i686.iso ']'
+ '[' '!' -b /dev/sdb1 ']'
++ mktemp -d /media/cdtmp.XXXXXX
+ mount -o loop /home/hadess/Desktop/Fedora-7.91-Live-i686.iso /media/cdtmp.B10271
++ mktemp -d /media/usbdev.XXXXXX
+ mount /dev/sdb1 /media/usbdev.r10275
mount: you must specify the filesystem type
+ echo 'Cleaning up to exit...'
Cleaning up to exit...
+ '[' -d /media/cdtmp.B10271 ']'
+ umount /media/cdtmp.B10271
+ rmdir /media/cdtmp.B10271
+ '[' -d /media/usbdev.r10275 ']'
+ umount /media/usbdev.r10275
umount: /media/usbdev.r10275: not mounted
+ exit 1
After changing the mount to:
mount -t vfat...
+ syslinux -d syslinux /dev/sdb1
syslinux: this doesn't look like a valid FAT filesystem
Maybe it should give a better error that the filesystem doesn't seem appropriate
for the LiveCD from the start instead.
David, should we arrange for you to not own livecd-tools anymore ?
We do check the filesystem type... I bet '/lib/udev/vol_id -t /dev/sdb1'
returns vfat? If so, this is probably a mount (and syslinux) bug.
I had to completely wipe the key (including MBR) to be able to use it. It was
the Mandriva/GUADEC 2007 USB key, if one of the guys in the Desktop team hasn't
erased it yet...
Okay, got one from ajax that hasn't been wiped and can reproduce. mount isn't
recognizing it, probably because of libblkid. But to util-linux for the moment.
Thanks for hunting this down Jeremy. I think it might also be a good idea for
the script to optionally "reset" the MBR properly, as this is what caused me to
have to wipe out the complete key. I'll file another bug about it.
Please, Bastien, try:
# blkid -c /dev/null /dev/sdb1
# rpm -q util-linux-ng
Karel -- Bastien's disk is hosed. I've got one plugged in at the box at my
desk. Email coming separately with access info.
Created attachment 198361 [details]
bug fix patch
The patch is against actual Ted's e2fsprogs repo. I'm going to send this patch
Karel, thanks. Is this one urgent, or can I wait 'til I see it go upstream? I
assume it should be in before test3, eh.
Definitely would be nice to have in test3
Ok, I'll toss it in now. Will keep my eye out for that upstream submission... :)
Ok, e2fsprogs-1.40.2-7.fc8 building now.
Could anyone with the aforementioned Mandriva USB key dd of the first few K of
it, and attach, so I could re-test something? Looks like this fix broke