|
![]() |
Overclock.net - Overclocking.net > Software, Programming and Coding > Operating Systems > Linux, Unix | |
Restoring Grub and Adding Windows (or any other OS) to Grub Menu
|
||
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) | |||||||||||||
|
Intel Overclocker
![]() |
First off, if you have a clean hard drive i recomend installing windows first then ubuntu. 99% of the time that will save you from having to do this.
__________________Now if it is reversed and you installed grub first and now just windows loads there is a solution. First we need to get grub back up and running as the bootloader to do this you need to open the terminal type 'sudo grub' (without the ') enter it should search bios or something of the sort so give it some time. eventually you should get a prompt grub> now type 'root (hd0,0)' hd0 being the disk your linux is on and 0 being the partition it is installed on next is setting up grub on hd0 'setup (hd0)' 'quit' now that grub is restored we need to add windows to the boot menu (if it is not already there) back in terminal 'sudo gedit /boot/grub/menu.lst' scroll down to the bottom of the text file where you see the menu listing for ubuntu or your linux distro here we add the lines title Windows root (hd0,1) makeactive chainloader +1 again hd0 is the hard drive windows is on and 0 is the partition DON'T FORGET TO SAVE THE FILE!! Hope This Helps!
Last edited by JerseyDubbin : 12-28-07 at 01:59 PM |
|||||||||||||
|
|
|
|
|
#2 (permalink) | |||||||||||||
|
4.0ghz
![]() |
Generally I run the Linux installation as far as setting up all the partitions. I'll set up the partitions for Windows and Linux and write out the partition table. Then, reboot and install Windows into the already-created partition. After that, go back and finish installing Linux. Make sure you set GRUB to /dev/sda1 instead of /dev/sda in the installation. Your new dual-boot setup will then Just Work.
__________________
|
|||||||||||||
|
|
|
|
#3 (permalink) | ||||||||||||
|
Overclocker in Training
![]() |
Quote:
![]() [Edit] the third way is to boot a live CD and perform the actions from there... :facepalms: If there is a way, it might help someone who only has one physical drive. Thanks in advance. Signed, Can't see linux thru the window
__________________
I got all my rep the old fashioned way. If you rep'd me and haven't received payment, rest assured, "the check is in the mail". ![]() http://valid.canardpc.com/show_oc.php?id=485448 "What are the facts? Again and again and again - what are the facts? Shun wishful thinking, ignore divine revelation, forget what 'the stars foretell,' avoid opinion, care not what the neighbors think, never mind the unguessable 'verdict of history' - what are the facts, and to how many decimal places? You pilot always into an unknown future; facts are your only clue. Get the facts!" - Lazarus Long
Last edited by Aardobard : 12-14-08 at 12:10 PM Reason: Found solution and added it |
||||||||||||
|
|
|
|
|
#4 (permalink) | ||||||||||||||
|
Intel Overclocker
![]() |
Quote:
|
||||||||||||||
|
|
|
|
|
#5 (permalink) | |||||||||||||
|
4.0 GHz
|
I'm having trouble figuring out which partition windows is on...I have two partitions, one is 37.5 GB which is my linux partition, and the other is 21GB which is my windows XP partition, but I'm not sure how to differentiate the two as in hd(0,0) terms.
Maybe if I upload a screen shot someone out there could drop a hint? While working under a livecd (Ubuntu 8.10), everywhere you look that it's shown, the 37.5 GB partition is listed first. Trying to use hd(0,1) now, but I figured I would at least ask. Thanks.
__________________
Quote:
4.5 Ghz Prescott on air cooling.^
|
|||||||||||||
|
|
|
|
|
#6 (permalink) | |||||||||||||
|
Linux Lobbyist
![]() |
also while on a live cd, go to the terminal and type df -h that will show you your drives(and partitions), the size and where they're mounted.
that then tells you what partition to look at, if Linux is using grub to boot then your linux partition (lets use partition 6, so df -h will show sda7) will be hd(0,6) (if your drive is the first drive)
__________________
|
|||||||||||||
|
|
|
|
|
#7 (permalink) | |||||||||||||
|
4.0 GHz
|
Okay I will be trying this when I get back from work today, thank you.
__________________
Quote:
4.5 Ghz Prescott on air cooling.^
|
|||||||||||||
|
|
|
|
|
#8 (permalink) | |||||||||||||
|
Intel Overclocker
![]() |
did you get it working? sorry i haven't been around
|
|||||||||||||
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|