muddysmind
May 3rd, 2011, 03:40 PM
[SOLVED]
Followed steps 2-5 and purged/reinstalled grub now it boots as it should, NO idea where it was messed up. http://ubuntuforums.org/showthread.php?t=1581099
Hello all,
Hoping someone has an idea for this ongoing issue.
I had 9.10 running in raid1 and upgraded my hardware (cpu, mb, memory etc) and wanted to do a fresh install of 10.04 to get updated.
After following the various guides online such as http://blog.foobaria.com/2010/05/installing-ubuntu-1004-desktop-with.html . (http://blog.foobaria.com/2010/05/installing-ubuntu-1004-desktop-with.html)
It begins to load grub and drops to a "grub> " shell.
Which I have to do the following to get it to boot.
set root=(md1)
linux /vmlinuz root=/dev/md1 ro
initrd /initrd.img
boot
Then it boots up normally and I can use it like any other desktop.
I've been over my grub.cfg and /etc/defaut/grub files and cannot find the issue.
At this point I'm wondering if the fact it's a raid1 setup is keeping grub from finding it's files.
Here is the grub config files as well.
$ cat /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 $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 raid
insmod mdraid
insmod reiserfs
set root='(md1)'
search --no-floppy --fs-uuid --set 94e14dca-6047-4d83-9d2b-f4a47a41acfd
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=1920x1080
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 raid
insmod mdraid
insmod reiserfs
set root='(md1)'
search --no-floppy --fs-uuid --set 94e14dca-6047-4d83-9d2b-f4a47a41acfd
set locale_dir=($root)/boot/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-31-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod raid
insmod mdraid
insmod reiserfs
set root='(md1)'
search --no-floppy --fs-uuid --set 94e14dca-6047-4d83-9d2b-f4a47a41acfd
linux /boot/vmlinuz-2.6.32-31-generic root=UUID=94e14dca-6047-4d83-9d2b-f4a47a41acfd ro quiet splash
initrd /boot/initrd.img-2.6.32-31-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-31-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod raid
insmod mdraid
insmod reiserfs
set root='(md1)'
search --no-floppy --fs-uuid --set 94e14dca-6047-4d83-9d2b-f4a47a41acfd
echo 'Loading Linux 2.6.32-31-generic ...'
linux /boot/vmlinuz-2.6.32-31-generic root=UUID=94e14dca-6047-4d83-9d2b-f4a47a41acfd ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-31-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-28-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod raid
insmod mdraid
insmod reiserfs
set root='(md1)'
search --no-floppy --fs-uuid --set 94e14dca-6047-4d83-9d2b-f4a47a41acfd
linux /boot/vmlinuz-2.6.32-28-generic root=UUID=94e14dca-6047-4d83-9d2b-f4a47a41acfd ro quiet splash
initrd /boot/initrd.img-2.6.32-28-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-28-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod raid
insmod mdraid
insmod reiserfs
set root='(md1)'
search --no-floppy --fs-uuid --set 94e14dca-6047-4d83-9d2b-f4a47a41acfd
echo 'Loading Linux 2.6.32-28-generic ...'
linux /boot/vmlinuz-2.6.32-28-generic root=UUID=94e14dca-6047-4d83-9d2b-f4a47a41acfd ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-28-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod raid
insmod mdraid
insmod reiserfs
set root='(md1)'
search --no-floppy --fs-uuid --set 94e14dca-6047-4d83-9d2b-f4a47a41acfd
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod raid
insmod mdraid
insmod reiserfs
set root='(md1)'
search --no-floppy --fs-uuid --set 94e14dca-6047-4d83-9d2b-f4a47a41acfd
linux16 /boot/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 ###
$ cat /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=1920x1080
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_LINUX_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
I already ran grub-install on both sda and sdb, as well as grub-update a few times.
Here is the drive setup if needed.
$ sudo mdadm --misc --detail /dev/md1
/dev/md1:
Version : 00.90
Creation Time : Sun May 1 20:49:24 2011
Raid Level : raid1
Array Size : 32764416 (31.25 GiB 33.55 GB)
Used Dev Size : 32764416 (31.25 GiB 33.55 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 1
Persistence : Superblock is persistent
Update Time : Tue May 3 10:37:50 2011
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
UUID : af199e5a:ae11db21:e368bf24:bd0fce41
Events : 0.38
Number Major Minor RaidDevice State
0 8 1 0 active sync /dev/sda1
1 8 17 1 active sync /dev/sdb1
$ sudo fdisk -l
Disk /dev/sdb: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 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: 0x00069e1c
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 4079 32764536 83 Linux
/dev/sdb2 4080 4340 2096482+ 82 Linux swap / Solaris
/dev/sdb3 4341 24321 160497382+ 83 Linux
Disk /dev/sda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 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: 0x00069e1c
Device Boot Start End Blocks Id System
/dev/sda1 * 1 4079 32764536 83 Linux
/dev/sda2 4080 4340 2096482+ 82 Linux swap / Solaris
/dev/sda3 4341 24321 160497382+ 83 Linux
Disk /dev/md1: 33.6 GB, 33550761984 bytes
2 heads, 4 sectors/track, 8191104 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/md1 doesn't contain a valid partition table
Disk /dev/md3: 164.3 GB, 164349214720 bytes
2 heads, 4 sectors/track, 40124320 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/md3 doesn't contain a valid partition table
Followed steps 2-5 and purged/reinstalled grub now it boots as it should, NO idea where it was messed up. http://ubuntuforums.org/showthread.php?t=1581099
Hello all,
Hoping someone has an idea for this ongoing issue.
I had 9.10 running in raid1 and upgraded my hardware (cpu, mb, memory etc) and wanted to do a fresh install of 10.04 to get updated.
After following the various guides online such as http://blog.foobaria.com/2010/05/installing-ubuntu-1004-desktop-with.html . (http://blog.foobaria.com/2010/05/installing-ubuntu-1004-desktop-with.html)
It begins to load grub and drops to a "grub> " shell.
Which I have to do the following to get it to boot.
set root=(md1)
linux /vmlinuz root=/dev/md1 ro
initrd /initrd.img
boot
Then it boots up normally and I can use it like any other desktop.
I've been over my grub.cfg and /etc/defaut/grub files and cannot find the issue.
At this point I'm wondering if the fact it's a raid1 setup is keeping grub from finding it's files.
Here is the grub config files as well.
$ cat /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 $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 raid
insmod mdraid
insmod reiserfs
set root='(md1)'
search --no-floppy --fs-uuid --set 94e14dca-6047-4d83-9d2b-f4a47a41acfd
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=1920x1080
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 raid
insmod mdraid
insmod reiserfs
set root='(md1)'
search --no-floppy --fs-uuid --set 94e14dca-6047-4d83-9d2b-f4a47a41acfd
set locale_dir=($root)/boot/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-31-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod raid
insmod mdraid
insmod reiserfs
set root='(md1)'
search --no-floppy --fs-uuid --set 94e14dca-6047-4d83-9d2b-f4a47a41acfd
linux /boot/vmlinuz-2.6.32-31-generic root=UUID=94e14dca-6047-4d83-9d2b-f4a47a41acfd ro quiet splash
initrd /boot/initrd.img-2.6.32-31-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-31-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod raid
insmod mdraid
insmod reiserfs
set root='(md1)'
search --no-floppy --fs-uuid --set 94e14dca-6047-4d83-9d2b-f4a47a41acfd
echo 'Loading Linux 2.6.32-31-generic ...'
linux /boot/vmlinuz-2.6.32-31-generic root=UUID=94e14dca-6047-4d83-9d2b-f4a47a41acfd ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-31-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-28-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod raid
insmod mdraid
insmod reiserfs
set root='(md1)'
search --no-floppy --fs-uuid --set 94e14dca-6047-4d83-9d2b-f4a47a41acfd
linux /boot/vmlinuz-2.6.32-28-generic root=UUID=94e14dca-6047-4d83-9d2b-f4a47a41acfd ro quiet splash
initrd /boot/initrd.img-2.6.32-28-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-28-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod raid
insmod mdraid
insmod reiserfs
set root='(md1)'
search --no-floppy --fs-uuid --set 94e14dca-6047-4d83-9d2b-f4a47a41acfd
echo 'Loading Linux 2.6.32-28-generic ...'
linux /boot/vmlinuz-2.6.32-28-generic root=UUID=94e14dca-6047-4d83-9d2b-f4a47a41acfd ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-28-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod raid
insmod mdraid
insmod reiserfs
set root='(md1)'
search --no-floppy --fs-uuid --set 94e14dca-6047-4d83-9d2b-f4a47a41acfd
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod raid
insmod mdraid
insmod reiserfs
set root='(md1)'
search --no-floppy --fs-uuid --set 94e14dca-6047-4d83-9d2b-f4a47a41acfd
linux16 /boot/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 ###
$ cat /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=1920x1080
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_LINUX_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
I already ran grub-install on both sda and sdb, as well as grub-update a few times.
Here is the drive setup if needed.
$ sudo mdadm --misc --detail /dev/md1
/dev/md1:
Version : 00.90
Creation Time : Sun May 1 20:49:24 2011
Raid Level : raid1
Array Size : 32764416 (31.25 GiB 33.55 GB)
Used Dev Size : 32764416 (31.25 GiB 33.55 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 1
Persistence : Superblock is persistent
Update Time : Tue May 3 10:37:50 2011
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
UUID : af199e5a:ae11db21:e368bf24:bd0fce41
Events : 0.38
Number Major Minor RaidDevice State
0 8 1 0 active sync /dev/sda1
1 8 17 1 active sync /dev/sdb1
$ sudo fdisk -l
Disk /dev/sdb: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 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: 0x00069e1c
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 4079 32764536 83 Linux
/dev/sdb2 4080 4340 2096482+ 82 Linux swap / Solaris
/dev/sdb3 4341 24321 160497382+ 83 Linux
Disk /dev/sda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 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: 0x00069e1c
Device Boot Start End Blocks Id System
/dev/sda1 * 1 4079 32764536 83 Linux
/dev/sda2 4080 4340 2096482+ 82 Linux swap / Solaris
/dev/sda3 4341 24321 160497382+ 83 Linux
Disk /dev/md1: 33.6 GB, 33550761984 bytes
2 heads, 4 sectors/track, 8191104 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/md1 doesn't contain a valid partition table
Disk /dev/md3: 164.3 GB, 164349214720 bytes
2 heads, 4 sectors/track, 40124320 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/md3 doesn't contain a valid partition table