LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 06-29-2004, 07:23 AM   #1
TroyCoX
LQ Newbie
 
Registered: Jun 2004
Posts: 5

Rep: Reputation: 0
problem to boot with 2.6.7 kernel


Hello there. I downloaded slack 10.0 and i install & compile kernel 2-6-7 from disk2. I have INTEL ICH5R chipset Both audio and Sata.My FS is ReiserFs and i try to make an initrd image to load the reiserfs libata and ata_piix.i execute this commands: mkinitrd -c -k 2.6.7 -m reiserfs:libata:ata_piix -f reiserfs -r /dev/sda2. i have the initrd in /boot
and lilo.conf looks like this:

image=/boot/vmlinuz
initrd=/boot/initrd.gz
label=2.6.7
read-only
so when the party begins i recieve this eror msg:

mount:mounting /dev/sda2 on /mnt failed:no such file or directory
error:mounting /dev/sda2 on /mnt failed: invalid argument
( i think it means in the /boot/initrd-tree directory but the /mnt is there)
/boot/initrd:exiting
mounted devfs on /dev
pivot_rooti: pivot_root:device or resourse busy

# <----- i think here prompts me to execute some commands but i dont know what to do


so any ideas?


P4 3.06 Ghz
gigabyte 8ik1100
seagate 80 gb sata
seagate 60 gb ata
maxtor 40 gb ata
512 ram single channel
OS: Slackware 10.0
Reiserfs
in Seagate sata HDD
 
Old 06-30-2004, 06:41 PM   #2
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
Yes, in 2.4.xx your SATA drive is seen as an IDE device (dev/hd#), and in 2.6.x you've built the libata modules which see SATA as scsi (/dev/sd#), your fstab probably has the drives listed as IDE devices as probably does your initrd.
My solution is to continue with the IDE device as libata is still beta software.
 
Old 07-04-2004, 07:41 AM   #3
scsikid
LQ Newbie
 
Registered: Jul 2003
Posts: 5

Rep: Reputation: 0
i tried installing slackware on a seperate ide disk and mounting the raid array. so the story begins! i installed slackware 10 and it sounds like you got further than me. i loaded all necessary modules and i can even see the the raid0 configured disks as it should be, two 80gig seagates showing as one 140gig drive. i ran cfdisk on /dev/sda2. partioned it with logical partitions with /usr, /var, /var/log, /, /home and swap of course. they appear with sda2p5, sda2p6, and so on.
after writing this and exiting its like everything just disappeared.

i run mkfs.ext2, or mkfs.ext3, or mkfs.resierfs. try to format one of the partitions and i just get an error saying sda2p5 or 6.... etc. doesn't exist. so i try to format the whole damn thing, mkfs.reiserfs /dev/sda2 and it formats. heh, great! you would think... mount /dev/sda2 /mnt/sda2. so i cd to /mnt/sda2 and see lost+found. woo! something worked! lets create a file..... WRONG! INPUT OUTPUT ERRORS! what the heck!

my reason for writing this i suppose is to see if anyone else has got there raid array working with slackware 10. on an ICH5R chipset. i have tried 2.4.26 and that didnt work either.
 
Old 07-06-2004, 02:51 AM   #4
sammut
LQ Newbie
 
Registered: Jul 2004
Location: France
Distribution: Slackware 10
Posts: 4

Rep: Reputation: 0
Hi everybody,

I have the same problem with a sata hard disk. I use slackware 10 / Kernel 2.4.26 and the promise driver so I have in my fstab /dev/sda1, /dev/sda2, ... Now I want to use the Kernel 2.6. I make the initrd with mkinitrd : mkinitrd -c -k 2.6.7 -m scsi_mod:libata:sata_promise -f ext3 -r /dev/sda7 -o initrd-2.6.7.img and when I boot I have these messages :

# Modules loaded successfully ...
ata1: SATA max UDMA/133
ata2: SATA max UDMA/133
ata1: no device found
scsi0: sata_promise
ata2: dev 0 ATA, max UDMA/133, ...
ata2: dev 0 configured for UDMA/133
scsi1: sata_promise
VENDOR: ATA MODEL: ST3120026AS REV: 3.05
TYPE: Direct-Access
mount: Mounting /dev/sda7 on /mnt failed: No such device or address
mount: Mounting /dev/sda7 on /mnt failed: Invalid argument
mount: Mounting /dev/sda7 on /mnt failed: Invalid argument
/boot/initrd.gz : exiting
pivot_root : Device or ressource busy

Thanks for your help.
 
Old 02-19-2006, 04:51 AM   #5
movitto
Member
 
Registered: May 2004
Distribution: Fedora 4 and Slackware
Posts: 179

Rep: Reputation: 30
Is this issue resolved? If so please relay how you fixed it. I'm having a similar problem with Slackwawre 10, but instead of a sata drive its a scsi drive initrd is complaining of.
Same error though:
"mount: mounting /dev/sda1 on /mnt failed. No such file or directory"

initrd exits and gives me a basic shell w/ root access and I can verify that /dev/sda1 is actually there. Possibly whatever you did to fix your issue may shed some light on my solution. Thank you.
 
Old 02-19-2006, 05:25 AM   #6
kevkim55
Member
 
Registered: Dec 2005
Location: Edmonton
Distribution: BLFS, Gentoo
Posts: 353

Rep: Reputation: 32
Could you edit the linuxrc file residing in the initrd.gz image and add the following line after the line modprobe <ata-module-name> line:
sleep 15
This line tells the kernel to sleep for 15 seconds bofore it continues with the task of mounting the root device. I think, what is happening there is that - when the module is loaded it takes some time for the module to detect the device correctly, while in the mean time the kernel tries to load the root device and doesn't find the device files /dev/sda* and panics. Possibly by the time the device files are created the kernel must have already tried mouting the root system and given up !
You will have to gunzip the initrd.gz and mount it as a loopback filesystem if it is a filesystem image or extract it if it is a cpio archive. After editing the file linuxrc, you'll have to reverse the steps i.e cpio or unmount the loop filesystem and then gzip it into initrd.gz.
Ldemm know if any of you have been successful with this.
 
Old 02-19-2006, 12:22 PM   #7
lestoil
Member
 
Registered: Apr 2004
Location: new york
Distribution: win2k,ubuntu,sw13,arch,centos5.3
Posts: 815

Rep: Reputation: 31
Troycox you need root = line in lilo.conf. Good luck.
 
Old 02-19-2006, 12:25 PM   #8
lestoil
Member
 
Registered: Apr 2004
Location: new york
Distribution: win2k,ubuntu,sw13,arch,centos5.3
Posts: 815

Rep: Reputation: 31
Sammut mkinitrd statement for ext3 should have jbd:ext3. ext3 needs jbd. Good luck.
 
Old 02-19-2006, 04:03 PM   #9
movitto
Member
 
Registered: May 2004
Distribution: Fedora 4 and Slackware
Posts: 179

Rep: Reputation: 30
kevkim55, I tried you suggestion. I midified the linuxrc file in the /boot/initrd-tree directory (which was accessed by booting using knoppix, mounting my root fs, and chrooting into it), and made an initrd image for my kernel. I then ensured lilo.conf was correct and ran lilo. But to my dispair, the problem still persists. I see the sleep executing (i set it for 30s) on the boot screen, then almost immediately afterwords. I get "cannot mount /dev/sda1 on /mnt no such file or directory". I'm almost positive that all the required modules are loaded (I see that the devices are recognized on the boot up text as it scrolls by). Why is it not recognizing the /dev/sda1 device though I can verify that it is there? Thanks for everyone's help.
 
Old 02-20-2006, 01:16 AM   #10
kevkim55
Member
 
Registered: Dec 2005
Location: Edmonton
Distribution: BLFS, Gentoo
Posts: 353

Rep: Reputation: 32
movitto, you said you can verify that the device node /dev/sda1 exists after the init drops you to shell prompt. If the device file /dev/sda1 exists then, is it possible for you to fdisk on /dev/sda or even mount it manually ?
 
Old 02-20-2006, 02:05 PM   #11
movitto
Member
 
Registered: May 2004
Distribution: Fedora 4 and Slackware
Posts: 179

Rep: Reputation: 30
First of all, thank you for your responses. It is still not working but I am getting closer.

When I am presented with the prompt I have tried running mount manually, but this returns with the same error. fdisk isn't present in my initrd image, I could try adding it, but I'm not sure it will run as it may require libraries that are not implace on this image.

When debugging the output, I realized that the scsi device that was being recognized was not my hard drives but rather a scsi tape drive. The initrd disk was having trouble loading the aic7xxx module that it needed to recognize the drive. After a little debugging, I found that this was because, I had not loaded the scsi_transport_spi module (which aic7xxx required) after doing so, recreating the ramdisk, and rebooting, I saw the drive was recognized (the initrd process stopped for a little while to fully recognize it). But to no avail, the problem still persists.

Upon closer examination of the output, I saw that immediately after the drive appeared on the bootup output, I get the following message: "sda: unknown partition table". This does not cause initrd to stop, but I strongly believe this is the problem. But I have no idea how to fix it.

It would also be probably good to mention that the scsi device that I'm trying to boot from is actually a scsi array which requires the aic7xxx and megaraid drivers. All the required drivers are loaded successfully on the bootup processes (afterall I see all the information about the drive in the startup output) but the initrd still gives me the error "unable to mount /dev/sda1 on /mnt: no such device or address" before stopping the boot process and giving me the limited prompt.

Finally, before I found this thread, I started another relating to this problem. You can visit it at: http://www.linuxquestions.org/questi....php?p=2111298
It may offer a little more insight into my problem.

I appreciate all the help.
 
Old 02-20-2006, 02:05 PM   #12
movitto
Member
 
Registered: May 2004
Distribution: Fedora 4 and Slackware
Posts: 179

Rep: Reputation: 30
sorry double post
 
Old 02-21-2006, 01:30 AM   #13
kevkim55
Member
 
Registered: Dec 2005
Location: Edmonton
Distribution: BLFS, Gentoo
Posts: 353

Rep: Reputation: 32
movitto,
If it is not troublesome, could you try my suggestion again ? Ask the init to sleep for few seconds after every module (related to the HD). I have had the same problem with a SCSI disk connected thru' firewire interface. I'd to insert 'sleep' after evry related module which for ieee1394 is 14 seconds and for others 3 seconds each. I couldn't get it to work with less than 14 secs for ieee1394 !
Is Knoppix able to access the disk in question ? If yep, why not lsmod and find out what modules are required to make it work.
Finally, a silly question ! Do you have modules scsi_mod, sd_mod loaded as well thru' initrd ?

PS: You can make linuxrc to be more verbose by adding echo "something..." lines. Take a look at the lilnes that do the actual pivot_root which are found at the end of linuxrc file. You might wanna add some echo "..." lines there too, to see whatz really going on.
 
Old 02-21-2006, 10:40 AM   #14
movitto
Member
 
Registered: May 2004
Distribution: Fedora 4 and Slackware
Posts: 179

Rep: Reputation: 30
kevkin55, thank you for your response.
1. I will try the sleep suggestion again (as soon as I get home later on today)
2. I also thought of copying the modules for the knoppix cd and enabling them in my initrd. The thing is that I'm trying to get my 2.6 kernel booted up and not the 2.4 The 2.4 kernel is another problem all together, whenever I place and enable the modules in my initrd fs, initrd complains on boot up about each module not being of "ELF" format, and thus it does not boot any module. Additionally, I tried booting the latest Knoppix version (3.9 as opposed to 3.3 which I was booting) that comes with the 2.6 kernel, but I always get bootup errors when I use the new cd. Because I really dont want to debug knoppix just so I can debug my problem, I am not going to bother.
3. It may be a silly question but I dont have an answer for you. I'm not sure if I am loading scsi_mod and sd_mod on startup. The thing is, is that I dont recall actually seeing these modules in the 2.6 kernel (are they 2.4 specific?). If I need them, then why does the initrd recognize the device on bootup?

Thank you for your responses.
 
Old 02-21-2006, 10:59 AM   #15
lestoil
Member
 
Registered: Apr 2004
Location: new york
Distribution: win2k,ubuntu,sw13,arch,centos5.3
Posts: 815

Rep: Reputation: 31
The SW >=10.1 kernels sata.i for 2.4.31 and test26.s(2.6.13) are supposed to work well with sata setups. SW Current event has 2.6.14-x kernel. Hope you get a chance to try those kernels. Review Pat's 2.6.13 kernel config on the kernel testing directory SW10.2 download site(any of the mirrors) for handy guide. Good luck.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Kernel boot problem Bonch Linux - Newbie 2 05-26-2005 12:53 AM
kernel 2.6.4 boot problem roshLame Linux - Newbie 8 03-26-2004 09:07 AM
Kernel 2.6.3 boot= problem nerofiend Linux - Newbie 14 03-10-2004 05:25 AM
New 2.4.20 Kernel, boot problem aeath Linux - General 6 02-28-2003 07:51 PM
Kernel Boot Problem enaran Linux - Software 1 05-04-2002 08:27 PM

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

All times are GMT -5. The time now is 04:03 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