SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2013-01-16 17:03:44

tux_drummer
Member
Registered: 2012-11-23
Posts: 35

Dual Boot Centos/Crunchbang

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

Help fund CrunchBang, donate to the project!

#2 2013-01-16 17:49:53

schwim
#! Die Hard
From: Interweb's #1 Devotee
Registered: 2012-10-11
Posts: 805
Website

Re: Dual Boot Centos/Crunchbang

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

#3 2013-01-16 20:22:04

tux_drummer
Member
Registered: 2012-11-23
Posts: 35

Re: Dual Boot Centos/Crunchbang

schwim wrote:

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

#4 2013-01-16 21:04:17

lwfitz
#! Die Hard
From: Monrovia, CA
Registered: 2012-01-19
Posts: 886
Website

Re: Dual Boot Centos/Crunchbang

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-grub

Offline

#5 2013-01-16 21:21:47

dura
Bloated Gimp
From: interzone
Registered: 2012-09-15
Posts: 2,107

Re: Dual Boot Centos/Crunchbang

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/bash

This 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-grub

To 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

#6 2013-01-16 21:31:45

tux_drummer
Member
Registered: 2012-11-23
Posts: 35

Re: Dual Boot Centos/Crunchbang

dura wrote:

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/bash

This 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-grub

To exit from chroot: press control-D or enter exit.

http://www.linuxbbq.org/cookbook/faq.html#grub

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-grub

should do the trick.

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo