[root@rhels5532 ~]# fdisk /dev/sdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remaininmemory only,until you decide to writethem. After that, of course, the previous
content won't be recoverable.
The number of cylindersfor this disk is set to 2349.
There is nothing wrong with that, but this is larger than1024,
and couldincertain 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/2FDISK)
Warning: invalid flag0x0000 of partition table 4 will be corrected by w(rite)
Command (mforhelp): p
Disk/dev/sdb: 19.3 GB, 19327352832bytes255 heads, 63 sectors/track, 2349cylinders
Units= cylinders of 16065 * 512 = 8225280bytes
Device Boot Start End Blocks Id System
Command (mforhelp): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1First cylinder (1-2349, default 1):
Using default value1Last cylinder or+size or +sizeM or +sizeK (1-2349, default 2349): +1g
Command (mforhelp): p
Disk/dev/sdb: 19.3 GB, 19327352832bytes255 heads, 63 sectors/track, 2349cylinders
Units= cylinders of 16065 * 512 = 8225280bytes
Device Boot Start End Blocks Id System/dev/sdb1 1 123 987966 83Linux
Command (mforhelp): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 2First cylinder (124-2349, default 124):
Using default value124Last cylinder or+size or +sizeM or +sizeK (124-2349, default 2349): +1g
Command (mforhelp): p
Disk/dev/sdb: 19.3 GB, 19327352832bytes255 heads, 63 sectors/track, 2349cylinders
Units= cylinders of 16065 * 512 = 8225280bytes
Device Boot Start End Blocks Id System/dev/sdb1 1 123 987966 83Linux/dev/sdb2 124 246 987997+ 83Linux
Command (mforhelp): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 3First cylinder (247-2349, default 247):
Using default value247Last cylinder or+size or +sizeM or +sizeK (247-2349, default 2349): +1g
Command (mforhelp): p
Disk/dev/sdb: 19.3 GB, 19327352832bytes255 heads, 63 sectors/track, 2349cylinders
Units= cylinders of 16065 * 512 = 8225280bytes
Device Boot Start End Blocks Id System/dev/sdb1 1 123 987966 83Linux/dev/sdb2 124 246 987997+ 83Linux/dev/sdb3 247 369 987997+ 83Linux
Command (mforhelp): n
Command action
e extended
p primary partition (1-4)
e
Selected partition4First cylinder (370-2349, default 370):
Using default value370Last cylinder or+size or +sizeM or +sizeK (370-2349, default 2349):
Using default value2349Command (mforhelp): p
Disk/dev/sdb: 19.3 GB, 19327352832bytes255 heads, 63 sectors/track, 2349cylinders
Units= cylinders of 16065 * 512 = 8225280bytes
Device Boot Start End Blocks Id System/dev/sdb1 1 123 987966 83Linux/dev/sdb2 124 246 987997+ 83Linux/dev/sdb3 247 369 987997+ 83Linux/dev/sdb4 370 2349 15904350 5Extended
Command (mforhelp): n
First cylinder (370-2349, default 370):
Using default value370Last cylinder or+size or +sizeM or +sizeK (370-2349, default 2349): +3g
Command (mforhelp): n
First cylinder (736-2349, default 736):
Using default value736Last cylinder or+size or +sizeM or +sizeK (736-2349, default 2349): +3g
Command (mforhelp): p
Disk/dev/sdb: 19.3 GB, 19327352832bytes255 heads, 63 sectors/track, 2349cylinders
Units= cylinders of 16065 * 512 = 8225280bytes
Device Boot Start End Blocks Id System/dev/sdb1 1 123 987966 83Linux/dev/sdb2 124 246 987997+ 83Linux/dev/sdb3 247 369 987997+ 83Linux/dev/sdb4 370 2349 15904350 5Extended/dev/sdb5 370 735 2939863+ 83Linux/dev/sdb6 736 1101 2939863+ 83Linux
Command (mforhelp): n
First cylinder (1102-2349, default 1102):
Using default value1102Last cylinder or+size or +sizeM or +sizeK (1102-2349, default 2349): +3g
Command (mforhelp): p
Disk/dev/sdb: 19.3 GB, 19327352832bytes255 heads, 63 sectors/track, 2349cylinders
Units= cylinders of 16065 * 512 = 8225280bytes
Device Boot Start End Blocks Id System/dev/sdb1 1 123 987966 83Linux/dev/sdb2 124 246 987997+ 83Linux/dev/sdb3 247 369 987997+ 83Linux/dev/sdb4 370 2349 15904350 5Extended/dev/sdb5 370 735 2939863+ 83Linux/dev/sdb6 736 1101 2939863+ 83Linux/dev/sdb7 1102 1467 2939863+ 83Linux
Command (mforhelp): n
First cylinder (1468-2349, default 1468):
Using default value1468Last cylinder or+size or +sizeM or +sizeK (1468-2349, default 2349): +3g
Command (mforhelp): n
First cylinder (1834-2349, default 1834):
Using default value1834Last cylinder or+size or +sizeM or +sizeK (1834-2349, default 2349): +3g
Command (mforhelp): p
Disk/dev/sdb: 19.3 GB, 19327352832bytes255 heads, 63 sectors/track, 2349cylinders
Units= cylinders of 16065 * 512 = 8225280bytes
Device Boot Start End Blocks Id System/dev/sdb1 1 123 987966 83Linux/dev/sdb2 124 246 987997+ 83Linux/dev/sdb3 247 369 987997+ 83Linux/dev/sdb4 370 2349 15904350 5Extended/dev/sdb5 370 735 2939863+ 83Linux/dev/sdb6 736 1101 2939863+ 83Linux/dev/sdb7 1102 1467 2939863+ 83Linux/dev/sdb8 1468 1833 2939863+ 83Linux/dev/sdb9 1834 2199 2939863+ 83Linux
Command (mforhelp): n
First cylinder (2200-2349, default 2200):
Using default value2200Last cylinder or+size or +sizeM or +sizeK (2200-2349, default 2349): +1g
Command (mforhelp): p
Disk/dev/sdb: 19.3 GB, 19327352832bytes255 heads, 63 sectors/track, 2349cylinders
Units= cylinders of 16065 * 512 = 8225280bytes
Device Boot Start End Blocks Id System/dev/sdb1 1 123 987966 83Linux/dev/sdb2 124 246 987997+ 83Linux/dev/sdb3 247 369 987997+ 83Linux/dev/sdb4 370 2349 15904350 5Extended/dev/sdb5 370 735 2939863+ 83Linux/dev/sdb6 736 1101 2939863+ 83Linux/dev/sdb7 1102 1467 2939863+ 83Linux/dev/sdb8 1468 1833 2939863+ 83Linux/dev/sdb9 1834 2199 2939863+ 83Linux/dev/sdb10 2200 2322 987966 83Linux
Command (mfor help): wThe partition table has been altered!Calling ioctl() to re-read partition table.
Syncing disks.
[root@rhels5532~]#