deesto
September 13th, 2010, 09:57 PM
I've just finished booting my system via Live CD, and installing 10.04-1 to existing partitions on a hardware RAID. The install went fine but when I rebooted I didn't get past the BIOS output screens.
I used four existing partitions for the install: /home (MyRAID3, which was kept as-is), / (MyRAID2, which was reformatted) , /boot (MyRAID1, also reformatted) and swap.
ubuntu@ubuntu:/$ ls -l /dev/mapper/
total 0
crw-rw---- 1 root root 10, 59 2010-09-13 20:06 control
brw-rw---- 1 root disk 252, 0 2010-09-13 20:40 isw_eagjcbhhdi_MyRAID
brw-rw---- 1 root disk 252, 1 2010-09-13 20:38 isw_eagjcbhhdi_MyRAID1
brw-rw---- 1 root disk 252, 2 2010-09-13 20:06 isw_eagjcbhhdi_MyRAID2
brw-rw---- 1 root disk 252, 3 2010-09-13 20:06 isw_eagjcbhhdi_MyRAID3
brw-rw---- 1 root disk 252, 4 2010-09-13 20:06 isw_eagjcbhhdi_MyRAID5
brw-rw---- 1 root disk 252, 5 2010-09-13 20:06 isw_eagjcbhhdi_MyRAID6
ubuntu@ubuntu:/$ sudo fdisk /dev/mapper/isw_eagjcbhhdi_MyRAID
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').
Command (m for help): p
Disk /dev/mapper/isw_eagjcbhhdi_MyRAID: 1500.3 GB, 1500299395072 bytes
255 heads, 63 sectors/track, 182401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0003e2da
Device Boot Start End Blocks Id System
/dev/mapper/isw_eagjcbhhdi_MyRAID1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/mapper/isw_eagjcbhhdi_MyRAID2 64 26173 209715200 83 Linux
/dev/mapper/isw_eagjcbhhdi_MyRAID3 26173 39227 104857600 83 Linux
/dev/mapper/isw_eagjcbhhdi_MyRAID4 39228 50454 90180847 5 Extended
/dev/mapper/isw_eagjcbhhdi_MyRAID5 39228 40011 6291456 82 Linux swap / Solaris
/dev/mapper/isw_eagjcbhhdi_MyRAID6 40012 50454 83883366 83 Linux
ubuntu@ubuntu:/$ cat /myraid/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 $prefix/grubenv ]; then
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
}
insmod ext2
set root='(hd2,2)'
search --no-floppy --fs-uuid --set 10946159-42ff-4fca-a24e-76ae337ca5f3
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
insmod ext2
set root='(hd2,1)'
search --no-floppy --fs-uuid --set 93733999-1ed6-4daa-a78d-d6bec9909629
set locale_dir=($root)/grub/locale
set lang=en
insmod gettext
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/light-gray
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.32-24-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd2,1)'
search --no-floppy --fs-uuid --set 93733999-1ed6-4daa-a78d-d6bec9909629
linux /vmlinuz-2.6.32-24-generic root=UUID=10946159-42ff-4fca-a24e-76ae337ca5f3 ro quiet splash
initrd /initrd.img-2.6.32-24-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-24-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd2,1)'
search --no-floppy --fs-uuid --set 93733999-1ed6-4daa-a78d-d6bec9909629
echo 'Loading Linux 2.6.32-24-generic ...'
linux /vmlinuz-2.6.32-24-generic root=UUID=10946159-42ff-4fca-a24e-76ae337ca5f3 ro single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-2.6.32-24-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd2,1)'
search --no-floppy --fs-uuid --set 93733999-1ed6-4daa-a78d-d6bec9909629
linux16 /memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd2,1)'
search --no-floppy --fs-uuid --set 93733999-1ed6-4daa-a78d-d6bec9909629
linux16 /memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
if [ ${timeout} != -1 ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### 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 ###
I've read through some tutorials on getting the raid picked up on boot, but I keep getting stuck:
ubuntu@ubuntu:/$ sudo apt-get install dmraid
Reading package lists... Done
Building dependency tree
Reading state information... Done
dmraid is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
ubuntu@ubuntu:/$ sudo dmraid -ay
RAID set "isw_eagjcbhhdi_MyRAID" already active
RAID set "isw_eagjcbhhdi_MyRAID1" already active
RAID set "isw_eagjcbhhdi_MyRAID2" already active
RAID set "isw_eagjcbhhdi_MyRAID3" already active
RAID set "isw_eagjcbhhdi_MyRAID5" already active
RAID set "isw_eagjcbhhdi_MyRAID6" already active
What else do I need to do in order to get grub to boot from my RAID-ed boot partition?
Thanks!
I used four existing partitions for the install: /home (MyRAID3, which was kept as-is), / (MyRAID2, which was reformatted) , /boot (MyRAID1, also reformatted) and swap.
ubuntu@ubuntu:/$ ls -l /dev/mapper/
total 0
crw-rw---- 1 root root 10, 59 2010-09-13 20:06 control
brw-rw---- 1 root disk 252, 0 2010-09-13 20:40 isw_eagjcbhhdi_MyRAID
brw-rw---- 1 root disk 252, 1 2010-09-13 20:38 isw_eagjcbhhdi_MyRAID1
brw-rw---- 1 root disk 252, 2 2010-09-13 20:06 isw_eagjcbhhdi_MyRAID2
brw-rw---- 1 root disk 252, 3 2010-09-13 20:06 isw_eagjcbhhdi_MyRAID3
brw-rw---- 1 root disk 252, 4 2010-09-13 20:06 isw_eagjcbhhdi_MyRAID5
brw-rw---- 1 root disk 252, 5 2010-09-13 20:06 isw_eagjcbhhdi_MyRAID6
ubuntu@ubuntu:/$ sudo fdisk /dev/mapper/isw_eagjcbhhdi_MyRAID
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').
Command (m for help): p
Disk /dev/mapper/isw_eagjcbhhdi_MyRAID: 1500.3 GB, 1500299395072 bytes
255 heads, 63 sectors/track, 182401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0003e2da
Device Boot Start End Blocks Id System
/dev/mapper/isw_eagjcbhhdi_MyRAID1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/mapper/isw_eagjcbhhdi_MyRAID2 64 26173 209715200 83 Linux
/dev/mapper/isw_eagjcbhhdi_MyRAID3 26173 39227 104857600 83 Linux
/dev/mapper/isw_eagjcbhhdi_MyRAID4 39228 50454 90180847 5 Extended
/dev/mapper/isw_eagjcbhhdi_MyRAID5 39228 40011 6291456 82 Linux swap / Solaris
/dev/mapper/isw_eagjcbhhdi_MyRAID6 40012 50454 83883366 83 Linux
ubuntu@ubuntu:/$ cat /myraid/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 $prefix/grubenv ]; then
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
}
insmod ext2
set root='(hd2,2)'
search --no-floppy --fs-uuid --set 10946159-42ff-4fca-a24e-76ae337ca5f3
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
insmod ext2
set root='(hd2,1)'
search --no-floppy --fs-uuid --set 93733999-1ed6-4daa-a78d-d6bec9909629
set locale_dir=($root)/grub/locale
set lang=en
insmod gettext
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/light-gray
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.32-24-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd2,1)'
search --no-floppy --fs-uuid --set 93733999-1ed6-4daa-a78d-d6bec9909629
linux /vmlinuz-2.6.32-24-generic root=UUID=10946159-42ff-4fca-a24e-76ae337ca5f3 ro quiet splash
initrd /initrd.img-2.6.32-24-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-24-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd2,1)'
search --no-floppy --fs-uuid --set 93733999-1ed6-4daa-a78d-d6bec9909629
echo 'Loading Linux 2.6.32-24-generic ...'
linux /vmlinuz-2.6.32-24-generic root=UUID=10946159-42ff-4fca-a24e-76ae337ca5f3 ro single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-2.6.32-24-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd2,1)'
search --no-floppy --fs-uuid --set 93733999-1ed6-4daa-a78d-d6bec9909629
linux16 /memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd2,1)'
search --no-floppy --fs-uuid --set 93733999-1ed6-4daa-a78d-d6bec9909629
linux16 /memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
if [ ${timeout} != -1 ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### 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 ###
I've read through some tutorials on getting the raid picked up on boot, but I keep getting stuck:
ubuntu@ubuntu:/$ sudo apt-get install dmraid
Reading package lists... Done
Building dependency tree
Reading state information... Done
dmraid is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
ubuntu@ubuntu:/$ sudo dmraid -ay
RAID set "isw_eagjcbhhdi_MyRAID" already active
RAID set "isw_eagjcbhhdi_MyRAID1" already active
RAID set "isw_eagjcbhhdi_MyRAID2" already active
RAID set "isw_eagjcbhhdi_MyRAID3" already active
RAID set "isw_eagjcbhhdi_MyRAID5" already active
RAID set "isw_eagjcbhhdi_MyRAID6" already active
What else do I need to do in order to get grub to boot from my RAID-ed boot partition?
Thanks!