Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 01-15-2005, 07:36 AM   #1
Registered: Dec 2003
Distribution: Gentoo / Sabayon / Suse
Posts: 245

Rep: Reputation: 32
swapping HD

this is my setup:

hda1+2: / + swap 120G
hdb1: /home 120G
hdc: DVD-RW

i wanna change hdb to a 200G disk i just bought. can i simply copy all content of hdb1 over to hda2, and the just change the 120G disk with the 200G, boot up again, and copy the stuff back again? or do i have to change anything else?
i guess i have to log on as root, since that account has its home on the hda1 disk already.

or...should i connect the 200G disk as hdc2 and then format it and copy everything on hdb to that disk. then remove the 120G disk, set the 200G to hdb1 and boot up again. this way i do not have to log on as root...

perhaps a stupid question, but i wanna be sure before i do anything...

Old 01-15-2005, 11:02 AM   #2
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
since your hdb seems to be your home directory (not necessary for system startup) you can cp -a everything to a temp. dir. on your current root-fs. be sure there is enough space. then plug in the new disk, partition it (fdisk/parted/cfdisk/..) and make a filesystem on it (mke2fs). mount it somewhere and copy back the data to the new disk. edit /etc/fstab to reflect your new layout and reboot. this way you replace the 120G drive with the new 200G one.

or...should i co...
?? ide layout:
hda = first drive (master) on ide channel 1 (ide0)
hdb = second (slave) on ide0
hdc = master on ide1
hdd = slave on ide1
the numbers behind the device are partitions.
hda1 first partition on the first drive, hda2 second.....

you can also plug your new drive as slave next to your cdrom since ide supports up to four devices (two per channel).
even better: use the new drive as master on ide1 and rejumper your cdrom/dvd as slave. so you would have three drives and one cdrom/dvd.
it's better (performance) to give each drive as master on one ide channel.

sl mritch.
Old 01-16-2005, 10:11 AM   #3
Registered: Dec 2003
Distribution: Gentoo / Sabayon / Suse
Posts: 245

Original Poster
Rep: Reputation: 32
thanks, i placed the 200G disk as slave to my DVD, and copied everything on hdb1 to the disk.
then i powered down, swapped the 120G with the 200G on hdb, and booted again. works like a charm.
i cant have all three disks on this box, cuz then my 2nd box would have only one 30G disk...and that just aint right!

thanka again!


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
Swapping from FC3 gibbylinks Ubuntu 6 05-18-2005 11:39 AM
HOW TO -Swapping HD-0 to HD-1 ? penguinlnx Linux - Hardware 9 05-01-2005 05:36 AM
Swapping Drives Little Dump Linux - Newbie 0 10-13-2004 07:46 PM
Swapping Drives Little Dump Linux - Hardware 0 10-13-2004 02:28 PM
swapping hardware blitzen Linux - Hardware 4 08-01-2004 04:26 PM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:32 AM.

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