…Details…

Icon

Thoughts that's escape, only details.

Stupid Ubuntu – Grub recovery on RAID

I definitely hate Ubuntu, is not linux.

[email protected]:~# cd /mnt
[email protected]:/mnt# mkdir md1
[email protected]:/mnt# mount /dev/md1 /mnt/md1/
[email protected]:~# mount -o bind /sys /mnt/md1/sys
[email protected]:~# mount -o bind /dev /mnt/md1/dev
[email protected]:~# mount -o bind /proc /mnt/md1/proc
[email protected]:~# chroot /mnt/md1 /bin/bash

[email protected]:~# ls -l /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 9 2012-02-05 11:00 455c4bdc-37d5-46ef-bb8b-d5b50c9e4e9a -> ../../md1

[email protected]:/# vim /boot/grub/grub.cfg

[email protected]:/# update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-33-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-33-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-28-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-28-generic-pae
Found memtest86+ image: /boot/memtest86+.bin
done
[email protected]:/# grub-install /dev/sda
Installation finished. No error reported.
[email protected]:/# grub-install --recheck /dev/sda
Installation finished. No error reported.

[email protected]:/# cfdisk /dev/sda

Category: Linux

Tagged:

Leave a Reply

You must be logged in to post a comment.

Archive