[root@mail ~]# fdisk /dev/sda
welcome to fdisk (util-linux 2.23.2).
changes will remain in memory only, until you decide to write them.
be careful before using the write command.
command (m for help): n
partition type:
p primary (2 primary, 0 extended, 2 free)
e extended
select (default p): p
partition number (3,4, default 3):
first sector (41943040-62914559, default 41943040):
using default value 41943040
last sector, +sectors or +size{k,m,g} (41943040-62914559, default 62914559):
using default value 62914559
partition 3 of type linux and of size 10 gib is set
command (m for help): t
partition number (1-3, default 3): 3
hex code (type l to list all codes): l
0 empty 24 nec dos 81 minix / old lin bf solaris
1 fat12 27 hidden ntfs win 82 linux swap / so c1 drdos/sec (fat-
2 xenix root 39 plan 9 83 linux c4 drdos/sec (fat-
3 xenix usr 3c partitionmagic 84 os/2 hidden c: c6 drdos/sec (fat-
4 fat16 <32m 40 venix 80286 85 linux extended c7 syrinx
5 extended 41 ppc prep boot 86 ntfs volume set da non-fs data
6 fat16 42 sfs 87 ntfs volume set db cp/m / ctos / .
7 hpfs/ntfs/exfat 4d qnx4.x 88 linux plaintext de dell utility
8 aix 4e qnx4.x 2nd part 8e linux lvm df bootit
9 aix bootable 4f qnx4.x 3rd part 93 amoeba e1 dos access
a os/2 boot manag 50 ontrack dm 94 amoeba bbt e3 dos r/o
b w95 fat32 51 ontrack dm6 aux 9f bsd/os e4 speedstor
c w95 fat32 (lba) 52 cp/m a0 ibm thinkpad hi eb beos fs
e w95 fat16 (lba) 53 ontrack dm6 aux a5 freebsd ee gpt
f w95 extd (lba) 54 ontrackdm6 a6 openbsd ef efi (fat-12/16/
10 opus 55 ez-drive a7 nextstep f0 linux/pa-risc b
11 hidden fat12 56 golden bow a8 darwin ufs f1 speedstor
12 compaq diagnost 5c priam edisk a9 netbsd f4 speedstor
14 hidden fat16 <3 61 speedstor ab darwin boot f2 dos secondary
16 hidden fat16 63 gnu hurd or sys af hfs / hfs+ fb vmware vmfs
17 hidden hpfs/ntf 64 novell netware b7 bsdi fs fc vmware vmkcore
18 ast smartsleep 65 novell netware b8 bsdi swap fd linux raid auto
1b hidden w95 fat3 70 disksecure mult bb boot wizard hid fe lanstep
1c hidden w95 fat3 75 pc/ix be solaris boot ff bbt
1e hidden w95 fat1 80 old minix
hex code (type l to list all codes): 8e
changed type of partition linux to linux lvm
command (m for help): w
the partition table has been altered!
calling ioctl() to re-read partition table.
warning: re-reading the partition table failed with error 16: device or resource busy.
the kernel still uses the old table. the new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
syncing disks.
[root@mail ~]#