[opensuse] Boot/Grub/RAID Notes - Squirrel away for next time...
Guys, As long as I was wading through this again, I thought I would post a cheat-sheet you could squirrel away for the next time you get to have the fun :p ** NOTE: if your disk configuration has changed - FIX YOUR /boot/grub/device.map FILE before proceeding !!! +++++++++++++++ Manual Recovery +++++++++++++++ Manual recovery of GRUB libs The *stage* files are expected to be in /boot/grub, which may not be the case if the bootloader was not installed during system installation or if the partition/filesystem was damages, accidentally deleted, etc. Manually copy the grub libs like so: [Arch Linux] cp -a /usr/lib/grub/i386-pc/* /boot/grub [SuSE] cp -a /usr/lib/grub/* /boot/grub +++++++++++++++ Normal Install +++++++++++++++ (1) type 'grub' (no quotes) If you are not sure which partition actually holds this directory, use the command 'find' like this: grub> find /boot/grub/stage1 ( or 'find stage1' ) This will search for the file name '/boot/grub/stage1' and show the devices which contain the file. Once you've set the root device correctly, run the command 'setup' to complete the process. To set grub's root: grub> root (hd0,0) where hd0 represents the drive (hd0 - first drive, hd1 - second drive, etc..) The next number is grub's root partition (not the same as your linux partition). This is the partition you BOOT from. So, if you have a separate /boot partition, this is the '0' based partition number for your /boot partition. If you have NO separate /boot partition, then this will just be your / partition number. If you have a RAID setup, then define the array that will server as 'hd0', 'hd1' in your device.map file. Example: 00:21 archangel:~> cat /boot/grub/device.map (hd0) /dev/mapper/nvidia_fdaacfde (hd1) /dev/mapper/nvidia_baaccaja (fd0) /dev/fd0 2) Then, run the command setup grub> setup (hd0) Checking if "/boot/grub/stage1" exists....... no Checking if "/grub/stage1" exists....... yes Checking if "/grub/stage2" exists....... yes Checking if "/grub/e2fs_stage1_5" exists....... yes Running "embed /grub/e2fs_stage1_5 (hd0)"....... 15 sectors are embedded succeded Running "install /grub/stage1 (hd0) (hd0) 1+15 p (hd0,2)/grub/stage2 /grub/grub.conf....... succeded Done This command will install GRUB boot loader on the Master Boot Record (MBR) of the first drive. 3) Type quit grub> quit GRUB is now in the MBR. 4) Finally, edit your /boot/grub/menu.lst file and you are done. -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (1)
-
David C. Rankin