problem installing grub with /boot in a separate partition
Firstly I installed ubuntu 8.10 on a machine with windows XP installed, after the installation my disk was like this:
- sda1 with windows
- sda2 /boot
- sda3 /
- sda4 logical
- sda5 empty partition
- sda6 /home
Well, after a while I decided to move windows in VirtualBox, so I changed the disk layout like this:
- sda1 /boot
- sda2 /
- sda3 empty partition to try new ubuntu releases
- sda4 /home
Ok, until now no probs, I moved all data and redefined the partitions with GParted, I defined the boot flag in /sda1 and with gparted live cd I changed the menu.lst in /boot/grub to update new UUIDs and root(hdx,y).
At this point I tried to restore grub with SuperGrubDisk, but I had no lucky. Super GrubDisk didn't do the magic.
So I tried with the rescue option in Ubuntu 8.04 Alternate cd, but neither this was able to restore grub: always said FATAL ERROR.
Finally, I installed Hardy in the empty partition, and defined /boot separated, not formatted the one present on the disk. The installer did everything well, he recognized the boot partition and installed the 2 systems in teh same menu.lst.
Fantastic, I could boot again my Intrepid system... NO, I COULDN' T.
Because the new menu.lst was made with boot root /dev/sda2 (hd0,1) for Intrepid, and /dev/sda1 (hd0,0) for the new installation. Obviously the /boot was empty in Intrepid, it was only a mount point for /dev/sda1.
Ok, the subsequent try was to use grub command line, I gave this commands:
find /boot/grub/stage1
here grub said to me that it could find stage1 in hd0,0
root (hd0,0)
setup (hd0)
here grub gave an output confirming all directories and devices where to find stages and so on
quit
reboot
Fatal: Error 15
..... Damn......
I can assure that uuids and root definitions was correct, even I tried to change uuids for /dev/sda1, but always Error 15. I also tried with setup (hd0,0).
No way, the only solution working has been to restore in the /boot directory inside Intrepid, all the files that was in the /boot partition prior the changes in partioned. In the menu.lst I defined root (hd0,1), while the hardy system boot from /dev/sda1 partition. Attached my actual menu.lst.
Now my question is: did I made some errors or what? I really want to understand this because probably I'll have to do again (on others machines) the same procedure and I wish to do it like a charm, as it should be.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu grub Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Ufuk
- Solved:
- Last query:
- Last reply:
This question was reopened
- by smurf