help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help installing grub


From: Yan Seiner
Subject: Re: Help installing grub
Date: Thu, 31 May 2012 14:58:30 -0700 (PDT)
User-agent: SquirrelMail/1.4.15

On Thu, May 31, 2012 2:50 pm, Jordan Uggla wrote:
> On Thu, May 31, 2012 at 2:23 PM, Yan Seiner <address@hidden> wrote:
>>
>> On Thu, May 31, 2012 12:35 pm, Jordan Uggla wrote:
>>> On Wed, May 30, 2012 at 6:16 PM, Yan Seiner <address@hidden> wrote:
>>>>
>>>> The relevant parts of the system setup on the disk that I want to boot
>>>> from:
>>>>
>>>> /etc/fstab:
>>>> /dev/md0    /        ext4    errors=remount-ro 0    0
>>>> /dev/md1    /boot        ext4    defaults    0    1
>>>
>>> If /dev/md1 is already mounted to /boot/ then you can just run
>>> "grub-install /dev/sda && grub-install /dev/sdb".
>>
>> The system boots into /dev/sdb.  The fstab I provided is from /dev/md0
>> which is on /dev/sda; I cannot get the system to boot into it as
>> /dev/sda
>> does not have a valid bootloader....
>>
>> I need to figure out how to install grub on /dev/sda, with instructions
>> to
>> look at /dev/md?, while booted from /dev/sdb.
>>
>> That's the crux.  I've tried chroot; installation fails because it can't
>> read /dev/md0.....
>
> Did you bind mount /dev/ /proc/ and /sys/ within the chroot?

.bash_history:mount /dev/md0 /mnt/new-root
.bash_history:mount --bind /sys /mnt/new-root/sys
.bash_history:mount --bind /proc /mnt/new-root/proc
.bash_history:mount --bind /dev /mnt/new-root/dev

address@hidden:~# chroot /mnt/new-root
address@hidden:/# mount -a # this mounts the /dev/md* stuff
address@hidden:/# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sdb1               964408    136176    779240  15% /
tmpfs                   964408    136176    779240  15% /lib/init/rw
udev                   1678936       260   1678676   1% /dev
tmpfs                  1678936       260   1678676   1% /dev/shm
devpts                 1678936       260   1678676   1% /dev/pts
/dev/md0                964408    136176    779240  15% /mnt/new-root
/dev/md1                241036     20286    208306   9% /boot
/dev/md5             461237464    202808 437605068   1% /home
/dev/md2                964408     17588    897828   2% /tmp
/dev/md3               7692776    559804   6742200   8% /usr
/dev/md4               7692776    279264   7022740   4% /var
address@hidden:/# grub-install /dev/sda
/usr/sbin/grub-probe: error: no such disk.
Auto-detection of a filesystem of /dev/md1 failed.
Please report this together with the output of "/usr/sbin/grub-probe
--device-map=/boot/grub/device.map --target=fs -v /boot/grub" to
<address@hidden>
address@hidden:/# /usr/sbin/grub-probe --device-map=/boot/grub/device.map
--target=fs -v /boot/grub
/usr/sbin/grub-probe: info: the size of hd0 is 976773168.
/usr/sbin/grub-probe: info: the size of hd0 is 976773168.
/usr/sbin/grub-probe: info: the size of hd0 is 976773168.
/usr/sbin/grub-probe: info: the size of hd0 is 976773168.
/usr/sbin/grub-probe: info: the size of hd0 is 976773168.
/usr/sbin/grub-probe: info: the size of hd0 is 976773168.
/usr/sbin/grub-probe: info: the size of hd0 is 976773168.
/usr/sbin/grub-probe: info: the size of hd0 is 976773168.
/usr/sbin/grub-probe: info: the size of hd0 is 976773168.
/usr/sbin/grub-probe: info: the size of hd0 is 976773168.
/usr/sbin/grub-probe: info: the size of hd0 is 976773168.
/usr/sbin/grub-probe: info: the size of hd0 is 976773168.
/usr/sbin/grub-probe: info: the size of hd0 is 976773168.
/usr/sbin/grub-probe: info: the size of hd0 is 976773168.
/usr/sbin/grub-probe: info: the size of hd0 is 976773168.
/usr/sbin/grub-probe: info: the size of hd0 is 976773168.
/usr/sbin/grub-probe: info: changing current directory to /dev.
/usr/sbin/grub-probe: info: opening md1.
/usr/sbin/grub-probe: error: no such disk.
address@hidden:/#

>
> --
> Jordan Uggla (Jordan_U on irc.freenode.net)
>
> !DSPAM:4fc7e7dd299971804284693!
>
>


-- 
Q: How can you tell Spring is here in Oregon?
A: The rain is warmer.

My daughter is racing a triathlon to raise money for her swim team. 
Please donate and keep kids off the sofa!

http://www.facebook.com/RiverRoadKids4Kids




reply via email to

[Prev in Thread] Current Thread [Next in Thread]