jimras Posted August 30, 2005 Report Share Posted August 30, 2005 OK, I should know better but I deleted something in the menu.lst file and nowUbuntu is the ONLY thing that will boot when I start windows. I had wiped the 2nd HD and then partitioned it so I could use some for WinXP backup, and I made a 10 Gig partition in FAT 32 so I could transfer files and then installed Ubuntu (again)into the unallocated space.I was trying to edit the menu.lst file so I could get windows XP to bootby default like I did before because my wife uses the computer, too, and she doesn't get along with Linux.Long story short......I fixed it good!! What I did THEN was repair the MBR but now I don't have the dual boot optionanymore. Is it possible to JUST install the grub loader from the Ubuntu CD without having to do a whole reinstall? If so, how do I go about this.Thanks......jim Quote Link to post Share on other sites
naraku9333 Posted August 31, 2005 Report Share Posted August 31, 2005 (edited) There shouldn't be any reason for you to reinstall Ubuntu, or grub for that matter. Im alittle unclear on if you dont have an entry for windows in menu.lst or if it just isn't the default. Respectively you can add a line similar to title      Microsoft Windows XP Home Editionroot       (hd0,0)savedefaultmakeactivechainloader   +1 to add windows to the list, or change the 'default' line to your windows entry (try 4). Let me know if I misunderstood you. (hd0,0) is the first partition on first hard disk, change this if your win partition isn't there. Edited August 31, 2005 by naraku9333 Quote Link to post Share on other sites
jimras Posted August 31, 2005 Author Report Share Posted August 31, 2005 That sounds doable, however, I redid the MBR and lost the ability to dual boot and now have no way to boot into Linux so I can't edit the menu.lst file.Any other suggestions? Quote Link to post Share on other sites
shanenin Posted August 31, 2005 Report Share Posted August 31, 2005 (edited) You will need to chroot your system. Just boot with any live version of linux. Then open up a terminal and change to root user. then do #mkdir /mnt/ubuntu#mount /dev/hd* /mnt/ubuntu#mount -t proc proc /mnt/ubuntu/proc#chroot /mnt/ubuntu#source /etc/profilethis line mount /dev/hd* /mnt/ubuntu will have to be changed to your main ubuntu / partiition, for example it may be /dev/hd3now that your system is chooted. you can install grub. #grubgrub>root (hd0,0) #this will change you to a grub promptgrub>setup (hd0) # this command installs grub to your mbrgrub>quitthe line root (hd0,0) will have to be changed to reflect the location of your /boot partition. hd0 is your first ide device and hd1 is you second ide device. ,0 represents the first partition of that device. For example if you boot partition is on you third partition of your first ide device it would be called hd0,2now the following code will unmount everything#exit#umount /mnt/ubuntu/proc#umount /mnt/ubuntu#reboothere is a link to the doc for setting up grubhttp://www.gentoo.org/doc/en/handbook/hand...?part=1&chap=10 Edited August 31, 2005 by shanenin Quote Link to post Share on other sites
jimras Posted September 1, 2005 Author Report Share Posted September 1, 2005 Got it fixed now.Thanks, everybodyJim Quote Link to post Share on other sites
shanenin Posted September 2, 2005 Report Share Posted September 2, 2005 Got it fixed now.Thanks, everybodyJim<{POST_SNAPBACK}>did you fix it by chrooting your system, and reinstalling grub that way, or did you do it a different way? just curious :-) Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.