View previous topic :: View next topic |
Author |
Message |
mihochan Apprentice
Joined: 16 Apr 2002 Posts: 296 Location: Melbourne again
|
Posted: Sun Oct 06, 2002 5:57 am Post subject: Shifting the boot partition |
|
|
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 |
|
|
Jetlag n00b
Joined: 30 Sep 2002 Posts: 20 Location: UK
|
Posted: Sun Oct 06, 2002 7:58 am Post subject: Re: Shifting the boot partition |
|
|
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 |
|
|
amittp Tux's lil' helper
Joined: 02 Jul 2002 Posts: 123 Location: USA
|
|
Back to top |
|
|
mihochan Apprentice
Joined: 16 Apr 2002 Posts: 296 Location: Melbourne again
|
Posted: Sun Oct 06, 2002 8:29 pm Post subject: |
|
|
Thanks for the tips.
I'll give it a go.
Tom _________________ In the long run we are all dead - Keynes |
|
Back to top |
|
|
|