View previous topic :: View next topic |
Author |
Message |
Oopsz Guru
Joined: 08 Oct 2002 Posts: 340
|
Posted: Mon May 12, 2003 6:35 pm Post subject: Upgrading to SCSI without reinstalling? |
|
|
For my gentoo box, i've picked up a scsi controller and hard drive (nothing fancy, but it's definitely faster than the 2 gig 5400 rpm drive I have in there now). I really, really don't want to reinstall the OS just for a new hard drive. Would there be any major problems if I boot from livecd, partition the new drive, and cp files from /mnt/hda1 to /mnt/sda1 and /mnt/hda3 to /mnt/sda3? (my boot and root partitions, respectively. hda2 is swap.)
Then I can update fstab, boot from the scsi drive using a grub floppy and reinstall the bootloader.
Should this work, or am I missing something? boot is ext3, root is reiser, if that matters. The new disk is 8gigs (if it was the same size, i'd just dd the entire drive ) |
|
Back to top |
|
|
tomaw Guru
Joined: 26 Mar 2003 Posts: 429 Location: UK
|
Posted: Mon May 12, 2003 6:43 pm Post subject: |
|
|
I would be tempted to boot from a CD with the drives installed then:
cat /dev/hda1 > /dev/sda1 etc etc
then adjust the fstab, install grub etc.
Can't see why that wouldn't work. Only suggesting that because I recall there could be problems with symbolic links, but I may well be wrong.
Tom |
|
Back to top |
|
|
Oopsz Guru
Joined: 08 Oct 2002 Posts: 340
|
Posted: Mon May 12, 2003 6:55 pm Post subject: |
|
|
Well, the partitions won't be the same size... How will the filesystems deal with that? |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20093
|
Posted: Mon May 12, 2003 6:59 pm Post subject: |
|
|
Moved from Installing Gentoo. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
tomaw Guru
Joined: 26 Mar 2003 Posts: 429 Location: UK
|
Posted: Mon May 12, 2003 7:03 pm Post subject: |
|
|
they won't. probably the best would be to use tar in that case. if anyone else reads this then I could well have been wrong about the links not being happy with copy.
Either that or you could create the partitions the same size, then grow them after. If you create the partitions so their starting block is the same as where they will finally be then it will simplify the growing process. GNU parted should work for this.
Tom |
|
Back to top |
|
|
Oopsz Guru
Joined: 08 Oct 2002 Posts: 340
|
Posted: Mon May 12, 2003 7:47 pm Post subject: |
|
|
tar cvfp - /mnt/hda1 | tar xvfp /mnt/sda1
just like that? |
|
Back to top |
|
|
ronmon Veteran
Joined: 15 Apr 2002 Posts: 1043 Location: Key West, FL
|
Posted: Mon May 12, 2003 8:45 pm Post subject: |
|
|
The Mini How-To is kind of old, but it still works if you adapt a little. On this page he shows three ways to do the copying. The second way has worked for me on two occasions. |
|
Back to top |
|
|
|