You are not logged in.

#1 2009-08-02 13:19:16

keenerd
Package Maintainer (PM)
Registered: 2007-02-22
Posts: 647
Website

safe umount

Earlier today, I read this:
http://blog.shadypixel.com/safely-remov … -in-linux/

However, I can not get his solution to work.  "scsiadd -r" does not spin down the drive or remove the mount point.  It does 'detach' the mount point, so ls-ing the mount point turns up an empty directory.  I still have to umount and it still makes the horrible sound when unplugging the drive.

I was able to spin down the drive with
sdparm --command=stop /dev/sdb
sdparm --command=stop /dev/sdb
umount /mnt/sdb1
but I am not sure how safe this is.  Also unsure why two sdparm calls are needed.

My PKGBUILD can be found at http://kmkeen.com/sumount/sumount-20090802.tar.gz

Last edited by keenerd (2009-08-02 13:55:26)

Offline

Board footer

Powered by FluxBB