挂单个分区小于2TB分区
1.查看系统当前分区情况
实例:
E10-3:~ # df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 40G 4.7G 33G 13% /
devtmpfs 12G 144K 12G 1% /dev
tmpfs 3.9G 100K 3.9G 1% /dev/shm
/dev/sda1 479M 72M 383M 16% /boot
/dev/sda5 869G 201M 824G 1% /home
/dev/sr0 2.9G 2.9G 0 100% /media/SLES-11-SP1-DVD-x86_64.0432..001
2.查看系统当前硬盘分区情况
E10-3:~ # fdisk -l
Disk /dev/sda: 999.0 GB, 998999326720 bytes
255 heads, 63 sectors/track, 121454 cylinders
Units = cylinders of 16065 * 512 = 8225280bytes
Disk identifier: 0x00004cb7
Device Boot Start End Blocks Id System
/dev/sda1 * 1 63 506016 83 Linux
/dev/sda2 64 5284 41937682+ 83 Linux
/dev/sda3 5285 6328 8385930 82 Linux swap / Solaris
/dev/sda4 6329 121454 924749595 f W95 Ext'd (LBA)
/dev/sda5 6329 121452 924733498+ 83 Linux
Disk /dev/sdb: 999.0 GB, 998999326720 bytes
255 heads, 63 sectors/track, 121454 cylinders
Units = cylinders of 16065 * 512 = 8225280bytes
Disk identifier: 0x00000000
Disk /dev/sdb doesn't contain a validpartition table
Disk /dev/sdc: 4994.0 GB, 4993981612032 bytes
255 heads, 63 sectors/track, 607150 cylinders
Units = cylinders of 16065 * 512 = 8225280bytes
Disk identifier: 0x00000000
Disk /dev/sdc doesn't contain a validpartition table
3.创建新的硬盘分区
E10-3:~ # fdisk /dev/sdb
Device contains neither a valid DOS partitiontable, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with diskidentifier 0xd3f0a6aa.
Changeswill remain in memory only, until you decide to write them.
After that, of course, the previous contentwon't be recoverable.
Thenumber of cylinders for this disk is set to 121454.
There is nothing wrong with that, but this islarger than 1024,
andcould in certain setups cause problems with:
1)software that runs at boot time (e.g., old versions of LILO)
2)booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partitiontable 4 will be corrected by w(rite)
Command (m for help): m
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibilityflag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOSpartition table
p print the partition table
q quit without saving changes
s create a new empty Sundisklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (expertsonly)
Command (m for help): n
Command action
e extended
p primary partition (1-4)
e
Partition number (1-4): 1
First cylinder (1-121454, default 1): 1
Lastcylinder, +c