No probs, remember to write the changes after using fdisk.
Code:
/dev/sda1 178G 8.3G 161G 5% /
varrun 1014M 120K 1014M 1% /var/run
varlock 1014M 0 1014M 0% /var/lock
procbususb 1014M 136K 1014M 1% /proc/bus/usb
udev 1014M 136K 1014M 1% /dev
devshm 1014M 0 1014M 0% /dev/shm
tmpfs 1014M 33M 981M 4% /lib/modules/2.6.20-16-generic/volatile
Here is an example of one of my systems, as you can see its a very basic desktop system. The main drive here is /dev/sda1 at 178GB.
so I would now
note: ive dropped the 1 from sda as 1 relates to the partition number so is not needed as we are going to examine the whole disk !
here is a list of the commands available.
Code:
cmcewan@MythTV-Encoder:/storage$ sudo fdisk /dev/sda
Password:
The number of cylinders for this disk is set to 24321.
There is nothing wrong with that, but this is larger than 1024,
and could 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)
Command (m for help): m
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)
if you type p and then hit enter you will see a printout of the partition table like so
Code:
Command (m for help): p
Disk /dev/sda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 23565 189285831 83 Linux
/dev/sda2 23566 24321 6072570 5 Extended
/dev/sda5 23566 24321 6072538+ 82 Linux swap / Solaris
then use d + enter to delete a partition eg.
Code:
Command (m for help): d
Partition number (1-5):
and then you would select the number of the partition you wanted to delete, in your case all of them.
finally make sure you have done everything correctly, if at any point you make a mistake exit fdisk and your changes will not be saved.
to save the changes use 'w' to write changes to disk.