holocene
June 5th, 2010, 06:21 PM
I would like to dedicate a new hard drive to dual booting two or more instances of Ubuntu.
It's my understanding that grub2 can not accomodate this, so I used a legacy grub to establish MBR, and a stage 2 file into the /boot partition. I am unclear on this point, but subsequent O/S installs will use the existing MBR, and maybe the existing /boot partition, unchanged?
Using this as a guide: http://ubuntuguide.org/wiki/Multiple_OS_Installation
I get to the point where I am at the console in the newly rebooted/installed 9.04 server, and at grub, and I get this
grub>find /boot/grub/stage1
Error 15: File not found. What is odd is that the file does exist, though it is not executable.
What am I doing wrong here?
Thanks in advance
Steve.
-----------------------------------------------------------------------------
Here is a summary of the whole exercise to date:
1. booted the 9.04 server cd.
2. manually partitioned my new disk as follows (/dev/sda)
partition 1 ext4 mounted as /boot with 100MB space
partition 2 swap with 6GB space
partition 3 ext4 mounted as / with 30gb space
(remainder of space left unpartitioned.)3. Continued with install choosing no extra packages
4, Near the end, I recall the installation asks about booting the system. I think I followed these extracted instructions:
Finish partitioning and write changes to disk -> "Installing the base system" -> ... ->
->"Install the Grub boot loader to the master boot record?": YES -> Continue
In this step, Grub must be installed both on the MBR (master boot record) as well as locally on the partition being installed (in this example /dev/sda6). The local version will be chainloaded by the MBR version. Therefore, install Grub a second time: -> Go Back -> Install the Grub boot loader on a hard disk -> "Install the Grub boot loader to the master boot record?": NO -> Device for boot loader installation: /dev/sda6 -> Continue
I recall that I did the "back" function, and then choose "write to hard drive".
5. Removed cd disk and rebooted.
6. Ran these items on the console:
sudo mkdir /media/GRUBpartition
sudo mount /dev/sda1 -t ext4 /media/GRUBpartition
sudo mkdir /media/GRUBpartition/boot
sudo mkdir /media/GRUBpartition/boot/grub
sudo chmod 777 /media/GRUBpartition/boot/grub
sudo cp -r /boot/grub/* /media/GRUBpartition/boot/grub
sudo nano /media/GRUBpartition/boot/grub/menu.lst7. keyed this into the menu.lst (overwriting an existing file), and saved it.
## ## End Default Options ##
title first O/S (chainloader)
rootnoverify (hd0,2)
chainloader +1
title Second O/S for the future (chainloader)
rootnoverify (hd0,3)
chainloader +18. Returned permissions to root
sudo chmod 744 /media/GRUBpartition/boot/grub
sudo chmod 744 /media/GRUBpartition/boot/grub/*9. At this point, after starting grub, attempt this, as per instruction link:
sudo grub
grub> find /boot/grub/stage1It fails as stated at the top.
It's my understanding that grub2 can not accomodate this, so I used a legacy grub to establish MBR, and a stage 2 file into the /boot partition. I am unclear on this point, but subsequent O/S installs will use the existing MBR, and maybe the existing /boot partition, unchanged?
Using this as a guide: http://ubuntuguide.org/wiki/Multiple_OS_Installation
I get to the point where I am at the console in the newly rebooted/installed 9.04 server, and at grub, and I get this
grub>find /boot/grub/stage1
Error 15: File not found. What is odd is that the file does exist, though it is not executable.
What am I doing wrong here?
Thanks in advance
Steve.
-----------------------------------------------------------------------------
Here is a summary of the whole exercise to date:
1. booted the 9.04 server cd.
2. manually partitioned my new disk as follows (/dev/sda)
partition 1 ext4 mounted as /boot with 100MB space
partition 2 swap with 6GB space
partition 3 ext4 mounted as / with 30gb space
(remainder of space left unpartitioned.)3. Continued with install choosing no extra packages
4, Near the end, I recall the installation asks about booting the system. I think I followed these extracted instructions:
Finish partitioning and write changes to disk -> "Installing the base system" -> ... ->
->"Install the Grub boot loader to the master boot record?": YES -> Continue
In this step, Grub must be installed both on the MBR (master boot record) as well as locally on the partition being installed (in this example /dev/sda6). The local version will be chainloaded by the MBR version. Therefore, install Grub a second time: -> Go Back -> Install the Grub boot loader on a hard disk -> "Install the Grub boot loader to the master boot record?": NO -> Device for boot loader installation: /dev/sda6 -> Continue
I recall that I did the "back" function, and then choose "write to hard drive".
5. Removed cd disk and rebooted.
6. Ran these items on the console:
sudo mkdir /media/GRUBpartition
sudo mount /dev/sda1 -t ext4 /media/GRUBpartition
sudo mkdir /media/GRUBpartition/boot
sudo mkdir /media/GRUBpartition/boot/grub
sudo chmod 777 /media/GRUBpartition/boot/grub
sudo cp -r /boot/grub/* /media/GRUBpartition/boot/grub
sudo nano /media/GRUBpartition/boot/grub/menu.lst7. keyed this into the menu.lst (overwriting an existing file), and saved it.
## ## End Default Options ##
title first O/S (chainloader)
rootnoverify (hd0,2)
chainloader +1
title Second O/S for the future (chainloader)
rootnoverify (hd0,3)
chainloader +18. Returned permissions to root
sudo chmod 744 /media/GRUBpartition/boot/grub
sudo chmod 744 /media/GRUBpartition/boot/grub/*9. At this point, after starting grub, attempt this, as per instruction link:
sudo grub
grub> find /boot/grub/stage1It fails as stated at the top.