// 格式化 ext3 [root@waiting ~]# mkfs.ext3 /dev/nvme0n1 mke2fs 1.42.9 (28-Dec-2013) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) Stride=0 blocks, Stripe width=0 blocks 65536 inodes, 262144 blocks 13107 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=268435456 8 block groups 32768 blocks per group, 32768 fragments per group 8192 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376
Allocating group tables: done Writing inode tables: done Creating journal (8192 blocks): done Writing superblocks and filesystem accounting information: done
// 格式化 ext2 [root@waiting ~]# mkfs.ext2 /dev/nvme0n2 mke2fs 1.42.9 (28-Dec-2013) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) Stride=0 blocks, Stripe width=0 blocks 65536 inodes, 262144 blocks 13107 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=268435456 8 block groups 32768 blocks per group, 32768 fragments per group 8192 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376
Allocating group tables: done Writing inode tables: done Writing superblocks and filesystem accounting information: done
// 卸载全部已挂载的 [root@waiting ~]# umount -a umount: /: target is busy. (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1)) umount: /sys/fs/cgroup/systemd: target is busy. (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1)) umount: /sys/fs/cgroup: target is busy. (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1)) umount: /run: target is busy. (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1)) umount: /dev: target is busy. (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1))
// 挂载全部磁盘(自动读取 /etc/fstab 文件进行挂载) [root@waiting ~]# mount -a