Problem booting generic kernel and another problem with fluxbox - libpng warning
I made a post before that booting was slow but I realized I been booting the huge kernel that is used by default all this time. I been trying to use the generic kernel instead and read the mkinitrd man page and README.initrd in /boot and tried it but had no luck.
My partition scheme looks like: Code:
/dev/sda1 /boot ext2 Code:
mkinitrd -c -k 2.6.29.6 -m mbcache:jbd:ext4 -f ext4 -r /dev/sda2 This was my original /etc/lilo.conf Code:
# End LILO global section Code:
# Linux bootable partition config begins __________________________ Also I have problem with fluxbox. Although I can set the background wallpaper with ~/.fluxbox/init, Code:
session.screen0.rootCommand: fbsetbg -f /home/myname/Pictures/background.png Quote:
I'm curring using (doing fbsetbg -i) Code:
wmsetbg is a nice wallpapersetter. You won't have any problems. |
What's the "boot=" set to in lilo.conf.
How do you know you are booting the huge kernel. Also, try setting "compact" in lilo.conf, as without that all kernels appear to load slowly. Cheers. |
Quote:
When I reinstalled slackware yesterday and loaded the huge.s kernel, it's the same as what's loading when I boot this desktop which is slow. I already did the compact in lilo.conf but that's not the slow part since the entire .... gets loaded in 2 seconds. |
I solved the fluxbox problem by using feh from slackbuilds to set my wallpaper.
The other error along is all solved since I noticed fluxbox was trying to load xmodmap on start but I removed that. The linpng warning was because of something was wrong with the image and I replaced it and the warning disappeared. I can't seem to solve the mkinitrd problem though. According to the README.initrd, the method I posted should be perfect. When I installed slackware, I did a full install so the requirement that's listed in the README should be fulfilled. When I installed it, I remember seeing something like "generic-kernel-2.6.29.6 (requires mkinitrd)" so I think I'm still loading the huge kernel since the mkinitrd doesn't seem to be working. I'm not sure if this matters but doing "uname -a" gives me: Quote:
|
mkinitrd -c -k 2.6.29.6 -m mbcache:jbd:ext4 -f ext4 -r /dev/sda2
You don't have the modules for your chipset. |
Quote:
Code:
# Code:
mkinitrd -c -k 2.6.29.6 -f ext4 -r /dev/sda2 -m usbhid:ehci-hcd:uhci-hcd:crc16:jbd2:mbcache:ext4 -o /boot/initrd.gz Code:
root@myname:/boot# ls -a Code:
# Linux bootable partition config begins I doubled checked if I have the requirement listed in the README and it looked fine. Quote:
|
Quote:
For my PC which has an Intel P45 chipset with ICH10 controller, also has a JMicron controller, but the hard drives are attached to the ICH10 controller, I would include - -m shpchp:ahci:ext4 You want to do lspci -k to get the modules in use for anything that says SATA, or IDE interface - which ever your boot drive is connected to. Out of habbit I always include the PCI bridge (shpchp). USB is not needed for an intrid unless you are booting from an USB drive. An initrd should only contain the modules neccessary to get / mounted. Once / is mounted the kernel will auto load the modules on demand as needed. If you post a complete lspci -k we'll help you with an initrd. |
Quote:
Code:
00:00.0 Host bridge: Intel Corporation 5520/5500/X58 I/O Hub to ESI Port (rev 13) |
Try this for the -m section
Code:
-m ext4:shpchp:ahci:ata_piix:pata_jmicron |
Quote:
My original mkinitrd is: Code:
mkinitrd -c -k 2.6.29.6 -f ext4 -r /dev/sda2 -m usbhid:ehci-hcd:uhci-hcd:crc16:jbd2:mbcache:ext4 -o /boot/initrd.gz Code:
mkinitrd -c -k 2.6.29.6 -f ext4 -r /dev/sda2 -m ext4:shpchp:ahci:ata_piix:pata_jmicron -o /boot/initrd.gz Code:
mkinitrd -c -k 2.6.29.6 -f ext4 -r /dev/sda2 -m ext4:shpchp:ahci:ata_piix:pata_jmicron I was wondering about this because I have a seperate /boot and /root partition and maybe this could cause a problem but I noticed you said /root so /boot has nothing to do with this? |
The -o options tells mkinitrd where to drop it's file at. This helps when running more than one kernel or more than one initrd. So you can -o /boot/test1.gz -o /boot/initrd2.gz -o /some/where/something.gz
The intitrd should go into /boot to keep things sane. Kernels, configs .... keep them in once place - just makes things easier By default, not passing an -o option, mkinitrd makes the file as /boot/initrd.gz. So, -o /boot/initrd.gz is the default :) |
Quote:
|
I finished testing it and nothing changed. I already had a initrd.gz in /boot so maybe I should rm initrd-tree/ and initrd.gz from /boot then redo it again?
|
Quote:
edit -------- re-re-read the entire post again. Changing from Huge to generic kernel will not make a big difference in boot speed. Changing these kernels will only effect the initial decompression of the kernel. Maybe 2-4 seconds depending on your PC. Things to speed up boot time - add noatime to your fstab. The part that says defaults - change that to noatime. chmod -x non essestial services in /etc/rc.d edit /etc/rc.d/rc.M to stop some of the gtk updating and ldconfig. NOTE these serve a purpose and are a good idea, but if you're impatient they can save a few more seconds. Make a backup copy first. |
Quote:
|
All times are GMT -5. The time now is 04:17 AM. |