Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Shifting the boot partition
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
mihochan
Apprentice
Apprentice


Joined: 16 Apr 2002
Posts: 296
Location: Melbourne again

PostPosted: Sun Oct 06, 2002 5:57 am    Post subject: Shifting the boot partition Reply with quote

Hi,

I bought a new Hard Disk the other day to replace my 1G and 5G drives.
What I'd like to do is move everything over to the new disk and throw away the 1G disk.
But, I'm having trouble getting the machine to boot from the new disk.
My method has been to boot up in the old way with the new disk attached as a slave, run grub and then switch the disks over and see what happens.
This has never worked, and I'm wondering if my method is doomed.
Does anyone have any suggestions about the best way to do this?

TOm
_________________
In the long run we are all dead - Keynes
Back to top
View user's profile Send private message
Jetlag
n00b
n00b


Joined: 30 Sep 2002
Posts: 20
Location: UK

PostPosted: Sun Oct 06, 2002 7:58 am    Post subject: Re: Shifting the boot partition Reply with quote

Make a boot floppy (or two) and install Grub on it. Swap your drives around and then boot from the floppy and choose which partition or hard drive to boot from at start up via Grub (no menu, just the Grub command line).

To make a Grub boot floppy (as root) ...

Code:
mke2fs /dev/fd0
mount /dev/fd0 /mnt/floppy
mkdir /mnt/floppy/boot
mkdir /mnt/floppy/boot/grub
cp /usr/share/grub/i386-pc/stage1 /mnt/floppy/boot/grub/
cp /usr/share/grub/i386-pc/stage2 /mnt/floppy/boot/grub/
umount /mnt/floppy
grub
grub> root (fd0)
grub> setup (fd0)
grub> quit


Test the boot floppy first to check you know how to start your OSs and how Grub works. Then swap drives over and reboot with the floppy.
Back to top
View user's profile Send private message
amittp
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jul 2002
Posts: 123
Location: USA

PostPosted: Sun Oct 06, 2002 6:00 pm    Post subject: Reply with quote

May be this will help you.

https://forums.gentoo.org/viewtopic.php?t=17579
_________________
Believe in yourself
Back to top
View user's profile Send private message
mihochan
Apprentice
Apprentice


Joined: 16 Apr 2002
Posts: 296
Location: Melbourne again

PostPosted: Sun Oct 06, 2002 8:29 pm    Post subject: Reply with quote

Thanks for the tips.
I'll give it a go.

Tom
_________________
In the long run we are all dead - Keynes
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing 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