Fedora Linux Support Community & Resources Center
  #1  
Old 1st February 2015, 02:09 AM
deretsigernu Offline
Registered User
 
Join Date: Oct 2011
Posts: 107
linuxfirefox
boot into emergency mode and "dirty metadata"

Upon booting computer, the first few seconds seem to boot normally. Then the display says "Welcome to emergency mode! ..." I've checked
Code:
journalctl -xb
, but I don't know what most of that means. I did notice this message:
Quote:
fsck failure code 4.
I've rebooted several times and it does the same thing every time. Once or twice it has included this message at the welcome to ... screen:
Code:
ext4_mb_generate_buddy:757: group 82, block bitmap and bg descriptor inconsistent: 28665 vs 28657 free clusters
I read somewhere to try to fsck the partition. My computer is dual boot and the Win 7 partition seems to have no problems whatsoever, so I'm assuming it's a problem with /, which is sda7 on my machine. I also read that you can't run fsck on a mounted partition, so I don't know how to run fsck on / while I'm logged on.

I started the computer with the Fedora install disk and used fdisk -l to be sure of the partition. In a terminal there, I
Code:
su
fsck /dev/sda7
and nothing seemed to happen.
Then I read somewhere else that if I
Code:
su
cd /
touch /forcefsck
that will fsck at start up and won't mess anything up. Then in the journalctl I saw a msg to use
fsck.mode=force. No idea where/how to do that.

Still an error when I reboot. I logged in as root at 'welcome to emergency' screen, changed init 1, then tried fsck -r. I don't know if did anything.

I've tried a bunch of stuff. The dmesg has:
Code:
ext4_mb_generate_buddy:757: group 82, block bitmap and bg descriptor inconsistent: 28665 vs 28657 free clusters
this still. Don't know what it means. I'm guessing something on the disk isn't playing nice. Every time I've started Firefox since this message has started, Firefox does not start with the same tabs as I closed it with, which is the option I selected for it. I check to see that option is selected each time I log on, but it still is just starting at my home page, so this may be related.

Any help is welcome!
__________________
Fedora 20 on a dual boot laptop, other OS = Win 7
Reply With Quote
  #2  
Old 1st February 2015, 03:03 AM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 7,347
linuxfirefox
Re: boot into emergency mode and "dirty metadata"

Fsck in this case must be run manually as it may require confirmation of what it is to do (usually happens when there are conflicting choices - and one, or both, of them could cause the loss of data).

You can try "fsck -f /dev/sda7" (assuming sda7 is the filesystem in question).

You should get some response from that.
Reply With Quote
  #3  
Old 1st February 2015, 03:31 PM
deretsigernu Offline
Registered User
 
Join Date: Oct 2011
Posts: 107
linuxfirefox
Re: boot into emergency mode and "dirty metadata"

If /dev/sda7 is / and I'm logged on, how do I get fsck to run on / ? I just tried it and got this

Quote:
[root@localhost joe]# fsck -r
fsck from util-linux 2.25.2
e2fsck 1.42.11 (09-Jul-2014)
/dev/mapper/fedora-root is mounted.
e2fsck: Cannot continue, aborting.


/dev/mapper/fedora-root: status 8, rss 2884, real 0.003483, user 0.000000, sys 0.003468
__________________
Fedora 20 on a dual boot laptop, other OS = Win 7
Reply With Quote
  #4  
Old 1st February 2015, 05:15 PM
Peter H.S. Offline
Registered User
 
Join Date: Oct 2004
Posts: 107
linuxfirefox
Re: boot into emergency mode and "dirty metadata"

There are several options:
1. boot from an USB stick and run fsck from there. (I assume sda7 is part of your root fs so you just can't unmount it) Fedora comes with an easy to use USB live distro creator. Probably the safest way of checking and repairing a root fs.

2. change into emergency shell and work from there:
http://foobaring.blogspot.dk/2014/01...y-mode-on.html

3. mark the root fs RO and change into runlevel 1:
http://bitsofmymind.com/2014/03/14/h...into-on-linux/

4. add "fsck.mode=force" and "fsck.repair=preen" (for safe repairs) to the kernel at startup.
Or "fsck.repair=yes" for saying yes to all fsck repairs (not necessarily safe).
http://www.freedesktop.org/software/...@.service.html
Reply With Quote
  #5  
Old 1st February 2015, 09:31 PM
deretsigernu Offline
Registered User
 
Join Date: Oct 2011
Posts: 107
linuxfirefox
Re: boot into emergency mode and "dirty metadata"

Peter H.S.,

Quote:
2. change into emergency shell and work from there:
http://foobaring.blogspot.dk/2014/01...y-mode-on.html
... I tried the 1st option on the list there. That didn't work. I went with the 3rd option on their list. It better explained how to use an install disk to navigate to the OS on the computer's disk and everything else worked from there. Thanks!!
__________________
Fedora 20 on a dual boot laptop, other OS = Win 7
Reply With Quote
  #6  
Old 14th March 2015, 03:13 AM
deretsigernu Offline
Registered User
 
Join Date: Oct 2011
Posts: 107
linuxfedorafirefox
Re: boot into emergency mode and "dirty metadata"

Adding this in case the link rots:

"Solution #3 (tested):
1. boot into your LiveCD or LiveUSB
2. once logged in, open gnome-disks utility from the applications (I think its called Disks)
3. unmount all the /dev/mapper/fedora_XXX--root & home & swap
4. open a gnome-terminal (terminal)
5. type su -
6. enter your root password

7. type fsck /dev/mapper/fedora_XXX--root
8. if there are questions about fixing, ignoring, forcing, salvage, etc, always answer y (yes)
9. repeat step 7 & 8 with --home & --swap just to be sure"
__________________
Fedora 20 on a dual boot laptop, other OS = Win 7
Reply With Quote
Reply

Tags
boot, dirty metadata, emergency, emergency mode, mode

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
Why did my "yum upgrade" result in "emergency mode"? OS9Barry Using Fedora 9 3rd August 2014 02:28 PM
Hanging on shutdown/reboot, also see occasional "emergency mode", Fedora 20 blasedef Hardware & Laptops 0 30th January 2014 04:38 PM
[SOLVED] F13->F15 upgrade results in "Welcome to emergency mode". Won't boot. GregJo Installation, Upgrades and Live Media 6 14th June 2012 09:22 AM
How to debug "Emergency Mode" daFritz84 Using Fedora 0 23rd January 2012 09:58 AM
Screen went black, now "Welcome to Emergency Mode" KnavishClout Using Fedora 3 22nd October 2011 02:32 AM


Current GMT-time: 09:28 (Monday, 24-04-2017)

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