2008年11月20日 星期四

Linux Command - fdisk, File system management

>> partition the hard drive, list all the partition tables
# fdisk -l

>> Enter specified partions, press p to display all the partions
# fdisk /dev/sda

Disk /dev/sda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000dda97

Device Boot Start End Blocks Id System
/dev/sda1 * 1 25 200781 83 Linux
/dev/sda2 26 1044 8185117+ 8e Linux LVM ==> LVM is a Linux Volumn Manager, Can support RAID architecture

>> format the file system
# mke2fs

>> physically mount the file system
# mount /dev/hdc1 /vm

沒有留言: