[root@linux ~]# mkdir /mnt/sdg
[root@linux ~]# mount /dev/sdg /mnt/sdg/ --还没有格式化,挂载不上去。
mount: you must specify the filesystem type
[root@linux ~]# mkfs -t ext3 /dev/sdg --格式化。
mke2fs 1.39 (29-May-2006)
/dev/sdg is entire device, not just one partition!
Proceed anyway? (y,n) y
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
1048576 inodes, 2097152 blocks
104857 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2147483648
64 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 36 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
[root@linux ~]# mount /dev/sdg /mnt/sdg/ --这次挂载上去了。
[root@linux ~]# df
文件系统 1K-块 已用 可用 已用% 挂载点
/dev/sda3 5991232 2655100 3026884 47% /
/dev/sda1 101086 11373 84494 12% /boot
tmpfs 517548 0 517548 0% /dev/shm
/dev/md0 24770748 279936 23232532 2% /mnt/raid
/dev/sdg 8256952 149628 7687896 2% /mnt/sdg
磁盘格式化——mkfs
最新推荐文章于 2023-04-16 15:46:22 发布