Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Upgrading to SCSI without reinstalling?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Oopsz
Guru
Guru


Joined: 08 Oct 2002
Posts: 340

PostPosted: Mon May 12, 2003 6:35 pm    Post subject: Upgrading to SCSI without reinstalling? Reply with quote

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
View user's profile Send private message
tomaw
Guru
Guru


Joined: 26 Mar 2003
Posts: 429
Location: UK

PostPosted: Mon May 12, 2003 6:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
Oopsz
Guru
Guru


Joined: 08 Oct 2002
Posts: 340

PostPosted: Mon May 12, 2003 6:55 pm    Post subject: Reply with quote

Well, the partitions won't be the same size... How will the filesystems deal with that?
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20093

PostPosted: Mon May 12, 2003 6:59 pm    Post subject: Reply with quote

Moved from Installing Gentoo.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
tomaw
Guru
Guru


Joined: 26 Mar 2003
Posts: 429
Location: UK

PostPosted: Mon May 12, 2003 7:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
Oopsz
Guru
Guru


Joined: 08 Oct 2002
Posts: 340

PostPosted: Mon May 12, 2003 7:47 pm    Post subject: Reply with quote

tar cvfp - /mnt/hda1 | tar xvfp /mnt/sda1

just like that?
Back to top
View user's profile Send private message
ronmon
Veteran
Veteran


Joined: 15 Apr 2002
Posts: 1043
Location: Key West, FL

PostPosted: Mon May 12, 2003 8:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum