Help answer threads with 0 replies.
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-27-2006, 05:51 PM   #1
LQ Newbie
Registered: Feb 2006
Posts: 3

Rep: Reputation: 0
Moving slackware from one hard drive to another.


First I must admit, apart having no "easy" partition utility, slackware install was a breeze! Very cool.

Now, I have two drives, and thought I would use my second, empty drive to install slack. However, it seems that the hardrive will fail any second (very werid noises).

Anyway, is there any way I can simply create the same partitions on my 1st hard drive (i.e. /boot /swap and /) and simply copy them over? Or is there some magic disk that can do this?

Thank you so much for your help.
Old 02-27-2006, 07:20 PM   #2
Senior Member
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
boot with your slack install CD and run:

dd if=/dev/hda of=/dev/hdc

hda=your primary master IDE (source)
hdc=secondary master IDE (target)

once done, set hdc to be hda (swap cables) and boot with it.
Old 02-27-2006, 07:33 PM   #3
Registered: Oct 2003
Location: Canada
Distribution: ArchLinux && Slackware 10.1
Posts: 298

Rep: Reputation: 30
Another solution that you may find simpler is to swap HDs first, then install Slack and finally mount the HD that is "going" and copy from there the files you want to preserve into your "good" HD.

Old 02-27-2006, 07:38 PM   #4
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,885

Rep: Reputation: 2192Reputation: 2192Reputation: 2192Reputation: 2192Reputation: 2192Reputation: 2192Reputation: 2192Reputation: 2192Reputation: 2192Reputation: 2192Reputation: 2192
The "dd" solution offered is a bit dangerous - especially with no warnings.
Better hope there is nothing on the target disk that is wanted.
If so, better hope target disk is no smaller.

Personally I would use fdisk to create the partitions on the target volume, and just use "cp -a ..."
Others will have their own prefered methods.

EDIT: to clarify which post was being referred to.

Last edited by syg00; 02-27-2006 at 07:40 PM.
Old 02-28-2006, 03:05 AM   #5
Registered: Mar 2004
Location: austria, vienna
Distribution: slackware-10.2
Posts: 89

Rep: Reputation: 15

Use a bootable CD (e.g. SystemRescueCd from and use `cp --archive SOURCE DEST` to copy the root partion of your old hd to the new one. After that you mayby have to adjust your /etc/fstab, /etc/lilo.conf on the new hd and finaly you have to run `/sbin/lilo -r <mount point of your new hd>`.
Old 02-28-2006, 11:46 AM   #6
Registered: Nov 2004
Location: Zona Leste, Sao Paulo, Brazil, South America, Alpha Quadrant, Milk Way
Distribution: Slackware 14.0
Posts: 140

Rep: Reputation: 16
Simple - Read the How To

You must read this:

there you have everithing you need.

There are a lot of situations to consider, and that how-to explain it all.

Old 03-01-2006, 11:36 AM   #7
Registered: Mar 2005
Posts: 130

Rep: Reputation: 17
The easiest way I have found is this and I have done it numerous times.

make the drive you are copying to mountable as /temp

Then do this:
cp / /temp -a

Then change the lilo.conf to show the drive temp is on as the root drive
rerun lilo and your done.
Old 03-01-2006, 11:57 AM   #8
Registered: Apr 2004
Location: new york
Distribution: win2k,ubuntu,sw13,arch,centos5.3
Posts: 815

Rep: Reputation: 31
Check the connections for the HD making noises and make sure your pc power supply is not going bad. I have ended up with ps that go bad because of poor quality or wild surges in power inspite of surge protection. Luckily good PSs are available and a good investment.
SMART disk check old HD(if it is enabled) can tell you if HD is going bad. Good luck.


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
Moving Hard Drive Files Zawi Linux - General 10 08-17-2005 11:08 AM
Moving Hard drive between PC's the_imax Linux - Hardware 13 11-20-2004 12:55 PM
Moving partitions from one hard drive to another robthebob Linux - Software 2 07-15-2004 04:47 AM
moving to a new hard drive n1wil Linux - Software 4 05-21-2003 02:38 PM
moving my hard drive illtbagu Linux - General 2 02-08-2003 04:56 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:39 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration