Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 02-14-2014, 07:49 AM   #1
LQ Newbie
Registered: Jul 2008
Posts: 4

Rep: Reputation: 0
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
Old 02-14-2014, 08:58 AM   #2
Registered: Apr 2005
Distribution: Slackware64 Current
Posts: 199

Rep: Reputation: 40
I have just changed my main drive again the way i usually go is to install the new drive boot from the install cd or live usb/cd if i have one around, if the drive i am copying from is full i just use dd onto the new drive then adjust the partion to match the new disk. If there is a lot i free space i mount the new and old drive and use rsync to copy files across remembering to exclude dev mount media etc. Then I remove the old drive (if replacing) or just make sure its connected to the correct controller, reboot to the install disc/live cd/usb mount the new disk chroot edit fstab and lilo run mkintrid run lilo and reboot.


To move the home directory that is almost everything you have to make sure you the old home directory is gone otherwise it will still take up space but you wont be able to see it, i have made that mistake in the past and it took me quite a while to work out how i had run out of space.

Last edited by SavoTU; 02-14-2014 at 09:02 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need some help on a SSD and HDD install cmas1148 Linux - General 4 04-30-2013 10:04 AM
hdd cloning fareedreg Linux - Newbie 8 05-17-2011 09:49 AM
[SOLVED] SSD cloning quick question lpallard Linux - Hardware 13 02-22-2011 07:22 PM
cloning mixed Linux - Win xp on new SSD for laptop trentfox Linux - Hardware 3 02-09-2010 08:46 PM
[SOLVED] Using both SSD/HDD for partitioning or is it better to just get external HDD? Switch7 Linux - Hardware 16 10-26-2009 01:23 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:47 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration