- 浏览: 265455 次
- 性别:
- 来自: 上海
-
文章分类
- 全部博客 (298)
- 工作感悟 (6)
- java基础 (23)
- 计算机硬件知识 (1)
- 计算机网络知识 (2)
- Struts (3)
- Srping (4)
- hibernate (0)
- ibatis (0)
- webservice (4)
- Thread (22)
- maven (5)
- ubuntu/linux/centos/redhat (46)
- SSO (1)
- ESB (0)
- 工作流 (0)
- oracle (15)
- 云计算 (1)
- hadoop (1)
- nosql (0)
- mysql (3)
- sqlserver (0)
- jquery (0)
- 分布式 (3)
- 集群 (0)
- 设计模式 (2)
- EJB (0)
- map (0)
- cache (5)
- Niginx+varnish+squid+Ats (14)
- Apache (0)
- 工作/职业规划 (0)
- Scala & Groovy (1)
- English (4)
- 数据结构/算法 (6)
- 开发工具 (5)
- 测试 (2)
- Exception (0)
- 定时器 (3)
- j2ee (2)
- 部署 (1)
- Openssl (1)
- 操作系统 (3)
- kvm (13)
- libvirt (5)
- PostgreSql (5)
- 虚拟化 (3)
- 概念理解 (1)
- virt-manager (1)
- RESTful (3)
- 其它 (4)
- ssh2 (14)
- windows (1)
- 房产 (2)
- svn (1)
- 手机 (1)
- ant (1)
- flume (2)
- sqoop (1)
- fastdfs (5)
- log4j (1)
- SPDY (1)
- mongodb (2)
- MQ (2)
- Mina (1)
- dubbo (4)
- PMP (1)
- Webshpere (2)
- jvm (1)
- Btrace (1)
- zookeeper (7)
- UML (1)
- spring cloud (6)
- spring boot (5)
- storm (0)
- 软件管理 (1)
- elasticsearch (1)
- 协议 (2)
- docker (1)
- 性能 (2)
- 安全 (1)
- 代码规范 (1)
- mqtt (1)
- lombok (1)
- 车联网 (1)
- kafka (1)
最新评论
执行mount -o loop ramdisk.image mnt_ramdisk/,将当前目录下的ramdisk映像挂载到mnt_ramdisk目录下,使用完后退出此目录,执行umount mnt_ramdisk/,可总是说device is busy,可我又不知道什么程序在使用,用google搜了一下,找到了网上高人解决此问题的方法.以下转载于品可的blog:
================
linux下的磁盘分区通过挂载(mount)的方式连到一个目录下,打开此目录就可以看到磁盘分区中的内容了。与挂载相反的操作是umount,他将磁盘分区与目录的关联关系解除。
但有时候umount时会报错误,例如
Code:
# umount /usr/local/
umount: /usr/local: device is busy
这说明还有某个程序正在是用此目录,为了保证程序的运行,默认情况下umount不能卸载。但是umount又没有说究竟哪个程序在使用,觉得这也算是设计的一个缺陷。
幸好有个程序叫fuser,man fuser的介绍是:
Code:
fuser - identify processes using files or sockets
fuser后加需要查的资源就可以知道有哪些进程正在使用了,例如:
Code:
#fuser -m /
/: 8892r 8916r 8932r 8959r 8992rc 8996rc 8997rc 8999rc 9006rc
9007rc 9010rc 9013r 9015rc 9025r 9029r 9033rc 9035r 9039rc 9058rc 9107rc
9109rc 9126rc 9130r 9366r 9375r 9439r
接下来需要做的就是将相关进程停掉,再umount即可。
PS: 多谢pnt的提醒,原来umount 还有一个-l选项,作用是当需卸载文件系统的引用不繁忙时直接卸载:
Code:
umount -l Lazy unmount. Detach the filesystem from the filesystem hierar-
chy now, and cleanup all references to the filesystem as soon as
it is not busy anymore. (Requires kernel 2.4.11 or later.)
================
linux下的磁盘分区通过挂载(mount)的方式连到一个目录下,打开此目录就可以看到磁盘分区中的内容了。与挂载相反的操作是umount,他将磁盘分区与目录的关联关系解除。
但有时候umount时会报错误,例如
Code:
# umount /usr/local/
umount: /usr/local: device is busy
这说明还有某个程序正在是用此目录,为了保证程序的运行,默认情况下umount不能卸载。但是umount又没有说究竟哪个程序在使用,觉得这也算是设计的一个缺陷。
幸好有个程序叫fuser,man fuser的介绍是:
Code:
fuser - identify processes using files or sockets
fuser后加需要查的资源就可以知道有哪些进程正在使用了,例如:
Code:
#fuser -m /
/: 8892r 8916r 8932r 8959r 8992rc 8996rc 8997rc 8999rc 9006rc
9007rc 9010rc 9013r 9015rc 9025r 9029r 9033rc 9035r 9039rc 9058rc 9107rc
9109rc 9126rc 9130r 9366r 9375r 9439r
接下来需要做的就是将相关进程停掉,再umount即可。
PS: 多谢pnt的提醒,原来umount 还有一个-l选项,作用是当需卸载文件系统的引用不繁忙时直接卸载:
Code:
umount -l Lazy unmount. Detach the filesystem from the filesystem hierar-
chy now, and cleanup all references to the filesystem as soon as
it is not busy anymore. (Requires kernel 2.4.11 or later.)
发表评论
-
ssh密钥的生成与使用
2019-08-12 15:16 807一 客户端是linux 1.在客户端生成密钥对 [roo ... -
Linux RPM 命令参数使用详解 查看 rpm包依赖性
2017-07-21 18:09 1207rpm 执行安装包 二进制包(Binary)以及源代码包(So ... -
2015-linux操作命令汇总
2015-06-18 10:34 7131.查找磁盘空间利用情 ... -
Vi/Vim查找替换使用方法
2014-07-03 09:29 592vi/vim 中可以使用 :s 命 ... -
在linux下如何判断是否已经安装某个软件?
2014-07-03 08:50 636我的系统是red hat 我用命令rpm查是否安装了某个软件 ... -
linux的NFS详细配置方法
2014-07-01 14:46 542网络文件系统(NFS,Network File System) ... -
linux重定向及nohup不输出的方法
2014-06-27 15:12 836先说一下linux重定向: 0、1和2分别表示标准输入、标准 ... -
使用nohup让程序在远程主机后台运行
2014-06-27 14:27 651因为我购买的一个国外 ... -
Redhat Linux NFS配置
2014-06-27 13:05 423NFS简介: NFS是网络文件系统的简写(network ... -
Linux iptables 防火墙 添加删除 端口
2014-06-25 09:39 847一. Linux 防火墙的启动 ... -
This system is not registered with RHN
2014-06-19 14:18 549红帽中出现This system is not registe ... -
ldconfig命令作用
2014-05-30 11:09 788ldconfig是一个动态链接库管理命令 为了让动态链接库为 ... -
Linux下tar的基本安装 .
2014-05-29 15:25 6391、将安装文件拷贝至你的目录中,如果是以root身份登录上的, ... -
This system is not registered with RHN
2014-05-29 15:17 522红帽中出现This system is not registe ... -
SSH Secure Shell Client中文乱码
2014-05-16 10:15 635使用linux,在用户根目录下有一个.bash_profile ... -
Linux netstat命令详解
2013-11-27 16:18 595简介 Netstat 命令用于显示各种网络相关信息,如网络连 ... -
CentOS 6.3的U盘安装方法
2013-11-14 13:55 1085最近要给服务器重装系 ... -
linux:SUID、SGID详解
2013-11-06 17:08 642如果你对SUID、SGID仍有迷惑可以好好参考一下! Cop ... -
linux命令收集
2013-11-06 15:46 504ps x | grep `eclipse` sudo ap ... -
linux系统权限
2013-11-06 10:40 5571.添加用户:useradd user 2.chmod (- ...
相关推荐
因为直接使用的串口助手,8266也设置的回传模式,所以这里可以看到相应的返回,出现了busy s... 那么这个busy对我们的实际操作有没有影响呢,结合我们浏览器显示的内容: 和实际发送的报文: HTTP/1.1 200 OK ...
当Linux系统报告“Device is busy”错误时,意味着当前有某个进程正在使用该设备,或者设备上的文件被打开着。这种情况可能导致无法安全地卸载设备,从而引发数据丢失的风险。因此,正确识别并处理这些占用设备的...
esp32c3-固件,micropython系统,不带USB的版本
在烧写固件时,需要注意以下几点: - 确保ESP32开发板已进入Bootloader模式,通常是通过短接特定引脚或按住Boot按钮进行。 - 固件烧写过程中不要断开USB连接,以免数据传输中断导致烧写失败。 - 烧写前备份当前固件...
Xcode 12.3真机调试包,操作如下: 前往--应用程序/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport文件夹,拖到文件目录下之后重启 Xcode 即可
Android, the next-generation open mobile platform from Google and the Open Handset Alliance, is poised to become a significant player in the mobile device market. The Android platform gives developers...
Android, the next-generation open mobile platform from Google and the Open Handset Alliance, is poised to become a significant player in the mobile device market. The Android platform gives developers...
umount: /mnt: device is busy umount: /mnt: device is busy 2).找出依然在访问该文件系统的进程号: [root@vserver01 ~]# fuser -c /mnt /mnt: 2563c [root@vserver01 ~]# ps -ef | grep
《如何解决Tonny软件“Device is busy or does not respond ”报错和MicroPython设备文件为空的问题(图文教程)》操作文档中所需的文件。
The first detected device on the system is Device ID 0, the second is Device ID 1, and so on. This field is useful in the event multiple devices are being captured in parallel. <br>For USB devices...
For those of you who have read previous editions of this book, here are some of the highlights of what is new in the prose in Version 8.10. This update: • Adds a new chapter on authenticating the ...
Linux 下挂载 U 盘命令详解 Linux 作为一个开源的操作系统,在日常使用中,我们经常需要挂载 U 盘来存储...同时,我们也需要注意卸载 U 盘时可能出现的 "device is busy" 错误,可以使用强制卸载命令来解决这个问题。
这在实现如PLC(可编程逻辑控制器)或SCADA(监控与数据采集系统)等设备时特别有用。客户端例程则用于设备作为Modbus客户端,发起对服务器的读写请求,获取或设置远程设备的状态。 在实际应用中,开发者可以利用...
用rmmod卸载模块的时候会弹出错误,如下 – rmmod: can't change directory to '/lib/modules': No such file or directory
The RS232 can operate at 9600 or 19,200 baud, while the USB appears as a virtual COMx device. While it appears to be present at either 9600 baud or 115.2 kbaud , the actual data transmission occurs ...
有时候卸载分区时提示分区繁忙(device is busy),可以先用以下命令看看哪个进程在使用此分区: `fuser -cu /dev/hda1` 然后可以用以下命令结束此进程: `kill -9 8463` 自动挂载 Windows 分区可以把上述命令...
Moving to Responsive Web Design is for busy designers, and developers who want to convert an existing site to responsive design and don’t have all the time in the world. It’s for teams who know that...
* 如果显示 device is busy,可以使用命令 `fuser -km /mnt/udisk` 卸载 U 盘。 五、其他相关知识点 * 使用命令 `ls -l /mnt/udisk` 查看 U 盘中的文件信息。 * 使用命令 `rpm -qa|grep kernel` 查询 Linux 系统的...
例如,在尝试卸载/sd03时,如果出现"device is busy"的错误,表示有程序正在使用这个挂载点。 在这种情况下,可以使用`fuser`命令找出占用该挂载点的进程。`fuser -m 目录`会列出所有使用该目录的进程ID,随后可以...