PDA

View Full Version : [ubuntu] 9.10 64, GRUB can't boot XP in RAID-1



Lundis500
January 12th, 2010, 08:12 PM
Hello everyone, I'm a long time windows user and it-tech but I have long felt that my geek-levels were too low so I installed Ubuntu last week (9.10 x64). Hopefully I can make it my primary OS.
I have two 80GB drives in RAID-1 from my nforce raid controller, nforce 570 chipset.
Then a 320 GB drive where I placed ubuntu and it's also where grub placed itself.
And also a 1TB drive.

When grub tries to boot XP I get the error message: "error: invalid signature"
I checked the forum as much as I could and tried a few things, but no change.

Drives sdc and sdd are the two drives in raid, they are matched exactly, but detected as different here. I really think they should be seen as one drive.

So any suggestions on how I can make grub work as it should?

Also, if/when I need to make changes to grub, do I really have to use the live CD?


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

=> Grub 1.97 is installed in the MBR of /dev/sda and looks on the same drive
in partition #1 for /boot/grub.
=> Windows is installed in the MBR of /dev/sdb
=> Windows is installed in the MBR of /dev/sdc
=> Windows is installed in the MBR of /dev/sdd
sda1: __________________________________________________ _______________________

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

sda2: __________________________________________________ _______________________

File system: Extended Partition
Boot sector type: -
Boot sector info:

sda5: __________________________________________________ _______________________

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

sda6: __________________________________________________ _______________________

File system: vfat
Boot sector type: -
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:

sdb1: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:

sdc1: __________________________________________________ _______________________

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

sdd1: __________________________________________________ _______________________

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

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

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x712135ce

Partition Boot Start End Size Id System

/dev/sda1 * 63 234,516,869 234,516,807 83 Linux
/dev/sda2 234,516,870 455,410,619 220,893,750 5 Extended
/dev/sda5 234,516,933 242,517,239 8,000,307 82 Linux swap / Solaris
/dev/sda6 242,517,303 455,410,619 212,893,317 b W95 FAT32


Drive: sdb ___________________ __________________________________________________ ___

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0xeaa8eaa8

Partition Boot Start End Size Id System

/dev/sdb1 63 1,953,520,064 1,953,520,002 7 HPFS/NTFS


Drive: sdc ___________________ __________________________________________________ ___

Disk /dev/sdc: 82.0 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders, total 160086528 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x6890a99e

Partition Boot Start End Size Id System

/dev/sdc1 * 63 156,296,384 156,296,322 7 HPFS/NTFS


Drive: sdd ___________________ __________________________________________________ ___

Disk /dev/sdd: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x6890a99e

Partition Boot Start End Size Id System

/dev/sdd1 * 63 156,296,384 156,296,322 7 HPFS/NTFS


blkid -c /dev/null: __________________________________________________ __________

sda1: UUID="32dc6b4c-0a1e-4263-957a-b4330b15a19d" TYPE="ext4"
sda5: UUID="b201e0c0-8af8-4a06-b3a4-cf09d6b8199f" TYPE="swap"
sda6: LABEL="SPIN32" UUID="25CB-BF1E" TYPE="vfat"
sdb1: UUID="E4405E59405E3292" LABEL="Terra" TYPE="ntfs"

=============================== "mount" output: ===============================

aufs on / type aufs (rw)
none on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
/dev/sr0 on /cdrom type iso9660 (rw)
/dev/loop0 on /rofs type squashfs (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/ubuntu/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=ubuntu)
/dev/sda6 on /media/SPIN32 type vfat (rw,nosuid,nodev,uhelper=devkit,uid=999,gid=999,sh ortname=mixed,dmask=0077,utf8=1,flush)


=========================== sda1/boot/grub/grub.cfg: ===========================

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

### BEGIN /etc/grub.d/00_header ###
if [ -s /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 32dc6b4c-0a1e-4263-957a-b4330b15a19d
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
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/white
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-17-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 32dc6b4c-0a1e-4263-957a-b4330b15a19d
linux /boot/vmlinuz-2.6.31-17-generic root=UUID=32dc6b4c-0a1e-4263-957a-b4330b15a19d ro quiet splash
initrd /boot/initrd.img-2.6.31-17-generic
}
menuentry "Ubuntu, Linux 2.6.31-17-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 32dc6b4c-0a1e-4263-957a-b4330b15a19d
linux /boot/vmlinuz-2.6.31-17-generic root=UUID=32dc6b4c-0a1e-4263-957a-b4330b15a19d ro single
initrd /boot/initrd.img-2.6.31-17-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 32dc6b4c-0a1e-4263-957a-b4330b15a19d
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=32dc6b4c-0a1e-4263-957a-b4330b15a19d ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 32dc6b4c-0a1e-4263-957a-b4330b15a19d
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=32dc6b4c-0a1e-4263-957a-b4330b15a19d ro single
initrd /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/mapper/nvidia_bfhicdge1)" {
drivemap -s (hd0) ${root}
chainloader +1
}
### 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 ###

=============================== sda1/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 defaults 0 0
# / was on /dev/sda1 during installation
UUID=32dc6b4c-0a1e-4263-957a-b4330b15a19d / ext4 errors=remount-ro 0 1
# /spin32 was on /dev/sda6 during installation
UUID=25CB-BF1E /spin32 vfat utf8,umask=007,gid=46 0 1
# swap was on /dev/sda5 during installation
UUID=b201e0c0-8af8-4a06-b3a4-cf09d6b8199f none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0

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


.0GB: boot/grub/core.img
.0GB: boot/grub/grub.cfg
.0GB: boot/initrd.img-2.6.31-14-generic
.0GB: boot/initrd.img-2.6.31-17-generic
.0GB: boot/vmlinuz-2.6.31-14-generic
.0GB: boot/vmlinuz-2.6.31-17-generic
.0GB: initrd.img
.0GB: initrd.img.old
.0GB: vmlinuz
.0GB: vmlinuz.old
=========================== Unknown MBRs/Boot Sectors/etc =======================

Unknown BootLoader on sdc1


Unknown BootLoader on sdd1



=======Devices which don't seem to have a corresponding hard drive==============

sde sdf sdg sdh
=============================== StdErr Messages: ===============================

hexdump: /dev/sdc1: No such file or directory
hexdump: /dev/sdc1: No such file or directory
hexdump: /dev/sdd1: No such file or directory
hexdump: /dev/sdd1: No such file or directory

wkulecz
January 12th, 2010, 08:18 PM
If you've setup your Windows RAID using the motherboard's BIOS, its using what Linux calls "fakeraid". I believe the new grub 2 boot loader has issues with fakeraid. Google fakeraind and grub 2 and you should find a solution if there is one.

I setup a Windows 7 system using fakeraid (raid1) and the hit to disk performance has me thinking it may have been a mistake, but I put reliability over performance for this system.

--wally.

Lundis500
January 12th, 2010, 10:08 PM
It seems you're right, the forum threads I found were not encouraging. So I read some guides on grub itself to remove the option to boot XP and shorten the time. It was much too complicated and I was in very deep water dong it. I moved away the 30_os-prober script so it wouldn't add windows. Isn't there a better way?

But grub is now working as it should (without XP) and I didn't break anything.
So on to the next problem/challenge. Thanks.