mkfs [ -V ] [ -t fstype ] [ fs-options ] filesys [ blocks ]
[root@localhost ~]# mkfs -t ext3 /dev/sdb1
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
368000 inodes, 734965 blocks
36748 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=754974720
23 block groups
32768 blocks per group, 32768 fragments per group
16000 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912
Writing inode tables: done
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 39 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
挂载
[root@localhost /]# mount /dev/sdb1 /u02
[root@localhost /]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 15G 3.1G 11G 23% /
/dev/sda6 12G 8.2G 2.8G 75% /u01
/dev/sda3 1.9G 333M 1.5G 19% /tmp
/dev/sda1 99M 12M 83M 12% /boot
tmpfs 506M 0 506M 0% /dev/shm
/dev/sdb1 2.8G 69M 2.6G 3% /u02
开机自动挂载
vi /etc/fstab
/dev/sdb1 /u02 ext3 defaults 0 0
/dev/sdb5 /u03 ext3 defaults 0 0