You are not logged in.
Pages: 1
I have installed Centos but for some reason, grub didn't pick up sda1 where centos is currently installed. How can I mount sda1 and then run grub-update?
Offline
Unless I'm misunderstanding your question, you don't need to mount sda1 for update-grub to find it. #! often has issues with setting other OS'es up properly on install, but so far, every time I ran the grub update on first login, it has resolved the issue.
Does running the update not resolve your issue?
Online
Unless I'm misunderstanding your question, you don't need to mount sda1 for update-grub to find it. #! often has issues with setting other OS'es up properly on install, but so far, every time I ran the grub update on first login, it has resolved the issue.
Does running the update not resolve your issue?
Nop. It just shows up the Crunchbang kernels. Maybe I need to mount sda1 or something and then try running grub-update, but not sure how to do this..
Offline
Download a super grub disk (found in my signature) and use that to boot into centOS. Once in Cent try updating grub with
sudo update-grubConky | SMXI HowTo | Super Grub | VastOnes GMB HowTo | VSIDO
Offline
Boot from LiveCD or USB, then in the terminal window enter:
TARGET=/media/sda1
sudo mkdir -p $TARGET
sudo mount /dev/sda1 $TARGET
sudo mount --bind /dev $TARGET/dev
sudo mount --bind /dev/pts $TARGET/dev/pts
sudo mount --bind /proc $TARGET/proc
sudo mount --bind /sys $TARGET/sys
sudo chroot $TARGET /bin/bashThis places you in a root terminal on the system. Do whatever you want to do there, e.g. re-install GRUB
sudo grub-install /dev/sda
sudo update-grubTo exit from chroot: press control-D or enter exit.
http://www.linuxbbq.org/cookbook/faq.html#grub
Last edited by dura (2013-01-16 21:23:16)
Offline
Boot from LiveCD or USB, then in the terminal window enter:
TARGET=/media/sda1 sudo mkdir -p $TARGET sudo mount /dev/sda1 $TARGET sudo mount --bind /dev $TARGET/dev sudo mount --bind /dev/pts $TARGET/dev/pts sudo mount --bind /proc $TARGET/proc sudo mount --bind /sys $TARGET/sys sudo chroot $TARGET /bin/bashThis places you in a root terminal on the system. Do whatever you want to do there, e.g. re-install GRUB
sudo grub-install /dev/sda sudo update-grubTo exit from chroot: press control-D or enter exit.
Do I really need to do the Chroot thing though? I though installing grub from a live Crunchie usb and then:
sudo grub-install /dev/sda
sudo update-grubshould do the trick.
Offline
Pages: 1
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.