Results 1 to 5 of 5
I'm trying to install Slackware 10.2 on an LVM partition but am a bit stuck. I know that Slackware has LVM support, as when I boot the install CD, the ...
- 10-11-2005 #1Just Joined!
- Join Date
- Oct 2005
- Location
- 127.0.0.1
- Posts
- 1
Installing Slackware 10.2 on an LVM Partition
I'm trying to install Slackware 10.2 on an LVM partition but am a bit stuck. I know that Slackware has LVM support, as when I boot the install CD, the LVM line scolls by. Can ayone give a walkthrough or link me to one that can help? Thanks for any help.
Note: I can't use Partition Magic because Windows isn't on the computer.
- 10-12-2006 #2Just Joined!
- Join Date
- Mar 2006
- Location
- Finland
- Posts
- 11
Here's a quick HOW-TO:
-boot test26.s ( I like 2.6 series)
-use fdisk to create partitions, make atleast one lvm partition (type 8e)
-create and mount a temporary ram-disk and move some stuff in there
-Install device-mapper, lvm2, kernel-modules-2.6 and modules-tools packages.Code:mkdir /ram mount -t tmpfs none /ram mv /sbin /ram mv /bin /ram mv /lib/modules /ram /ram/bin/ln -s /ram/sbin / /ram/bin/ln -s /ram/bin / /ram/bin/ln -s /ram/modules /lib
-Create the necessary files so you can load the correct modules
- Load the dm-mod moduleCode:echo "/lib/modules/2.6.13/kernel/drivers/md/dm-mod.ko" > /lib/modules/2.6.13/modules.dep
- Start setup and follow it until you've mounted the root file system and then switch to another console.Code:insmod /lib/modules/2.6.13/kernel/drivers/md/dm-mod.ko
- Create the LVM thingys
- Mount the lvm-partitionsCode:vgscan pvcreate /dev/sda3 vgcreate /dev/sda3 vg lvcreate -L1G -nusr vg lvcreate -L1G -nhome vg mkreiserfs /dev/vg/usr mkreiserfs /dev/vg/home
- Continue installation until the endCode:cd /mnt mkdir home usr mount /dev/vg/usr usr mount /dev/vg/home home
After installation don't reboot.
- Chroot to new slack installation
- Mount the cdrom and install device-mapper, lvm2 and kernel-modules-2.6 again.Code:chroot /mnt source /etc/profile
- Run 'vgscan'
-Configure fstab for the lvm-partitions
- Install / Configure Grub / LILO if necessary
Note that if you use lvm on your root partition you need to have initrd which will enable lvm during boot.
Hope this helps
- 10-12-2006 #3Just Joined!
- Join Date
- Mar 2006
- Location
- Finland
- Posts
- 11
Heh, just noticed the year of the original posting

Well, better late than never...
- 10-20-2006 #4Just Joined!
- Join Date
- Oct 2006
- Posts
- 1
initrd lvm help
zmyrgel
Hey, I was looking around for slackware on lvm how to, found your reply. I figured out that far myself, up installation, etc. Can you tell me how to build the initrd with lvm support. I am booting of an IDE.
Thanks.
- 10-20-2006 #5Just Joined!
- Join Date
- Mar 2006
- Location
- Finland
- Posts
- 11
I usually leave the root device outside of LVM so the system will boot nicely. I recall the lvm-package had a lvm-makeinitrd script which could be usefull.
Originally Posted by cathal
Basic need in the initrd is to have the 'lvm' program (cp 'which lvm' /boot/initrd-tree/sbin) in there with it's depencecies (ldd /sbin/lvm) and then copy those to /boot/initrd-tree/lib. Then modify the linuxrc / init file.
Add the lines to:
lvm vgscan --ignorelockingfailure --mknodes
lvm vgchange -a y --ignorelockingfailure
mount the root device then
As I said I haven't used lvm on root device with Slack. Debian and Arch have nice utilities which make the process easy (yaird, mkinitcpio).
Google a bit for the init file. Here's one made for Debian
lvm2create_initrd


Reply With Quote
