LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-05-2006, 09:53 AM   #1
Kristian2
Member
 
Registered: May 2004
Location: Netherlands
Distribution: Slackware 13
Posts: 97

Rep: Reputation: 15
load_kernel_modules is empty


I get the following error during the boot process:
mount: mounting /dev/sda9 on /mnt failed: No such device or address
ERROR: mount returned error code 1. Trouble ahead.
mount: Mounting /dev/sda9 on /mnt failed: Invalid argument
/boot/initrd.gz: exiting

where /sda9 is my root directory.
My lilo config file, fstab and my /boot/initrd-tree seems to be correctly configured, however my load_kernel_modules file is empty (apart from a few comment lines), is that correct?
Support for ext3 was compiled as part of the kernel (2.6).
 
Old 11-05-2006, 11:51 AM   #2
rednuht
Member
 
Registered: Aug 2005
Posts: 239
Blog Entries: 1

Rep: Reputation: 31
sdXX(sda9) indicates this is a SATA drive, inwhich case you need to compile SATA support into the kernel.
or build an initrd file containing the SATA module.
SATA modules differ by interface manufacturer, check your motherboard manual.
 
Old 11-05-2006, 12:14 PM   #3
Kristian2
Member
 
Registered: May 2004
Location: Netherlands
Distribution: Slackware 13
Posts: 97

Original Poster
Rep: Reputation: 15
I included support for Sata into the kernel (two sata drivers I selected, one of them being VIA which is also the chipset of my mb). I checked all the kernel options before I compiled. I can't think of what I could have forgotten, (ext3 and sata was compiled in the kernel and not as module). I am also puzzled by the load_kernel_module file being empty.
 
Old 11-05-2006, 12:33 PM   #4
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
What is the purpose of the load_kernel_module file,
That's the first time I hear of this, just curious

If sda9 is your root directory, why does it want to mount it
in mnt ? fstab error ?

Quote:
No such device or address
Maybe it has a different name than sda

Last edited by keefaz; 11-05-2006 at 12:34 PM.
 
Old 11-05-2006, 12:39 PM   #5
Kristian2
Member
 
Registered: May 2004
Location: Netherlands
Distribution: Slackware 13
Posts: 97

Original Poster
Rep: Reputation: 15
I was wondering about this file as it is empty, so useless. Do I have to fill it manually, can't imagine. I can't think of anything I did wrong in building the initrd-tree directory.
This is my fstab, I can't find anything wrong there either, and indeed why it wants to mount /sda9 on /mnt; seems rather nonsensical.

/dev/hda5 /__NTFS_DATA ntfs defaults 1 0
/dev/hda6 /__NTFS_GAMES ntfs defaults 1 0
/dev/sda9 / ext3 defaults 1 1
/dev/sda10 /var ext3 defaults 1 2
/dev/sda11 /tmp ext3 defaults 1 2
/dev/sda12 /opt ext3 defaults 1 2
/dev/sda13 /home ext3 defaults 1 2
/dev/sda3 /boot ext3 defaults 1 2
/dev/cdrom /mnt/cdrom auto noauto,owner,user 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,user 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0

Last edited by Kristian2; 11-05-2006 at 12:49 PM.
 
Old 11-05-2006, 12:49 PM   #6
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
In any case, if you compiled the root filesystem and
the hard drive driver as built-in in the kernel, you
don't need an initrd

So in a first step, try to remove the initrd line
in lilo, run lilo to save the change and reboot
 
Old 11-05-2006, 01:02 PM   #7
Kristian2
Member
 
Registered: May 2004
Location: Netherlands
Distribution: Slackware 13
Posts: 97

Original Poster
Rep: Reputation: 15
I removed the initrd line and now I got another error, something similar I had earlier:
VFS: Cannot open root device "809" or unknown-block (8,9)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block (8,9)
 
Old 11-05-2006, 03:17 PM   #8
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Do you have SCSI disk support compiled as built-in ?
(Device Drivers > SCSI device support)
 
Old 11-05-2006, 03:51 PM   #9
Kristian2
Member
 
Registered: May 2004
Location: Netherlands
Distribution: Slackware 13
Posts: 97

Original Poster
Rep: Reputation: 15
I'll check tomorrow, but I am almost sure I have.
I've always prefered Slackware, but this time it gives me the impression I don't understand much of it.

Last edited by Kristian2; 11-05-2006 at 03:57 PM.
 
Old 11-05-2006, 04:03 PM   #10
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Take yourself some time, it is not slackware fault

Hardware becomes more and more sophisticated and
then the linux kernel too, so you need to take
some time to learn to enable the right things in
the kernel compilation

Last edited by keefaz; 11-05-2006 at 04:07 PM. Reason: yes sophisticated :)
 
Old 11-06-2006, 04:49 AM   #11
Kristian2
Member
 
Registered: May 2004
Location: Netherlands
Distribution: Slackware 13
Posts: 97

Original Poster
Rep: Reputation: 15
I checked scsi support in the compile options and this is what I had:

SCSI device support <m>
legacy /proc/scsi/support
scsi low level drivers:
serial ata support <m>
VIA sata support <m>

Support for Sata (deprecated: conflicts with Libata sata driver) I didn't select instead I selected the above options as the sata driver was now part of the scsi controller, so I understand, although reference to the Libata driver I didn't find in the helpsection.

I rebuilt my kernel and modules. I replaced the modules above by in-kernel built (as I did with filesystem support).
This resulted in a kernel panic error similar to what I had previously.

My load_kernel_module file was empty again. I was wondering whether it should contain the contents of the file modules.conf which was configured by alsaconf, although that has no priority at this moment.

I built the initrd-tree as follows:
mkinitrd -f ext3 -k 2.6.17.13 -r /dev/sda9
I don't know what's going wrong here and there is nothing special about my hardware.

Last edited by Kristian2; 11-06-2006 at 04:52 AM.
 
Old 11-06-2006, 11:47 AM   #12
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Hey make your life easy, forget the initrd

Instead of configure the SCSI device support as
module (<m>), configure it as built-in (<y>)

Do the same for serial ata and via features.

Then edit your lilo.conf, remove the initrd line
save it, run lilo and try a boot
 
Old 11-06-2006, 12:56 PM   #13
Kristian2
Member
 
Registered: May 2004
Location: Netherlands
Distribution: Slackware 13
Posts: 97

Original Poster
Rep: Reputation: 15
That is what I did and wrote in my previous mail. Those compile options given I built in the kernel, * instead of m
When I removed the initrd section this time, I got the following error:
VFS: Cannot open root device "<NULL>" or unknown-block(8,9)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block (8,9)

The bootloader is in the root section, /sda9, not in the MBR. Could that make any difference?

Last edited by Kristian2; 11-06-2006 at 12:59 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Gentoo VNC, empty dialog box !! "Question" window is empty ! TheHushedCaskeT Linux - Software 0 02-01-2005 10:14 PM
installing on empty hd dazednconfused Slackware 1 10-19-2004 07:11 PM
empty buffer cynthia Programming 4 09-20-2004 10:29 AM
empty trash Moleman Linux - Software 1 05-16-2003 12:23 PM
math.h is empty ?? niac Programming 1 11-12-2002 01:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration