磁盘格式化——mkfs

来源:互联网 发布:数据灾备 编辑:程序博客网 时间:2024/05/04 19:25
[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) yFilesystem label=OS type: LinuxBlock size=4096 (log=2)Fragment size=4096 (log=2)1048576 inodes, 2097152 blocks104857 blocks (5.00%) reserved for the super userFirst data block=0Maximum filesystem blocks=214748364864 block groups32768 blocks per group, 32768 fragments per group16384 inodes per groupSuperblock backups stored on blocks:         32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632Writing inode tables: done                            Creating journal (32768 blocks): doneWriting superblocks and filesystem accounting information: doneThis filesystem will be automatically checked every 36 mounts or180 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% /boottmpfs                   517548         0    517548   0% /dev/shm/dev/md0              24770748    279936  23232532   2% /mnt/raid/dev/sdg               8256952    149628   7687896   2% /mnt/sdg