Re: grub-install problem
- From: Lamar <lamar@xxxxxxxxxxxxxx>
- Date: Wed, 24 Sep 2008 16:05:57 -0400
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.
.
- Follow-Ups:
- Re: grub-install problem
- From: Lawrence D'Oliveiro
- Re: grub-install problem
- References:
- grub-install problem
- From: KK
- grub-install problem
- Prev by Date: Re: grub-install problem
- Next by Date: Re: Why is this newsgroup called alt.OS.linux?
- Previous by thread: Re: grub-install problem
- Next by thread: Re: grub-install problem
- Index(es):
Relevant Pages
|