1、root@shallon-laptop:/home/shallon/bakup_img/usr/lib/xorg/modules/input# fdisk -l
Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x86478647
Device Boot Start End Blocks Id System
/dev/sda1 * 1 3825 30724281 c W95 FAT32 (LBA)
/dev/sda2 3826 28475 198001125 f W95 Ext'd (LBA)
/dev/sda3 28476 30402 15471800 12 Compaq diagnostics
/dev/sda5 3826 15727 95602783+ 7 HPFS/NTFS
/dev/sda6 15728 27885 97659103+ 83 Linux
/dev/sda7 27886 28475 4739143+ 82 Linux swap / Solaris
Disk /dev/sdb: 3963 MB, 3963617280 bytes
255 heads, 63 sectors/track, 481 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000d0e6f
Device Boot Start End Blocks Id System
/dev/sdb1 1 481 3863601 83 Linux
2、fdisk /dev/sdb
选择d功能
d (delete a partition)
选择n功能
n(add a new partition)
选择p partition
其他按照缺省值
w (write table to disk and exit)
3、mkfs -t ext3 /dev/sdb1
4、mount -t ext3 /dev/sdb1 /media/mydisk