Grub asennus Linuxin softaraidia käytettäessä
Posted on Syyskuu 6, 2007 käyttäjältä taistor
To fix a non-bootable system and ensure GRUB is installed on both drives, manually install GRUB as follows:
- Reboot the server from the original Ubuntu Server CDROM
- From the Ubuntu boot menu, select “Rescue a broken system”
- Continue through the prompts until the screen “Device to use as a root file system” appears
- Press Alt-F2 to switch to a second console screen then press Enter to activate it.
- Mount the md0 RAID device and use chroot and grub to install the bootloader onto both sda and sdb using the following commands
mount /dev/md0 /mnt
chroot /mnt
grub
device (hd0) /dev/sda
root (hd0,0)
setup (hd0)
device (hd1) /dev/sdb
root (hd1,0)
setup (hd1)
quit
(many thanks to BigDiver for the above)
- Reboot the system with command “shutdown -r now”, remove the CDROM and allow the system to boot from the hard drive.
Filed under: linux