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
 

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

reply to topic new topic new poll
Topic: Problems unmounting USB stick (/cdrom), Can USB sticks be eject'd?< Next Oldest | Next Newest >
fialar Offline





Group: Members
Posts: 2
Joined: April 2006
Posted: April 04 2006,18:56 QUOTE

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





Group: Members
Posts: 4264
Joined: Oct. 2003
Posted: April 05 2006,04:33 QUOTE

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.
Back to top
Profile PM 
fialar Offline





Group: Members
Posts: 2
Joined: April 2006
Posted: April 05 2006,16:42 QUOTE

Thanks so much! I'll give those a try!
Back to top
Profile PM 
2 replies since April 04 2006,18:56 < Next Oldest | Next Newest >

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

 
reply to topic new topic new poll
Quick Reply: Problems unmounting USB stick (/cdrom)

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