On Sun, 2006-10-15 at 22:24 +1300, David Harrison wrote:
Hello,
I am running OpenSUSE 10 with an LVM root partition named /dev/sys/
system. I want to change my root partition from the /dev/sys/system volume
to /dev/sys/primary.

The /dev/sys/primary partition is all setup and the required files
exist on it. I have edited grub so the entry looks like the following:

title SUSE LINUX 10.0
     root (hd0,0)
kernel /vmlinuz root=/dev/sys/primary selinux=0 splash=silent showopts
     initrd /initrd

On rebooting I receive a kernel panic saying "could not find record
for sys/primary in database".

I am guessing it is an issue with the initrd file.
I have rebuilt the initrd file using the command:
mkinitrd -k vmlinuz-2.6.13-15.12-default -i initrd-2.6.13-15.12-
default -d /dev/sys/primary

The rebuild had no effect, the system will happily boot into /dev/sys/
system if asked to but will not recognize /dev/sys/primary.

I solved my problem and the answer was really dumb.

The old /dev/sys/system was reiserfs and the new /dev/sys/primary ext3.

I had forgotten to add ext3 to the list of kernel modules to include in the initrd image hence whilst the volume group was being activated successfully the partition could not be mounted as root.

I added ext3, rebuilt initrd, rebooted and all worked fine.


David
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to