dev/sdc1 1 14593 117218241 5 Extended
[root@explorer /]# mkfs -t ext2 /dev/sdb1
mke2fs 1.35 (28-Feb-2004)
/dev/sdb1: Invalid argument passed to ext2 library while setting up superblock
解决方式,注意的是sdb1是一个Extended
而不是一个真正的分区,扩展分区。扩展分区里面可以分更多的逻辑分区,而逻辑分区是可以利用fdisk 格式化得
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 650 5116702+ 83 Linux
/dev/sda3 651 777 1020127+ 82 Linux swap / Solaris
/dev/sda4 778 1044 2144677+ 5 Extended
/dev/sda5 778 900 987966 83 Linux
/dev/sda6 901 1000 803218+ 83 Linux
(注意4 5 6的block )
如上面的分区,其中sda4是不可以格式化的。
sda5,6是包含在sda4里面的。所以sda5,6可以格式化而sda4是不可以的。
(初学者经常犯错,格式化sda4)
如果格式化sda4将会出现下面的提示
Invalid argument passed to ext2 library while setting up superblock
格式化sda4(失败)
[root@localhost ~]# mkfs /dev/sda4
mke2fs 1.39 (29-May-2006)
/dev/sda4: Invalid argument passed to ext2 library while setting up superblock
格式化sda5(成功)
[root@localhost ~]# mkfs -V -t ext3 /dev/sda5
mkfs (util-linux 2.13-pre7)
mkfs.ext3 /dev/sda5
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
123648 inodes, 246991 blocks
12349 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=255852544
8 block groups
32768 blocks per group, 32768 fragments per group
15456 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376
Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 35 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
17898045 于 2013-09-17 17:25:55发表:
不错,学习了,讲的很细 楼主好人
于 2013-09-12 20:12:14发表:
不错,学习了,讲的很细!
oplesd 于 2009-10-13 00:08:44发表:
学习一下
414716676 于 2009-10-12 23:33:08发表:
不错,出来支持下!