some shell command that may help when umounting a usb device
2008-06-14 15:16
435 查看
Hi, I am attempting to unmount my NTFS partition in /media/disk and I am unable to do so. When I right click on the "disk" icon on my desktop and click unmount, i get an error saying:
Code:
When I try to manually unmount the volume using umount /media/disk I get the following:
Code:
Finally when I try to see if anything is using the volume I try:
Code:
Where the pid changes every time i run the command. and lastly this is the output of lsof:
Code:
the above details is from http://ubuntuforums.org/showthread.php?t=467259 try to close the applications that are accessing the device. you can also know which applications are using the device by doing
Code:
where device is the node name of the device. close the applications then try to unmount the device. you can mount it manually too by doing
Code:
The above details is from http://www.linuxquestions.org/questions/mepis-64/unable-to-unmount-usb-device-467730/
A really useful tool for discovering what’s holding open a device you want to unmount
is the lsof command. Type lsof with the name of the partition you want to unmount
(such as lsof /mnt/floppy). The output shows you what commands are holding files open on that
partition.
Code:
Cannot unmount volume. An application is preventing the volume from being unmounted.
When I try to manually unmount the volume using umount /media/disk I get the following:
Code:
root@pavel-laptop:/media/disk# umount /media/disk umount: /media/disk: device is busy umount: /media/disk: device is busy
Finally when I try to see if anything is using the volume I try:
Code:
root@pavel-laptop:/media/disk# ps x | grep /media/disk 12425 pts/0 R+ 0:00 grep /media/disk
Where the pid changes every time i run the command. and lastly this is the output of lsof:
Code:
root@pavel-laptop:/media/disk# lsof /media/disk COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME bash 8239 root cwd DIR 3,1 4096 5 /media/disk lsof 12450 root cwd DIR 3,1 4096 5 /media/disk lsof 12451 root cwd DIR 3,1 4096 5 /media/disk
the above details is from http://ubuntuforums.org/showthread.php?t=467259 try to close the applications that are accessing the device. you can also know which applications are using the device by doing
Code:
fuser /dev/device
where device is the node name of the device. close the applications then try to unmount the device. you can mount it manually too by doing
Code:
umount /dev/device
The above details is from http://www.linuxquestions.org/questions/mepis-64/unable-to-unmount-usb-device-467730/
A really useful tool for discovering what’s holding open a device you want to unmount
is the lsof command. Type lsof with the name of the partition you want to unmount
(such as lsof /mnt/floppy). The output shows you what commands are holding files open on that
partition.
相关文章推荐
- Sharing: hints, t-codes, commands that may help when solving support package implementation problems
- some issues that you should be take care of when use the plupload module
- When you copy large files to or from earlier operating systems, the copy operation may be slower than expected on some Windows Vista-based computers
- You may receive an "Access Denied" or a "Permission Denied" scripting error message when you browse a secure Web site that contains multiple frames
- The problem of waiting time when launching a unix shell command from an application engine
- “+[SomeClass initialize] may have been in progress in another thread when fork() was called”
- python每日一错——Some packages could not be installed. This may mean that you have........
- whey some page need header when your fetch that page and some don't need
- What is it exactly that makes some people command
- some usual error when configre glut, glui in windows(http://accad.osu.edu/~ywei/Help/HowTos.html)
- 164.Examine the command that is used to create a table: SQL> CREATE TABLE orders( oid NUMBER(6) PRI
- struct usb_device_id
- Drive C2X result may help navi software
- Using the HID class eases the job of writing USB device drivers
- Android Studio关于USB device not found的解决的方法
- Nios II BSP Options via Nios II Command Shell
- 遭遇vchelp.exe,videodevice.dll,swchost.exe,IEXPLORE32.Sys等2
- sql server 2000安装中出现:command line option syntax error,type command/? for help解决方法
- How to write a Linux USB Device Driver
- Command line option syntax error. Type Command /? for Help.