LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   GRUB issue (https://www.linuxquestions.org/questions/linux-newbie-8/grub-issue-704409/)

Ubuntu213 02-13-2009 07:21 AM

GRUB issue
 
Hi,
After installing Ubuntu 8.10 in my laptop I-ve partitioned the disk and I-ve installed win xp in another partition. Since this GRUB doesn-t appears when my laptop boots and I can only use xp. How to solve this?

aus9 02-13-2009 07:28 AM

xp overwrote the bootloader links in the mbr.

get a live cd and just re-link the mbr to your /boot partition

eg if /boot is on partition 5

Code:

su
grub
root (hd0,4)
setup (hd0)
quit

while in live mode...mount the harddrive partition and edit grub's /boot/grub/menu.lst to have a chainloader menu

my signature may help?

if you do not know how to use a live cd...too well..after doing just the grub...reboot to hard drive...boot into linux and then edit that file with root powers..the file /boot/grub/menu.lst

Duck2006 02-13-2009 12:40 PM

sudo grub
find /boot/grub/menu.lst (use the output in the next step)
root (hdx,y)
setup (hd0)
quit

To use "su" in ubuntu you must use,

sudo su

wagscat123 02-13-2009 01:15 PM

To make sure XP does not override GRUB again, always install Windows first, then Ubuntu. As a warning, I have not figured out how to change the default OS from Ubuntu to another OS.

Duck2006 02-13-2009 03:15 PM

Quote:

Originally Posted by wagscat123 (Post 3442598)
To make sure XP does not override GRUB again, always install Windows first, then Ubuntu. As a warning, I have not figured out how to change the default OS from Ubuntu to another OS.

Some info on grub.

http://users.bigpond.net.au/hermanzone/p15.htm


All times are GMT -5. The time now is 01:30 AM.