LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 02-27-2006, 06:51 PM   #1
aqayyum
LQ Newbie
 
Registered: Feb 2006
Posts: 3

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


Hi.

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.
Abbas.
 
Old 02-27-2006, 08:20 PM   #2
born4linux
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, 08:33 PM   #3
ralvez
Member
 
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.

My
 
Old 02-27-2006, 08:38 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,500

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
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 08:40 PM.
 
Old 02-28-2006, 04:05 AM   #5
phase9
Member
 
Registered: Mar 2004
Location: austria, vienna
Distribution: slackware-10.2
Posts: 89

Rep: Reputation: 15
Hi!

Use a bootable CD (e.g. SystemRescueCd from http://www.sysresccd.org/Main_Page 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, 12:46 PM   #6
everal
Member
 
Registered: Nov 2004
Location: Zona Leste, Sao Paulo, Brazil, South America, Milk Way
Distribution: Slackware 10.1
Posts: 139

Rep: Reputation: 16
Simple - Read the How To

You must read this:

http://www.tldp.org/HOWTO/Hard-Disk-Upgrade/index.html

there you have everithing you need.

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

Bye
 
Old 03-01-2006, 12:36 PM   #7
Widgeteye
Member
 
Registered: Mar 2005
Posts: 117

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, 12:57 PM   #8
lestoil
Member
 
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.
 
  


Reply


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


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

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