http://askubuntu.com/questions/44226/mounting-dev-sdd1-fails-according-to-mtab-dev-sdd1-is-already-mounted
sudo vi /etc/mtab
uhelper=udisks
udisks --mount /dev/sdax
udisks --unmount /dev/sdax
Mounted /org/freedesktop/UDisks/devices/sdax at /media/test
프로그램 옵션:
--enumerate Enumerate objects paths for devices
--enumerate-device-files Enumerate device files for devices
--dump Dump all information about all devices
--monitor Monitor activity from the disk daemon
--monitor-detail Monitor with detail
--show-info Show information about a device file
--inhibit-polling Inhibit polling
--inhibit-all-polling Inhibit all polling
--poll-for-media Poll for media
--set-spindown Set spindown timeout for drive
--set-spindown-all Set spindown timeout for all drives
--spindown-timeout Spindown timeout in seconds
--inhibit Inhibit the daemon
--mount Mount the given device
--mount-fstype Specify file system type
--mount-options Mount options separated by comma
--unmount Unmount the given device
--unmount-options Unmount options separated by comma
--detach Detach the given device
--detach-options Detach options separated by comma
-- eject Eject the given device
--eject-options Eject options separated by comma
--ata-smart-refresh Refresh ATA SMART data
--ata-smart-wakeup Wake up the disk if it is not awake
--ata-smart-simulate Inject libatasmart BLOB for testing
http://gunsystems.egloos.com/m/6784985
언 마운트..
udisks --unmount /dev/sd[b-z][1-9]*
이렇게 하면 sda는 대부분 os가 들어가 있으니..
b-z 까지
즉 /dev/sdb1이던지 b2던지 되는 거다.. 뒤에 [1부터 9]까지 모든 번호.. 해주는 것.
여기서 만약 단순하게
sdb1 부터 ~9 까지 하고 싶다면..
udisks --unmount /dev/sdb[1-9]*
이렇게 해주면 되네요..
보기 ls -a /dev/sd*
나의 경우 아래 처럼 sh로 만들었다..
# umount -l /media/* #전체 빼주기
umount -l /dev/sda2
umount -l /dev/sda3
udisks --unmount /dev/sd[b-z][1-9]*.
uhelper=udisks 에 대해서 자동 마운트?
http://ubuntuforums.org/showthread.php?t=1517889
http://blog.saltriversystems.com/2010/12/remount-same-place/
고수의 팁..
udevadm info -a -p `udevadm info -q path -n /dev/sdb1` | \
grep ATTRS{serial} | head -1 | sed s/"ATTRS{serial}=="\"//g | \
sed s/\"// | tr -d " "
http://www.ubuntu-kr.org/viewtopic.php?f=22&t=16590
언마우트 안될때
mount | tail -1
cd /media/C35B-47E9/
umount /media/C35B-47E9
lsof /dev/sdf fuser -m /dev/sdf
kill 7131
fuser -k /dev/sdf