You are not logged in.
Pages: 1
after a reinstall of linux I lost my grub loader in the MBR.
This is what I did but it doesn't work:
mount /discs/disc0/part5 /mnt/linux
chroot /mnt/linux
grub-install /discs/disc0/disc
After that I get an error about not having a block device
In my /dev dir i only see: console zero null
Don't know what's wrong, all the other times i re-installed grub/lilo it doesn't happens?
Offline
try
mount /dev/discs/disc0/part /mnt/linux
HTH
Mr Green I like Landuke!
Offline
Well, you just don't have /mnt/linux/dev populated. Instead of chrooting, just call grub-install with --root-directory, i.e. grub-install --root-directory=/mnt/linux /dev/discs/disc0/disc
Cheers,
lucke
Offline
you need to mount /proc and /dev before any bootloader install in a chrooted enviroment will work.
chroot /new/root
mount -t proc proc /proc
mount -t devfs devfs /dev
...
"..." is for your bootloader's install procedure.
I recognize that while theory and practice are, in theory, the same, they are, in practice, different. -Mark Mitchell
Offline
Offline
@kth5: ...those....eye....brows....
furi... kuri...
I recognize that while theory and practice are, in theory, the same, they are, in practice, different. -Mark Mitchell
Offline
you need to mount /proc and /dev before any bootloader install in a chrooted enviroment will work.
chroot /new/root mount -t proc proc /proc mount -t devfs devfs /dev ...
"..." is for your bootloader's install procedure.
thanx with this on I can load my devfs
but after running grub-install /dev/discs/disc0/disc i get an error like: /dev/discs/disc0/disc does not have any corresponding BIOS drive.
[edit]Got it! After running:
grub
root (hd0,4) <my linux partition
setup (hd0)
quit
reboot everything was fine
Offline
Pages: 1