Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-28197, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-28197, default 28197):
Using default value 28197
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
[root@ www.linuxidc.com ~]# fdisk -l
Disk /dev/sda: 38.6 GB, 38654705664 bytes
255 heads, 63 sectors/track, 4699 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 4699 37640295 8e Linux LVM
Disk /dev/sdb: 536.8 GB, 536870912000 bytes
255 heads, 63 sectors/track, 65270 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 65270 524281243+ 83 Linux
Disk /dev/sdc: 231.9 GB, 231928233984 bytes
255 heads, 63 sectors/track, 28197 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdc1 1 28197 226492371 83 Linux
[root@ www.linuxidc.com ~]# mkf
mkfifo mkfs mkfs.cramfs mkfs.msdos
mkfontdir mkfs.acfs mkfs.ext2 mkfs.vfat
mkfontscale mkfs.acfs.bin mkfs.ext3
[root@ www.linuxidc.com ~]# mkfs -t ext3 /dev/sdc1
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
28311552 inodes, 56623092 blocks
2831154 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
1728 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, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information:
done
This filesystem will be automatically checked every 38 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
[root@ www.linuxidc.com ~]#
[root@ www.linuxidc.com ~]#
[root@ www.linuxidc.com ~]# mkdir /mnt/sdc1
[root@ www.linuxidc.com ~]# chmod 777 /mnt/sdc1
[root@ www.linuxidc.com ~]# mount /dev/sdc1 /mnt/sdc1
[root@ www.linuxidc.com ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
28G 22G 4.3G 84% /
/dev/sda1 99M 16M 79M 17% /boot
tmpfs 4.9G 1.4G 3.5G 29% /dev/shm
/dev/sdc1 213G 188M 202G 1% /mnt/sdc1
