I followed Eric's guide on the Slackware DVD, with deviations for my particular machine.
I'm concerned that the machine is booting very slowly. I thought that it should boot much faster w/an initrd, so before I start building things on this box I want to make sure I don't need to start all over again.
Below are the steps I followed for my particular installation:
1.) Boot Slackware DVD and login as root.
2.) Run fdisk
I created one big primary partition of 200 GBytes
'a' to toggle the bootable flag on partition 1 (did I need to do this? I assume so, although there was no mention of this in Eric's guide).
't' to change the partition type on partition 1 to that of '8e' (Linux LVM).
2.) Create the volumes
Code:
# pvcreate /dev/sda1
# vgcreate myvg /dev/sda1
# lvcreate -L 1G -n boot myvg
# lvcreate -L 4G -n swap myvg
# lvcreate -L 40G -n root myvg
# lvcreate -l 100%FREE -n home myvg
# mkswap /dev/myvg/swap
# setup
Here's the mount points and filesystem choices I used:
Code:
/dev/myvg/root / xfs
/dev/myvg/boot /boot ext3
/dev/myvg/swap swap swap
/dev/myvg/home /home xfs
I installed lilo on the MBR (I never understood why I would want to install the MBR to root anyway, maybe someone could explain how/when/why one would?).
After exiting setup, I did the following:
Code:
# chroot /mnt
# /usr/share/mkinitrd/mkinitrd_command_generator.sh
# mkinitrd -c -k 2.6.38.7 -f xfs -r /dev/myvg/root -m mptbase:mptscsih:mptspi:exportfs:xfs:ext3 -L -u -o /boot/initrd.gz
The only difference between what the script generated and what I used was the addition of the "ext3 module, which I figured I would need since /boot is on an Extended 3 filesystem.
Was I correct in thinking that? Might there have been a better way to construct the mkinitrd invocation?
I changed /etc/lilo.conf from:
Code:
image = /boot/vmlinuz
root = /dev/myvg/root
label = Linux
read-only
To:
Code:
image = /boot/vmlinuz-generic-2.6.38.7
initrd = /boot/initrd.gz
root = /dev/myvg/root
label = Linux
read-only
And finally:
Code:
# lilo
# exit
# reboot
The system seems fine once it is running, but it takes a couple of minutes before it starts to boot after hitting enter at the boot prompt.
When using the 'huge' kernels, booting was really fast in the past with only a few 'dots' after "Linux....." before taking off into hyperspace.
I waited for a long time and then the system came up. I thought that initial key generation and such initial boot stuff was the reason but when I rebooted again... it took forever to boot again.
Yes, it is -current, but I don't think that shouldn't make a difference.
In case it helps, there's a paste up of my dmesg
here, and my fstab is below:
/etc/fstab:
Code:
/dev/myvg/swap swap swap defaults 0 0
/dev/myvg/root / xfs defaults 1 1
/dev/myvg/boot /boot ext3 defaults 1 2
/dev/myvg/home /home xfs defaults 1 2
#/dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0