LinuxQuestions.org
Help answer threads with 0 replies.
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 09-29-2011, 10:47 AM   #1
syvy
Member
 
Registered: Sep 2005
Location: Germany
Distribution: slackware64
Posts: 113

Rep: Reputation: 17
Additional SATA disk (storage only) -> no /sbin/init found at boot


I'm running Slack64 13.37 with two SATA and two IDE disks in my pc. Root partition is reiserfs on sda1 (SATA disk 1) with generic kernel and initrd loading reiserfs module. Everything fine so far. Now I wanted to add another SATA disk for storage and slack refused to boot:

Quote:
/boot/initrd.gz Loading kernel modules from initrd image
[ 3405482] udev [925] starting version 165
mount: mounting /dev/sda1 on /mnt failed: Invalid argument
ERROR: No /sbin/init found on rootdev (or not mounted). Trouble ahead

The error occurred with a 3TP GPT disk as well as with a 1TB MBR disk. The funny thing is when Slack is running and the disks were hotplugged they are accessable. And why does udev wants to mount /dev/sda1 on /mnt and not on / as usual?

It looks like something in initrd is missing so I created a new one using AlienBob's "mkinitrd_generation_script". There was no difference to the previous initrd: reiserfs module was loaded and rootdevice has been set to /dev/sd1, nothing more.

Can someone help me in this or point me in the right direction?
 
Old 09-29-2011, 11:02 AM   #2
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
A wild guess: make sure the boot order you want is the same as the actual SATA ports. That is, be sure the SATA drive you want to boot, the one you originally installed 13.37 and the initrd, is actually connected to SATA port 1. The kernel and udev assign device nodes based upon the discovery order of the physical ports on the motherboard.

You might have been lucky before with your boot disk on SATA port 2 and the other SATA onport 3, but then you connected the new drive to SATA port 1.

Another option is to use UUIDs in fstab.
 
Old 09-29-2011, 01:24 PM   #3
syvy
Member
 
Registered: Sep 2005
Location: Germany
Distribution: slackware64
Posts: 113

Original Poster
Rep: Reputation: 17
Thanks Woodsman, that sounded promising, but:

The SATA drives and ports were in the correct order. I switched port 1 and 2 just to see what happens and got the same error (without the new disk attached). So I switched back the ports and used UUIDs for all partitions in fstab, even for the new disk which I hotplugged after boot. I also created a new initrd. No success at all :-(

Would it make sense to compile a new kernel with reiserfs support built in and not using an initrd?
 
Old 09-29-2011, 02:04 PM   #4
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Another guess: Check your BIOS boot device order. Perhaps when you add the third SATA drive the BIOS is placing that drive first in the boot order.
 
Old 09-29-2011, 04:01 PM   #5
syvy
Member
 
Registered: Sep 2005
Location: Germany
Distribution: slackware64
Posts: 113

Original Poster
Rep: Reputation: 17
I got it. Your wild guess wasn't that bad. I don't fully understand why but sata port 4 is recognized as SCSI ID 1.0.0.0. Connecting the boot disc to it did the trick. The other device names are mixed up now but I will figure out how to put them back in the right order. It's a bit confusing because even the IDE discs are named /dev/sdX but I can modify fstab if necessary.

Thanks for pointing me in the right direction.
 
Old 09-29-2011, 04:07 PM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
If your problem is solved, please mark this thread as solved using the thread tools at the top of the thread.
 
Old 09-29-2011, 11:15 PM   #7
syvy
Member
 
Registered: Sep 2005
Location: Germany
Distribution: slackware64
Posts: 113

Original Poster
Rep: Reputation: 17
Sorry, you're right. Done.
 
  


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
Ubutnu won't boot. Error: Target file system doesn't have /sbin/init. No init found. Zeljka_Lin Linux - Newbie 9 05-02-2011 06:56 AM
No /sbin/init found on rootdev... mkinitrd problem? a_priebe47 Slackware 6 05-15-2008 09:49 AM
can't compile kernel 2.6.23.8 ERROR: no /sbin/init found on rootdev tommcd Slackware 18 11-24-2007 09:32 PM
deb sarge: /sbin/init 432 dev/console file not found Shankarrajus Debian 2 07-05-2006 11:15 PM
/sbin/init errors on boot dereko Debian 2 03-17-2005 10:56 AM

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

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