Cloning HDD install to SSD
Just got a quick question in regards to cloning my slackware 14.1 install from a HDD to SSD
I've got a 64gb SSD as i've replaced the boot drive in my main (windows 7, don't hurt me!) machine with a larger one, so I'm wanting to put the 64gb in my HP Microserver as its boot/program drive. When i installed slackware in the first instance, i wasn't paying attention to the installer, as it's a little server i've got a few drives in there. I thought it was installing to the 250gb drive that i was using for it's boot/program drive with Arch, which is SDA, but it actually installed it on a 250gb partition on another drive, which is SDC1.
I'm thinking it would be best to connect up the SSD, use dd to clone the boot/program partition to it. It's about 15gb at the moment, so i'm not sure if i can use dd to clone it as i'm not sure if dd will try and clone the entire 250gb, or just what is used. I've had a search but i can't seem to see a better solution, really.
Also, once i've cloned it, can i just edit the /etc/fstab and lilo.conf to point it to SDA, after i've used cfdisk to mark it as bootable? i've not used UUID or anything like that for the drive names, so i'm hoping i can just edit the relevant files, rerun lilo to confirm the changes and i'd be all set, but again, not sure.
I've also got the /home directory currently on the boot/program drive. What i want to do once i've cloned the install is to have the /home directory on the partition i've just cloned from. If i boot up without doing this, and it works, can i reformat the partition, copy over the files from the current /home directory onto the partition, edit /etc/fstab to mount the /home directory on the partition and reboot, would that be enough to sort this, or am i missing anything out?
Last edited by Condemn; 02-14-2014 at 07:52 AM.
Reason: made it clearer (hopefully!) as to what i'm asking