SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Does that mean that I should have installed lilo either in the MBR (which I do not want to do) or at least outside the LVM ?
If you install lilo in your root partition which itself is inside the LVM, I'm not sure what will make your system boot.
I'm no expert but installing lilo in the MBR when using LVM makes sense to me because then at boot you can run some code to make your LVM available. Technical information about that were given in a previous post from trhodes in this thread.
If you do not want to put lilo in MBR, I guess the alternative is to put it in another place outside the LVM. But then you reach the end of my limited knowledge on this topic
To install Slackware 13 in a LVM I followed instructions from the README_LVM.TXT written by Eric Hameleers and tried to install lilo in my root partition (in the LVM):
Code:
boot = /dev/vg/root
I thought it had worked, but at reboot I got the infamous message:
Code:
No sig. in partition
Does that mean that I should have installed lilo either in the MBR (which I do not want to do) or at least outside the LVM ?
Sorry to hijack this thread but this is also a LVM question, isn't it ?
1. Unless you use another main boot manager (in the MBR) and indend to chain-load, install lilo in the MBR.
2. Make sure to follow the instructions in the README_LVM.TXT step by step, especially concerning the creation of initrd (with the "-L" parameter to mkinitrd) and adding the generic-smp-2.6.29.6-smp kernel to the lilo.conf.
If I remember correctly, this is not possible...
I use LVM as well on my machine, and the LVM partitions can only be mounted later on in the boot process (in /etc/rc.d/rc.S).
So you will need to have / mounted before you can mount the LVM volumes.
But, maybe there is a way... won't be simple though.
No, you are not right. There is currently no problem having the root partition on LVM, provided that one uses initrd image.
I just did a 13.0 install using LVM and initrd. I created 2 partitions and left /boot outside the LVM. My setup:
sda1 - /boot
sda2 - LVM - containing logical volumes for /root, /home and swap
My /boot *had* to remain outside the LVM because the system is encrypted... Something to consider if you decide to check out encrypted filesystems later on.
It's a chicken-and-egg problem, you need to be able to access the LVM software before you can access the logical volumes, so if the LVM software is on the logical volumes you can't load it to enable access to the logical volumes; therefore, it has to be located somewhere that you have access to before loading LVM, such as an initrd image on a non-LVM /boot partition, for example.
OK, forget it: I ended up creating only two primary partitions, one for swap (4G) and one for / (remaining space). So:
- I didn't have to set up an extended partition
- I won't have to re size anything, so no need for LVM
- I could install lilo on the root partition
Only remaining question: why am I not able to find simple ways to do things at first
I like LVM, but I always have ext2/3/4 `/boot` and `swap` partitions first (or at the very least `/boot`) and then the rest of the disk is LVM. This lets me make small partitions as needed and expand them if ever comes to that (which so far has only happened once).
Reading all posts I agree with tramni1980 that README_LVM.TXT is a well written manual for installing Slack on LVM, as I have tried it on a Sun virtual box and installation was successful. My problem is when trying to migrate from existing installation to LVM. I have tryed http://www.unixwerk.eu/linux/slack/lvm2root.html a couple of times but in this case after editing lilo.conf and run lilo, there is a
Lilo fatal Linux experimental device 0x04x needs to be defined
Check man lilo.conf under disk= and max_partitions=
message. Is there anyone who has a successful migration to LVM?
Reading all posts I agree with tramni1980 that README_LVM.TXT is a well written manual for installing Slack on LVM, as I have tried it on a Sun virtual box and installation was successful. My problem is when trying to migrate from existing installation to LVM. I have tryed http://www.unixwerk.eu/linux/slack/lvm2root.html a couple of times but in this case after editing lilo.conf and run lilo, there is a
Lilo fatal Linux experimental device 0x04x needs to be defined
Check man lilo.conf under disk= and max_partitions=
message. Is there anyone who has a successful migration to LVM?
I would like to ask the lvm users with /root on an lvm partition, what boot parameters they pass to the kernel, when in a pinch? That is, what kernel parameters they pass to the hugesmp kernel when using the rescue cd to boot?
I've not tested it personally, but I think that you just need to use the default parameters. LVM will be taken care of automatically.
Code:
hugesmp.s root=/dev/hda1 noinitrd ro
Change /dev/hda1 if your LVM partition is somewhere else.
I see, but so long as I have read so far, even if a kernel has lvm support built-in, as hugesmp does, it still needs an initrd to activate the lvm volumes beforehand. That is why I suppose in the case of lvm on root, some boot parameter has to be passed to hugesmp to do the job.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.