mkfs.ext3  && fdisk

1.[root@localhost zhang]# fdisk -lDisk /dev/sda: 120.0 GB, 120034123776 bytes255 heads, 63 sectors/track, 14593 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesDisk identifier: 0xf601f601 Device Boot Start End Blocks Id System/dev/sda1 * 1 25 200781 83 Linux/dev/sda2 26 14593 117017460 8e Linux LVMDisk /dev/sdb: 203.9 GB, 203928109056 bytes255 heads, 63 sectors/track, 24792 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesDisk identifier: 0x5b2b11b1 Device Boot Start End Blocks Id System/dev/sdb1 * 1 6199 49788396 c W95 FAT32 (LBA)Partition 1 does not end on cylinder boundary./dev/sdb2 6199 12397 49786537+ c W95 FAT32 (LBA)Partition 2 does not end on cylinder boundary./dev/sdb3 12397 18595 49786537+ c W95 FAT32 (LBA)Partition 3 does not end on cylinder boundary./dev/sdb4 18595 24793 49786537+ c W95 FAT32 (LBA)Partition 4 does not end on cylinder boundary.[root@localhost zhang]#[root@localhost zhang]#2.[root@localhost zhang]# mkfs.ext3 /dev/sdb1mke2fs 1.41.3 (12-Oct-2008)/dev/sdb1 is mounted; will not make a filesystem here!3.[root@localhost zhang]# umount /dev/sdb1[root@localhost zhang]#[root@localhost zhang]# mkfs.ext3 /dev/sdb1mke2fs 1.41.3 (12-Oct-2008)Filesystem label=OS type: LinuxBlock size=4096 (log=2)Fragment size=4096 (log=2)3112960 inodes, 12447099 blocks622354 blocks (5.00%) reserved for the super userFirst data block=0Maximum filesystem blocks=0380 block groups32768 blocks per group, 32768 fragments per group8192 inodes per groupSuperblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000, 7962624, 11239424Writing inode tables: done Creating journal (32768 blocks): doneWriting superblocks and filesystem accounting information: doneThis filesystem will be automatically checked every 27 mounts or180 days, whichever comes first. Use tune2fs -c or -i to override.[root@localhost zhang]#

你可能感兴趣的:(c,linux,OS)