Re: grub-install problem



KK wrote:
hi all,

i am using ubuntu 7. i am having a dual boot, windows xp and ubuntu.
i have just re installed windows and thus the boot loader no longer
exists and i am unable to boot to my linux partition.

i tried its live cd and was trying grub-install command, but its not
working.
i am trying to use chroot, its saying access denied or user has not
permission.
since i am running the live cd, the terminal is ubuntu@ubuntu$

please guide me how should i install the grub now


thanks

regards,

Kartikeya

You can try running grub from the ubuntu live cd.


1. boot from the ubuntu live CD.

2. open a terminal window

3. find out what partition ubuntu is on by executing
the fdisk command.

$ sudo /sbin/fdisk -l

4. execute sudo grub

5. At the grub prompt, enter the following:

grub> root (hd0,1)

grub> setup (hd0)

a succeeded message is displayed if all goes well.

grub> quit

note: the above root (0,1) grub command is for ubuntu on
the second partition.

6. Reboot from the hard drive and the grub menu should be displayed.

.



Relevant Pages

  • fixing grub : mbr fix when windows install after linux
    ... "There is not a boot manager screen at all, ... windows but GRUB boot window does not appear. ... "I forgot to install GRUB, I didn't install GRUB in the MBR, I chose ... Fedora but that was not an active primary partition". ...
    (comp.os.linux.misc)
  • Re: Fixing dual boot windows partision
    ... install will overwrite the boot record and wipe out grub. ... Windows, you need to find out what partition your Ubuntu is in and then ...
    (Ubuntu)
  • Re: Boot manager for Windows only
    ... And also is GRUB capable of booting any ... > Windows partition or will it always hand over to the XP boot loader? ...
    (comp.os.linux.setup)
  • Re: expand /boot partition?
    ... install several new Ubuntu versions from live or ... /dev/sda1 - Windows Vista ... I use the Windows Vista bootloader. ... I figure the menu just need to be told where grub is again.. ...
    (Ubuntu)
  • Re: [opensuse] dual boot issues
    ... I am still unable to boot into the Win7 partition from grub. ... I have set up SuSE machines to dual boot into Windows since SuSE ... Since the Windows 7 boot sector was corrupted during the install of grub ...
    (SuSE)