I imaged my laptop and put it on my desktop machine. I edited all the usual files (fstab, menu.lst, ...) and got grub to boot fine. I upgraded my kernel but grub's menu.lst file was updated with the new kernel names and the OLD hard drive partitions from the laptop. So instead of hda3 as my root, menu.lst was changed back to the laptop config of hda1 which of course, didn't work.
So my question is, where is this info stored so I can change it? I know I'm look for something with Debian AUTOMAGIC.
Duh! The menu.lst has the default values in the AUTOMAGIC section. It uses these to update all the kernel listings.
### BEGIN AUTOMAGIC KERNELS LIST
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=/dev/hda3 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,2)
So my question is, where is this info stored so I can change it? I know I'm look for something with Debian AUTOMAGIC.
Duh! The menu.lst has the default values in the AUTOMAGIC section. It uses these to update all the kernel listings.
### BEGIN AUTOMAGIC KERNELS LIST
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=/dev/hda3 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,2)