Slackware This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
10-28-2009, 05:53 PM
|
#1
|
|
Member
Registered: Oct 2009
Location: Canada
Distribution: Gentoo, Slackware, Arch
Posts: 97
Rep:
|
kernel 2.6.31.5 will not boot
Has anyone had any experience installing and running the latest kernel (2.6.31.5)? I was trying to compile and run it (downloaded from kernel.org) so I could take advantage of the X-Fi support that is not in the 2.6.29 kernel found in slackware 13. I had a nice kernel compiled but it would not boot. Then I tried using the stock settings and that would not boot either. It gives me an error about not being able to mount the root partition and gives me the idea of specifying root= the next time I boot.
The slightly tricky thing is that I have an external eSATA drive that mounts as /dev/sda in some situations and /dev/sdc in others. I have tried several ways to do the boot and nothing seems to work. Is anyone else having any issues with newer kernels on slackware? If I revert to the old kernel everything is fine again, but I don't have X-Fi support.
|
|
|
|
10-28-2009, 05:59 PM
|
#2
|
|
Senior Member
Registered: Jul 2005
Distribution: Slackware
Posts: 2,006
Rep: 
|
You probably have to specify the root when you do mkinitrd, like this:
Code:
mkinitrd -c -k 2.6.31.5-smp -m ext4 -f ext4 -r /dev/sda2
Of course, you'll have to run lilo after this.
If you at least have the right modules in your initrd, you can mount the root manually when it asks you to
Code:
mount -o ro /dev/sda2 /mnt
|
|
|
|
10-28-2009, 06:16 PM
|
#3
|
|
Member
Registered: Oct 2009
Location: Canada
Distribution: Gentoo, Slackware, Arch
Posts: 97
Original Poster
Rep:
|
I just tried that using /dev/sdb1 and /dev/sdc1 (if external is sda it will bump everything down by one). I get a slightly different message that /dev/sdb1 could not be mounted on /mnt. Something like "no such file or directory".
|
|
|
|
10-29-2009, 12:57 AM
|
#4
|
|
Member
Registered: Jun 2008
Distribution: Slackware
Posts: 95
Rep:
|
Did you add the large-memory option in /etc/lilo.conf ?
from ftp://ftp.slackware.com/pub/slackwar...ADME_FIRST.TXT
Code:
Due to the size of the 2.6.30.5 kernel and initrd, many BIOSes cannot boot
the kernel/ramdisk combination for i686, and most (if not all) will have
problems with the x86_64 kernel/ramdisk unless this option is added to the
/etc/lilo.conf:
large-memory
This allows LILO to use more than the first 15MB of RAM. LILO does not use
this option by default since it doesn't work with some older systems (BIOSes
from before around 2001). LILO tries to detect the amount of space that will
be required to decompress the kernel, but some adjustment to the code is
going to be needed, or perhaps we will have to investigate alternatives for
the bootloader. In any case, that's something for Slackware 13.1 or 14.0, or
whatever happens down the line.
The option can go into the lilo.conf global section. It actually works just
fine to make it the first uncommented line of the file.
|
|
|
|
10-29-2009, 03:34 AM
|
#5
|
|
Member
Registered: Jul 2008
Location: Stockholm, Sweden
Distribution: Slackware 13.1 32-bit
Posts: 145
Rep:
|
Hi!
Please provide some more info.
e.g.
cat /proc/cmdline
cat /rootdev
cat /rootfs
cat /proc/partitions
lsmod
lspci -v
|
|
|
|
10-29-2009, 10:14 AM
|
#6
|
|
Member
Registered: Oct 2009
Location: Canada
Distribution: Gentoo, Slackware, Arch
Posts: 97
Original Poster
Rep:
|
Large-memory didn't make a difference but I am noticing that it is saying something about not being able to mount root device "821". Is this some kind of code for the partition or is something terribly wrong?
|
|
|
|
10-29-2009, 11:14 AM
|
#7
|
|
Member
Registered: Oct 2009
Location: Canada
Distribution: Gentoo, Slackware, Arch
Posts: 97
Original Poster
Rep:
|
I think I've royally screwed up the root partition somehow. I tried putting it back to the 2.6.29.6 kernel but now every time I boot I get prompted to check the filesystem and it will not fully boot. I try running fsck.ext4 /dev/sdb1 but it comes back clean without even looking like it has done anything.
Also, I am not able to open up config files in vi because it says something about /var/tmp being too full or too busy or something like that. I can't even reboot most of the time because it gives me the error "timeout opening/writing control channel /dev/initctl".
Is it time to reinstall?
This was all in my attempt to provide the information requested.
|
|
|
|
10-29-2009, 02:21 PM
|
#8
|
|
Moderator
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 10,339
|
Hi,
What happens when you use the install cd/dvd to boot your kernel?
|
|
|
|
10-29-2009, 03:54 PM
|
#9
|
|
Member
Registered: Oct 2009
Location: Canada
Distribution: Gentoo, Slackware, Arch
Posts: 97
Original Poster
Rep:
|
I tried booting using huge.s root=/dev/sdb1 ro but it just goes directly to the install environment. Isn't it supposed to boot the real partition with the install kernel?
Seems like it is getting some error from a "boot array".
|
|
|
|
10-29-2009, 04:32 PM
|
#10
|
|
Moderator
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 10,339
|
Hi,
What is the name for the image that you are wanting to boot? You will find it in '/boot' of your boot device;
Code:
sample of '/boot';
# ls /boot
README.initrd boot_message.txt diag1.img slack.bmp
System.map config diag2.img vmlinuz
System.map-generic-2.6.29.6 config-2.6.32-rc5kms-1a initrd-generic-2.6.30.5.gz vmlinuz-2.6.32-rc5kms-1a
System.map-generic-2.6.30.5 config-generic-2.6.29.6 initrd-tree vmlinuz-generic-2.6.29.6
System.map-huge-2.6.29.6 config-generic-2.6.30.5 initrd.gz vmlinuz-generic-2.6.30.5
boot.0800 config-huge-2.6.29.6 map vmlinuz-huge-2.6.29.6
Notice in the above there are several 'images' that are available for this system.
I could supply the ' vmlinuz-2.6.32-rc5kms-1a' image as the kernel.

|
|
|
|
10-29-2009, 04:39 PM
|
#11
|
|
Member
Registered: Oct 2009
Location: Canada
Distribution: Gentoo, Slackware, Arch
Posts: 97
Original Poster
Rep:
|
The image I was trying to boot was /boot/vmlinuz which is a link to /boot/vmlinuz-huge-2.6.29.6. But when trying from the cd I assume I only need to supply huge.s and it will load that kernel from the install cd.
|
|
|
|
10-29-2009, 04:45 PM
|
#12
|
|
Member
Registered: Oct 2009
Location: Canada
Distribution: Gentoo, Slackware, Arch
Posts: 97
Original Poster
Rep:
|
I have tried reinstalling the kernel package from the disk as well.
|
|
|
|
10-29-2009, 05:59 PM
|
#13
|
|
Member
Registered: Oct 2009
Location: Canada
Distribution: Gentoo, Slackware, Arch
Posts: 97
Original Poster
Rep:
|
Well, I think I figured out why it wouldn't boot right. I tried turning off the external hard drive for simplicity and as a result the root partition was being recognized as /dev/sdb1 but in the /etc/fstab the root partition was listed as /dev/sdc1 so it wasn't finding the partition. I reinstalled before I figured this out. I found out because the reinstall and first boot went fine but once I overwrote the /etc directory with my backups I was back to a non booting system. I wouldn't be surprised if the new kernel wasn't booting because it recognized things in a different order. I mean, the Arch Linux install I have recognizes the external hard drive as sdc but the Arch Linux boot cd recognizes it as sda so that is quite strange.
Still no X-Fi working yet but I am doing another recompile to see if I can figure that out.
|
|
|
|
10-29-2009, 06:15 PM
|
#14
|
|
Senior Member
Registered: Jul 2005
Distribution: Slackware
Posts: 2,006
Rep: 
|
I think you can set up your udev rules so that it always assigns your external hard drive to a specific device name rather than letting it (unpredictably) name your drives depending on whether it's plugged in while you're booting.
|
|
|
|
10-29-2009, 06:49 PM
|
#15
|
|
Moderator
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 10,339
|
Hi,
Quote:
Originally Posted by diamondsandrain
The image I was trying to boot was /boot/vmlinuz which is a link to /boot/vmlinuz-huge-2.6.29.6. But when trying from the cd I assume I only need to supply huge.s and it will load that kernel from the install cd.
|
NO!
By using 'huge.s' you are telling to use the kernel from the cd/dvd.
Your assumptions are wrong. If you want to use your 'working' installed kernel in '/boot' then you need to designate it.
As for your 'udev' recognition you can setup the rules to reflect your setup. It does sound like a miss configuration for the initial install.

|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:42 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|