PDA

View Full Version : [ubuntu] 10.10 Install on GPT RAID0, need GRUB2 help!



HiredGun79
February 12th, 2011, 05:02 AM
Hey everyone,

I've been dancing around this for a few hours now. I have two 2tb drives that are raided - the machine is not booting. I can put in an install CD and do a rescue. I can boot into /dev/md0 - my main system partition... I think the MBR got screwed up somehow - try grub-install /dev/sda and I get the message about not having a BIOS BOOT PARTITION which is required for GPT drives (large drives)

I've done hours and hours of configuration of this and would really hate to lose that by reformatting just so I could stick in a BIOS boot partition that it wants...

Anyone have any ideas? I feel like I'm 1 step away from fixing this... maybe something like disable the raid0 and installing grub2 elsewhere? I dunno, this used to work and I think another admin screwed around with things... I rebooted and was greeted with this..

Thanks in advance,
hiredgun

oldfred
February 12th, 2011, 07:45 PM
I do not have RAID, but did create one small drive with gpt just to try it.

You can add a BIOS boot partition anywhere on drive.

This link says they just installed grub2 to the drive and it found the BIOS boot partition.
http://www.mail-archive.com/grub-devel@gnu.org/msg12109.html

http://grub.enbug.org/BIOS_Boot_Partition
http://kubuntuforums.net/forums/index.php?topic=3106368.0
In a GPT partition map, the 31 kiB area after Master Boot Record where GRUB is usually embedded to, does not exist. When GRUB can't be embedded, its only option is to use blocklists, which are unreliable and discouraged.

"unknown" filesystem! may be shown
However, in the GPT setup, there is no space following the 512-byte MBR for embedding the "second stage" core.img. Thus, you must make a separate "BIOS boot partition" to hold core.img. Make it 128 kiB as recommended in the following link. Actually, using ext2 for example, and GParted Live CD, the minimum partition size is 8 MB, or 32 MB for FAT32. You can set bios_grub flag in gparted or with command line:
sudo parted /dev/sda set <partition_number> bios_grub on

HiredGun79
February 14th, 2011, 02:07 AM
Ok, I used a gparted live cd to resize my partitions to make room for a bios boot partition. I was successfully able to install grub on both sda and sdb - however now I'm getting dumped to the grub rescue console...

I do an "ls" and I see that my root partition, md0, is not in the list...

I'm puzzled by mdadm is creating md1, which I see, but not md0... that's why I'm getting "no such disk" from grub...

When I boot the install cd and go into rescue mode, md0 is there and healthy, I can execute a prompt on it...

Any ideas?

Thanks again!

psusi
February 14th, 2011, 03:26 AM
So mdadm creates md0 in Linux, but grub sees it as md1? What does sudo mdadm -D /dev/md? say?

HiredGun79
February 14th, 2011, 04:07 AM
md0 is root, md1 is swap - when I boot using the installer cd, it finds both md0 and md1, and I can launch a terminal in md0..

I'm not very familiar with the grub rescue prompt, but it seems very limited.. I'm not sure if the md1 that's showing up is the swap, or if it's renaming the root (md0) as md1..

I'm not physically close to the machine now so I'll be able to try stuff out in the AM - just want to plan out the attack tonight!

Thanks!

psusi
February 14th, 2011, 05:38 PM
At the grub rescue prompt, see if ls shows both md0 and md1, and then try looking inside them with:



ls (md0)/

HiredGun79
February 14th, 2011, 06:02 PM
did ls (md1) / and got error: unknown filesystem - so md1 is still the swap... What would cause the install cd to build md0 and not grub? I'm fairly confused now!

Thanks!

HiredGun79
February 14th, 2011, 09:03 PM
I saw some suggestions to check the metadata version in mdadm and they look ok, I think - also, the fact that md0 and md1 are the same type of array (raid1) it's odd that md1 shows up, but md0 does not...

Thanks, appreciate the help.

HiredGun79
February 15th, 2011, 02:04 AM
So, another thing that's strange is that the partitions that show up in grub rescue when I do an ls are only from sda... none from sdb show up... but md1 shows up, so the system is aware of sdb since it is making one of the arrays..

I manually set the root partition and picked the kernel out and launched it from booting from (hd0,gpt1) which is my root partition (should be part of md0)

Linux tried to boot and it ended up kernel panicking when it looked like mdadm screwed up when trying to assemble the arrays...

Any help would be awesome...

psusi
February 15th, 2011, 02:08 AM
Again, what does sudo mdadm -D /dev/md? say?

HiredGun79
February 15th, 2011, 07:05 AM
I'm again not next to the server - but running

mdadm --detail /dev/md0

and

mdadm --detail /dev/md1

reports healthy raid1 arrays using sda and sdb when I run that from the console I get from the ubuntu install cd rescue mode...

The arrays are healthy and functioning from there - but from the grub rescue prompt, it doesn't recognize md0 - I'm guessing that mdadm can't create the md0 root array before grub takes over, but that's just a guess...

oldfred
February 15th, 2011, 04:12 PM
The boot script may tell us something:

Boot Info Script courtesy of forum members meierfra & Gert Hulselmans
Page with instructions and download:
http://bootinfoscript.sourceforge.net/
Paste results.txt, then highlight entire file and click on # in edit panel(code tags) to make it easier to read.
Or You can generate the tags first by pressing the # icon in the post's menu and then paste the contents between the generated [ code] paste here [ /code] tags.

They are working on a new one, since grub2 has changed a lot:
If you want to test the new version also, but run old one so we can compare.
Get last development version of Boot Info Script:
wget -O boot_info_script.sh 'http://bootinfoscript.git.sourceforge.net/git/gitweb.cgi?p=bootinfoscript/bootinfoscript;a=blob_plain;f=boot_info_script.sh; hb=HEAD'

If you look at script it has this in the notes:

# - Is able to search Linux Software RAID partitions (MD RAIDs) if the #
# "mdadm" package is installed. #
# - If dmraid is installed, search all RAID drives, detected by dmraid. #

psusi
February 15th, 2011, 05:11 PM
When I say "what does mdadm -D say?" I don't mean does it look ok to you, I mean paste the results.

HiredGun79
February 15th, 2011, 07:05 PM
Sorry!

mdadm -D output is below
---------------------


/dev/md0:
Version : 00.90
Creation Time : Thu Dec 16 16:58:19 2010
Raid Level : raid1
Array Size : 1921679296 (1832.66 GiB 1967.80 GB)
Used Dev Size : 1921679296 (1832.66 GiB 1967.80 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 0
Persistence : Superblock is persistent

Update Time : Tue Feb 15 10:58:48 2011
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0

UUID : 3a115645:f33f1c7b:c310e9df:19028d76
Events : 0.98

Number Major Minor RaidDevice State
0 8 1 0 active sync /dev/sda1
1 8 17 1 active sync /dev/sdb1

/dev/md1:
Version : 00.90
Creation Time : Thu Dec 16 16:59:10 2010
Raid Level : raid1
Array Size : 31250368 (29.80 GiB 32.00 GB)
Used Dev Size : 31250368 (29.80 GiB 32.00 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 1
Persistence : Superblock is persistent

Update Time : Tue Feb 15 10:58:47 2011
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0

UUID : 3c4c17ac:0ef658b5:e7b5addf:3fde69fd
Events : 0.26

Number Major Minor RaidDevice State
0 8 2 0 active sync /dev/sda2
1 8 18 1 active sync /dev/sdb2

HiredGun79
February 15th, 2011, 07:18 PM
Results of stable boot info script

also, just wanted to say that I manually edited grub.cfg to set root drive to (hd0,gpt1) rather than what grub automatically wants, which is (md0)... just to see if it'd boot... but (md0) is what root *should* be I believe...

I'll leave another thread with the experimental boot info script results... stand by


Boot Info Script 0.55 dated February 15th, 2010

============================= Boot Info Summary: ==============================

=> Grub 2 is installed in the MBR of /dev/sda and looks at sector 1167360 of
the same hard drive for core.img, but core.img can not be found at this
location.
=> Grub 2 is installed in the MBR of /dev/sdb and looks at sector 1167360 of
the same hard drive for core.img, but core.img can not be found at this
location.

sda1: __________________________________________________ _______________________

File system: linux_raid_member
Boot sector type: -
Boot sector info:

sda2: __________________________________________________ _______________________

File system: linux_raid_member
Boot sector type: -
Boot sector info:

sda3: __________________________________________________ _______________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs: /grub/grub.cfg /grub/core.img

sda4: __________________________________________________ _______________________

File system: Bios Boot Partition
Boot sector type: Unknown
Boot sector info:

sdb1: __________________________________________________ _______________________

File system: linux_raid_member
Boot sector type: -
Boot sector info:

sdb2: __________________________________________________ _______________________

File system: linux_raid_member
Boot sector type: -
Boot sector info:

sdb3: __________________________________________________ _______________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs: /grub/grub.cfg /grub/core.img

sdb4: __________________________________________________ _______________________

File system: Bios Boot Partition
Boot sector type: Unknown
Boot sector info:

md0: __________________________________________________ _______________________

File system: xfs
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.10
Boot files/dirs: /etc/fstab

md1: __________________________________________________ _______________________

File system: swap
Boot sector type: -
Boot sector info:

=========================== Drive/Partition Info: =============================

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start End Size Id System

/dev/sda1 1 3,907,029,167 3,907,029,167 ee GPT


GUID Partition Table detected.

Partition Start End Size System
/dev/sda1 63,670,272 3,907,028,991 3,843,358,720 -
/dev/sda2 1,169,408 63,670,271 62,500,864 -
/dev/sda3 2,048 1,167,359 1,165,312 Linux or Data
/dev/sda4 1,167,360 1,169,407 2,048 Bios Boot Partition

Drive: sdb ___________________ __________________________________________________ ___

Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start End Size Id System

/dev/sdb1 1 3,907,029,167 3,907,029,167 ee GPT


GUID Partition Table detected.

Partition Start End Size System
/dev/sdb1 63,670,272 3,907,028,991 3,843,358,720 -
/dev/sdb2 1,169,408 63,670,271 62,500,864 -
/dev/sdb3 2,048 1,167,359 1,165,312 Linux or Data
/dev/sdb4 1,167,360 1,169,407 2,048 Bios Boot Partition

blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/cciss/c0d0 979bb07e-d710-4715-a12a-b4ef7aa5fd1e xfs storage
/dev/md0 1eb79293-54cf-4478-abf4-656999904410 xfs root
/dev/md1 ada14a62-08bd-4498-9e10-3cc2556fbd2f swap
/dev/sda1 3a115645-f33f-1c7b-c310-e9df19028d76 linux_raid_member
/dev/sda2 3c4c17ac-0ef6-58b5-e7b5-addf3fde69fd linux_raid_member
/dev/sda3 79e9e771-2a98-4f99-a463-1ce16c1c5f71 ext4 boot
/dev/sda: PTTYPE="gpt"
/dev/sdb1 3a115645-f33f-1c7b-c310-e9df19028d76 linux_raid_member
/dev/sdb2 3c4c17ac-0ef6-58b5-e7b5-addf3fde69fd linux_raid_member
/dev/sdb3 79e9e771-2a98-4f99-a463-1ce16c1c5f71 ext4 boot
/dev/sdb: PTTYPE="gpt"

============================ "mount | grep ^/dev output: ===========================

Device Mount_Point Type Options

/dev/md0 / xfs (rw)
/dev/cciss/c0d0 /mnt/storage xfs (rw,noatime,nodiratime,logbufs=8)
/dev/sdc3 /media/usbdrive hfsplus (rw)
/dev/sda3 /boot ext4 (rw)


============================= sda3/grub/grub.cfg: =============================

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
insmod vbe
insmod vga
}

insmod raid
insmod mdraid
insmod part_gpt
insmod part_gpt
insmod xfs
set root='(hd0,gpt1)'
search --no-floppy --fs-uuid --set 1eb79293-54cf-4478-abf4-656999904410
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod raid
insmod mdraid
insmod part_gpt
insmod part_gpt
insmod xfs
set root='(hd0,gpt1)'
search --no-floppy --fs-uuid --set 1eb79293-54cf-4478-abf4-656999904410
set locale_dir=($root)/boot/grub/locale
set lang=C.UTF-8
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=2
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.35-22-server' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod raid
insmod mdraid
insmod part_gpt
insmod part_gpt
insmod xfs
set root='(hd0,gpt1)'
search --no-floppy --fs-uuid --set 1eb79293-54cf-4478-abf4-656999904410
linux /boot/vmlinuz-2.6.35-22-server root=UUID=1eb79293-54cf-4478-abf4-656999904410 ro quiet
initrd /boot/initrd.img-2.6.35-22-server
}
menuentry 'Ubuntu, with Linux 2.6.35-22-server (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod raid
insmod mdraid
insmod part_gpt
insmod part_gpt
insmod xfs
set root='(hd0,gpt1)'
search --no-floppy --fs-uuid --set 1eb79293-54cf-4478-abf4-656999904410
echo 'Loading Linux 2.6.35-22-server ...'
linux /boot/vmlinuz-2.6.35-22-server root=UUID=1eb79293-54cf-4478-abf4-656999904410 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-22-server
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

=================== sda3: Location of files loaded by Grub: ===================


1559.8GB: grub/core.img
588.3GB: grub/grub.cfg
1475.9GB: initrd.img-2.6.35-22-server
526.4GB: vmlinuz-2.6.35-22-server

============================= sdb3/grub/grub.cfg: =============================

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
insmod vbe
insmod vga
}

insmod raid
insmod mdraid
insmod part_gpt
insmod part_gpt
insmod xfs
set root='(md0)'
search --no-floppy --fs-uuid --set 1eb79293-54cf-4478-abf4-656999904410
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_gpt
insmod ext2
set root='(hd0,gpt3)'
search --no-floppy --fs-uuid --set 79e9e771-2a98-4f99-a463-1ce16c1c5f71
set locale_dir=($root)/grub/locale
set lang=C.UTF-8
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=2
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.35-22-server' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_gpt
insmod ext2
set root='(hd0,gpt3)'
search --no-floppy --fs-uuid --set 79e9e771-2a98-4f99-a463-1ce16c1c5f71
linux /vmlinuz-2.6.35-22-server root=UUID=1eb79293-54cf-4478-abf4-656999904410 ro quiet
initrd /initrd.img-2.6.35-22-server
}
menuentry 'Ubuntu, with Linux 2.6.35-22-server (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_gpt
insmod ext2
set root='(hd0,gpt3)'
search --no-floppy --fs-uuid --set 79e9e771-2a98-4f99-a463-1ce16c1c5f71
echo 'Loading Linux 2.6.35-22-server ...'
linux /vmlinuz-2.6.35-22-server root=UUID=1eb79293-54cf-4478-abf4-656999904410 ro single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-2.6.35-22-server
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_gpt
insmod ext2
set root='(hd0,gpt3)'
search --no-floppy --fs-uuid --set 79e9e771-2a98-4f99-a463-1ce16c1c5f71
linux16 /memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_gpt
insmod ext2
set root='(hd0,gpt3)'
search --no-floppy --fs-uuid --set 79e9e771-2a98-4f99-a463-1ce16c1c5f71
linux16 /memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

=================== sdb3: Location of files loaded by Grub: ===================


.1GB: grub/core.img
.1GB: grub/grub.cfg
.1GB: initrd.img-2.6.35-22-server
.1GB: vmlinuz-2.6.35-22-server

================================ md0/etc/fstab: ================================

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/md0 during installation
UUID=1eb79293-54cf-4478-abf4-656999904410 / xfs defaults 0 1
# /boot was on /dev/sda3 during installation DON'T MOUNT BOOT BY DEFAULT
UUID=79e9e771-2a98-4f99-a463-1ce16c1c5f71 /boot ext4 relatime 0 2
# swap was on /dev/md1 during installation
UUID=ada14a62-08bd-4498-9e10-3cc2556fbd2f none swap sw 0 0

# /mnt/storage for raid partition
UUID=979bb07e-d710-4715-a12a-b4ef7aa5fd1e /mnt/storage xfs noatime,nodiratime,logbufs=8 0 2

==================== md0: Location of files loaded by Grub: ====================


1475.9GB: initrd.img
526.4GB: vmlinuz
=========================== Unknown MBRs/Boot Sectors/etc =======================

Unknown GPT Partiton Type
0f889da1fc053b4da006743f0f84911e
Unknown GPT Partiton Type
0f889da1fc053b4da006743f0f84911e
Unknown GPT Partiton Type
0f889da1fc053b4da006743f0f84911e
Unknown GPT Partiton Type
0f889da1fc053b4da006743f0f84911e
Unknown BootLoader on sda4

00000000 52 e8 28 01 74 08 56 be 33 81 e8 4c 01 5e bf f4 |R.(.t.V.3..L.^..|
00000010 81 66 8b 2d 83 7d 08 00 0f 84 e9 00 80 7c ff 00 |.f.-.}.......|..|
00000020 74 46 66 8b 1d 66 8b 4d 04 66 31 c0 b0 7f 39 45 |tFf..f.M.f1...9E|
00000030 08 7f 03 8b 45 08 29 45 08 66 01 05 66 83 55 04 |....E.)E.f..f.U.|
00000040 00 c7 04 10 00 89 44 02 66 89 5c 08 66 89 4c 0c |......D.f.\.f.L.|
00000050 c7 44 06 00 70 50 c7 44 04 00 00 b4 42 cd 13 0f |.D..pP.D....B...|
00000060 82 bb 00 bb 00 70 eb 68 66 8b 45 04 66 09 c0 0f |.....p.hf.E.f...|
00000070 85 a3 00 66 8b 05 66 31 d2 66 f7 34 88 54 0a 66 |...f..f1.f.4.T.f|
00000080 31 d2 66 f7 74 04 88 54 0b 89 44 0c 3b 44 08 0f |1.f.t..T..D.;D..|
00000090 8d 83 00 8b 04 2a 44 0a 39 45 08 7f 03 8b 45 08 |.....*D.9E....E.|
000000a0 29 45 08 66 01 05 66 83 55 04 00 8a 54 0d c0 e2 |)E.f..f.U...T...|
000000b0 06 8a 4c 0a fe c1 08 d1 8a 6c 0c 5a 52 8a 74 0b |..L......l.ZR.t.|
000000c0 50 bb 00 70 8e c3 31 db b4 02 cd 13 72 50 8c c3 |P..p..1.....rP..|
000000d0 8e 45 0a 58 c1 e0 05 01 45 0a 60 1e c1 e0 03 89 |.E.X....E.`.....|
000000e0 c1 31 ff 31 f6 8e db fc f3 a5 1f e8 3e 00 74 06 |.1.1........>.t.|
000000f0 be 3b 81 e8 63 00 61 83 7d 08 00 0f 85 1d ff 83 |.;..c.a.}.......|
00000100 ef 0c e9 0f ff e8 24 00 74 06 be 3d 81 e8 49 00 |......$.t..=..I.|
00000110 5a ea 00 82 00 00 be 40 81 e8 3d 00 eb 06 be 45 |Z......@..=....E|
00000120 81 e8 35 00 be 4a 81 e8 2f 00 eb fe bb 17 04 80 |..5..J../.......|
00000130 27 03 c3 6c 6f 61 64 69 6e 67 00 2e 00 0d 0a 00 |'..loading......|
00000140 47 65 6f 6d 00 52 65 61 64 00 20 45 72 72 6f 72 |Geom.Read. Error|
00000150 00 bb 01 00 b4 0e cd 10 46 8a 04 3c 00 75 f2 c3 |........F..<.u..|
00000160 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001f0 00 00 00 00 01 d0 11 00 00 00 00 00 35 00 20 08 |............5. .|
00000200

Unknown BootLoader on sdb4

00000000 52 e8 28 01 74 08 56 be 33 81 e8 4c 01 5e bf f4 |R.(.t.V.3..L.^..|
00000010 81 66 8b 2d 83 7d 08 00 0f 84 e9 00 80 7c ff 00 |.f.-.}.......|..|
00000020 74 46 66 8b 1d 66 8b 4d 04 66 31 c0 b0 7f 39 45 |tFf..f.M.f1...9E|
00000030 08 7f 03 8b 45 08 29 45 08 66 01 05 66 83 55 04 |....E.)E.f..f.U.|
00000040 00 c7 04 10 00 89 44 02 66 89 5c 08 66 89 4c 0c |......D.f.\.f.L.|
00000050 c7 44 06 00 70 50 c7 44 04 00 00 b4 42 cd 13 0f |.D..pP.D....B...|
00000060 82 bb 00 bb 00 70 eb 68 66 8b 45 04 66 09 c0 0f |.....p.hf.E.f...|
00000070 85 a3 00 66 8b 05 66 31 d2 66 f7 34 88 54 0a 66 |...f..f1.f.4.T.f|
00000080 31 d2 66 f7 74 04 88 54 0b 89 44 0c 3b 44 08 0f |1.f.t..T..D.;D..|
00000090 8d 83 00 8b 04 2a 44 0a 39 45 08 7f 03 8b 45 08 |.....*D.9E....E.|
000000a0 29 45 08 66 01 05 66 83 55 04 00 8a 54 0d c0 e2 |)E.f..f.U...T...|
000000b0 06 8a 4c 0a fe c1 08 d1 8a 6c 0c 5a 52 8a 74 0b |..L......l.ZR.t.|
000000c0 50 bb 00 70 8e c3 31 db b4 02 cd 13 72 50 8c c3 |P..p..1.....rP..|
000000d0 8e 45 0a 58 c1 e0 05 01 45 0a 60 1e c1 e0 03 89 |.E.X....E.`.....|
000000e0 c1 31 ff 31 f6 8e db fc f3 a5 1f e8 3e 00 74 06 |.1.1........>.t.|
000000f0 be 3b 81 e8 63 00 61 83 7d 08 00 0f 85 1d ff 83 |.;..c.a.}.......|
00000100 ef 0c e9 0f ff e8 24 00 74 06 be 3d 81 e8 49 00 |......$.t..=..I.|
00000110 5a ea 00 82 00 00 be 40 81 e8 3d 00 eb 06 be 45 |Z......@..=....E|
00000120 81 e8 35 00 be 4a 81 e8 2f 00 eb fe bb 17 04 80 |..5..J../.......|
00000130 27 03 c3 6c 6f 61 64 69 6e 67 00 2e 00 0d 0a 00 |'..loading......|
00000140 47 65 6f 6d 00 52 65 61 64 00 20 45 72 72 6f 72 |Geom.Read. Error|
00000150 00 bb 01 00 b4 0e cd 10 46 8a 04 3c 00 75 f2 c3 |........F..<.u..|
00000160 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001f0 00 00 00 00 01 d0 11 00 00 00 00 00 35 00 20 08 |............5. .|
00000200

HiredGun79
February 15th, 2011, 07:34 PM
Here's the results from the experimental boot info script


Boot Info Script 0.56 from 8 February 2011


============================= Boot Info Summary: ===============================

=> Grub2 (v1.97-1.98) is installed in the MBR of /dev/sda and looks at sector
1167360 of the same hard drive for core.img, but core.img can not be found
at this location..
=> Grub2 (v1.97-1.98) is installed in the MBR of /dev/sdb and looks at sector
1167360 of the same hard drive for core.img, but core.img can not be found
at this location..

sda1: __________________________________________________ ________________________

File system: linux_raid_member
Boot sector type: -
Boot sector info:

sda2: __________________________________________________ ________________________

File system: linux_raid_member
Boot sector type: -
Boot sector info:

sda3: __________________________________________________ ________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files: /grub/grub.cfg /grub/core.img

sda4: __________________________________________________ ________________________

File system:
Boot sector type: Unknown
Boot sector info:
Mounting failed:
mount: unknown filesystem type ''

sdb1: __________________________________________________ ________________________

File system: linux_raid_member
Boot sector type: -
Boot sector info:

sdb2: __________________________________________________ ________________________

File system: linux_raid_member
Boot sector type: -
Boot sector info:

sdb3: __________________________________________________ ________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files: /grub/grub.cfg /grub/core.img

sdb4: __________________________________________________ ________________________

File system:
Boot sector type: Unknown
Boot sector info:
Mounting failed:
mount: unknown filesystem type ''
mount: unknown filesystem type ''

md0: __________________________________________________ ________________________

File system: xfs
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.10
Boot files: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

md1: __________________________________________________ ________________________

File system: swap
Boot sector type: -
Boot sector info:

============================ Drive/Partition Info: =============================

Drive: sda __________________________________________________ ___________________

Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sda1 1 3,907,029,167 3,907,029,167 ee GPT


GUID Partition Table detected.

Partition Start Sector End Sector # of Sectors System
/dev/sda1 63,670,272 3,907,028,991 3,843,358,720 RAID partition (Linux)
/dev/sda2 1,169,408 63,670,271 62,500,864 RAID partition (Linux)
/dev/sda3 2,048 1,167,359 1,165,312 Data partition (Windows/Linux)
/dev/sda4 1,167,360 1,169,407 2,048 BIOS Boot partition

Drive: sdb __________________________________________________ ___________________

Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sdb1 1 3,907,029,167 3,907,029,167 ee GPT


GUID Partition Table detected.

Partition Start Sector End Sector # of Sectors System
/dev/sdb1 63,670,272 3,907,028,991 3,843,358,720 RAID partition (Linux)
/dev/sdb2 1,169,408 63,670,271 62,500,864 RAID partition (Linux)
/dev/sdb3 2,048 1,167,359 1,165,312 Data partition (Windows/Linux)
/dev/sdb4 1,167,360 1,169,407 2,048 BIOS Boot partition

"blkid" output: __________________________________________________ ______________

Device UUID TYPE LABEL

/dev/cciss/c0d0 979bb07e-d710-4715-a12a-b4ef7aa5fd1e xfs storage
/dev/md0 1eb79293-54cf-4478-abf4-656999904410 xfs root
/dev/md1 ada14a62-08bd-4498-9e10-3cc2556fbd2f swap
/dev/sda1 3a115645-f33f-1c7b-c310-e9df19028d76 linux_raid_member
/dev/sda2 3c4c17ac-0ef6-58b5-e7b5-addf3fde69fd linux_raid_member
/dev/sda3 79e9e771-2a98-4f99-a463-1ce16c1c5f71 ext4 boot
/dev/sdb1 3a115645-f33f-1c7b-c310-e9df19028d76 linux_raid_member
/dev/sdb2 3c4c17ac-0ef6-58b5-e7b5-addf3fde69fd linux_raid_member
/dev/sdb3 79e9e771-2a98-4f99-a463-1ce16c1c5f71 ext4 boot

================================ Mount points: =================================

Device Mount_Point Type Options

/dev/cciss/c0d0 /mnt/storage xfs (rw,noatime,nodiratime,logbufs=8)
/dev/md0 / xfs (rw)
/dev/sda3 /boot ext4 (rw)
/dev/sdc3 /media/usbdrive hfsplus (rw)


============================= sda3/grub/grub.cfg: ==============================

--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
insmod vbe
insmod vga
}

insmod raid
insmod mdraid
insmod part_gpt
insmod part_gpt
insmod xfs
set root='(hd0,gpt1)'
search --no-floppy --fs-uuid --set 1eb79293-54cf-4478-abf4-656999904410
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod raid
insmod mdraid
insmod part_gpt
insmod part_gpt
insmod xfs
set root='(hd0,gpt1)'
search --no-floppy --fs-uuid --set 1eb79293-54cf-4478-abf4-656999904410
set locale_dir=($root)/boot/grub/locale
set lang=C.UTF-8
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=2
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.35-22-server' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod raid
insmod mdraid
insmod part_gpt
insmod part_gpt
insmod xfs
set root='(hd0,gpt1)'
search --no-floppy --fs-uuid --set 1eb79293-54cf-4478-abf4-656999904410
linux /boot/vmlinuz-2.6.35-22-server root=UUID=1eb79293-54cf-4478-abf4-656999904410 ro quiet
initrd /boot/initrd.img-2.6.35-22-server
}
menuentry 'Ubuntu, with Linux 2.6.35-22-server (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod raid
insmod mdraid
insmod part_gpt
insmod part_gpt
insmod xfs
set root='(hd0,gpt1)'
search --no-floppy --fs-uuid --set 1eb79293-54cf-4478-abf4-656999904410
echo 'Loading Linux 2.6.35-22-server ...'
linux /boot/vmlinuz-2.6.35-22-server root=UUID=1eb79293-54cf-4478-abf4-656999904410 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-22-server
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------

=================== sda3: Location of files loaded by Grub: ====================

GiB - GB File Fragment(s)

1452.696510315 = 1559.821000704 grub/core.img 1
547.919822693 = 588.324429824 grub/grub.cfg 1
1374.607902527 = 1475.973996544 initrd.img-2.6.35-22-server 1
490.309734344 = 526.466068480 vmlinuz-2.6.35-22-server 1

============================= sdb3/grub/grub.cfg: ==============================

--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
insmod vbe
insmod vga
}

insmod raid
insmod mdraid
insmod part_gpt
insmod part_gpt
insmod xfs
set root='(md0)'
search --no-floppy --fs-uuid --set 1eb79293-54cf-4478-abf4-656999904410
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_gpt
insmod ext2
set root='(hd0,gpt3)'
search --no-floppy --fs-uuid --set 79e9e771-2a98-4f99-a463-1ce16c1c5f71
set locale_dir=($root)/grub/locale
set lang=C.UTF-8
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=2
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.35-22-server' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_gpt
insmod ext2
set root='(hd0,gpt3)'
search --no-floppy --fs-uuid --set 79e9e771-2a98-4f99-a463-1ce16c1c5f71
linux /vmlinuz-2.6.35-22-server root=UUID=1eb79293-54cf-4478-abf4-656999904410 ro quiet
initrd /initrd.img-2.6.35-22-server
}
menuentry 'Ubuntu, with Linux 2.6.35-22-server (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_gpt
insmod ext2
set root='(hd0,gpt3)'
search --no-floppy --fs-uuid --set 79e9e771-2a98-4f99-a463-1ce16c1c5f71
echo 'Loading Linux 2.6.35-22-server ...'
linux /vmlinuz-2.6.35-22-server root=UUID=1eb79293-54cf-4478-abf4-656999904410 ro single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-2.6.35-22-server
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_gpt
insmod ext2
set root='(hd0,gpt3)'
search --no-floppy --fs-uuid --set 79e9e771-2a98-4f99-a463-1ce16c1c5f71
linux16 /memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_gpt
insmod ext2
set root='(hd0,gpt3)'
search --no-floppy --fs-uuid --set 79e9e771-2a98-4f99-a463-1ce16c1c5f71
linux16 /memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------

=================== sdb3: Location of files loaded by Grub: ====================

GiB - GB File Fragment(s)

0.147373199 = 0.158240768 grub/core.img 1
0.141609192 = 0.152051712 grub/grub.cfg 1
0.157226562 = 0.168820736 initrd.img-2.6.35-22-server 2
0.132530212 = 0.142303232 vmlinuz-2.6.35-22-server 1

=========================== md0/boot/grub/grub.cfg: ============================

--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
insmod vbe
insmod vga
}

insmod raid
insmod mdraid
insmod part_gpt
insmod part_gpt
insmod xfs
set root='(hd0,gpt1)'
search --no-floppy --fs-uuid --set 1eb79293-54cf-4478-abf4-656999904410
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod raid
insmod mdraid
insmod part_gpt
insmod part_gpt
insmod xfs
set root='(hd0,gpt1)'
search --no-floppy --fs-uuid --set 1eb79293-54cf-4478-abf4-656999904410
set locale_dir=($root)/boot/grub/locale
set lang=C.UTF-8
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=2
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.35-22-server' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod raid
insmod mdraid
insmod part_gpt
insmod part_gpt
insmod xfs
set root='(hd0,gpt1)'
search --no-floppy --fs-uuid --set 1eb79293-54cf-4478-abf4-656999904410
linux /boot/vmlinuz-2.6.35-22-server root=UUID=1eb79293-54cf-4478-abf4-656999904410 ro quiet
initrd /boot/initrd.img-2.6.35-22-server
}
menuentry 'Ubuntu, with Linux 2.6.35-22-server (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod raid
insmod mdraid
insmod part_gpt
insmod part_gpt
insmod xfs
set root='(hd0,gpt1)'
search --no-floppy --fs-uuid --set 1eb79293-54cf-4478-abf4-656999904410
echo 'Loading Linux 2.6.35-22-server ...'
linux /boot/vmlinuz-2.6.35-22-server root=UUID=1eb79293-54cf-4478-abf4-656999904410 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-22-server
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------

================================ md0/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/md0 during installation
UUID=1eb79293-54cf-4478-abf4-656999904410 / xfs defaults 0 1
# /boot was on /dev/sda3 during installation DON'T MOUNT BOOT BY DEFAULT
UUID=79e9e771-2a98-4f99-a463-1ce16c1c5f71 /boot ext4 relatime 0 2
# swap was on /dev/md1 during installation
UUID=ada14a62-08bd-4498-9e10-3cc2556fbd2f none swap sw 0 0

# /mnt/storage for raid partition
UUID=979bb07e-d710-4715-a12a-b4ef7aa5fd1e /mnt/storage xfs noatime,nodiratime,logbufs=8 0 2
--------------------------------------------------------------------------------

==================== md0: Location of files loaded by Grub: ====================

GiB - GB File Fragment(s)

1452.695533752 = 1559.819952128 boot/grub/core.img 1
547.918846130 = 588.323381248 boot/grub/grub.cfg 1
1374.606925964 = 1475.972947968 boot/initrd.img-2.6.35-22-server 1
490.308757782 = 526.465019904 boot/vmlinuz-2.6.35-22-server 1
1374.606925964 = 1475.972947968 initrd.img 1
490.308757782 = 526.465019904 vmlinuz 1

======================== Unknown MBRs/Boot Sectors/etc: ========================

Unknown BootLoader on sda4

00000000 52 e8 28 01 74 08 56 be 33 81 e8 4c 01 5e bf f4 |R.(.t.V.3..L.^..|
00000010 81 66 8b 2d 83 7d 08 00 0f 84 e9 00 80 7c ff 00 |.f.-.}.......|..|
00000020 74 46 66 8b 1d 66 8b 4d 04 66 31 c0 b0 7f 39 45 |tFf..f.M.f1...9E|
00000030 08 7f 03 8b 45 08 29 45 08 66 01 05 66 83 55 04 |....E.)E.f..f.U.|
00000040 00 c7 04 10 00 89 44 02 66 89 5c 08 66 89 4c 0c |......D.f.\.f.L.|
00000050 c7 44 06 00 70 50 c7 44 04 00 00 b4 42 cd 13 0f |.D..pP.D....B...|
00000060 82 bb 00 bb 00 70 eb 68 66 8b 45 04 66 09 c0 0f |.....p.hf.E.f...|
00000070 85 a3 00 66 8b 05 66 31 d2 66 f7 34 88 54 0a 66 |...f..f1.f.4.T.f|
00000080 31 d2 66 f7 74 04 88 54 0b 89 44 0c 3b 44 08 0f |1.f.t..T..D.;D..|
00000090 8d 83 00 8b 04 2a 44 0a 39 45 08 7f 03 8b 45 08 |.....*D.9E....E.|
000000a0 29 45 08 66 01 05 66 83 55 04 00 8a 54 0d c0 e2 |)E.f..f.U...T...|
000000b0 06 8a 4c 0a fe c1 08 d1 8a 6c 0c 5a 52 8a 74 0b |..L......l.ZR.t.|
000000c0 50 bb 00 70 8e c3 31 db b4 02 cd 13 72 50 8c c3 |P..p..1.....rP..|
000000d0 8e 45 0a 58 c1 e0 05 01 45 0a 60 1e c1 e0 03 89 |.E.X....E.`.....|
000000e0 c1 31 ff 31 f6 8e db fc f3 a5 1f e8 3e 00 74 06 |.1.1........>.t.|
000000f0 be 3b 81 e8 63 00 61 83 7d 08 00 0f 85 1d ff 83 |.;..c.a.}.......|
00000100 ef 0c e9 0f ff e8 24 00 74 06 be 3d 81 e8 49 00 |......$.t..=..I.|
00000110 5a ea 00 82 00 00 be 40 81 e8 3d 00 eb 06 be 45 |Z......@..=....E|
00000120 81 e8 35 00 be 4a 81 e8 2f 00 eb fe bb 17 04 80 |..5..J../.......|
00000130 27 03 c3 6c 6f 61 64 69 6e 67 00 2e 00 0d 0a 00 |'..loading......|
00000140 47 65 6f 6d 00 52 65 61 64 00 20 45 72 72 6f 72 |Geom.Read. Error|
00000150 00 bb 01 00 b4 0e cd 10 46 8a 04 3c 00 75 f2 c3 |........F..<.u..|
00000160 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001f0 00 00 00 00 01 d0 11 00 00 00 00 00 35 00 20 08 |............5. .|
00000200

Unknown BootLoader on sdb4

00000000 52 e8 28 01 74 08 56 be 33 81 e8 4c 01 5e bf f4 |R.(.t.V.3..L.^..|
00000010 81 66 8b 2d 83 7d 08 00 0f 84 e9 00 80 7c ff 00 |.f.-.}.......|..|
00000020 74 46 66 8b 1d 66 8b 4d 04 66 31 c0 b0 7f 39 45 |tFf..f.M.f1...9E|
00000030 08 7f 03 8b 45 08 29 45 08 66 01 05 66 83 55 04 |....E.)E.f..f.U.|
00000040 00 c7 04 10 00 89 44 02 66 89 5c 08 66 89 4c 0c |......D.f.\.f.L.|
00000050 c7 44 06 00 70 50 c7 44 04 00 00 b4 42 cd 13 0f |.D..pP.D....B...|
00000060 82 bb 00 bb 00 70 eb 68 66 8b 45 04 66 09 c0 0f |.....p.hf.E.f...|
00000070 85 a3 00 66 8b 05 66 31 d2 66 f7 34 88 54 0a 66 |...f..f1.f.4.T.f|
00000080 31 d2 66 f7 74 04 88 54 0b 89 44 0c 3b 44 08 0f |1.f.t..T..D.;D..|
00000090 8d 83 00 8b 04 2a 44 0a 39 45 08 7f 03 8b 45 08 |.....*D.9E....E.|
000000a0 29 45 08 66 01 05 66 83 55 04 00 8a 54 0d c0 e2 |)E.f..f.U...T...|
000000b0 06 8a 4c 0a fe c1 08 d1 8a 6c 0c 5a 52 8a 74 0b |..L......l.ZR.t.|
000000c0 50 bb 00 70 8e c3 31 db b4 02 cd 13 72 50 8c c3 |P..p..1.....rP..|
000000d0 8e 45 0a 58 c1 e0 05 01 45 0a 60 1e c1 e0 03 89 |.E.X....E.`.....|
000000e0 c1 31 ff 31 f6 8e db fc f3 a5 1f e8 3e 00 74 06 |.1.1........>.t.|
000000f0 be 3b 81 e8 63 00 61 83 7d 08 00 0f 85 1d ff 83 |.;..c.a.}.......|
00000100 ef 0c e9 0f ff e8 24 00 74 06 be 3d 81 e8 49 00 |......$.t..=..I.|
00000110 5a ea 00 82 00 00 be 40 81 e8 3d 00 eb 06 be 45 |Z......@..=....E|
00000120 81 e8 35 00 be 4a 81 e8 2f 00 eb fe bb 17 04 80 |..5..J../.......|
00000130 27 03 c3 6c 6f 61 64 69 6e 67 00 2e 00 0d 0a 00 |'..loading......|
00000140 47 65 6f 6d 00 52 65 61 64 00 20 45 72 72 6f 72 |Geom.Read. Error|
00000150 00 bb 01 00 b4 0e cd 10 46 8a 04 3c 00 75 f2 c3 |........F..<.u..|
00000160 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001f0 00 00 00 00 01 d0 11 00 00 00 00 00 35 00 20 08 |............5. .|
00000200

psusi
February 15th, 2011, 07:49 PM
You appear to have a non raid /boot partition that you have manually copied to the second disk. Don't do that. Since they both have the same UUID, the system is confused about which one it should be using. This is also why grub is not using md0 for the root, because you actually have it on hd0,3, and a duplicate on hd1,3.

HiredGun79
February 15th, 2011, 08:02 PM
Ahh, that makes sense - I didn't raid the boot partition because I couldn't get ubuntu to boot after install with a raided boot partition... How can I remedy this now while preserving the root partition?

psusi
February 15th, 2011, 09:02 PM
Blow away the duplicate partition.

oldfred
February 15th, 2011, 09:08 PM
If it is outside the RAID.

Change UUID see also man pages:
uuidgen
sudo tune2fs /dev/sdaX -U numbergeneratedbyuuidgen
or:
sudo tune2fs -U random /dev/sdaX

To reinstall grub2 you have to mount both the boot & the install partitions.

Your grub.cfg shows it is trying to boot from one partition not the /boot & /. So just reinstalling grub2 will probably still require manual boot or manual editing of grub menu to correct the error. Or you may have to chroot into your system to update, but I do not know how to do that with RAID.

HiredGun79
February 15th, 2011, 09:57 PM
oldfred: what you're talking about is what I need to do to keep the boot partition on sda and sdb unraided, right? - keep them separate - how I have it now... Sounds like if 1 drive would fail, and then the system is rebooted, grub wouldn't know which drive to use but I might be wrong about that.

I think I was also confused because I'm thinking that ubuntu still wants a separate boot partition, but I guess you don't need that these days.

Is it possible to boot into md0 from sda1 or sdb1? or should I make the boot partition a RAID array as well? reason I didn't do that during install was because I could never get it to work that way...

And what specifically should I change in the grub.cfg to make it boot into md0 from sda1 boot partition? Or is that even what I should be doing? I apologize for my lack of knowledge in this department and I really appreciate the help!

HiredGun79
February 15th, 2011, 10:18 PM
Ok, I changed the UUID for sda3, the boot partition that's not part of a RAID

then I did a grub-install /dev/sda

then a

update-grub

and tried to boot, and still got "no disk found"

I ran the boot info script and here's the results..


Boot Info Script 0.56 from 8 February 2011


============================= Boot Info Summary: ===============================

=> Grub2 (v1.97-1.98) is installed in the MBR of /dev/sda and looks at sector
1167360 of the same hard drive for core.img, but core.img can not be found
at this location..
=> Grub2 (v1.97-1.98) is installed in the MBR of /dev/sdb and looks at sector
1167360 of the same hard drive for core.img, but core.img can not be found
at this location..

sda1: __________________________________________________ ________________________

File system: linux_raid_member
Boot sector type: -
Boot sector info:

sda2: __________________________________________________ ________________________

File system: linux_raid_member
Boot sector type: -
Boot sector info:

sda3: __________________________________________________ ________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files: /grub/grub.cfg /grub/core.img

sda4: __________________________________________________ ________________________

File system:
Boot sector type: Unknown
Boot sector info:
Mounting failed:
mount: unknown filesystem type ''

sdb1: __________________________________________________ ________________________

File system: linux_raid_member
Boot sector type: -
Boot sector info:

sdb2: __________________________________________________ ________________________

File system: linux_raid_member
Boot sector type: -
Boot sector info:

sdb3: __________________________________________________ ________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files: /grub/grub.cfg /grub/core.img

sdb4: __________________________________________________ ________________________

File system:
Boot sector type: Unknown
Boot sector info:
Mounting failed:
mount: unknown filesystem type ''
mount: unknown filesystem type ''

md0: __________________________________________________ ________________________

File system: xfs
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.10
Boot files: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

md1: __________________________________________________ ________________________

File system: swap
Boot sector type: -
Boot sector info:

============================ Drive/Partition Info: =============================

Drive: sda __________________________________________________ ___________________

Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sda1 1 3,907,029,167 3,907,029,167 ee GPT


GUID Partition Table detected.

Partition Start Sector End Sector # of Sectors System
/dev/sda1 63,670,272 3,907,028,991 3,843,358,720 RAID partition (Linux)
/dev/sda2 1,169,408 63,670,271 62,500,864 RAID partition (Linux)
/dev/sda3 2,048 1,167,359 1,165,312 Data partition (Windows/Linux)
/dev/sda4 1,167,360 1,169,407 2,048 BIOS Boot partition

Drive: sdb __________________________________________________ ___________________

Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sdb1 1 3,907,029,167 3,907,029,167 ee GPT


GUID Partition Table detected.

Partition Start Sector End Sector # of Sectors System
/dev/sdb1 63,670,272 3,907,028,991 3,843,358,720 RAID partition (Linux)
/dev/sdb2 1,169,408 63,670,271 62,500,864 RAID partition (Linux)
/dev/sdb3 2,048 1,167,359 1,165,312 Data partition (Windows/Linux)
/dev/sdb4 1,167,360 1,169,407 2,048 BIOS Boot partition

"blkid" output: __________________________________________________ ______________

Device UUID TYPE LABEL

/dev/cciss/c0d0 979bb07e-d710-4715-a12a-b4ef7aa5fd1e xfs storage
/dev/md0 1eb79293-54cf-4478-abf4-656999904410 xfs root
/dev/md1 ada14a62-08bd-4498-9e10-3cc2556fbd2f swap
/dev/sda1 3a115645-f33f-1c7b-c310-e9df19028d76 linux_raid_member
/dev/sda2 3c4c17ac-0ef6-58b5-e7b5-addf3fde69fd linux_raid_member
/dev/sda3 66db7970-a3ca-4c8b-8c61-007df613d075 ext4 boot
/dev/sdb1 3a115645-f33f-1c7b-c310-e9df19028d76 linux_raid_member
/dev/sdb2 3c4c17ac-0ef6-58b5-e7b5-addf3fde69fd linux_raid_member
/dev/sdb3 79e9e771-2a98-4f99-a463-1ce16c1c5f71 ext4 boot

================================ Mount points: =================================

Device Mount_Point Type Options

/dev/cciss/c0d0 /mnt/storage xfs (rw,noatime,nodiratime,logbufs=8)
/dev/md0 / xfs (rw)
/dev/sda3 /boot ext4 (rw)
/dev/sdc3 /media/usbdrive hfsplus (rw)


============================= sda3/grub/grub.cfg: ==============================

--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
insmod vbe
insmod vga
}

insmod raid
insmod mdraid
insmod part_gpt
insmod part_gpt
insmod xfs
set root='(md0)'
search --no-floppy --fs-uuid --set 1eb79293-54cf-4478-abf4-656999904410
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod raid
insmod mdraid
insmod part_gpt
insmod part_gpt
insmod xfs
set root='(md0)'
search --no-floppy --fs-uuid --set 1eb79293-54cf-4478-abf4-656999904410
set locale_dir=($root)/boot/grub/locale
set lang=C.UTF-8
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=2
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.35-22-server' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod raid
insmod mdraid
insmod part_gpt
insmod part_gpt
insmod xfs
set root='(md0)'
search --no-floppy --fs-uuid --set 1eb79293-54cf-4478-abf4-656999904410
linux /boot/vmlinuz-2.6.35-22-server root=UUID=1eb79293-54cf-4478-abf4-656999904410 ro quiet
initrd /boot/initrd.img-2.6.35-22-server
}
menuentry 'Ubuntu, with Linux 2.6.35-22-server (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod raid
insmod mdraid
insmod part_gpt
insmod part_gpt
insmod xfs
set root='(md0)'
search --no-floppy --fs-uuid --set 1eb79293-54cf-4478-abf4-656999904410
echo 'Loading Linux 2.6.35-22-server ...'
linux /boot/vmlinuz-2.6.35-22-server root=UUID=1eb79293-54cf-4478-abf4-656999904410 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-22-server
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------

=================== sda3: Location of files loaded by Grub: ====================

GiB - GB File Fragment(s)

490.110088348 = 526.251700224 grub/core.img 1
917.258552551 = 984.898871296 grub/grub.cfg 1
1374.607902527 = 1475.973996544 initrd.img-2.6.35-22-server 1
490.309734344 = 526.466068480 vmlinuz-2.6.35-22-server 1

============================= sdb3/grub/grub.cfg: ==============================

--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
insmod vbe
insmod vga
}

insmod raid
insmod mdraid
insmod part_gpt
insmod part_gpt
insmod xfs
set root='(md0)'
search --no-floppy --fs-uuid --set 1eb79293-54cf-4478-abf4-656999904410
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_gpt
insmod ext2
set root='(hd0,gpt3)'
search --no-floppy --fs-uuid --set 79e9e771-2a98-4f99-a463-1ce16c1c5f71
set locale_dir=($root)/grub/locale
set lang=C.UTF-8
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=2
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.35-22-server' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_gpt
insmod ext2
set root='(hd0,gpt3)'
search --no-floppy --fs-uuid --set 79e9e771-2a98-4f99-a463-1ce16c1c5f71
linux /vmlinuz-2.6.35-22-server root=UUID=1eb79293-54cf-4478-abf4-656999904410 ro quiet
initrd /initrd.img-2.6.35-22-server
}
menuentry 'Ubuntu, with Linux 2.6.35-22-server (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_gpt
insmod ext2
set root='(hd0,gpt3)'
search --no-floppy --fs-uuid --set 79e9e771-2a98-4f99-a463-1ce16c1c5f71
echo 'Loading Linux 2.6.35-22-server ...'
linux /vmlinuz-2.6.35-22-server root=UUID=1eb79293-54cf-4478-abf4-656999904410 ro single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-2.6.35-22-server
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_gpt
insmod ext2
set root='(hd0,gpt3)'
search --no-floppy --fs-uuid --set 79e9e771-2a98-4f99-a463-1ce16c1c5f71
linux16 /memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_gpt
insmod ext2
set root='(hd0,gpt3)'
search --no-floppy --fs-uuid --set 79e9e771-2a98-4f99-a463-1ce16c1c5f71
linux16 /memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------

=================== sdb3: Location of files loaded by Grub: ====================

GiB - GB File Fragment(s)

0.147373199 = 0.158240768 grub/core.img 1
0.141609192 = 0.152051712 grub/grub.cfg 1
0.157226562 = 0.168820736 initrd.img-2.6.35-22-server 2
0.132530212 = 0.142303232 vmlinuz-2.6.35-22-server 1

=========================== md0/boot/grub/grub.cfg: ============================

--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
insmod vbe
insmod vga
}

insmod raid
insmod mdraid
insmod part_gpt
insmod part_gpt
insmod xfs
set root='(md0)'
search --no-floppy --fs-uuid --set 1eb79293-54cf-4478-abf4-656999904410
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod raid
insmod mdraid
insmod part_gpt
insmod part_gpt
insmod xfs
set root='(md0)'
search --no-floppy --fs-uuid --set 1eb79293-54cf-4478-abf4-656999904410
set locale_dir=($root)/boot/grub/locale
set lang=C.UTF-8
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=2
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.35-22-server' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod raid
insmod mdraid
insmod part_gpt
insmod part_gpt
insmod xfs
set root='(md0)'
search --no-floppy --fs-uuid --set 1eb79293-54cf-4478-abf4-656999904410
linux /boot/vmlinuz-2.6.35-22-server root=UUID=1eb79293-54cf-4478-abf4-656999904410 ro quiet
initrd /boot/initrd.img-2.6.35-22-server
}
menuentry 'Ubuntu, with Linux 2.6.35-22-server (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod raid
insmod mdraid
insmod part_gpt
insmod part_gpt
insmod xfs
set root='(md0)'
search --no-floppy --fs-uuid --set 1eb79293-54cf-4478-abf4-656999904410
echo 'Loading Linux 2.6.35-22-server ...'
linux /boot/vmlinuz-2.6.35-22-server root=UUID=1eb79293-54cf-4478-abf4-656999904410 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-22-server
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------

================================ md0/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/md0 during installation
UUID=1eb79293-54cf-4478-abf4-656999904410 / xfs defaults 0 1
# /boot was on /dev/sda3 during installation DON'T MOUNT BOOT BY DEFAULT
UUID=79e9e771-2a98-4f99-a463-1ce16c1c5f71 /boot ext4 relatime 0 2
# swap was on /dev/md1 during installation
UUID=ada14a62-08bd-4498-9e10-3cc2556fbd2f none swap sw 0 0

# /mnt/storage for raid partition
UUID=979bb07e-d710-4715-a12a-b4ef7aa5fd1e /mnt/storage xfs noatime,nodiratime,logbufs=8 0 2
--------------------------------------------------------------------------------

==================== md0: Location of files loaded by Grub: ====================

GiB - GB File Fragment(s)

490.109111786 = 526.250651648 boot/grub/core.img 1
917.257575989 = 984.897822720 boot/grub/grub.cfg 1
1374.606925964 = 1475.972947968 boot/initrd.img-2.6.35-22-server 1
490.308757782 = 526.465019904 boot/vmlinuz-2.6.35-22-server 1
1374.606925964 = 1475.972947968 initrd.img 1
490.308757782 = 526.465019904 vmlinuz 1

======================== Unknown MBRs/Boot Sectors/etc: ========================

Unknown BootLoader on sda4

00000000 52 e8 28 01 74 08 56 be 33 81 e8 4c 01 5e bf f4 |R.(.t.V.3..L.^..|
00000010 81 66 8b 2d 83 7d 08 00 0f 84 e9 00 80 7c ff 00 |.f.-.}.......|..|
00000020 74 46 66 8b 1d 66 8b 4d 04 66 31 c0 b0 7f 39 45 |tFf..f.M.f1...9E|
00000030 08 7f 03 8b 45 08 29 45 08 66 01 05 66 83 55 04 |....E.)E.f..f.U.|
00000040 00 c7 04 10 00 89 44 02 66 89 5c 08 66 89 4c 0c |......D.f.\.f.L.|
00000050 c7 44 06 00 70 50 c7 44 04 00 00 b4 42 cd 13 0f |.D..pP.D....B...|
00000060 82 bb 00 bb 00 70 eb 68 66 8b 45 04 66 09 c0 0f |.....p.hf.E.f...|
00000070 85 a3 00 66 8b 05 66 31 d2 66 f7 34 88 54 0a 66 |...f..f1.f.4.T.f|
00000080 31 d2 66 f7 74 04 88 54 0b 89 44 0c 3b 44 08 0f |1.f.t..T..D.;D..|
00000090 8d 83 00 8b 04 2a 44 0a 39 45 08 7f 03 8b 45 08 |.....*D.9E....E.|
000000a0 29 45 08 66 01 05 66 83 55 04 00 8a 54 0d c0 e2 |)E.f..f.U...T...|
000000b0 06 8a 4c 0a fe c1 08 d1 8a 6c 0c 5a 52 8a 74 0b |..L......l.ZR.t.|
000000c0 50 bb 00 70 8e c3 31 db b4 02 cd 13 72 50 8c c3 |P..p..1.....rP..|
000000d0 8e 45 0a 58 c1 e0 05 01 45 0a 60 1e c1 e0 03 89 |.E.X....E.`.....|
000000e0 c1 31 ff 31 f6 8e db fc f3 a5 1f e8 3e 00 74 06 |.1.1........>.t.|
000000f0 be 3b 81 e8 63 00 61 83 7d 08 00 0f 85 1d ff 83 |.;..c.a.}.......|
00000100 ef 0c e9 0f ff e8 24 00 74 06 be 3d 81 e8 49 00 |......$.t..=..I.|
00000110 5a ea 00 82 00 00 be 40 81 e8 3d 00 eb 06 be 45 |Z......@..=....E|
00000120 81 e8 35 00 be 4a 81 e8 2f 00 eb fe bb 17 04 80 |..5..J../.......|
00000130 27 03 c3 6c 6f 61 64 69 6e 67 00 2e 00 0d 0a 00 |'..loading......|
00000140 47 65 6f 6d 00 52 65 61 64 00 20 45 72 72 6f 72 |Geom.Read. Error|
00000150 00 bb 01 00 b4 0e cd 10 46 8a 04 3c 00 75 f2 c3 |........F..<.u..|
00000160 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001f0 00 00 00 00 01 d0 11 00 00 00 00 00 35 00 20 08 |............5. .|
00000200

Unknown BootLoader on sdb4

00000000 52 e8 28 01 74 08 56 be 33 81 e8 4c 01 5e bf f4 |R.(.t.V.3..L.^..|
00000010 81 66 8b 2d 83 7d 08 00 0f 84 e9 00 80 7c ff 00 |.f.-.}.......|..|
00000020 74 46 66 8b 1d 66 8b 4d 04 66 31 c0 b0 7f 39 45 |tFf..f.M.f1...9E|
00000030 08 7f 03 8b 45 08 29 45 08 66 01 05 66 83 55 04 |....E.)E.f..f.U.|
00000040 00 c7 04 10 00 89 44 02 66 89 5c 08 66 89 4c 0c |......D.f.\.f.L.|
00000050 c7 44 06 00 70 50 c7 44 04 00 00 b4 42 cd 13 0f |.D..pP.D....B...|
00000060 82 bb 00 bb 00 70 eb 68 66 8b 45 04 66 09 c0 0f |.....p.hf.E.f...|
00000070 85 a3 00 66 8b 05 66 31 d2 66 f7 34 88 54 0a 66 |...f..f1.f.4.T.f|
00000080 31 d2 66 f7 74 04 88 54 0b 89 44 0c 3b 44 08 0f |1.f.t..T..D.;D..|
00000090 8d 83 00 8b 04 2a 44 0a 39 45 08 7f 03 8b 45 08 |.....*D.9E....E.|
000000a0 29 45 08 66 01 05 66 83 55 04 00 8a 54 0d c0 e2 |)E.f..f.U...T...|
000000b0 06 8a 4c 0a fe c1 08 d1 8a 6c 0c 5a 52 8a 74 0b |..L......l.ZR.t.|
000000c0 50 bb 00 70 8e c3 31 db b4 02 cd 13 72 50 8c c3 |P..p..1.....rP..|
000000d0 8e 45 0a 58 c1 e0 05 01 45 0a 60 1e c1 e0 03 89 |.E.X....E.`.....|
000000e0 c1 31 ff 31 f6 8e db fc f3 a5 1f e8 3e 00 74 06 |.1.1........>.t.|
000000f0 be 3b 81 e8 63 00 61 83 7d 08 00 0f 85 1d ff 83 |.;..c.a.}.......|
00000100 ef 0c e9 0f ff e8 24 00 74 06 be 3d 81 e8 49 00 |......$.t..=..I.|
00000110 5a ea 00 82 00 00 be 40 81 e8 3d 00 eb 06 be 45 |Z......@..=....E|
00000120 81 e8 35 00 be 4a 81 e8 2f 00 eb fe bb 17 04 80 |..5..J../.......|
00000130 27 03 c3 6c 6f 61 64 69 6e 67 00 2e 00 0d 0a 00 |'..loading......|
00000140 47 65 6f 6d 00 52 65 61 64 00 20 45 72 72 6f 72 |Geom.Read. Error|
00000150 00 bb 01 00 b4 0e cd 10 46 8a 04 3c 00 75 f2 c3 |........F..<.u..|
00000160 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001f0 00 00 00 00 01 d0 11 00 00 00 00 00 35 00 20 08 |............5. .|
00000200

oldfred
February 15th, 2011, 10:31 PM
The core.img not found is probably wrong. It says is in sector 1167360 which is the start of the bios_boot partition, which is where it is supposed to be.

Did you mount both / & /boot to reinstall grub? You cannot run update-grub until you have rebooted.

If you hold down shift key from BIOS until menu, do you get the menu. If so edit the grub boot lines. It may just require removing the search line as that is looking at / when it should be /boot. And the set root needs to be the /boot partition or sda3.

set root='(hd0,gpt3)'

HiredGun79
February 16th, 2011, 12:52 AM
md0 was mounted as /
and
sda3 was mounted as /boot
when I installed grub

should I do another grub install and refrain from running update-grub?

I'll try holding down shift to get the grub menu - right now, there's no grub menu at all, it goes straight to disk not found, grub rescue>

ahh, and set root needs to be the boot partition, not md0... I'll see if the menu pops up and if so, I'll try editing things to get it to work.

I'll let you know how it goes...

Thanks again!

HiredGun79
February 16th, 2011, 01:00 AM
Ok, the shift key trick did not work - the machine ended up hanging on the cursor, then when I finally released the shift key, it popped straight to



error: no such disk.
grub rescue>


I'm now going to make sure that sda3 is mounted as boot, then manually change the grub.cfg so that set root=(hd0,gpt3) ie. pointing to the boot partition... And see if that works...

After I make those changes, I'll post the boot info script output so ya'll can glance over my manual edits to grub.cfg to be sure I didn't do anything stupidly obvious.

Again, thanks!

HiredGun79
February 16th, 2011, 01:15 AM
Ok, so I edited grub.cfg to show every set root=(hd0,gpt3) and confirmed that every initrd=/boot/...

Still got the grub rescue prompt... Here's boot info script output


Boot Info Script 0.56 from 8 February 2011


============================= Boot Info Summary: ===============================

=> Grub2 (v1.97-1.98) is installed in the MBR of /dev/sda and looks at sector
1167360 of the same hard drive for core.img, but core.img can not be found
at this location..
=> Grub2 (v1.97-1.98) is installed in the MBR of /dev/sdb and looks at sector
1167360 of the same hard drive for core.img, but core.img can not be found
at this location..

sda1: __________________________________________________ ________________________

File system: linux_raid_member
Boot sector type: -
Boot sector info:

sda2: __________________________________________________ ________________________

File system: linux_raid_member
Boot sector type: -
Boot sector info:

sda3: __________________________________________________ ________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files: /grub/grub.cfg /grub/core.img

sda4: __________________________________________________ ________________________

File system:
Boot sector type: Unknown
Boot sector info:
Mounting failed:
mount: unknown filesystem type ''

sdb1: __________________________________________________ ________________________

File system: linux_raid_member
Boot sector type: -
Boot sector info:

sdb2: __________________________________________________ ________________________

File system: linux_raid_member
Boot sector type: -
Boot sector info:

sdb3: __________________________________________________ ________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files: /grub/grub.cfg /grub/core.img

sdb4: __________________________________________________ ________________________

File system:
Boot sector type: Unknown
Boot sector info:
Mounting failed:
mount: unknown filesystem type ''
mount: unknown filesystem type ''

md0: __________________________________________________ ________________________

File system: xfs
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.10
Boot files: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

md1: __________________________________________________ ________________________

File system: swap
Boot sector type: -
Boot sector info:

============================ Drive/Partition Info: =============================

Drive: sda __________________________________________________ ___________________

Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sda1 1 3,907,029,167 3,907,029,167 ee GPT


GUID Partition Table detected.

Partition Start Sector End Sector # of Sectors System
/dev/sda1 63,670,272 3,907,028,991 3,843,358,720 RAID partition (Linux)
/dev/sda2 1,169,408 63,670,271 62,500,864 RAID partition (Linux)
/dev/sda3 2,048 1,167,359 1,165,312 Data partition (Windows/Linux)
/dev/sda4 1,167,360 1,169,407 2,048 BIOS Boot partition

Drive: sdb __________________________________________________ ___________________

Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sdb1 1 3,907,029,167 3,907,029,167 ee GPT


GUID Partition Table detected.

Partition Start Sector End Sector # of Sectors System
/dev/sdb1 63,670,272 3,907,028,991 3,843,358,720 RAID partition (Linux)
/dev/sdb2 1,169,408 63,670,271 62,500,864 RAID partition (Linux)
/dev/sdb3 2,048 1,167,359 1,165,312 Data partition (Windows/Linux)
/dev/sdb4 1,167,360 1,169,407 2,048 BIOS Boot partition

"blkid" output: __________________________________________________ ______________

Device UUID TYPE LABEL

/dev/cciss/c0d0 979bb07e-d710-4715-a12a-b4ef7aa5fd1e xfs storage
/dev/md0 1eb79293-54cf-4478-abf4-656999904410 xfs root
/dev/md1 ada14a62-08bd-4498-9e10-3cc2556fbd2f swap
/dev/sda1 3a115645-f33f-1c7b-c310-e9df19028d76 linux_raid_member
/dev/sda2 3c4c17ac-0ef6-58b5-e7b5-addf3fde69fd linux_raid_member
/dev/sda3 66db7970-a3ca-4c8b-8c61-007df613d075 ext4 boot
/dev/sdb1 3a115645-f33f-1c7b-c310-e9df19028d76 linux_raid_member
/dev/sdb2 3c4c17ac-0ef6-58b5-e7b5-addf3fde69fd linux_raid_member
/dev/sdb3 79e9e771-2a98-4f99-a463-1ce16c1c5f71 ext4 boot

================================ Mount points: =================================

Device Mount_Point Type Options

/dev/cciss/c0d0 /mnt/storage xfs (rw,noatime,nodiratime,logbufs=8)
/dev/md0 / xfs (rw)
/dev/sda3 /boot ext4 (rw)
/dev/sdc3 /media/usbdrive hfsplus (rw)


============================= sda3/grub/grub.cfg: ==============================

--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
insmod vbe
insmod vga
}

insmod raid
insmod mdraid
insmod part_gpt
insmod part_gpt
insmod xfs
set root='(hd0,gpt1)'
search --no-floppy --fs-uuid --set 1eb79293-54cf-4478-abf4-656999904410
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod raid
insmod mdraid
insmod part_gpt
insmod part_gpt
insmod xfs
set root='(hd0,gpt1)'
search --no-floppy --fs-uuid --set 1eb79293-54cf-4478-abf4-656999904410
set locale_dir=($root)/boot/grub/locale
set lang=C.UTF-8
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=2
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.35-22-server' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod raid
insmod mdraid
insmod part_gpt
insmod part_gpt
insmod xfs
set root='(hd0,gpt1)'
search --no-floppy --fs-uuid --set 1eb79293-54cf-4478-abf4-656999904410
linux /boot/vmlinuz-2.6.35-22-server root=UUID=1eb79293-54cf-4478-abf4-656999904410 ro quiet
initrd /boot/initrd.img-2.6.35-22-server
}
menuentry 'Ubuntu, with Linux 2.6.35-22-server (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod raid
insmod mdraid
insmod part_gpt
insmod part_gpt
insmod xfs
set root='(hd0,gpt1)'
search --no-floppy --fs-uuid --set 1eb79293-54cf-4478-abf4-656999904410
echo 'Loading Linux 2.6.35-22-server ...'
linux /boot/vmlinuz-2.6.35-22-server root=UUID=1eb79293-54cf-4478-abf4-656999904410 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-22-server
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------

=================== sda3: Location of files loaded by Grub: ====================

GiB - GB File Fragment(s)

490.110088348 = 526.251700224 grub/core.img 1
1374.972408295 = 1476.365381632 grub/grub.cfg 1
1374.607902527 = 1475.973996544 initrd.img-2.6.35-22-server 1
490.309734344 = 526.466068480 vmlinuz-2.6.35-22-server 1

============================= sdb3/grub/grub.cfg: ==============================

--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
insmod vbe
insmod vga
}

insmod raid
insmod mdraid
insmod part_gpt
insmod part_gpt
insmod xfs
set root='(md0)'
search --no-floppy --fs-uuid --set 1eb79293-54cf-4478-abf4-656999904410
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_gpt
insmod ext2
set root='(hd0,gpt3)'
search --no-floppy --fs-uuid --set 79e9e771-2a98-4f99-a463-1ce16c1c5f71
set locale_dir=($root)/grub/locale
set lang=C.UTF-8
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=2
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.35-22-server' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_gpt
insmod ext2
set root='(hd0,gpt3)'
search --no-floppy --fs-uuid --set 79e9e771-2a98-4f99-a463-1ce16c1c5f71
linux /vmlinuz-2.6.35-22-server root=UUID=1eb79293-54cf-4478-abf4-656999904410 ro quiet
initrd /initrd.img-2.6.35-22-server
}
menuentry 'Ubuntu, with Linux 2.6.35-22-server (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_gpt
insmod ext2
set root='(hd0,gpt3)'
search --no-floppy --fs-uuid --set 79e9e771-2a98-4f99-a463-1ce16c1c5f71
echo 'Loading Linux 2.6.35-22-server ...'
linux /vmlinuz-2.6.35-22-server root=UUID=1eb79293-54cf-4478-abf4-656999904410 ro single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-2.6.35-22-server
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_gpt
insmod ext2
set root='(hd0,gpt3)'
search --no-floppy --fs-uuid --set 79e9e771-2a98-4f99-a463-1ce16c1c5f71
linux16 /memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_gpt
insmod ext2
set root='(hd0,gpt3)'
search --no-floppy --fs-uuid --set 79e9e771-2a98-4f99-a463-1ce16c1c5f71
linux16 /memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------

=================== sdb3: Location of files loaded by Grub: ====================

GiB - GB File Fragment(s)

0.147373199 = 0.158240768 grub/core.img 1
0.141609192 = 0.152051712 grub/grub.cfg 1
0.157226562 = 0.168820736 initrd.img-2.6.35-22-server 2
0.132530212 = 0.142303232 vmlinuz-2.6.35-22-server 1

=========================== md0/boot/grub/grub.cfg: ============================

--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
insmod vbe
insmod vga
}

insmod raid
insmod mdraid
insmod part_gpt
insmod part_gpt
insmod xfs
set root='(hd0,gpt1)'
search --no-floppy --fs-uuid --set 1eb79293-54cf-4478-abf4-656999904410
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod raid
insmod mdraid
insmod part_gpt
insmod part_gpt
insmod xfs
set root='(hd0,gpt1)'
search --no-floppy --fs-uuid --set 1eb79293-54cf-4478-abf4-656999904410
set locale_dir=($root)/boot/grub/locale
set lang=C.UTF-8
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=2
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.35-22-server' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod raid
insmod mdraid
insmod part_gpt
insmod part_gpt
insmod xfs
set root='(hd0,gpt1)'
search --no-floppy --fs-uuid --set 1eb79293-54cf-4478-abf4-656999904410
linux /boot/vmlinuz-2.6.35-22-server root=UUID=1eb79293-54cf-4478-abf4-656999904410 ro quiet
initrd /boot/initrd.img-2.6.35-22-server
}
menuentry 'Ubuntu, with Linux 2.6.35-22-server (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod raid
insmod mdraid
insmod part_gpt
insmod part_gpt
insmod xfs
set root='(hd0,gpt1)'
search --no-floppy --fs-uuid --set 1eb79293-54cf-4478-abf4-656999904410
echo 'Loading Linux 2.6.35-22-server ...'
linux /boot/vmlinuz-2.6.35-22-server root=UUID=1eb79293-54cf-4478-abf4-656999904410 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-22-server
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------

================================ md0/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/md0 during installation
UUID=1eb79293-54cf-4478-abf4-656999904410 / xfs defaults 0 1
# /boot was on /dev/sda3 during installation DON'T MOUNT BOOT BY DEFAULT
UUID=79e9e771-2a98-4f99-a463-1ce16c1c5f71 /boot ext4 relatime 0 2
# swap was on /dev/md1 during installation
UUID=ada14a62-08bd-4498-9e10-3cc2556fbd2f none swap sw 0 0

# /mnt/storage for raid partition
UUID=979bb07e-d710-4715-a12a-b4ef7aa5fd1e /mnt/storage xfs noatime,nodiratime,logbufs=8 0 2
--------------------------------------------------------------------------------

==================== md0: Location of files loaded by Grub: ====================

GiB - GB File Fragment(s)

490.109111786 = 526.250651648 boot/grub/core.img 1
1374.971431732 = 1476.364333056 boot/grub/grub.cfg 1
1374.606925964 = 1475.972947968 boot/initrd.img-2.6.35-22-server 1
490.308757782 = 526.465019904 boot/vmlinuz-2.6.35-22-server 1
1374.606925964 = 1475.972947968 initrd.img 1
490.308757782 = 526.465019904 vmlinuz 1

======================== Unknown MBRs/Boot Sectors/etc: ========================

Unknown BootLoader on sda4

00000000 52 e8 28 01 74 08 56 be 33 81 e8 4c 01 5e bf f4 |R.(.t.V.3..L.^..|
00000010 81 66 8b 2d 83 7d 08 00 0f 84 e9 00 80 7c ff 00 |.f.-.}.......|..|
00000020 74 46 66 8b 1d 66 8b 4d 04 66 31 c0 b0 7f 39 45 |tFf..f.M.f1...9E|
00000030 08 7f 03 8b 45 08 29 45 08 66 01 05 66 83 55 04 |....E.)E.f..f.U.|
00000040 00 c7 04 10 00 89 44 02 66 89 5c 08 66 89 4c 0c |......D.f.\.f.L.|
00000050 c7 44 06 00 70 50 c7 44 04 00 00 b4 42 cd 13 0f |.D..pP.D....B...|
00000060 82 bb 00 bb 00 70 eb 68 66 8b 45 04 66 09 c0 0f |.....p.hf.E.f...|
00000070 85 a3 00 66 8b 05 66 31 d2 66 f7 34 88 54 0a 66 |...f..f1.f.4.T.f|
00000080 31 d2 66 f7 74 04 88 54 0b 89 44 0c 3b 44 08 0f |1.f.t..T..D.;D..|
00000090 8d 83 00 8b 04 2a 44 0a 39 45 08 7f 03 8b 45 08 |.....*D.9E....E.|
000000a0 29 45 08 66 01 05 66 83 55 04 00 8a 54 0d c0 e2 |)E.f..f.U...T...|
000000b0 06 8a 4c 0a fe c1 08 d1 8a 6c 0c 5a 52 8a 74 0b |..L......l.ZR.t.|
000000c0 50 bb 00 70 8e c3 31 db b4 02 cd 13 72 50 8c c3 |P..p..1.....rP..|
000000d0 8e 45 0a 58 c1 e0 05 01 45 0a 60 1e c1 e0 03 89 |.E.X....E.`.....|
000000e0 c1 31 ff 31 f6 8e db fc f3 a5 1f e8 3e 00 74 06 |.1.1........>.t.|
000000f0 be 3b 81 e8 63 00 61 83 7d 08 00 0f 85 1d ff 83 |.;..c.a.}.......|
00000100 ef 0c e9 0f ff e8 24 00 74 06 be 3d 81 e8 49 00 |......$.t..=..I.|
00000110 5a ea 00 82 00 00 be 40 81 e8 3d 00 eb 06 be 45 |Z......@..=....E|
00000120 81 e8 35 00 be 4a 81 e8 2f 00 eb fe bb 17 04 80 |..5..J../.......|
00000130 27 03 c3 6c 6f 61 64 69 6e 67 00 2e 00 0d 0a 00 |'..loading......|
00000140 47 65 6f 6d 00 52 65 61 64 00 20 45 72 72 6f 72 |Geom.Read. Error|
00000150 00 bb 01 00 b4 0e cd 10 46 8a 04 3c 00 75 f2 c3 |........F..<.u..|
00000160 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001f0 00 00 00 00 01 d0 11 00 00 00 00 00 35 00 20 08 |............5. .|
00000200

Unknown BootLoader on sdb4

00000000 52 e8 28 01 74 08 56 be 33 81 e8 4c 01 5e bf f4 |R.(.t.V.3..L.^..|
00000010 81 66 8b 2d 83 7d 08 00 0f 84 e9 00 80 7c ff 00 |.f.-.}.......|..|
00000020 74 46 66 8b 1d 66 8b 4d 04 66 31 c0 b0 7f 39 45 |tFf..f.M.f1...9E|
00000030 08 7f 03 8b 45 08 29 45 08 66 01 05 66 83 55 04 |....E.)E.f..f.U.|
00000040 00 c7 04 10 00 89 44 02 66 89 5c 08 66 89 4c 0c |......D.f.\.f.L.|
00000050 c7 44 06 00 70 50 c7 44 04 00 00 b4 42 cd 13 0f |.D..pP.D....B...|
00000060 82 bb 00 bb 00 70 eb 68 66 8b 45 04 66 09 c0 0f |.....p.hf.E.f...|
00000070 85 a3 00 66 8b 05 66 31 d2 66 f7 34 88 54 0a 66 |...f..f1.f.4.T.f|
00000080 31 d2 66 f7 74 04 88 54 0b 89 44 0c 3b 44 08 0f |1.f.t..T..D.;D..|
00000090 8d 83 00 8b 04 2a 44 0a 39 45 08 7f 03 8b 45 08 |.....*D.9E....E.|
000000a0 29 45 08 66 01 05 66 83 55 04 00 8a 54 0d c0 e2 |)E.f..f.U...T...|
000000b0 06 8a 4c 0a fe c1 08 d1 8a 6c 0c 5a 52 8a 74 0b |..L......l.ZR.t.|
000000c0 50 bb 00 70 8e c3 31 db b4 02 cd 13 72 50 8c c3 |P..p..1.....rP..|
000000d0 8e 45 0a 58 c1 e0 05 01 45 0a 60 1e c1 e0 03 89 |.E.X....E.`.....|
000000e0 c1 31 ff 31 f6 8e db fc f3 a5 1f e8 3e 00 74 06 |.1.1........>.t.|
000000f0 be 3b 81 e8 63 00 61 83 7d 08 00 0f 85 1d ff 83 |.;..c.a.}.......|
00000100 ef 0c e9 0f ff e8 24 00 74 06 be 3d 81 e8 49 00 |......$.t..=..I.|
00000110 5a ea 00 82 00 00 be 40 81 e8 3d 00 eb 06 be 45 |Z......@..=....E|
00000120 81 e8 35 00 be 4a 81 e8 2f 00 eb fe bb 17 04 80 |..5..J../.......|
00000130 27 03 c3 6c 6f 61 64 69 6e 67 00 2e 00 0d 0a 00 |'..loading......|
00000140 47 65 6f 6d 00 52 65 61 64 00 20 45 72 72 6f 72 |Geom.Read. Error|
00000150 00 bb 01 00 b4 0e cd 10 46 8a 04 3c 00 75 f2 c3 |........F..<.u..|
00000160 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001f0 00 00 00 00 01 d0 11 00 00 00 00 00 35 00 20 08 |............5. .|
00000200

Gert Hulselmans
February 16th, 2011, 01:57 AM
The last development version of BIS should show: "Bios Boot partition" again like v055 did for sda4 and sdb4.

Can you attach the following files?

sudo dd if=/dev/sda count=2048 bs=512 | gzip -9 > sda_gpt_2048sectors.bin
sudo dd if=/dev/sda4 count=2048 bs=512 | gzip -9 > sda4_gpt_2048sectors.bin

psusi
February 16th, 2011, 02:12 AM
Your grub.cfg still is setting the root to partition 1 instead of 3.

What do you get from:


sudo grub-probe -t drive /boot/

HiredGun79
February 16th, 2011, 02:33 AM
psusi:

grub-probe -t drive /boot/
results in
(md0)

I'm running that from booting the install cd into rescue mode, then starting a terminal on /dev/md0, my root partition...

Gert - gathering up those files and running most recent dev version of the BIS - stand by for reply in 5 min or so...

Thanks!

HiredGun79
February 16th, 2011, 02:47 AM
Gert:

I re-downloaded the boot info script the results are below...

Also attached are the bios boot partition and the mbr...

Thanks!


Boot Info Script 0.56 from 8 February 2011


============================= Boot Info Summary: ===============================

=> Grub2 (v1.97-1.98) is installed in the MBR of /dev/sda and looks at sector
1167360 of the same hard drive for core.img, but core.img can not be found
at this location..
=> Grub2 (v1.97-1.98) is installed in the MBR of /dev/sdb and looks at sector
1167360 of the same hard drive for core.img, but core.img can not be found
at this location..

sda1: __________________________________________________ ________________________

File system: linux_raid_member
Boot sector type: -
Boot sector info:

sda2: __________________________________________________ ________________________

File system: linux_raid_member
Boot sector type: -
Boot sector info:

sda3: __________________________________________________ ________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files: /grub/grub.cfg /grub/core.img

sda4: __________________________________________________ ________________________

File system:
Boot sector type: Unknown
Boot sector info:
Mounting failed: mount: unknown filesystem type ''

sdb1: __________________________________________________ ________________________

File system: linux_raid_member
Boot sector type: -
Boot sector info:

sdb2: __________________________________________________ ________________________

File system: linux_raid_member
Boot sector type: -
Boot sector info:

sdb3: __________________________________________________ ________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files: /grub/grub.cfg /grub/core.img

sdb4: __________________________________________________ ________________________

File system:
Boot sector type: Unknown
Boot sector info:
Mounting failed: mount: unknown filesystem type ''
mount: unknown filesystem type ''

md0: __________________________________________________ _________________________

File system: xfs
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.10
Boot files: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

md1: __________________________________________________ _________________________

File system: swap
Boot sector type: -
Boot sector info:

============================ Drive/Partition Info: =============================

Drive: sda __________________________________________________ ___________________

Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sda1 1 3,907,029,167 3,907,029,167 ee GPT


GUID Partition Table detected.

Partition Start Sector End Sector # of Sectors System
/dev/sda1 63,670,272 3,907,028,991 3,843,358,720 RAID partition (Linux)
/dev/sda2 1,169,408 63,670,271 62,500,864 RAID partition (Linux)
/dev/sda3 2,048 1,167,359 1,165,312 Data partition (Windows/Linux)
/dev/sda4 1,167,360 1,169,407 2,048 BIOS Boot partition

Drive: sdb __________________________________________________ ___________________

Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sdb1 1 3,907,029,167 3,907,029,167 ee GPT


GUID Partition Table detected.

Partition Start Sector End Sector # of Sectors System
/dev/sdb1 63,670,272 3,907,028,991 3,843,358,720 RAID partition (Linux)
/dev/sdb2 1,169,408 63,670,271 62,500,864 RAID partition (Linux)
/dev/sdb3 2,048 1,167,359 1,165,312 Data partition (Windows/Linux)
/dev/sdb4 1,167,360 1,169,407 2,048 BIOS Boot partition

"blkid" output: __________________________________________________ ______________

Device UUID TYPE LABEL

/dev/cciss/c0d0 979bb07e-d710-4715-a12a-b4ef7aa5fd1e xfs storage
/dev/md0 1eb79293-54cf-4478-abf4-656999904410 xfs root
/dev/md1 ada14a62-08bd-4498-9e10-3cc2556fbd2f swap
/dev/sda1 3a115645-f33f-1c7b-c310-e9df19028d76 linux_raid_member
/dev/sda2 3c4c17ac-0ef6-58b5-e7b5-addf3fde69fd linux_raid_member
/dev/sda3 66db7970-a3ca-4c8b-8c61-007df613d075 ext4 boot
/dev/sdb1 3a115645-f33f-1c7b-c310-e9df19028d76 linux_raid_member
/dev/sdb2 3c4c17ac-0ef6-58b5-e7b5-addf3fde69fd linux_raid_member
/dev/sdb3 79e9e771-2a98-4f99-a463-1ce16c1c5f71 ext4 boot

================================ Mount points: =================================

Device Mount_Point Type Options

/dev/cciss/c0d0 /mnt/storage xfs (rw,noatime,nodiratime,logbufs=8)
/dev/md0 / xfs (rw)
/dev/sda3 /boot ext4 (rw)
/dev/sdc3 /media/usbdrive hfsplus (rw)


============================= sda3/grub/grub.cfg: ==============================

--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
insmod vbe
insmod vga
}

insmod raid
insmod mdraid
insmod part_gpt
insmod part_gpt
insmod xfs
set root='(hd0,gpt1)'
search --no-floppy --fs-uuid --set 1eb79293-54cf-4478-abf4-656999904410
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod raid
insmod mdraid
insmod part_gpt
insmod part_gpt
insmod xfs
set root='(hd0,gpt1)'
search --no-floppy --fs-uuid --set 1eb79293-54cf-4478-abf4-656999904410
set locale_dir=($root)/boot/grub/locale
set lang=C.UTF-8
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=2
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.35-22-server' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod raid
insmod mdraid
insmod part_gpt
insmod part_gpt
insmod xfs
set root='(hd0,gpt1)'
search --no-floppy --fs-uuid --set 1eb79293-54cf-4478-abf4-656999904410
linux /boot/vmlinuz-2.6.35-22-server root=UUID=1eb79293-54cf-4478-abf4-656999904410 ro quiet
initrd /boot/initrd.img-2.6.35-22-server
}
menuentry 'Ubuntu, with Linux 2.6.35-22-server (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod raid
insmod mdraid
insmod part_gpt
insmod part_gpt
insmod xfs
set root='(hd0,gpt1)'
search --no-floppy --fs-uuid --set 1eb79293-54cf-4478-abf4-656999904410
echo 'Loading Linux 2.6.35-22-server ...'
linux /boot/vmlinuz-2.6.35-22-server root=UUID=1eb79293-54cf-4478-abf4-656999904410 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-22-server
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------

=================== sda3: Location of files loaded by Grub: ====================

GiB - GB File Fragment(s)

490.110088348 = 526.251700224 grub/core.img 1
1374.972408295 = 1476.365381632 grub/grub.cfg 1
1374.607902527 = 1475.973996544 initrd.img-2.6.35-22-server 1
490.309734344 = 526.466068480 vmlinuz-2.6.35-22-server 1

============================= sdb3/grub/grub.cfg: ==============================

--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
insmod vbe
insmod vga
}

insmod raid
insmod mdraid
insmod part_gpt
insmod part_gpt
insmod xfs
set root='(md0)'
search --no-floppy --fs-uuid --set 1eb79293-54cf-4478-abf4-656999904410
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_gpt
insmod ext2
set root='(hd0,gpt3)'
search --no-floppy --fs-uuid --set 79e9e771-2a98-4f99-a463-1ce16c1c5f71
set locale_dir=($root)/grub/locale
set lang=C.UTF-8
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=2
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.35-22-server' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_gpt
insmod ext2
set root='(hd0,gpt3)'
search --no-floppy --fs-uuid --set 79e9e771-2a98-4f99-a463-1ce16c1c5f71
linux /vmlinuz-2.6.35-22-server root=UUID=1eb79293-54cf-4478-abf4-656999904410 ro quiet
initrd /initrd.img-2.6.35-22-server
}
menuentry 'Ubuntu, with Linux 2.6.35-22-server (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_gpt
insmod ext2
set root='(hd0,gpt3)'
search --no-floppy --fs-uuid --set 79e9e771-2a98-4f99-a463-1ce16c1c5f71
echo 'Loading Linux 2.6.35-22-server ...'
linux /vmlinuz-2.6.35-22-server root=UUID=1eb79293-54cf-4478-abf4-656999904410 ro single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-2.6.35-22-server
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_gpt
insmod ext2
set root='(hd0,gpt3)'
search --no-floppy --fs-uuid --set 79e9e771-2a98-4f99-a463-1ce16c1c5f71
linux16 /memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_gpt
insmod ext2
set root='(hd0,gpt3)'
search --no-floppy --fs-uuid --set 79e9e771-2a98-4f99-a463-1ce16c1c5f71
linux16 /memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------

=================== sdb3: Location of files loaded by Grub: ====================

GiB - GB File Fragment(s)

0.147373199 = 0.158240768 grub/core.img 1
0.141609192 = 0.152051712 grub/grub.cfg 1
0.157226562 = 0.168820736 initrd.img-2.6.35-22-server 2
0.132530212 = 0.142303232 vmlinuz-2.6.35-22-server 1

=========================== md0/boot/grub/grub.cfg: ============================

--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
insmod vbe
insmod vga
}

insmod raid
insmod mdraid
insmod part_gpt
insmod part_gpt
insmod xfs
set root='(hd0,gpt1)'
search --no-floppy --fs-uuid --set 1eb79293-54cf-4478-abf4-656999904410
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod raid
insmod mdraid
insmod part_gpt
insmod part_gpt
insmod xfs
set root='(hd0,gpt1)'
search --no-floppy --fs-uuid --set 1eb79293-54cf-4478-abf4-656999904410
set locale_dir=($root)/boot/grub/locale
set lang=C.UTF-8
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=2
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.35-22-server' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod raid
insmod mdraid
insmod part_gpt
insmod part_gpt
insmod xfs
set root='(hd0,gpt1)'
search --no-floppy --fs-uuid --set 1eb79293-54cf-4478-abf4-656999904410
linux /boot/vmlinuz-2.6.35-22-server root=UUID=1eb79293-54cf-4478-abf4-656999904410 ro quiet
initrd /boot/initrd.img-2.6.35-22-server
}
menuentry 'Ubuntu, with Linux 2.6.35-22-server (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod raid
insmod mdraid
insmod part_gpt
insmod part_gpt
insmod xfs
set root='(hd0,gpt1)'
search --no-floppy --fs-uuid --set 1eb79293-54cf-4478-abf4-656999904410
echo 'Loading Linux 2.6.35-22-server ...'
linux /boot/vmlinuz-2.6.35-22-server root=UUID=1eb79293-54cf-4478-abf4-656999904410 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-22-server
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------

================================ md0/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/md0 during installation
UUID=1eb79293-54cf-4478-abf4-656999904410 / xfs defaults 0 1
# /boot was on /dev/sda3 during installation DON'T MOUNT BOOT BY DEFAULT
UUID=79e9e771-2a98-4f99-a463-1ce16c1c5f71 /boot ext4 relatime 0 2
# swap was on /dev/md1 during installation
UUID=ada14a62-08bd-4498-9e10-3cc2556fbd2f none swap sw 0 0

# /mnt/storage for raid partition
UUID=979bb07e-d710-4715-a12a-b4ef7aa5fd1e /mnt/storage xfs noatime,nodiratime,logbufs=8 0 2
--------------------------------------------------------------------------------

==================== md0: Location of files loaded by Grub: ====================

GiB - GB File Fragment(s)

490.109111786 = 526.250651648 boot/grub/core.img 1
1374.971431732 = 1476.364333056 boot/grub/grub.cfg 1
1374.606925964 = 1475.972947968 boot/initrd.img-2.6.35-22-server 1
490.308757782 = 526.465019904 boot/vmlinuz-2.6.35-22-server 1
1374.606925964 = 1475.972947968 initrd.img 1
490.308757782 = 526.465019904 vmlinuz 1

======================== Unknown MBRs/Boot Sectors/etc: ========================

Unknown BootLoader on sda4

00000000 52 e8 28 01 74 08 56 be 33 81 e8 4c 01 5e bf f4 |R.(.t.V.3..L.^..|
00000010 81 66 8b 2d 83 7d 08 00 0f 84 e9 00 80 7c ff 00 |.f.-.}.......|..|
00000020 74 46 66 8b 1d 66 8b 4d 04 66 31 c0 b0 7f 39 45 |tFf..f.M.f1...9E|
00000030 08 7f 03 8b 45 08 29 45 08 66 01 05 66 83 55 04 |....E.)E.f..f.U.|
00000040 00 c7 04 10 00 89 44 02 66 89 5c 08 66 89 4c 0c |......D.f.\.f.L.|
00000050 c7 44 06 00 70 50 c7 44 04 00 00 b4 42 cd 13 0f |.D..pP.D....B...|
00000060 82 bb 00 bb 00 70 eb 68 66 8b 45 04 66 09 c0 0f |.....p.hf.E.f...|
00000070 85 a3 00 66 8b 05 66 31 d2 66 f7 34 88 54 0a 66 |...f..f1.f.4.T.f|
00000080 31 d2 66 f7 74 04 88 54 0b 89 44 0c 3b 44 08 0f |1.f.t..T..D.;D..|
00000090 8d 83 00 8b 04 2a 44 0a 39 45 08 7f 03 8b 45 08 |.....*D.9E....E.|
000000a0 29 45 08 66 01 05 66 83 55 04 00 8a 54 0d c0 e2 |)E.f..f.U...T...|
000000b0 06 8a 4c 0a fe c1 08 d1 8a 6c 0c 5a 52 8a 74 0b |..L......l.ZR.t.|
000000c0 50 bb 00 70 8e c3 31 db b4 02 cd 13 72 50 8c c3 |P..p..1.....rP..|
000000d0 8e 45 0a 58 c1 e0 05 01 45 0a 60 1e c1 e0 03 89 |.E.X....E.`.....|
000000e0 c1 31 ff 31 f6 8e db fc f3 a5 1f e8 3e 00 74 06 |.1.1........>.t.|
000000f0 be 3b 81 e8 63 00 61 83 7d 08 00 0f 85 1d ff 83 |.;..c.a.}.......|
00000100 ef 0c e9 0f ff e8 24 00 74 06 be 3d 81 e8 49 00 |......$.t..=..I.|
00000110 5a ea 00 82 00 00 be 40 81 e8 3d 00 eb 06 be 45 |Z......@..=....E|
00000120 81 e8 35 00 be 4a 81 e8 2f 00 eb fe bb 17 04 80 |..5..J../.......|
00000130 27 03 c3 6c 6f 61 64 69 6e 67 00 2e 00 0d 0a 00 |'..loading......|
00000140 47 65 6f 6d 00 52 65 61 64 00 20 45 72 72 6f 72 |Geom.Read. Error|
00000150 00 bb 01 00 b4 0e cd 10 46 8a 04 3c 00 75 f2 c3 |........F..<.u..|
00000160 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001f0 00 00 00 00 01 d0 11 00 00 00 00 00 35 00 20 08 |............5. .|
00000200

Unknown BootLoader on sdb4

00000000 52 e8 28 01 74 08 56 be 33 81 e8 4c 01 5e bf f4 |R.(.t.V.3..L.^..|
00000010 81 66 8b 2d 83 7d 08 00 0f 84 e9 00 80 7c ff 00 |.f.-.}.......|..|
00000020 74 46 66 8b 1d 66 8b 4d 04 66 31 c0 b0 7f 39 45 |tFf..f.M.f1...9E|
00000030 08 7f 03 8b 45 08 29 45 08 66 01 05 66 83 55 04 |....E.)E.f..f.U.|
00000040 00 c7 04 10 00 89 44 02 66 89 5c 08 66 89 4c 0c |......D.f.\.f.L.|
00000050 c7 44 06 00 70 50 c7 44 04 00 00 b4 42 cd 13 0f |.D..pP.D....B...|
00000060 82 bb 00 bb 00 70 eb 68 66 8b 45 04 66 09 c0 0f |.....p.hf.E.f...|
00000070 85 a3 00 66 8b 05 66 31 d2 66 f7 34 88 54 0a 66 |...f..f1.f.4.T.f|
00000080 31 d2 66 f7 74 04 88 54 0b 89 44 0c 3b 44 08 0f |1.f.t..T..D.;D..|
00000090 8d 83 00 8b 04 2a 44 0a 39 45 08 7f 03 8b 45 08 |.....*D.9E....E.|
000000a0 29 45 08 66 01 05 66 83 55 04 00 8a 54 0d c0 e2 |)E.f..f.U...T...|
000000b0 06 8a 4c 0a fe c1 08 d1 8a 6c 0c 5a 52 8a 74 0b |..L......l.ZR.t.|
000000c0 50 bb 00 70 8e c3 31 db b4 02 cd 13 72 50 8c c3 |P..p..1.....rP..|
000000d0 8e 45 0a 58 c1 e0 05 01 45 0a 60 1e c1 e0 03 89 |.E.X....E.`.....|
000000e0 c1 31 ff 31 f6 8e db fc f3 a5 1f e8 3e 00 74 06 |.1.1........>.t.|
000000f0 be 3b 81 e8 63 00 61 83 7d 08 00 0f 85 1d ff 83 |.;..c.a.}.......|
00000100 ef 0c e9 0f ff e8 24 00 74 06 be 3d 81 e8 49 00 |......$.t..=..I.|
00000110 5a ea 00 82 00 00 be 40 81 e8 3d 00 eb 06 be 45 |Z......@..=....E|
00000120 81 e8 35 00 be 4a 81 e8 2f 00 eb fe bb 17 04 80 |..5..J../.......|
00000130 27 03 c3 6c 6f 61 64 69 6e 67 00 2e 00 0d 0a 00 |'..loading......|
00000140 47 65 6f 6d 00 52 65 61 64 00 20 45 72 72 6f 72 |Geom.Read. Error|
00000150 00 bb 01 00 b4 0e cd 10 46 8a 04 3c 00 75 f2 c3 |........F..<.u..|
00000160 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001f0 00 00 00 00 01 d0 11 00 00 00 00 00 35 00 20 08 |............5. .|
00000200

Gert Hulselmans
February 16th, 2011, 04:30 AM
Thanks for the files.

Hmm, the BIOS Boot partition thing, seems still broken.

Download the last version:
- should show the grub2 directory and partition grub2 looks at instead of:

=> Grub2 (v1.97-1.98) is installed in the MBR of /dev/sda and looks at sector
1167360 of the same hard drive for core.img, but core.img can not be found
at this location..
=> Grub2 (v1.97-1.98) is installed in the MBR of /dev/sdb and looks at sector
1167360 of the same hard drive for core.img, but core.img can not be found
at this location..

HiredGun79
February 16th, 2011, 04:34 AM
ok, here's something funky I noticed too - I tried booting with grub.cfg referencing

set root=(hd0,gpt3) - which should be my boot partition..

it still says "no such disk"

and when I do an


ls (hd0,gpt3)/

I get "unknown filesystem"

but if I do an

ls (hd0,gpt1)/
I see my root filesystem...

so confused...

HiredGun79
February 16th, 2011, 04:36 AM
downloading new version now - stand by for results... (rebooting from grub rescue to install cd rescue prompt... ) - be back in 2 min.

HiredGun79
February 16th, 2011, 04:44 AM
Here you go - thanks so much for the help on this... I owe you some beers (everyone)


Boot Info Script 0.56 from 8 February 2011


============================= Boot Info Summary: ===============================

=> Grub2 (v1.97-1.98) is installed in the MBR of /dev/sda and looks at sector
1167360 of the same hard drive for core.img, core.img is at this location
on /dev/sdb and looks for (md0)/boot/grub..
=> Grub2 (v1.97-1.98) is installed in the MBR of /dev/sdb and looks at sector
1167360 of the same hard drive for core.img, core.img is at this location
on /dev/sdb and looks for (md0)/boot/grub..

sda1: __________________________________________________ ________________________

File system: linux_raid_member
Boot sector type: -
Boot sector info:

sda2: __________________________________________________ ________________________

File system: linux_raid_member
Boot sector type: -
Boot sector info:

sda3: __________________________________________________ ________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:

sda4: __________________________________________________ ________________________

File system:
Boot sector type: Grub2's core.img
Boot sector info:
Mounting failed: mount: unknown filesystem type ''

sdb1: __________________________________________________ ________________________

File system: linux_raid_member
Boot sector type: -
Boot sector info:

sdb2: __________________________________________________ ________________________

File system: linux_raid_member
Boot sector type: -
Boot sector info:

sdb3: __________________________________________________ ________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files: /grub/grub.cfg /grub/core.img

sdb4: __________________________________________________ ________________________

File system:
Boot sector type: Grub2's core.img
Boot sector info:
Mounting failed: mount: unknown filesystem type ''
mount: unknown filesystem type ''

md0: __________________________________________________ _________________________

File system: xfs
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.10
Boot files: /etc/fstab

md1: __________________________________________________ _________________________

File system: swap
Boot sector type: -
Boot sector info:

============================ Drive/Partition Info: =============================

Drive: sda __________________________________________________ ___________________

Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sda1 1 3,907,029,167 3,907,029,167 ee GPT


GUID Partition Table detected.

Partition Start Sector End Sector # of Sectors System
/dev/sda1 63,670,272 3,907,028,991 3,843,358,720 RAID partition (Linux)
/dev/sda2 1,169,408 63,670,271 62,500,864 RAID partition (Linux)
/dev/sda3 2,048 1,167,359 1,165,312 Data partition (Windows/Linux)
/dev/sda4 1,167,360 1,169,407 2,048 BIOS Boot partition

Drive: sdb __________________________________________________ ___________________

Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sdb1 1 3,907,029,167 3,907,029,167 ee GPT


GUID Partition Table detected.

Partition Start Sector End Sector # of Sectors System
/dev/sdb1 63,670,272 3,907,028,991 3,843,358,720 RAID partition (Linux)
/dev/sdb2 1,169,408 63,670,271 62,500,864 RAID partition (Linux)
/dev/sdb3 2,048 1,167,359 1,165,312 Data partition (Windows/Linux)
/dev/sdb4 1,167,360 1,169,407 2,048 BIOS Boot partition

"blkid" output: __________________________________________________ ______________

Device UUID TYPE LABEL

/dev/cciss/c0d0 979bb07e-d710-4715-a12a-b4ef7aa5fd1e xfs storage
/dev/md0 1eb79293-54cf-4478-abf4-656999904410 xfs root
/dev/md1 ada14a62-08bd-4498-9e10-3cc2556fbd2f swap
/dev/sda1 3a115645-f33f-1c7b-c310-e9df19028d76 linux_raid_member
/dev/sda2 3c4c17ac-0ef6-58b5-e7b5-addf3fde69fd linux_raid_member
/dev/sda3 66db7970-a3ca-4c8b-8c61-007df613d075 ext4 boot
/dev/sdb1 3a115645-f33f-1c7b-c310-e9df19028d76 linux_raid_member
/dev/sdb2 3c4c17ac-0ef6-58b5-e7b5-addf3fde69fd linux_raid_member
/dev/sdb3 79e9e771-2a98-4f99-a463-1ce16c1c5f71 ext4 boot

================================ Mount points: =================================

Device Mount_Point Type Options

/dev/cciss/c0d0 /mnt/storage xfs (rw,noatime,nodiratime,logbufs=8)
/dev/md0 / xfs (rw)
/dev/sda3 /boot ext4 (rw)
/dev/sdc3 /media/usbdrive hfsplus (rw)


============================= sdb3/grub/grub.cfg: ==============================

--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
insmod vbe
insmod vga
}

insmod raid
insmod mdraid
insmod part_gpt
insmod part_gpt
insmod xfs
set root='(md0)'
search --no-floppy --fs-uuid --set 1eb79293-54cf-4478-abf4-656999904410
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_gpt
insmod ext2
set root='(hd0,gpt3)'
search --no-floppy --fs-uuid --set 79e9e771-2a98-4f99-a463-1ce16c1c5f71
set locale_dir=($root)/grub/locale
set lang=C.UTF-8
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=2
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.35-22-server' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_gpt
insmod ext2
set root='(hd0,gpt3)'
search --no-floppy --fs-uuid --set 79e9e771-2a98-4f99-a463-1ce16c1c5f71
linux /vmlinuz-2.6.35-22-server root=UUID=1eb79293-54cf-4478-abf4-656999904410 ro quiet
initrd /initrd.img-2.6.35-22-server
}
menuentry 'Ubuntu, with Linux 2.6.35-22-server (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_gpt
insmod ext2
set root='(hd0,gpt3)'
search --no-floppy --fs-uuid --set 79e9e771-2a98-4f99-a463-1ce16c1c5f71
echo 'Loading Linux 2.6.35-22-server ...'
linux /vmlinuz-2.6.35-22-server root=UUID=1eb79293-54cf-4478-abf4-656999904410 ro single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-2.6.35-22-server
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_gpt
insmod ext2
set root='(hd0,gpt3)'
search --no-floppy --fs-uuid --set 79e9e771-2a98-4f99-a463-1ce16c1c5f71
linux16 /memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_gpt
insmod ext2
set root='(hd0,gpt3)'
search --no-floppy --fs-uuid --set 79e9e771-2a98-4f99-a463-1ce16c1c5f71
linux16 /memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------

=================== sdb3: Location of files loaded by Grub: ====================

GiB - GB File Fragment(s)

0.147373199 = 0.158240768 grub/core.img 1
0.141609192 = 0.152051712 grub/grub.cfg 1
0.157226562 = 0.168820736 initrd.img-2.6.35-22-server 2
0.132530212 = 0.142303232 vmlinuz-2.6.35-22-server 1

================================ md0/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/md0 during installation
UUID=1eb79293-54cf-4478-abf4-656999904410 / xfs defaults 0 1
# /boot was on /dev/sda3 during installation DON'T MOUNT BOOT BY DEFAULT
UUID=79e9e771-2a98-4f99-a463-1ce16c1c5f71 /boot ext4 relatime 0 2
# swap was on /dev/md1 during installation
UUID=ada14a62-08bd-4498-9e10-3cc2556fbd2f none swap sw 0 0

# /mnt/storage for raid partition
UUID=979bb07e-d710-4715-a12a-b4ef7aa5fd1e /mnt/storage xfs noatime,nodiratime,logbufs=8 0 2
--------------------------------------------------------------------------------

=============================== StdErr Messages: ===============================

./boot_info_script.dev2.sh: line 2188: cd: /boot/: No such file or directory

HiredGun79
February 16th, 2011, 04:51 AM
ok, so not sure what that means...

seems like it's looking for stuff on both sda, sdb and md0... but I'm probably reading that wrong...

psusi
February 16th, 2011, 05:04 AM
You did not have /boot mounted when you installed grub so it is looking in your root (md0) instead of your /boot (/dev/sda3).

HiredGun79
February 16th, 2011, 05:06 AM
Hmm, /dev/sda3 was definitely mounted at /boot when I did a grub-install.. aha, I think I got it.. hang on a second... I had an idea...

HiredGun79
February 16th, 2011, 05:12 AM
so the mistake I made (I think, it's trying to boot now) is that I had /dev/sda3 mounted and then when I did a grub install I did

grub-install /dev/sda
grub-install /dev/sdb

when I should have done

<confirm that /dev/sda3 is mounted at /boot>
grub-install /dev/sda

umount /dev/sda3
mount /dev/sdb3 /boot

grub-install /dev/sdb

------

Ok, so it made it to the grub menu, which is further than I've gotten previously..

and now when I try to boot the first option I get this



error: no such device: 79e9e771-2a98-4f99-a463-1ce16c1c5f71.
error: no such partition.
error you need to load the kernel first.

Press any key to continue. . .

HiredGun79
February 16th, 2011, 05:14 AM
that means it's looking for /dev/sdb3

I wonder if that's because I did a 2nd grub install on sdb.. going back to rescue prompt and confirming that sda3 is mounted at /boot and doing a grub-install /dev/sda and then rebooting to see if the situation changes...

HiredGun79
February 16th, 2011, 05:22 AM
ok, so rather than do that, I just edited the grub commands from the grub prompt and sure enough, it was looking for (hd1,gpt3) as root, instead of (hd0,gpt3) as root...

I made the change and it booted up - seems fine..

So, this gets me up and running - but not entirely redundant.. well, root and swap are raided, so if a disk dies, machine will be fine until a reboot, then it'll suck wind...

I'll take any advice on the proper way to get this set up in the future... I got linux booting into a raid1 set up a long time ago.. and I vaguely remember it being a PITA... and this time the process was totally different.. I think it was gentoo + LILO last time, I forget.

Anyway, definitely will take any advice!

Thanks

HiredGun79
February 16th, 2011, 05:30 AM
Hmm, so after booting (first time in a few days without the rescue cd!) I noticed that /dev/sdb3 was mounted as /boot

so I umounted that and mounted /dev/sda3 on /boot

then ran a grub-install /dev/sda thinking that it would tell grub2 that it should set root as (hd0,gpt3) - I rebooted after grub installed on /dev/sda with no errors

Upon reboot, got the exact same error message as before - so manually edited the grub command so that the root is set to (hd0,gpt3) rather than (hd1,gpt3)

I have a sneaky suspicion that if I now do an update-grub that it'll make that change... are my spider senses correct?

Thanks again!

HiredGun79
February 16th, 2011, 05:38 AM
Hmm, nope - that didn't work - maybe if I boot it up, then umount /dev/sdb3 from /boot, mount /dev/sda3 on /boot, then do an update-grub..

I'm being long-winded on here, so if anyone else stumbles into the same situation they have as much info as possible..

Ok, so that's strange... after booting up that time, it said that my RAID is degraded and it took me to a recovery prompt..

(initramfs)

so it's clearly less happy than it was before...

psusi
February 16th, 2011, 05:49 AM
When you install grub, you need to have /dev/md0 mounted as /, not /dev/sda1, and /dev/sda3 mounted as /boot.

psusi
February 16th, 2011, 05:51 AM
In fact, if you have mounted /dev/sda1 directly, then you have corrupted the raid array and need to resync it.

HiredGun79
February 16th, 2011, 05:57 AM
ok, so I'm fairly sure that I've always did grub-install when /dev/md0 was mounted as / - because it's been from the ubuntu install recovery mode and I execute a shell on /dev/md0 as root..

I am back to where the grub menu tries to set root as (hd1,gpt3) and I have to manually edit the launch command to set root to (hd0,gpt3) and then it boots up, everything looks fine - /dev/md0 is mounted as / and oddly, /dev/sdb3 is mounted on /boot

the way I got back to this state was I booted into the rescue cd, created a terminal on /dev/md0 mounted as /

made sure that /dev/sdb3 was mounted as /boot and did a grub-install /dev/sdb
then umounted /dev/sdb3 and mounted /dev/sda3 and did a grub-install /dev/sda

then rebooted... so I'm back where I was a few minutes ago, where I have to manually edit the commands in the grub menu before it successfully boots...

Any recommendations to make this a bit better? (I realize that it definitely could be... )

Thanks again...

psusi
February 16th, 2011, 03:59 PM
Did you fix the duplicate UUID?

HiredGun79
February 16th, 2011, 04:04 PM
the boot partitions have different UUIDs now.