On Saturday 03 February 2007 02:27, Joe Morris (NTM) wrote:
Add this to this file.
### Added 10.0 Boot ### title openSUSE 10.0 root (hd1,2) kernel (hd1,0)/vmlinuz root=/dev/hdb3 vga=0x31a resume=/dev/hdb2 splash=silent showopts initrd (hd1,0)/initrd
Sorry, watch the wrapping. Perhaps some explanation of the above will help. [Note, i changed a few items above from original try]. root is for grub to find the root of the OS (I originally thought it needed to be the boot partition). I forgot since I have not had a separate boot for some years. Kernel like is to load the kernel image. Here I added
Bob S wrote: the grub notation to find vmlinuz on the boot partition in the root of that partition. My root line above appears to be wrong from a few pages I have seen searching online, but I have no way of determining what it would be for your system. Check out http://www.rocklinux.org/wiki/Root_on_LVM and http://www.linuxforums.org/forum/redhat-fedora-linux-help/61630-grub-lvm-mul... it appears from these it may be something like (hd1,2)/dev/VolGroup00/LogVol00 or something like it. BTW, according to the release notes, Yasts partition tool can handle LVMs and might at least allow you to get to your data while we get this working. It might also help figure out what the root= line should be.
OK, did as instructed. Sadly it did not work. Does it matter where it is placed in the file?
Yes, I assumed you would add it after the last entry, but it would only change the number for which is the default choice if you do not choose.
fdisk -l /dev/hdb gives me 3 partitions. A 1G boot partition, a 1G swap partition, and a 28G LVM (which I have my home and all other partions on as LVM's)
Is that one hdb3? or did you have any extended partitions?
Yes that LVM is hdb3
Sorry, like I said, not that familiar with lvm. Is it called /dev/hdb3 like normal, or what is it called? For example, I run a raid 1, so mine is /dev/md0.
Yes. Are you thinking that the boot parameters are inside the LVM? No, your root partition is in there. That's why you called root=/dev/hdb3 in the script? No, that is because that is where your root partition is (i.e. /). When that didn't work I went ahead and changed it to root=/dev/hdb1. That didn't work either.
That is your boot partition. You need a separate boot (I checked the release notes) if you use a lvm. Inside your boot partition (hdb1) is your kernel and most importantly your initrd, which I would assume is fine since you haven't messed with hdb. Your initrd will have the necessary modules to recognize your lvm volume. -- Joe Morris Registered Linux user 231871 running openSUSE 10.2 x86_64 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org