Originally I had three windows 7 partitions (one for system boot - /dev/sda1, one for the OS - /dev/sda2, and one for recovery - /dev/sda4), which is the way the system was shipped from the OEM. When I added Linux to the mix, I used an extended partition (/dev/sda4) to contain three 20GB ext4 partitions, one common swap partition, and an ext4 data partition.
I haven't used the other two linux OS installs for a while, so they got deleted as a part of the migration to the SSD. I also shrunk the data partition considerably. Both were contained inside the extended partition.
Part of the 'migration' process using Macrium Reflect mandated that I let it resize the partitions on the SSD proportionally to the available space... which made most of them slightly bigger than originally intended. I really didn't want to do that, but the software wouldn't clone them otherwise.
I moved the remaining data from the old data partition to the new one on /dev/sdb2, and was making the necessary adjustments in /etc/fstab when I noticed that the swap partition entry was completely commented out, with a note that the swap partition wasn't where it had been previously (true, other partitions had been removed which affected the numbering).
I tried getting swap to work, but kept getting errors about not being able to use the partition desired. So I planned to delete the swap partition in gparted, and re-create it. Since I no longer need the info on the old data partition, I was going to delete that as well. gparted wouldn't even recognize or display *any* info for /dev/sda (the SSD). cfdisk gives the following error:
Code:
Fatal error: Bad primary partition 4
sda4 is the extended partition that has *all* my Linux partitions in it - root, swap, and data. Everything.
sfdisk gives the following picture:
Code:
monte@machin-shin:~$ sudo sfdisk -l
Disk /dev/sda: 31130 cylinders, 255 heads, 63 sectors/track
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/sda1 * 0+ 191- 192- 1536000 7 HPFS/NTFS/exFAT
end: (c,h,s) expected (191,89,26) found (1023,254,63)
/dev/sda2 191+ 16800- 16610- 133411840 7 HPFS/NTFS/exFAT
/dev/sda3 28859+ 31130- 2272- 18244608 7 HPFS/NTFS/exFAT
start: (c,h,s) expected (1023,254,63) found (1023,134,12)
/dev/sda4 16800+ 28859- 12060- 96865280+ 5 Extended
start: (c,h,s) expected (1023,254,63) found (1023,90,59)
/dev/sda5 16800+ 20044- 3244- 26056704 83 Linux
start: (c,h,s) expected (1023,254,63) found (1023,123,28)
/dev/sda6 20554+ 28859- 8305- 66709504 83 Linux
start: (c,h,s) expected (1023,254,63) found (1023,147,10)
Disk /dev/sdb: 60801 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/sdb1 0+ 5100- 5101- 40968192 8e Linux LVM
/dev/sdb2 12449+ 60801- 48352- 388385534 83 Linux
/dev/sdb3 0 - 0 0 0 Empty
/dev/sdb4 0 - 0 0 0 Empty
monte@machin-shin:~$
So at this point it looks like nearly every partition on that disk is messed up... and specifically the extended partition.
Bookmarks