If grub breaks, here is a quick and easy way to re-install it. If you have another computer to work with alongside this is a great benefit. This will put grub on the MBR of the first HD (hd0)
Step 11. Get yourself Parted Magic- Burn it to a cd. (EDIT) (I’m adding a link to download a working version of Parted Magic as the current version uses grub2 not legacy.)
DOWNLOAD THIS VERSION: **** Grub Legacy version of Parted Magic
Step 22. Once in the live desktop start a RoxTerm, this has root power by default. I have included a video of this being done. We need to start grub, find the menu.lst file, setup grub.
You type: grub
Terminal: grub>
You type: find /boot/grub/menu.lst
Terminal: (hd0,1) (N.B. You may get different, replace your numbers in the next step)
You type: root (hd0,1) (Or different depending what previous step gave for you)
Terminal: Filesystem type is ext2fs, partition type 0x83
You type: setup (hd0)
Terminal: Checking if /boot/grub/stage1 exists … yes Computer finally returns this-- Succeeded…Done
**Grub of course is quite complicated and installs can be equally so. Which means this fix might not be suitable for your setup. Learn more about grub here: All About Grub - openSUSE
I am trying to get a better overall understanding of my 11.2 system. Following the preceding and using Parted Magic:
I found this code and have two questions:
grub>
grub> find /boot/grub/menu.lst
(hd2,1)
grub> root (hd2,1)
Filesystem type is ext2fs, partition type 0x83
Using Parted Magic and looking at the flags, I have a boot flag checked on one drive and another has boot, lba.
Can you help me understand the difference? I’d like to keep notes on where grub is for the future. The flags correspond to drives /dev/sdb1 and /dev/sdc/sdc5.
How do I understand the way system monitor sees the drive compared to grub? It looks like hd2,1 is /dev/sdc5. There is no boot flag on my 11.2 drive.
Disk /dev/sda: 300.1 GB, 300069052416 bytes
255 heads, 63 sectors/track, 36481 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0008cb31
Device Boot Start End Blocks Id System
/dev/sda1 1 262 2104483+ 82 Linux swap / Solaris
/dev/sda2 263 2873 20972857+ 83 Linux
/dev/sda3 2874 36481 269956260 83 Linux
Disk /dev/sdb: 1500.3 GB, 1500301910016 bytes
255 heads, 63 sectors/track, 182401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0388a221
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 182401 1465136001 7 HPFS/NTFS
Disk /dev/sdc: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x62229326
Device Boot Start End Blocks Id System
/dev/sdc1 * 1 16322 131106433+ c W95 FAT32 (LBA)
/dev/sdc2 16323 60801 357277567+ 5 Extended
/dev/sdc5 16323 34604 146850133+ 7 HPFS/NTFS
/dev/sdc6 34605 60801 210427371 bc Unknown
I think it boots from sdc1 as I have the bios set to boot from that drive
In Parted Magic I was not able to view the file with sda2 mounted or unmounted. The Suse install is recent and my boot order is:
IDE:Sony CD-RW CRX
IDE: WD5000AAJB
Removable device
was able to get to the file in terminal:
Modified by YaST2. Last modification on Sat Jun 19 21:25:32 EDT 2010
THIS FILE WILL BE PARTIALLY OVERWRITTEN by perl-Bootloader
Configure custom boot parameters for updated kernels in /etc/sysconfig/bootloader
default 0
timeout 8
gfxmenu (hd2,1)/boot/message
###Don’t change this comment - YaST2 identifier: Original name: linux###
title Desktop – openSUSE 11.2 - 2.6.31.12-0.2
root (hd2,1)
kernel /boot/vmlinuz-2.6.31.12-0.2-desktop root=/dev/disk/by-id/ata-WDC_WD3000HLFS-01G6U0_WD-WXD0C7949084-part2 resume=/dev/disk/by-id/ata-WDC_WD3000HLFS-01G6U0_WD-WXD0C7949084-part1 splash=silent quiet showopts vga=0x31a
initrd /boot/initrd-2.6.31.12-0.2-desktop
Actually I am not having any problems I am just trying to follow what is happening. I have a boot flag on hd0 and hd1 and bios set to boot from hd0 and grub is on hd2?
I don’t follow.
If you are merely experimenting with multi-boot, go ahead.
But my advice for what it’s worth. Keep Linux on a separate HD, (which you have.) Install Win OS’s first.
Then set the HD you plan to install SUSE to as 1st in the BIOS and install SUSE, placing grub on that HD, either to the MBR or the extended partition if you have one.
Echoing earlier replies, this is an invaluable thread. Great work!
For my clarity, the original post stated
Step 1
1. Get yourself Parted Magic Downloads - Burn it to a cd. (EDIT) (I'm adding a link to download a working version of Parted Magic as the current version is not) http://dl.dropbox.com/u/10573557/pmagic-4.5.iso
Is the download site version (5.6, as of 10.24.2010) a “non-working” version ? I ask prior to using Parted Magic to avoid any potential problem(s).