USB booting :: USB boot with toram not working: patch :-)



Hello,

I just tried the last iso 2.1b and "burned" a USB stick with it.
When I try to boot *from the CD* with toram, I have no problem, it frees the cdrom drive and I'm happy.
When I try to do the same from the USB stick, it boots properly, shows me the usual "Copying DSL to ramdisk...Please wait" for a while then "Warning, changing to /cdrom2 failed" and it goes on till the X but a mount shows:
Code Sample
/dev/sda1 on /cdrom type vfat

instead of a /dev/shm and of course I cannot umount the USB stick.

I digged a bit and I found the problem in the mkinit24/linuxrc:
The copy (cp usb...KNOPPIX to ram) goes well but from a VFAT to an ext2 and on the case-unsensitive VFAT the file is named knoppix, so the copy.
By introducing in the copy_to function a simple line between the actual copy and the remount such as:
Code Sample
/bin/mv $TARGET/$KNOPPIX_DIR/knoppix $TARGET/$KNOPPIX_DIR/$KNOPPIX_NAME

I could make the toram working as expected.

I leave to the DSL team the problem of the hardcoded "knoppix" string in my command as an exercise ;-)

Philippe Teuwen

i ran into the same problem. as far as i know, the vfat driver does an implicit "all lowercase" conversion on "all uppercase" names. mount the stick under win/dos and 'KNOPPIX' is still all uppercase. so the dsl team is 'innocent' here ;).
Thanks for the patch!
Quote (~thc @ Jan. 11 2006,12:44)
i ran into the same problem. as far as i know, the vfat driver does an implicit "all lowercase" conversion on "all uppercase" names. mount the stick under win/dos and 'KNOPPIX' is still all uppercase. so the dsl team is 'innocent' here ;).

Hi,

Good point.
With a regular mount you can use mount -t vfat -o shortname=mixed and it works.
You can try from a DSL xterm:
sudo mount /dev/sda1 /mnt/sda1 -t vfat -o shortname=mixed
ls /mnt/sda1/KNOPPIX
KNOPPIX
But when I tried to give this option to mount from linuxrc, it does not recognise the option :-(

Isn't it supposed to be the same binary?

The binary is the same, but the "mount" command in the minirt24.gz is probably a stripped down version of the "mount" command.
Next Page...
original here.