I have a 80 GB hard drive which contains a copy of Ubuntu and a total of about 20 GB of data. I would like to transfer this data over to a SSD that is 60 GB in capacity.
I've looked at tools such as dd and clonezilla, however these have all had one major limitation: The source drive must be smaller in capacity than the destination drive.
Now I'm not sure if this is an inherent limitation with all cloning methods, but is there a way to copy all the data over, so that the SSD can be booted from and operation of the system can be resumed seamlessly?
EDIT: I should probably also mention that I would prefer not messing with the source drive's partitions if at all possible. I'm rather reluctant to make any changes to it because the contents have been rather...temperamental.
EDIT2: Alright, I took a risk and resized the source partition. Managed to do so without issues. So I booted to a live USB and used gparted to create a swap and ext4 on the target drive. Partitions are sda1 and sda2 respectively.
I then performed dd successfully on the resized ext4 partition and sent it to sda2. Since sda1 is swap, I left that one alone.
Next, I did mkswap /dev/sda1 and then mounted sda2 to /media/target so I could edit /etc/fstab in sda2, changing the appropriate lines to the appropriate partitions.
Now to where I'm stuck. From what I understand, I need to run grub-install, but I have no idea how to use it properly. Tried grub-install /dev/sda, but I got an error asking if /dev was mounted. Tried mount /media/target/dev and then repeating grub-install /dev/sda but I get the following: https://imgur.com/a/qpvmy