Problems unmounting USB stick (/cdrom)


Forum: USB booting
Topic: Problems unmounting USB stick (/cdrom)
started by: fialar

Posted by fialar on April 04 2006,18:56
Hi all,

 I'm using DSL on a USB stick that requires it to be not only umounted, but eject needs to be run on it after it's umounted. Otherwise, I get corruption on the FAT filesystem.

 Is there any way to insure that /dev/sda1 (or /cdrom in this case) is *ALWAYS* eject'd after umount?

 Thanks!

Posted by cbagger01 on April 05 2006,04:33
Usually, you can prevent corruption by manually typing the word

sync

in a terminal window, or an automatic sync can be done by adding the "sync" command to your /opt/powerdown.sh file.  But maybe this does not work in your case.

Are you booting from the USB stick?

If so, you should be able to force an eject by removing the word "frugal" from the APPEND statements inside your SYSLINUX.CFG text file on your USB stick.

Unfortunately, this makes your USB stick to be mounted as read-only.

Finally, you can edit the /etc/init.d/knoppix-halt file to force an eject upon shutdown.

First:

sudo su
rm /etc/init.d/knoppix-halt
cp /KNOPPIX/etc/init.d/knoppix-halt
beaver /etc/init.d/knoppix.halt

Then add this line:

FRGUAL=""

before Line number 111 inside this file and then save and exit.

Then add this file to your filetool.lst so it gets backed up.

Give some of these approaches a try and see if they work for you.

Posted by fialar on April 05 2006,16:42
Thanks so much! I'll give those a try!
Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.