LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how to delete a partition (https://www.linuxquestions.org/questions/linux-software-2/how-to-delete-a-partition-570903/)

ust 07-20-2007 06:56 AM

how to delete a partition
 
/sbin/fdisk -l /dev/sdd

Disk /dev/sdd: 18.2 GB, 18210036736 bytes
255 heads, 63 sectors/track, 2213 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdd1 * 1 298 2393653+ fd Linux raid autodetect
/dev/sdd2 299 935 5116702+ fd Linux raid autodetect
/dev/sdd3 936 1572 5116702+ fd Linux raid autodetect
/dev/sdd4 1573 2213 5148832+ f Win95 Ext'd (LBA)
/dev/sdd5 1573 2082 4096543+ fd Linux raid autodetect
/dev/sdd6 2083 2213 1052226 fd Linux raid autodetect


I would like to remove all all partition and group them into one partition , i tried fdisk
/dev/sdd then press "d" , it ask which partition , i then try from 1 to 6 , but it still not work , can advise what is wrong ? thx


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)

Command (m for help): d
Partition number (1-6):

acid_kewpie 07-20-2007 06:59 AM

well that's correct, yes. you need to hit w to write at the end too though, if you missed that.

ust 07-20-2007 07:11 AM

Quote:

Originally Posted by acid_kewpie
well that's correct, yes. you need to hit w to write at the end too though, if you missed that.

I got it , thx much.


All times are GMT -5. The time now is 08:23 AM.