[SATLUG] Fixing a partition table
bruce.dubbs at gmail.com
Wed Aug 19 19:12:27 CDT 2009
I have a new system and have been experimenting with multiple OSes. As I added
a new OS, I created a new partition for it. I'm not sure if I did it or Ubuntu
did, but my extended partition is not configured properly.
Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000080
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 1229 9767520 83 Linux
/dev/sda3 1230 1594 2931862+ 82 Linux swap / Solaris
/dev/sda4 1595 5422 30748410 5 Extended
/dev/sda5 1595 2900 10490413+ 83 Linux
/dev/sda6 2901 4206 10490413+ 83 Linux
/dev/sda7 4207 5422 9767488+ 83 Linux
On the line /dev/sda4, I need to get the End cylinder to be 38913 and the Blocks
Does anyone know how to do this without destroying whats on partitions 5, 6, 7?
I suppose I could delete them the partitions in fdisk and recreate them and then
write the output, but that's risky.
I will point out that I really don't have that much time (and no data) invested
in the current partitions, but I'd like to save the day or so it would take to
redo those partitions.
More information about the SATLUG