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.
I need to enable up to 4gb ram support in slackware 10.2, i already have the 2.6kernel installed, but its only detected 1gb of my 2gb ram, i would also like to enable dual core support if it is not running already.
Is there anyway i can mod this into the current kernel without going through the hasle of compling a new one from scratch?
You need to recompile your kernel, but as prozac already said, it can be kickstarted by using the Slackware kernel .config file, so that all defaults are already set when you run "make xconfig".
Thanks for that, right i compiled a new kernel, and added it to lilo, when i boot and select it i get:
VFS: Cannot open root device "802" or unknown-block (8,2)
Please append a correct "root=" boot option
Kernel Panic-not syncing: VFS: unable to mount root fs on unknown block(8,2)
Am i correct in thinking this is a problem with lilo? Im fairly sure its configured correctly here it is:
Code:
# LILO configuration file
boot = /dev/sda
message = /boot/boot_message.txt
prompt
timeout = 1200
# Override dangerous defaults that rewrite the partition table:
change-rules
reset
vga = normal
default=Linux
other = /dev/sda1
label="Windows"
table = /dev/sda
# Windows bootable partition config ends
# Linux bootable partition config begins
image="/dev/sda1"
image="/dev/sda1"
root="/dev/sda2"
image="/boot/vmlinuz"
root="/dev/sda2"
label="Linux"
read-only
image=/boot/vm-linuz-2.6.16.18
label=newkernel
root=/dev/sda2
read-only
# Linux bootable partition config ends
If it helps the lilo gui in kde says its an invalid config the kernel image file is definatly /boot/vm-linuz-2.6.16.18
EDIT: I did include the correct file systems in the kernel.
VFS: Cannot open root device "802" or unknown-block (8,2)
Please append a correct "root=" boot option
Kernel Panic-not syncing: VFS: unable to mount root fs on unknown block(8,2)
That would be an indication of the fact that the filesystem drivers for your boot partition are not included in the kernel but built as kernel modules (this is the way the Slackware 2.6 kernel is built nowadays). You will need to build an initrd that includes the drivers for your filesystem (jbd and ext3 if yours is a ext3 filesystem, or reiserfs in case you run reiser as your filesystem).
Boot the computer into an older working kernel, and then build an initrd for the new kernel:
Code:
mkinitrd -c -k 2.6.16.18 -m jbd:ext3
(the example assumes a 2.6.16.18 kernel), and then add a line "initrd = /boot/initrd.gz" to /etc/lilo.conf:
it could be very well like Alien-Bob said you should make all your neccessary filesystems modules as built-in and not modules. its pretty much clearly stated in kernel howto if i still remember.
Sorry for being a complete noob here , but i cant seem to see a new paragraph regarding initrd on your wiki, i have hard refreshed to , by the way thanks very much for making that tutorial its really good.
I have ran the command from /boot in 2 versions, but i get:
Code:
root@tserver:/boot# mkinitrd -c -k 2.6.16.18 -m jbd:ext3
WARNING: Could not find module for "jbd"
WARNING: Could not find module for "ext3"
root@tserver:/boot# mkinitrd -c -k vm-linuz-2.6.16.18 -m jbd:ext3
find: /lib/modules/vm-linuz-2.6.16.18: No such file or directory
WARNING: Could not find module for "jbd"
find: /lib/modules/vm-linuz-2.6.16.18: No such file or directory
WARNING: Could not find module for "ext3"
Oops sorry... the modified Wiki page is online now.
Regarding those errors about WARNING: Could not find module for "jbd", it looks like your jbd and ext3 drivers are not available as modules, i.e. you built them into your kernel. If you do have an ext3 filesystem on your root partition and still get kernel panics with this kernel, could it be that you are missing a SCSI or a SATA driver for your disk controller? I noticed you refer to "/dev/sda2" which indicates as much. You might have to create an initrd containing those missing modules, or add the appropriate scsi/sata driver(s) into your kernel.
Yes i did run the make modules_install, but as i said im pretty sure i said Yes to ext3 in the menu config rather than the module option, so maybe they never got made as modules :s I have fixed lilo now, do i need to start from scratch and build the file system is as modules or is there another way?
kernel's are not something you compile and run everyday (unless you are a super geek). so it pays later when you build a kernel that suits your need perfectly instead of having to adjust everytime you reboot. so my suggestion would be to log back in using your old kernel. make a fresh compile giving due consideration to each and every option under make menuconfig and then reach for your lilo.conf for final adjustments. trust you will be a lot happier.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.