挂载磁盘的问题(/dev/sdb1 is apparently in use by the system; will not make a 解决方法

最近碰到一个挂载的问题、研究了一会才整明白。现在整理发布下。
如果您有服务器咨询问题、购买问题、可以联系我们客服 690624
商祺云-阿里代理、景安代理、西部代理

挂载磁盘的问题(/dev/sdb1 is apparently in use by the system; will not make a 解决方法

用fdisk给新磁盘分区后。然后要创建文件系统

[root@cuizhipeng ~]# mkfs.ext4 /dev/sdb1
mke2fs 1.41.12 (17-May-2010)
/dev/sdb1 is apparently in use by the system; will not make a 文件系统 here!

提示、dev/sdb1正在被使用。

[root@cuizhipeng new]# dmsetup status
vgdate-lvdata1: 0 1024000 linear
vg_cuizhipeng-lv_swap: 0 4194304 linear
vg_cuizhipeng-lv_root: 0 36716544 linear

[root@cuizhipeng new]# dmsetup remove_all

[root@cuizhipeng new]# dmsetup status
vg_cuizhipeng-lv_swap: 0 4194304 linear
vg_cuizhipeng-lv_root: 0 36716544 linear

[root@cuizhipeng new]# mke2fs -t ext4 /dev/sdb1
mke2fs 1.41.12 (17-May-2010)
文件系统标签=
操作系统:Linux
块大小=4096 (log=2)
分块大小=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
146880 inodes, 586372 blocks
29318 blocks (5.00%) reserved for the super user
第一个数据块=0
Maximum filesystem blocks=603979776
18 block groups
32768 blocks per group, 32768 fragments per group
8160 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912

正在写入inode表: 完成
Creating journal (16384 blocks): 完成
Writing superblocks and filesystem accounting information: 完成

This filesystem will be automatically checked every 34 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
欢迎关注我们学派吧。

主题测试文章,只做测试使用。发布者:云大使,转转请注明出处:https://www.xp8.net/server/3265.html

(0)
打赏 微信扫一扫 微信扫一扫
2019阿里云优惠-阿里服务器活动-阿里优惠券活动
上一篇 2019年2月23日 下午9:45
下一篇 2019年3月10日 下午10:55

相关推荐

  • Nginx、FPM配置及优化教程说明-学派吧 linux运维

    Nginx配置 main模块 events 模块 http模块 sendfile keepalive 超时 map proxy openfile client buffer Gzip fastcgi cache server模块 正则 Rewrite 文件缓存 FPM HTTPS upstream模块 默认轮询(加权) 最小连接数 IP Hash FPM配置…

    服务器运维 2018年10月11日
    3.6K00
  • 解决PHP5.6版本“No input file specified”的问题

    问题描述:使用TP框架做项目时,在启用REWRITE的伪静态功能的时候,首页可以访问,但是访问其它页面的时候,就提示:“No input file specified.”原因在于使用的PHP5.6是fast_cgi模式,而在某些情况下,不能正确识别path_info所造成的错误默认的.htaccess里面的规则: IfModule mod_rewrite.c…

    服务器运维 2018年7月17日
    4.0K00
  • 学派吧-linux中xargs命令技巧的各种使用详解-linux教程

    xargs是给命令传递参数的一个过滤器,也是组合多个命令的一个工具。下面这篇文章主要给大家介绍了关于linux中xargs命令用法的相关资料,需要的朋友可以参考借鉴,下面来跟着小编一起看看吧。 前言 xargs命令是把接收到的数据重新格式化,再将其作为参数提供给其他命令,下面介绍xargs命令的各种使用技巧,一起来看看吧。 一、将多行输入转换成单行输入: […

    服务器运维 2018年12月19日
    2.2K00
  • Linux下MySQL无法访问问题排查的基本步骤-linux教程

    问题说明 本文说明云服务器 ECS Linux 上 MySQL 无法访问问题的一般排查步骤。 处理办法 查看 Linux 操作系统是否已经安装了 MySQL $ rpm -qa mysql mysql-4.1.7-4.RHEL4.1 # 说明已经安装了 MySQL 检查状态 检测 MySQL 运行状态: service mysqld status 启动服务:…

    数据库运维 2019年1月1日
    2.7K00
  • Linux如何使用tail命令教程分享-学派吧

    Linux tail命令显示一个或多个文件或管道数据的最后一部分(默认为10行);可用于实时监控文件更改。下面本篇文章就来就来给大家介绍一下如何使用Linux tail命令,希望对大家有所帮助。 Linux tail命令 tail命令显示一个或多个文件或管道数据的最后一部分(默认为10行);可用于实时监控文件更改。tail命令最常见的用途之一就是监视和分析日…

    2019年3月23日
    3.0K00

发表回复

登录后才能评论
联系我们

联系我们

18838889666

在线咨询: QQ交谈

邮件:xinyun@88.com

工作时间:周一至周五,9:30-18:30,节假日休息

添加微信
添加微信
分享本页
返回顶部