Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: USB boot with toram not working: patch :-)< Next Oldest | Next Newest >
doegox Offline





Group: Members
Posts: 3
Joined: Jan. 2006
Posted: Jan. 11 2006,11:25 QUOTE

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
Back to top
Profile PM 
~thc Offline





Group: Members
Posts: 42
Joined: Dec. 2005
Posted: Jan. 11 2006,17:44 QUOTE

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 ;).
Back to top
Profile PM 
doobit Offline





Group: Members
Posts: 912
Joined: July 2005
Posted: Jan. 11 2006,17:58 QUOTE

Thanks for the patch!

--------------
"Help stop internet piracy...use Linux!"
Back to top
Profile PM WEB MSN 
doegox Offline





Group: Members
Posts: 3
Joined: Jan. 2006
Posted: Jan. 12 2006,16:57 QUOTE

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?
Back to top
Profile PM 
cbagger01 Offline





Group: Members
Posts: 4264
Joined: Oct. 2003
Posted: Jan. 12 2006,18:41 QUOTE

The binary is the same, but the "mount" command in the minirt24.gz is probably a stripped down version of the "mount" command.
Back to top
Profile PM 
6 replies since Jan. 11 2006,11:25 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: USB boot with toram not working: patch :-)

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code