View Full Version : Ubuntu grub
vignesh
24-09-2005, 06:37 PM
How to reinstall grub bootloader for Ubuntu 5.04.I tried chroot /mnt/sysimage it gives an error.
praka123
25-09-2005, 01:22 AM
is that something todo with ur hdd(bad sectors)?
otherwise chroot /mnt/sysimage might had worked.
another option is setup grub manually.read 'man grub' for details
#grub
grub>root (hd0,0)--->(if hda1 is your root)
If you are not sure which partition actually holds this directory,
use the command `find' (*note find::), like this:
grub> find /boot/grub/stage1
Once you've set the root device correctly, run the command `setup'
grub> setup (hd0).this may solve ur problem.u can either install GRUB in
MBR or First sector of /boot partition.B'O'L
ujjwal
25-09-2005, 08:01 AM
The ubuntu rescue disk perhaps does not mount the linux partitions on /mnt/sysimage ... you could type "mount" to see if your linux partition has been mounted somewhere, else you will have to mount it manually.
mkdir /mnt/lin
mount /dev/hdxy /mnt/lin
chroot /mnt/lin
Replace hdxy with your linux / partition. You can type "fdisk -l" to see which partition corresponds to your linux installation. As you have many distro's installed, you will have to determine the one for ubuntu.
praka123
28-09-2005, 06:21 PM
if u got any redhat/Fedora 1st cd/dvd u can use it to mount any linux partition to /mnt/sysimage.i think most gnu/linux newbies may have FC/RH cds. :)
vignesh
29-09-2005, 07:10 AM
ok thanks.
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.