Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-27-2006, 05:51 PM
|
#1
|
LQ Newbie
Registered: Feb 2006
Posts: 3
Rep:
|
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.
|
|
|
02-27-2006, 07:20 PM
|
#2
|
Senior Member
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127
Rep:
|
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.
|
|
|
02-27-2006, 07:33 PM
|
#3
|
Member
Registered: Oct 2003
Location: Canada
Distribution: ArchLinux && Slackware 10.1
Posts: 298
Rep:
|
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 
|
|
|
02-27-2006, 07:38 PM
|
#4
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,399
|
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.
|
|
|
02-28-2006, 03:05 AM
|
#5
|
Member
Registered: Mar 2004
Location: austria, vienna
Distribution: slackware-10.2
Posts: 89
Rep:
|
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>`.
|
|
|
02-28-2006, 11:46 AM
|
#6
|
Member
Registered: Nov 2004
Location: Zona Leste, Sao Paulo, Brazil, South America, Alpha Quadrant, Milk Way
Distribution: Slackware 14.0
Posts: 140
Rep:
|
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
|
|
|
03-01-2006, 11:36 AM
|
#7
|
Member
Registered: Mar 2005
Posts: 130
Rep:
|
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.
|
|
|
03-01-2006, 11:57 AM
|
#8
|
Member
Registered: Apr 2004
Location: new york
Distribution: win2k,ubuntu,sw13,arch,centos5.3
Posts: 815
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 03:46 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|