LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices


Reply
  Search this Thread
Old 10-24-2011, 07:56 PM   #1
mreff555
Member
 
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 473

Rep: Reputation: Disabled
Trouble mounting root partition after kernel building


I've looked around before posting and this sounds like a fairly common problem in one form or another with no solution. Hopefully one of you can help.

I recently installed arch 64 on my laptop, which is duel booting Windows.

I just had the core utilities plus a few other random things installed when I decided to upgrade and reconfigure the kernel. I Upgraded from the arch default 3.0 to 3.0.4 using the config in the /proc directory. I didn't really change much. Basicly I just adjusted for my processor and pulled out some modules I know I wouldn't use (nothing to do with sata support).

after copying the new kernel and system map to my boot directory, making an image and updating grub, I rebooted. It begins to load but then gives this message.
Code:
ERROR: Unable to determine major/minor number of root device '/dev/sda6'
you are being dropped to a recovery shell.
I've tried quite a few things to fix this A lot of posts suggested it was a problem with mkinitcpio so I tried reimagaging the default file and it worked perfectly. I would have tried recompiling it but it didn't come with any source.

I have also tried removing autodetect from the mkinitcpio config fileand manually defining partitions at boot with no luck

has anyone ever seen this?

My partitions are laid out as such

sda1 windows recovery NTFS
sda2 windows boot NTFS
sda3 windows NTFS
sda4 extended
sda5 arch boot ext4
sda6 arch root ext4
sda7 swap swapfs
 
Old 10-24-2011, 09:07 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,133

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
An initcpio is its own source. Check the (normally very good) Arch wiki for how to extract it.
My question to you is: if you are building your own kernel, why are you using an initrd at all ?.
 
Old 10-25-2011, 06:02 PM   #3
mreff555
Member
 
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 473

Original Poster
Rep: Reputation: Disabled
I'm rather new to this so I'm blindly following directions.
I figured I would try to shrink it in stages and see if it works.


So. I'll lookup extracting that source.
But since I already went this far. I would like to successfully upgrade the kernel.
Are you suggesting that the proper way to do this is to remove everything but my hardware and then install the kernel without mkinitcpio

I guess that makes sense. But surprisingly I haven't seen this advice in any tutorial I have referenced.
 
Old 10-25-2011, 06:51 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,133

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
No, I'm not suggesting that.
An initrd is only required to ensure all resources needed to mount the (final) root are available prior to the root actually being mounted.
So you only need to build in what is required to mount the root - the others can either be deferred or built-in. Used to be a pain to do this manually, but now the make has options to help - search here for "localyesconfig" for example.
 
Old 10-26-2011, 11:29 AM   #5
mreff555
Member
 
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 473

Original Poster
Rep: Reputation: Disabled
So I used localyesconfig, along with a couple other adjustments and it appears to be working good without initrd. It is difficult to tell since there is not a whole lot on the system yet.
One question I had about localyesconfig, is there there were about a dozen or so options it asked me about. Most of them seemed to be related to individual chips on my video card or something to do with my power supply. I said yes to nearly all of them because I don't want to pull out something that would inhibit battery functionality. I ended up with a 7.3M kernel, which seems reasonable. should I just leave it that way or is there a resource to find more detail about my hardware?

Also, My laptop has an Nvidia 310M, (Yes, I am well aware that it sucks.) Anyway, I removed all frame buffer graphics like nouveau from the kernel and installed closed source drivers. Should I expect any problems?
So far everything seems fine however I have not install Xorg yet.
 
  


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
trouble mounting main partition bluegospel Linux - Newbie 26 05-31-2010 07:25 PM
Trouble configuring and building kernel..... GlennsPref Mandriva 2 05-04-2010 04:34 AM
Trouble mounting ntfs partition. tin can Linux - General 4 12-16-2004 10:05 PM
Trouble mounting an ext2fs partition tseven *BSD 2 12-13-2004 05:12 PM
trouble mounting fat32 partition miner Linux - Newbie 7 04-19-2004 10:23 PM

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

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