您好,欢迎光临中国U网,租用美国服务器香港服务器瑞典服务器等全球各地的服务器。
您现在的位置:首页 > 帮助中心 > 服务器问题 > /dev/sda is apparently in use by the system; will not make a filesystem here!解决方法

/dev/sda is apparently in use by the system; will not make a filesystem here!解决方法

来源:中国U网 日期:2025-05-09 类别:服务器问题 点击:19
这个问题是显示所操作的设备正在被系统使用,所以要检查是被哪里占用。

在执行CentOS上的磁盘格式化操作的时候,有时候会提示

/dev/sda is apparently in use by the system; will not make a filesystem here!

这个是显示/dev/sda被系统占用,无法格式化,可以通过dmsetup status来查看设备的状态信息

可以看到一个ddfl_OS,这个就是准备格式化的盘的一个映射,通过dmsetup remove ddfl_OS删除映射,然后再来执行格式化操作,就正常了,完整操作请看下图:


关键词:dmsetup,ddfl_OS
/dev/sda is apparently in use by the system; will not make a filesystem here!解决方法为中国U网原创文章,在不经过允许的情况下,禁止用于商业用途或随意转载,转载请注明出处,并加上本页链接地址:
http://www.cuwww.com/help/detail-127.html