#fdisk /dev/hdg
#p
How to FDISK
#su -
#fdisk /dev/hdg
---you will have the following prompt---
Command (m for help):
press m
help shows
--------------------------------------------
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
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 (experts only)
--------------------------------------------
at first enter
Command (m for help):p
your partition table shown.
If you don't have any partion, you should enter
to the pronpt
Device Boot Start End Blocks Id System
if you have some partition, and you want delete
partition
Command (m for help):d
Command (m for help):n
------------
Command action
e extended
p primary partition(1-4)
------------
enter p
Partition number (1-4):1
First cylinder (1-1014):1
Hex code (type L to list codes): L
0 |
Empty |
1c |
Hidden Win95 FA 65 |
65 |
Novell Netware |
bb |
Boot Wizard hid |
1 |
FAT12 |
1e |
Hidden Win95 FA |
70 |
DiskSecure Mult |
c1 |
DRDOS/sec (FAT- |
2 |
XENIX root |
24 |
NEC DOS |
75 |
PC/IX |
c4 |
DRDOS/sec (FAT- |
3 |
XENIX usr |
39 |
Plan 9 |
80 |
Old Minix |
c6 |
DRDOS/sec (FAT- |
4 |
FAT16 <32M |
3c |
PartitionMagic |
81 |
Minix / old Lin |
c7 |
Syrinx |
5 |
Extended |
40 |
Venix 80286 |
82 |
Linux swap |
da |
Non-FS data |
6 |
FAT16 |
41 |
PPC PReP Boot |
83 |
Linux |
db |
CP/M / CTOS / . |
7 |
HPFS/NTFS |
42 |
SFS |
84 |
OS/2 hidden C: |
de |
Dell Utility |
8 |
AIX |
4d |
QNX4.x |
85 |
Linux extended |
df |
BootIt |
9 |
AIX bootable |
4e |
QNX4.x 2nd part |
86 |
NTFS volume set |
e1 |
DOS access |
a |
OS/2 Boot Manag |
4f |
QNX4.x 3rd part |
87 |
NTFS volume set |
e3 |
DOS R/O |
b |
Win95 FAT32 |
50 |
OnTrack DM |
8e |
Linux LVM |
e4 |
SpeedStor |
c |
Win95 FAT32 (LB |
51 |
OnTrack DM6 Aux 93 |
93 |
Amoeba |
eb |
BeOS fs |
e |
Win95 FAT16 (LB |
52 |
CP/M |
94 |
Amoeba BBT |
ee |
EFI GPT |
f |
Win95 Ext'd (LB |
53 |
OnTrack DM6 Aux |
9f |
BSD/OS |
ef |
EFI (FAT-12/16/ |
10 |
OPUS |
54 |
OnTrackDM6 |
a0 |
IBM Thinkpad hi |
f0 |
Linux/PA-RISC b |
11 |
Hidden FAT12 |
55 |
EZ-Drive |
a5 |
FreeBSD |
f1 |
SpeedStor |
12 |
Compaq diagnost |
56 |
Golden Bow |
a6 |
OpenBSD |
f4 |
SpeedStor |
14 |
Hidden FAT16 <3 |
5c |
Priam Edisk |
a7 |
NeXTSTEP |
f2 |
DOS secondary |
16 |
Hidden FAT16 |
61 |
SpeedStor |
a9 |
NetBSD |
fd |
Linux raid auto |
17 |
Hidden HPFS/NTF |
63 |
GNU HURD or Sys |
b7 |
BSDI fs |
fe |
LANstep |
18 |
AST SmartSleep |
64 |
Novell Netware |
b8 |
BSDI swap |
ff |
BBT |
Hex code (type L to list codes): b
Changed system type of partition 1 to b (Win95
FAT32)
Last cylinder or +size or +sizeM or +sizeK([1]-1014):
+8M
Device Boot Start End Blocks Id System
/dev/hdg1 1 23 8256 6 Linux native
Command (m for help):t
Partition number (1-4):1
Hex code (type L to list codes):
Command (m for help):n
------------
Command action
e extended
p primary partition(1-4)
------------
enter p
Partition number (1-4):2
First cylinder (24-695, default 24):<Press
your enter key.You don't need enter some number.>
Using default value 915
Last cylinder or +size or +sizeM or +sizeK(24-695,
default 695):<Press your enter key,too.>
Command (m for help): w
The partition table has been altered!
|