大佬教程收集整理的这篇文章主要介绍了Centos挂载新硬盘、分区、格式化、挂载,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
$ fdisk -l
Disk /dev/sdd: 1000.2 GB,1000204886016 bytes
255 heads,63 sectors/track,121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/sdd doesn't contain a valid partition table
……
Disk /dev/sdh: 1000.2 GB,121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xd54c485e
Device Boot Start End Blocks Id System
/dev/sdh1 1 121601 976760001 83 Linux
我的服务器上有很多块,有上述信息可知,目前sdd硬盘还为挂载
$ fdisk /dev/sdd
n->p->1->回车->回车
意思就是新建一个主分区,大小是整个sdd磁盘
最后执行w,写入磁盘
此时磁盘已经分区,但是还没有文件系统,磁盘依然不能用
$ mkfs.ext4 /dev/sdd1
等待命令执行完成
$ mkdir /mnt/sdd
$ mount /dev/sdd1 /mnt/sdd
$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3 928204272 4191296 876862896 1% /
tmpfs 32981876 12 32981864 1% /dev/shm
/dev/sda1 198337 31960 156137 17% /boot
/dev/sdh1 961432072 204436 912389636 1% /mnt/sdh
/dev/sdd1 961432072 204436 912389636 1% /mnt/sdd
以上加粗字体就是新增磁盘。
以上是大佬教程为你收集整理的Centos挂载新硬盘、分区、格式化、挂载全部内容,希望文章能够帮你解决Centos挂载新硬盘、分区、格式化、挂载所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。