[mythtv-users] Grub won't load my menu.lst file
stichnot at gmail.com
Thu May 7 16:44:15 UTC 2009
I replaced my backend machine's boot disk with a larger drive, and now
grub refuses to automatically load linux at boot time. Instead, it
gives me the grub command line, and I can type "configfile
/grub/menu.lst" and everything boots fine from there. The original
drive gives me the MythDora 5 splash screen and autoboots after 5
seconds. Any ideas?
Here's how I migrated to the new drive. I booted the original drive
with the new drive attached as /dev/sdc. I partitioned sdc into
/boot, /, swap, and /storage, and set partition 1 (/boot) as bootable.
All 3 file system partitions are ID 0x83 (Linux) and have ext3 file
systems. I used rsync to copy over the contents of the partitions.
Then I reduced the runlevel, stopped the backend and mysql, and did a
final rsync to catch any changes after the all-night rsync run. I ran
grub, "root (hd2,0)", "setup (hd2)", "quit".
The one unusual thing is that I didn't use LVM on the new disk.
(MythDora sets up LVM by default, but I don't know how to use LVM, and
if I do a naive clone, linux doesn't seem to like having two disks
with the same volume names or whatever.) This means that I had to
change /etc/fstab and menu.lst on the new disk to use /dev/sdXX
instead of the LVM names. I don't see why that would affect grub's
automatic loading of menu.lst, but maybe there's something.
Here is my menu.lst file, identical to the original disk except for
title MythDora (184.108.40.206-64.fc8)
kernel /vmlinuz-220.127.116.11-64.fc8 ro root=/dev/sda2 rhgb quiet
Here is the result of running grub with just the new disk installed:
grub> root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 16 sectors are embedded.
Running "install /boot/grub/stage1 (hd0) (hd0)1+16 p (hd0,0)/boot/grub/stage2
More information about the mythtv-users