 El Quintron... a faint odor of kerosenePremium join:2008-04-28 Etobicoke, ON kudos:2 Reviews:
·TekSavvy DSL
·voip.ms
·WIND Mobile
·TekSavvy Cable
4 edits | Grub Hand-coded!Woo!
I have finally mastered GRUB-fu!
I have been getting grief dual booting my gf's computer, because I installed Vista x64 after Ubuntu... and it was being a pain so after a bit of research I finally figured out how to do it.
Here is what I did, so if anyone has this configuration issue you can copy my way of doing stuff:
sdb0: Windows Vista (if that's now the way it started this is how it needs to be.
sdb1: Ubuntu
The rest is pilfered from here:
»help.ubuntu.com/community/Recove···gWindows
Boot from Ubuntu CD/USB:
Load Terminal
sudo grub
grub>
find /grub/stage1
Here's where it gets specific for dual booting two disks when you had Ubuntu linux first...
grub> root (hd1,0)
grub> setup (hd1)
grub> quit
So far so good....
Next boot into ubuntu from the hard drive (it won't work yet in grub anyways)
Once you're in ubuntu open up the terminal and enter:
gksu gedit /boot/grub/menu.lst
Or
kdesu kate /boot/grub/menu.lst
At the end of menu.lst where you see all the ####'s
Enter this:
title Windows XP/Vista # You can use any title you wish, this will appear on your grub boot menu
rootnoverify (hd0,0)
makeactive
chainloader +1
And now it's up and running, with a functioning GRUB
:D
edit to add: Fixed the bad code boxes |
|
|
|
 GuspazGuspazPremium,MVM join:2001-11-05 Montreal, QC kudos:16 | The easiest way to deal with the situation is really to just boot into a live cd like Parted Magic, then open a commandprompt and run the grub config wizard. |
|
 El Quintron... a faint odor of kerosenePremium join:2008-04-28 Etobicoke, ON kudos:2 | Would have been nice at the time... but the only way I found to deal with it was the above.
Super Grub Disk was useless for dual disk installs... -- Working to bring you closer to a Bell and Rogers free household. |
|
 El Quintron... a faint odor of kerosenePremium join:2008-04-28 Etobicoke, ON kudos:2 Reviews:
·TekSavvy DSL
·voip.ms
·WIND Mobile
·TekSavvy Cable
2 edits | reply to Guspaz said by Guspaz:The easiest way to deal with the situation is really to just boot into a live cd like Parted Magic, then open a commandprompt and run the grub config wizard. Ubuntu disk will work if you want to hand code it...
I have never heard of a grub config wizard though, does it only come with partition magic or does it come with other *nixes?
edit for clarity |
|
 | reply to El Quintron Hand coded? you mean you configured it... i don't understand where you are getting the "coding". |
|
 GuspazGuspazPremium,MVM join:2001-11-05 Montreal, QC kudos:16 | reply to El Quintron I'm not sure, I just booted Parted Magic (not partition magic, which is a discontinued commercial software, but Parted Magic, which is a Linux live-cd based around gparted), and used the shell to run "grub-config", I think it was. It had a menu for doing installations, either in an automated solution, or in a semi-manual method. I needed to do it on a friend's laptop where we removed Linux (kept the partition but emptied it) and so his grub config was nuked, and he had windows to dualboot.
Essentially I just had to tell it to install grub, and to add a windows partition, and it did everything for me. |
|
 El Quintron... a faint odor of kerosenePremium join:2008-04-28 Etobicoke, ON kudos:2 Reviews:
·TekSavvy DSL
·voip.ms
·WIND Mobile
·TekSavvy Cable
| Thank for going into more detail about it, so I guess I ended up doing it the semi-manual way from the ubuntu live-usb.
So Parted-Magic is an os independent version of gparted?
That actually sounds very cool... thank you letting me know about it. -- Working to bring you closer to a Bell and Rogers free household. |
|
 TSI GabePremium,VIP join:2007-01-03 Chatham, ON kudos:2 | Honestly I much prefer using two hard drives and changing the boot order in the bios in order to avoid any kind of partitioning problems.
What I don't understand though is that you had to install grub manually like you did when most linux distros will take care of that for you now. |
|
 El Quintron... a faint odor of kerosenePremium join:2008-04-28 Etobicoke, ON kudos:2 Reviews:
·TekSavvy DSL
·voip.ms
·WIND Mobile
·TekSavvy Cable
1 edit | It was complicated.
The machine had been Ubuntu-only for about two years, so we installed Vista on another drive. So grub wasn't seeing the newly installed windows, and the only way I could get Windows to boot on sdb was to disable sda in the BIOS.
First I tried to install a windows boot loader, which didn't work, and then I tried hand coding the old grub with:
title Windows XP/Vista # You can use any title you wish, this will appear on your grub boot menu
rootnoverify (hd0,0)
makeactive
chainloader +1
No good, specifically because "root" had become (hd1) so after a bunch of trial and error with EasyBCD and SuperGrubDisk. I decided to hand configure it... and I was posting my finding in case someone was as roundaboutly stuck as me.
edit for PS: I wanted to have both OS loading from Grub... BIOS isn't very clean when you have GRUB in front of Ubuntu to give you that option anyways. |
|
 GuspazGuspazPremium,MVM join:2001-11-05 Montreal, QC kudos:16 | reply to El Quintron parted magic is a Linux-based live CD. You burn it to a disc and then boot the computer off of it, like any other live CD. |
|
 El Quintron... a faint odor of kerosenePremium join:2008-04-28 Etobicoke, ON kudos:2 Reviews:
·TekSavvy DSL
·voip.ms
·WIND Mobile
·TekSavvy Cable
| said by Guspaz:parted magic is a Linux-based live CD. You burn it to a disc and then boot the computer off of it, like any other live CD. That's what I meant, except it works without an OS so no need for ubuntu or Suse or whatever.
Does it have a live USB Option? -- Working to bring you closer to a Bell and Rogers free household. |
|
 GuspazGuspazPremium,MVM join:2001-11-05 Montreal, QC kudos:16 | Yes, and it can also be installed as some sort of strange virtual grub disk image thingie such that you can load it from the PC that you're modifying, although that was really complicated to set up IIRC. |
|
 El Quintron... a faint odor of kerosenePremium join:2008-04-28 Etobicoke, ON kudos:2 Reviews:
·TekSavvy DSL
·voip.ms
·WIND Mobile
·TekSavvy Cable
1 edit | I'm still fairly n00bish when it comes to virtual machines and wine type of stuff...
So I think I'd be fairly happy with my dedicated Live-Distro-USB key.
Do you know if it's available with the stock UNetbootin? -- Working to bring you closer to a Bell and Rogers free household. |
|
 El Quintron... a faint odor of kerosenePremium join:2008-04-28 Etobicoke, ON kudos:2 Reviews:
·TekSavvy DSL
·voip.ms
·WIND Mobile
·TekSavvy Cable
| Turns out it is!
»unetbootin.sourceforge.net/#features
Good stuff thanks again for turning me on to this thing!
Seems way easier than SGD -- Working to bring you closer to a Bell and Rogers free household. |
|