Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Other Versions > EOL (End Of Life) Versions
FedoraForum Search

Forgot Password? Join Us!

EOL (End Of Life) Versions This is a Forum to discuss problems and workarounds for versions of Fedora that have passed End of Life.

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1  
Old 3rd August 2010, 06:57 AM
jhearon Offline
Registered User
 
Join Date: Aug 2007
Posts: 23
macosfirefox
Boot has failed, sleeping forever, f12

Hi,
I need help with narly "Boot has failed, sleeping forever" problem on f12 hard disk. Others have hit this during installs. In my case it was just shutting down, going to eat dinner, then returning on startuup to see the boot get half-way thru the Plymouth graphic then blackout and "sleeping forever" message. I'm trying to recover some data files from the disk.

I verified disk was still good.

Then tried rescue mode from f12 install iso DVD
Tried: chroot /mnt/sysimage
but get message - cannot execute binary file,
and there is no /mnt/sysimage/bin

But can invoke blkid...
bash-4.0# blkid
/dev/loop0: TYPE="squashfs"
/dev/sda1: UUID="db1ba93e-cc14-4fb7-8412-124c567be5a6" TYPE="ext4"
/dev/sda2: UUID="B49bhW-WRBs-L190-lr9T-52SR-myBg-RBF4Lz" TYPE="LVM2_member"

Cannot make changes to grub.conf since boot fails, even if in single user mode.
But can swap internal hard disks and boot the computer with a good x-tra hard disk with fedora10, then place the bad f12 drive in an external USB case, and access it via USB.

Go into single user on f10 drive and try to mount external USB with bad f12
Try fdisk -l
see:
/dev/sda1
/dev/sda2
/dev/sdb1
/dev/sdb2
then try to mount external drive-
mount /dev/sdb1/ /mnt/sdb1

In that case, on the external drive I can only see available
folders: efi, grub, lost+found
and files: config-2.6.31.5-127.fc12.i686.PAE
initramfs-2.6.31.5-127.fc12.i686.PAE.img (Gzip archive)
System.map-2.6.31.5-127.fc12.i686.PAE
vmlinuz-2.6.31.5-127.fc12.i686.PAE

re: previous instructions...
http://forums.fedoraforum.org/showth...eeping+forever

If cd to grub dir and use Nano to edit grub.conf I see no UUID lines in grub.conf

default=0
timeout=0
splashimage=(hd0,0)/grup/splash.xpm.gz
hiddenmenu
title fedora (2.6.31.5-127.fc12.i686.PAE)
root (hd0,0)
kernel /vmlinuz-2.6.31.5-127.fc12.i686.PAE ro root=/dev/mapper/VolGroup$
initrd /initramfs-2.6.31.5-127.fc12.i686.PAE.img

not sure what to try next?
thanks.
  #2  
Old 3rd August 2010, 08:58 PM
oxala Offline
Registered User
 
Join Date: Jul 2010
Posts: 258
linuxfedorafirefox
Re: Boot has failed, sleeping forever, f12

Hello,

Sounds nasty!

I am new to Fedora, so I am not familiar with this problem as such ....


You wrote that you were unable to edit a file ... sounds like the file was on a read-only mounted file system ... silly thing in Fedora I've noticed ... drops you to root for emergency repair, but mounts read-only .... anyway ... easy fix "mount -o remount,rw" or something very similar ....

As a bit of general advice for recovering a foobared system:

1. Boot into any linux system from removable media ... e.g. usb install ... whatever ...
2. Mount your devices

For example, if your root partition is /dev/sda1
Bring up a terminal ...
mkdir /myfoobaredroot
mount /dev/sda1 /myfoobaredroot

3. If you need to access components from other file systems, such as /boot or /dev/sda9 (hee hee)
mkdir /myfoobaredboot
mount /dev/sda9 /myfoobaredboot
mount -o bind /myfoobaredboot /myfoobaredroot/boot

4. chroot /myfoobaredroot

Once in the chrooted environment, you may mount to system fs stuff such as procfs,sysfs, ....


Hope you find something here to point you the right direction ...

Best of luck!
  #3  
Old 5th August 2010, 08:15 PM
jhearon Offline
Registered User
 
Join Date: Aug 2007
Posts: 23
macosfirefox
Re: Boot has failed, sleeping forever, f12

Thanks for help.
re:
3. If you need to access components from other file systems, such as /boot or /dev/sda9 (hee hee)
mkdir /myfoobaredboot
mount /dev/sda9 /myfoobaredboot
mount -o bind /myfoobaredboot /myfoobaredroot/boot

I see: mount point does not exist----

re:
4. chroot /myfoobaredroot

I see:
#chroot: cannot run command '/bin/sh': No such file or directory

---------- Post added at 09:15 AM CDT ---------- Previous post was at 06:51 AM CDT ----------

Actually got a little further with this problem...

This thread re: LVM partition helped:
http://forums.fedoraforum.org/showthread.php?t=165808

with foobared f12 disk (sleeping forever) in external USB case and working f10 hard disk in laptop did fdisk -l from single user mode on f10. The rescue files issue seemed to be about mounting the LVM partition.

I did vgscan, which showed the VolGroups,
then vgchange -a y VolGroup (for the VolGroup on the f12 disk)
and lvdisplay to get all info, per the How To thread above.

next I created a mount point inside f10 /mnt
mkdir /mnt/VolGroup/root
then mount /dev/VolGroup/lv_root /mnt/volGroup/root
...now can access and rescue files.

SO HOW DO I GO ABOUT GETTING THE FOOBARED DISK TO BOOT AGAIN to recover from the "sleeping forever" problem?
  #4  
Old 5th August 2010, 10:06 PM
oxala Offline
Registered User
 
Join Date: Jul 2010
Posts: 258
linuxfedorafirefox
Re: Boot has failed, sleeping forever, f12

Hello,

If I correctly understand how far along you've come ... that you now have access to all your file-systems, have verified that they are ok (or at least good enough for now), the ability to boot the system is all that is lacking. This means you are ready to repair and/or rebuildi the boot system. I can only INFER that the "sleeping forever" problem stems from a messed up boot configuration, but I DO NOT KNOW with complete certainty as I am not familiar with this specific problem. That said ... it's highly probable that constructing a solid boot system will eliminate that issue.

advance apology if I bore you with detail you already know ... I'd rather err on the side of being boring and long winded than on the side of cut and confusing ... especially with the bootloader, which is one of the trickier bits of any gnu/linux system.

Everything needed to boot your system must reside in a directory, "/boot" (I just LOVE the simplicity of *nix). Sometimes, "/boot" is simply a directory under "/", aka "THE ROOT FILE SYSTEM". It might be a separate file-system that is mounted on "/boot". Underneath the boot directory, you should find a kernel, such as "vmlinuz-2.6.33.6-147.fc13.i686", a bootstrap-er/kernel-helper/ramfs (don't really know the correct term) such as "initramfs-2.6.33.6-147.fc13.i686.img", and other files following the same naming pattern, obviously associated with a specific kernel. Underneath "/boot/grub", you will find all the files needed by the grub bootloader. The one file file we really care about, besides the kernel stuff, is "/boot/grub/grub.conf", which controls the boot process.

The first step, make sure you actually have a kernel ... I know I do because it's running ... ... so mine looks like this:

[root@dolphin]# uname -r #because I have a bad memory
2.6.33.6-147.2.4.fc13.i686
[root@dolphin]# cd /boot #look in the right place
[root@dolphin]# find . -regex ".*147\.2\.4.*" -ls #list the files associated with my running kernel
33 110 -rw-r--r-- 1 root root 111193 Jul 23 12:32 ./config-2.6.33.6-147.2.4.fc13.i686
35 11328 -rw-r--r-- 1 root root 11598381 Aug 3 08:38 ./initramfs-2.6.33.6-147.2.4.fc13.i686.img
32 1545 -rw-r--r-- 1 root root 1580717 Jul 23 12:32 ./System.map-2.6.33.6-147.2.4.fc13.i686
34 3357 -rwxr-xr-x 1 root root 3436128 Jul 23 12:32 ./vmlinuz-2.6.33.6-147.2.4.fc13.i686

The second step: collect a little info about your particular system

From your original post, you seem to have 2 hard drives with boot as a separate file-system on /dev/sda1 and /dev/sdb1 and a root file-system in the lvm "/dev/VolGroup/lv_root". It looks like a raid 1 configuration to me. This is not super important to know in order to access root ... and lvm does a great job of abstracting from the hardware. Grub, the actual boot loader program does not really know how to speak either raid nor lvm. The "/boot" partition may live happily on a raid device, NOT in an lvm container (Volume Group to show off my lingo), provided that the device is raid level 1.

From your post ... it is also possible that you have 2 disks with 2 completely separated oses, in which case you need to know the order in which these disks are accessed by the bios at boot time. This is usually under a menu named something like "disk order" or "boot priority" in the system bios.

Unless /boot sits on a raid 1 device, you REALLY need to know the order the disks so you can tell grub what he's supposed to do for you. And if /boot sits on a raid 1 device, you REALLY need to know, because you must install a subset of grub code the the mbr (Master Boot Record) of at least the first device in the array.

Your existing (or I should say the one you posted) /boot/grub/grub.conf has the line "root (hd0,0)". English translation: look for more grub stuff and a kernel in the first partition of the first disk as defined by the system BIOS".

Whew! I think we're finally ready to put humdy dumpty back together .....

Make sure that /boot/grub/grub.conf looks along these lines:

default=0
timeout=5
#splashimage=(hd0,0)/grub/fc13splash.xpm.gz
#hiddenmenu
title Fedora (2.6.33.6-147.2.4.fc13.i686)
root (hd0,0)
kernel /vmlinuz-2.6.33.6-147.2.4.fc13.i686 ro root=/dev/mapper/dolphin-root2 rd_LVM_LV=dolphin/root2 rd_MD_UUID=224aa24a:8d2b2d73:4fa6bae4:438fc5b1 rd_LVM_LV=dolphin/swap rd_NO_LUKS rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet
initrd /initramfs-2.6.33.6-147.2.4.fc13.i686.img

making sure that the kernel files you need actually exist and that (hdX,Y) is correct for YOUR system. The line "default=0" simply says that the first os listed in this file will be the default os, what will get booted if nothing else is choosen after the number of seconds specified by timeout=<an interger value>.

Notice also that "#hiddenmenu" and "#splashimage....." have the # in front ... which tells grub "ignore this line". Don't worry about this stuff right now ... get a good boot first

Now the potentially confusing part:

1. IF /boot is NOT on a raid device ... you are about done ... make sure that the boot parrtion is active, reboot, have fun!

2. IF /boot is on a raid 1 device, then a little grub must get shoved into the mbr of the first drive in the array ...

a. As root user, type "grub". This will put you into a "grub" shell signified by the command prompt "grub> "
b. Type "root(hdX,Y)" where X and Y are the values you determined for /boot/grub/grub.conf
c. Type "setup (hdX)"

You may get some errors like "1_5stage file not found ... non-fatal" ... don't worry about it now ... we just want to get some junk in mbr .... and if grub says "non-fatal", it's probably jammed some code into mbr and you are ready to reboot ...

At this point, double cross your fingers (VERY IMPORTANT ... DO NOT SKIP) and reboot


Have fun!


cwight
  #5  
Old 6th August 2010, 06:41 PM
jhearon Offline
Registered User
 
Join Date: Aug 2007
Posts: 23
macosfirefox
Re: Boot has failed, sleeping forever, f12

Hi, Thanks,
Not a raid, but trying to kluge the thing back together again so I swapped hard drives in my laptop because the foobared disk would not boot and was giving "sleeping forever" error.
From the laptop I plugged in an external USB case and stuck the foobared f12 disk in it. I was accessing the foobared files over USB from single user mode from my laptop's f10 just to rescue files and see what was left on the disk.

I will place the foobared f12 hard disk back into the laptop to try to boot it, since that's the disk I want to use.

with fdisk -1, on the foobared f12 disk I see:

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 26 204800 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sdb2 26 9729 77943361 8e Linux LVM

grub.conf from sdb1 on bad f12 disk looks like:

default=0
timeout=0
splashimage=(hd0,0)/grup/splash.xpm.gz
hiddenmenu
title fedora (2.6.31.5-127.fc12.i686.PAE)
root (hd0,0)
kernel /vmlinuz-2.6.31.5-127.fc12.i686.PAE ro root=/dev/mapper/VolGroup$
initrd /initramfs-2.6.31.5-127.fc12.i686.PAE.img


I CD'd into the /etc dir on the bad f12 disk and looked at fstab:

/dev/mapper/volGroup-lv_root ext4 defaults 1 1
UUID=db1ba93e-cc14-4fb7-8412-124c567be5a6 /boot ext4 defau$
/dev/mapper/VolGroup-lv_swap swap swap defaults
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5, mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0

the etc/mtab on the bad f12 disk looks like this:

/dev/mapper/VolGroup-lv_root /ext4 rw 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0

#blkid shows:
...
/dev/sdb1: UUID="db1ba93e-cc14-4fb7-8412-124c567be5a6" TYPE="ext4"
/dev/sdb2: UUID="B49bhW-WRBs-L190-lr9T-52SR-myBg-RBF4Lz" TYPE="lvm2pv"

...so I guess that's good that the proper UUID is still listed on the bad f12 disk /etc/fstab.

sdb1 looks to be all the boot files including the Grub dir and grub.conf. but they are just sitting on the top of the mounted sdb1 dir, not within a /BOOT dir on that partition.
I could not mount sdb2 unless I followed the above listed steps for mounting an LVM partition. Once mounted however CDing into the boot directory on the LVM partition shows it as empty. So I guess that's good too, since the sdb1 is the actual boot partition.

Just cannot figure out why when I put the disk back into the laptop and try to boot it, the Plymouth graphic gets about half-way then Wham-- black screen and "sleeping forever" message.

Does the boot partition (listed as *) by fdisk -l normally boot with files on the top level and not in a /BOOT dir?

Or is that part of the problem that it removed the /BOOT dir, but preserved the boot files. Seems odd.

Thank You.
  #6  
Old 6th August 2010, 08:50 PM
oxala Offline
Registered User
 
Join Date: Jul 2010
Posts: 258
linuxfedorafirefox
Re: Boot has failed, sleeping forever, f12

Hmmmm,

To not have a /boot directory sounds very weird, but I think it's just how you mounted it from the f10. /dev/sda1 is a separate boot partition. If you mount it on /foo, then files will appear under /foo. From your /etc/fstab:

UUID=db1ba93e-cc14-4fb7-8412-124c567be5a6 /boot ext4 defaults

Which means the os will mount it at /boot ... as it should be.


If you are able to access the file-systems and back-up your personal files, why not just re-install the os cleanly? The repairs you need to make are tedious and a clean install is pretty fast.

That said, if you follow the instructions from my previous post carefully, I think you will get the system back up. Since you are working with a stand-alone disk, not a raid member, you can boot directly from the /boot partition and don't need to worry about the mbr, which is what causes folks the most headaches.

Re-install vs repair ... 30 mins versus 30 mins ... hard to say which is better unless you have very large backup to restore, in which case repair will be faster.

Take care,


cwight
  #7  
Old 7th August 2010, 06:44 PM
jhearon Offline
Registered User
 
Join Date: Aug 2007
Posts: 23
linuxfedorafirefox
Re: Boot has failed, sleeping forever, f12

I guess I could see that coming after I was able rescue my files.

Did f13 DVD iso upgrade on "sleeping forever" f12 disk.

Since several posts about "sleeping forever" error involved upgrades to f13 I was skeptical, but so far it's booting. Still not sure what caused it.

Thanks for ideas and help.
  #8  
Old 7th August 2010, 07:09 PM
oxala Offline
Registered User
 
Join Date: Jul 2010
Posts: 258
linuxsusefirefox
Re: Boot has failed, sleeping forever, f12

[QUOTE]I guess I could see that coming after I was able rescue my files.[QUOTE]

At this rate, I'm never going to get bonus points for originality .... , but I'm happy to read you are up and running again ...
  #9  
Old 26th January 2011, 10:41 AM
shashikant Offline
Registered User
 
Join Date: Jan 2011
Posts: 7
linuxfedorafirefox
Re: Boot has failed, sleeping forever, f12

hey!!!!!!!! i am really facing too much problems with fedora
14.yesterday due to low battery my lapi turned off n when i
rebooted.....

i got a error:-"NO root device found,boot failed...sleeping forever...
please suggest me the solution.....
  #10  
Old 26th January 2011, 11:06 AM
leigh123linux's Avatar
leigh123linux Offline
Retired Administrator
 
Join Date: Oct 2006
Posts: 21,509
linuxfedorafirefox
Re: Boot has failed, sleeping forever, f12

Moved to EOL (End Of Life) Versions
  #11  
Old 26th January 2011, 11:08 AM
leigh123linux's Avatar
leigh123linux Offline
Retired Administrator
 
Join Date: Oct 2006
Posts: 21,509
linuxfedorafirefox
Re: Boot has failed, sleeping forever, f12

Quote:
Originally Posted by shashikant View Post
hey!!!!!!!! i am really facing too much problems with fedora
14.yesterday due to low battery my lapi turned off n when i
rebooted.....

i got a error:-"NO root device found,boot failed...sleeping forever...
please suggest me the solution.....
Try starting your own thread instead of trying to hijack someone else's .


P.S Thread closed.
Closed Thread

Tags
boot, f12, failed, forever, sleeping

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What does this mean: "No root device found. Boot has failed, sleeping forever?" Cityscape Using Fedora 1 7th May 2010 06:56 AM
No root device found, Boot has failed, sleeping forever. F11 -> F12 Texan Hardware & Laptops 8 10th January 2010 01:52 PM
Fedora 12 LiveUSB fails to boot (sleeping forever..) MrMarcus Installation and Live Media 5 24th November 2009 03:16 PM
Boot has failed, sleeping forever miles Fedora 12 Alpha, Beta & Release Candidates 7 31st October 2009 11:49 AM


Current GMT-time: 09:56 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat