On Thu, May 31, 2012 2:50 pm, Jordan Uggla wrote:
> On Thu, May 31, 2012 at 2:23 PM, Yan Seiner <[email protected]> wrote:
>>
>> On Thu, May 31, 2012 12:35 pm, Jordan Uggla wrote:
>>> On Wed, May 30, 2012 at 6:16 PM, Yan Seiner <[email protected]> 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

root@APOLODORUS:~# chroot /mnt/new-root
root@APOLODORUS:/# mount -a # this mounts the /dev/md* stuff
root@APOLODORUS:/# 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
root@APOLODORUS:/# 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
<[email protected]>
root@APOLODORUS:/# /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.
root@APOLODORUS:/#

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


_______________________________________________
Help-grub mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-grub

Reply via email to