I have also posted on superuser. But I recieved no response to my last two questions on superuser. So I am posting here.
I have a multi-os setup on a new HDD which was cloned from an old HDD. I used clonezilla "partition to partition" clone method.
old HDD setup : ubuntu 14.04 +ubuntu 16.04 + windows 7.windows on primary partition, rest on extended partition
new HDD setup : ubuntu 14.04 +ubuntu 16.04 all on extended partition(no primary partition)
The cloned system is much slower than the old one(both on ubuntu 16.04 and 14.04). Also the SWAP is not enabled by default. I have to manually enable it after login. Even after enabling SWAP, the new setup is very slow. The partition table on the new HDD is as follows:
I did some tests to check for disk partition allignment and I got that some mislignment is there.
sudo fdisk -l
Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes 255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x22c8142a
Device Boot Start End Blocks Id System
/dev/sdb1 2048 3907028991 1953513472 5 Extended
/dev/sdb5 4096 552964095 276480000 83 Linux
/dev/sdb6 * 552966144 972806143 209920000 83 Linux
/dev/sdb7 972808192 1041416191 34304000 82 Linux swap / Solaris
/dev/sdb8 1041418240 3907028991 1432805376 83 Linux
sudo parted yields:
(parted) p
Model: ATA WDC WD20EARX-00P (scsi)
Disk /dev/sda: 2000GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 2000GB 2000GB extended
5 2097kB 283GB 283GB logical ext4
6 283GB 498GB 215GB logical ext4 boot
7 498GB 533GB 35.1GB logical linux-swap(v1)
8 533GB 2000GB 1467GB logical ext4
(parted) align-check optimal 1
1 aligned
(parted) align-check optimal 5
5 aligned
(parted) align-check optimal 6
6 aligned
(parted) align-check optimal 7
7 aligned
(parted) align-check optimal 8
8 aligned
(parted)
So all disks are aligned.
sudo fdisk -l
for a quick check to see if your partitions are aligned. Usesudo parted
align-check for a more thorough check. Edit your answer with the output. For swap, you need tosudo blkid
andcat /etc/fstab
to make sure that your UUIDs match, and your mount for swap is correct. – heynnema Jan 09 '17 at 22:43