-   Linux - Desktop (
-   -   cfdisk ate my partition(?) (

kapz 08-31-2010 10:04 AM

cfdisk ate my partition(?)
Ok I have a laptop with 60 GB IDE HDD and Fedora 12 installed on it.

I had partitions as sda1 - sda7 where my root partition was on sda5, 6&7 were spare. So what I did was using sudo I deleted merged sda6&7 into a common partition i.e sda6 through cfdisk but after that the disk space(combined of 6&7) is showing as what sda6 had previously, as if after merging partitions system forgot about my sda7 partition and also forgot to add the disk space into common sda6.Now cfdisk shows partitions from 1-6 only and so does fdisk!

Help. Thanks :)

AlucardZero 08-31-2010 10:34 AM

Sounds like you deleted sda7 but didn't expand sda6. Try expanding sda6.

kapz 08-31-2010 03:43 PM

Expand! How?... I mean I deleted both sda6 and sda7 and created a new partition of whatever was left and the new partition became sda6. like for example sda6 was 11 GB and sda7 was 8 GB but after doing the above mentioned process, sda6 is still 11 GB and there is no trace of remaining 8 GB whatsoever...!

tredegar 08-31-2010 04:24 PM

As root:

fdisk /dev/sda
m to see the menu
print the partition table
delete sda6 if you are sure that is what you want
add a new partition using the remaining free space
write the changes
quit (may not be necessary)

Now format the new, expanded, partition with your filesystem of choice.

syg00 08-31-2010 05:15 PM

As @tredegar implies, are you (truly) looking at the size of the partition, or the old (maybe forgotten about) filesystem that was in sda6.
I'd reckon you did a mount before a format of the partition.

shankargupta 09-01-2010 12:39 PM

you forgot to update the disk status
#resize2fs /dev/vol0 (LV Name)

kapz 09-01-2010 07:47 PM

I don't know but in the past deleting two partitions and creating a new one of the remaining disk space was the new partition of combined disk space..

I took the image of my current setup and using fdisk, deleted all partitions and now it shows 'em all proper...
I will see if restoring the image helps or causes the same problem.......

All times are GMT -5. The time now is 11:50 AM.