USB booting :: Problems unmounting USB stick (/cdrom)
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!
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.
Thanks so much! I'll give those a try!
original here.