LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 11-01-2011, 09:18 PM   #1
PaulFC5
Member
 
Registered: Feb 2008
Posts: 62

Rep: Reputation: 3
"No root device found" error in FC14 after upgrade from ...97 to ...100 kernel


In the recent query "How to login as root on Fedora 14 from console"
John VV replied:

Quote:
Originally Posted by John VV View Post
but please do not use that "pam" hack
there ARE VERY big problems with that .
A lot of tools WILL NOT WORK from root if you do .

both fedora AND the Gnome desktop
killed off the root gui boot
-- for GOOD REASONS ---
AAMOI & FMI what are those good reasons?

I ask because, apart from su -, I've been using the "commentingoutline2 in /etc/pam.d/password" hack to get at "root" for months and have just had an FC14 winDoze"BSOD"equivalent - ie after the usual 10 or 15 second's worth of hdd "concretemixer" noises it would get to the "F" logo and "hang" - no mouse pointer would appear and it would get no further.

The cause, I think, was that I'd been shuttling back and forth from my user account to root trying to alter/freeup the @#$% permissions when suddenly neither password (root or user) was accepted - and when rebooting it just "hung".

I "solved" this by downloading (from cyberciti.biz) the "full" installDVD to get at the "rescue" bizzo - the "stripped" down 1xCD (ex a magazine's coverDVD (Feb APC ex Oz)) that I'd installed offof didn't seem to have the "rescue" gubbins in it.

The rescue seemed to have to rewrite SElinux labels or something like that and then it all seemed to work OK again - am using it now.

Except that after the "autoupgrade" it just did to the ...100 kernel it seems to come up with:
"No root device found
Boot has failed, sleeping forever."
And I have to go back to the 2.6.....97 kernel again to get it to boot up.

Is it the "pam hack" causing this or is it perhaps my possibly "fraying" sdd? - an excellent (AShampoo) winDoze app that I use seems to show slightly/slowly declining sdd health.

A good/timely reminder to back up everything important! - onto my USB external hdd.
Even considered, for a day or so, "going to the cloud" - ie using my ISP's server for in and out emails - only need a browser for that

TIA
Paul W
 
Old 11-02-2011, 01:18 PM   #2
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu
Posts: 1,222

Rep: Reputation: 251Reputation: 251Reputation: 251
Sometimes all it takes is re-creating the initramfs.
Code:
man dracut
for more info, and, if that's not enough,just reply here
 
Old 11-03-2011, 03:42 PM   #3
PaulFC5
Member
 
Registered: Feb 2008
Posts: 62

Original Poster
Rep: Reputation: 3
Thanks muchly for that RockDoctor

Am not quite "computerliterate" enough to get it to work properly, even after reading the man and the Fedora pages on it.

Does one just use the kernel number (which (the nonbooting one) = 2.6.35.14-100) or the whole /vmlinuz/... bizzo from the grub "kernel..." line - which, I spose, is both the <image> and the <kernel>?

ie do I run (from root obviously):
Quote:
dracut /vmlinuz-2.6.35.14-100.fc14.i686 ro root=/dev/mapper/vg_asusamd64x2boxsu120611-lv_root
?

And how come it's obviously doing it OK (ie setting up the initramfs) in the ...-97 kernel bootup process?
Is it (possibly) worth clearing the -100 kernel and then re-installing it??

TIA
Paul W
 
Old 11-03-2011, 04:17 PM   #4
PaulFC5
Member
 
Registered: Feb 2008
Posts: 62

Original Poster
Rep: Reputation: 3
My idiocy - for some reason the last two lines of the -100 kernel entry in grub.conf had gotten "commented out".

Fixed now and working OK.

Mea culpa
 
Old 11-03-2011, 06:00 PM   #5
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu
Posts: 1,222

Rep: Reputation: 251Reputation: 251Reputation: 251
Glad it's working. The only reason I didn't give an example is that I always have to read the man page when I want or need to recreate the initramfs file. After reading your penultimate post, I decided to see if any of my bash histories include an actual example, and, lo and behold, one does (but I had to chroot into an older installation to find it).
Code:
dracut -H `uname -r` myinitramfs-`uname -r`
`uname -r` provides the version of the currently running kernel; apparently I was aiming for an initramfs file that just included the components needed to boot my system. For some reason, size mattered.
 
Old 11-04-2011, 01:37 AM   #6
PaulFC5
Member
 
Registered: Feb 2008
Posts: 62

Original Poster
Rep: Reputation: 3
Another command to put into my cranial harddrive - or my sda (to be pedantic) I spose
Still looks quite tricky to use though!
There's always some new thing to learn in linux - and so many good people/uplines on LQ

Thanx again for your help in my idiocy
 
  


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
"No root device found.Boot has failed.sleeping forever." on rhel6 when compile kernel upo Linux - Kernel 12 08-23-2011 01:23 AM
Xen - mkinitrd hangs at "Found root device xvda2 for LABEL=/" quanta Linux - Virtualization and Cloud 0 11-29-2010 11:18 PM
[SOLVED] SuSE fails to boot from qLogic Fibre channel card - "No root device found" nonshatter Suse/Novell 4 11-01-2010 07:38 AM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM
upgrade to kernel 2.6.16.1 : "make bzImage" print "parse error" math_physics Red Hat 2 06-29-2007 11:04 PM


All times are GMT -5. The time now is 01:52 AM.

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