LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 01-09-2013, 03:47 PM   #1
metageek
Member
 
Registered: Jun 2007
Location: manchester, uk
Distribution: Slackware
Posts: 115

Rep: Reputation: 21
devisse assignment different in huge and generic kernels


I installed 14.0 on a system with two disks (actually a disk and a raid array) with the following partitions:

/dev/sda1 - swap
/dev/sda2 - root
/dev/sdb1 - home (a raid array)

I changed to the generic kernel and created initrd.gz using the parameters given by mkinitrd_command_generator.sh :

Code:
mkinitrd -c -k 3.2.29 -f ext4 -r /dev/sda2 -m 3w-xxxx:usbhid:ehci-hcd:uhci-hcd:mbcache:jbd2:ext4 -u -o /boot/initrd.gz
however the system won't start with the message:
Code:
mount: Mounting /dev/sda2 on /mnt failed: No such file or directory
after a lot of tries with adding further modules to initrd.gz I eventually found out that the problem with booting generic is that the raid array is assigned /dev/sda (with only /dev/sda1) and the single drive /dev/sdc (with /dev/sdc1 and /dev/sdc2). Something else (?) gets assigned /dev/sdb but has no partitions. Of course, since the the raid does not have a second partition (nor a root file system), init halts at this point. Note that if I boot with huge, everything falls in place and the system starts without problems.

Two questions:

1- (more important): how can I fix this and boot with generic and initrd.gz ?

2- (curiousity): what causes this mess?

thanks
 
Old 01-09-2013, 03:49 PM   #2
metageek
Member
 
Registered: Jun 2007
Location: manchester, uk
Distribution: Slackware
Posts: 115

Original Poster
Rep: Reputation: 21
device not devisse !



sorry
 
Old 01-09-2013, 04:21 PM   #3
XGizzmo
Member
 
Registered: Mar 2007
Distribution: Slackware
Posts: 264

Rep: Reputation: 68
Quote:
mkinitrd -c -k 3.2.29 -f ext4 -r /dev/sda2 -m 3w-xxxx:usbhid:ehci-hcd:uhci-hcd:mbcache:jbd2:ext4 -u -o /boot/initrd.gz
Your command for mkinitrd does not have the -R flag to add raid support to the initrd.
 
Old 01-09-2013, 04:23 PM   #4
metageek
Member
 
Registered: Jun 2007
Location: manchester, uk
Distribution: Slackware
Posts: 115

Original Poster
Rep: Reputation: 21
XGizzmo,

thanks I overlooked that (thought that the script would quote this too). I will try it tomorrow as currently I only have remote access to the machine.
 
Old 01-10-2013, 03:27 AM   #5
metageek
Member
 
Registered: Jun 2007
Location: manchester, uk
Distribution: Slackware
Posts: 115

Original Poster
Rep: Reputation: 21
Well, I've added the -R switch to mkinitrd, but this has not solved it. Now I have an extra error message:

mdadm: No arrays found in config file or automatically
mount: mounting /dev/sda2 on /mnt failed: no such file or directory

In fact I checked the machine's specs again and it turns out that both drives are Raid arrays
/dev/sda 320Gb has swap and root partitions and is on a 3w-xxxx controller
/dev/sdb 1Tb has home partition and is on an aic94xx controller

any other help appreciated!
 
Old 01-11-2013, 02:44 PM   #6
metageek
Member
 
Registered: Jun 2007
Location: manchester, uk
Distribution: Slackware
Posts: 115

Original Poster
Rep: Reputation: 21
So what could change the device assignment (hard drives) when going from huge.s o generic kernel?
 
  


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
What Do I Need To Know About Huge vs. Generic Kernels During Installation? joncr Slackware 16 07-18-2012 06:29 AM
[SOLVED] switch Huge SMP to Generic czezz Slackware 16 07-07-2011 09:07 AM
13.0 64 bit just Huge & Generic, no "smp" kernels installed acummings Slackware 2 10-01-2009 09:59 AM
generic or huge kernels? metrofox Slackware 25 04-15-2009 04:04 AM
Switch from huge-smp-2.6.21.5 to generic-2.6.21.5 tronayne Slackware 1 07-30-2007 08:34 AM


All times are GMT -5. The time now is 12:59 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration