web-dev-qa-db-ja.com

Fedora21の緊急モード-mcelog

私のFedora21システムは、緊急モードで直接起動します。エラーメッセージがあります:unable to init device /dev/mcelog (rc -5)

次のように表示されます。systemctl defaultデフォルトモードで起動します。これは機能します。その後、マシンは正常に再起動します。次の再起動で-再び同じ。

たぶん、私にも入出力エラーがあることを知る必要があります。緊急モードで^ Dと入力すると、起動は正常に続行されますが、たとえば、入出力エラーのためにyum updateが機能しません。

私はFedora3.17.7-300.fc21.x86_64を使用しています)21。

エラーメッセージには、次のようにも表示されます。typejournalctl -xb;これは出力です: journalctl xb

最初の行:

-- Logs begin at Thu 2015-01-08 09:06:21 CET, end at Fri 2015-02-06 13:08:34 CET. --
Feb 06 13:03:26 localhost.localdomain systemd-journal[120]: Runtime journal is using 8.0M (max allowed 141.7M, trying to leave 212.6M free of 1.3G available → current limit 141.7M).
Feb 06 13:03:26 localhost.localdomain systemd-journal[120]: Runtime journal is using 8.0M (max allowed 141.7M, trying to leave 212.6M free of 1.3G available → current limit 141.7M).
Feb 06 13:03:26 localhost.localdomain kernel: Initializing cgroup subsys cpuset
Feb 06 13:03:26 localhost.localdomain kernel: Initializing cgroup subsys cpu
Feb 06 13:03:26 localhost.localdomain kernel: Initializing cgroup subsys cpuacct
Feb 06 13:03:26 localhost.localdomain kernel: Linux version 3.17.7-300.fc21.x86_64 ([email protected]) (gcc version 4.9.2 20141101 (Red Hat 4.9.2-1) (GCC) ) #1 SMP Wed Dec 17 03:08:44 UTC 2014
Feb 06 13:03:26 localhost.localdomain kernel: Command line: BOOT_IMAGE=/vmlinuz-3.17.7-300.fc21.x86_64 root=/dev/mapper/Fedora-root ro rd.lvm.lv=Fedora/swap rd.lvm.lv=Fedora/root rhgb quiet LANG=en_US.UTF-8
Feb 06 13:03:26 localhost.localdomain kernel: Disabled fast string operations
Feb 06 13:03:26 localhost.localdomain kernel: e820: BIOS-provided physical RAM map:
Feb 06 13:03:26 localhost.localdomain kernel: BIOS-e820: [mem 0x0000000000000000-0x000000000009f7ff] usable
Feb 06 13:03:26 localhost.localdomain kernel: BIOS-e820: [mem 0x000000000009f800-0x000000000009ffff] reserved
Feb 06 13:03:26 localhost.localdomain kernel: BIOS-e820: [mem 0x00000000000dc000-0x00000000000fffff] reserved
Feb 06 13:03:26 localhost.localdomain kernel: BIOS-e820: [mem 0x0000000000100000-0x00000000b4eeffff] usable
Feb 06 13:03:26 localhost.localdomain kernel: BIOS-e820: [mem 0x00000000b4ef0000-0x00000000b4efefff] ACPI data
Feb 06 13:03:26 localhost.localdomain kernel: BIOS-e820: [mem 0x00000000b4eff000-0x00000000b4efffff] ACPI NVS
Feb 06 13:03:26 localhost.localdomain kernel: BIOS-e820: [mem 0x00000000b4f00000-0x00000000b4ffffff] usable
Feb 06 13:03:26 localhost.localdomain kernel: BIOS-e820: [mem 0x00000000f0000000-0x00000000f7ffffff] reserved
Feb 06 13:03:26 localhost.localdomain kernel: BIOS-e820: [mem 0x00000000fec00000-0x00000000fec0ffff] reserved
Feb 06 13:03:26 localhost.localdomain kernel: BIOS-e820: [mem 0x00000000fee00000-0x00000000fee00fff] reserved
Feb 06 13:03:26 localhost.localdomain kernel: BIOS-e820: [mem 0x00000000fffe0000-0x00000000ffffffff] reserved
Feb 06 13:03:26 localhost.localdomain kernel: NX (Execute Disable) protection: active

(私は重要だと思います)中間線:

Feb 06 13:03:26 localhost.localdomain kernel: Initializing XFRM netlink socket
Feb 06 13:03:26 localhost.localdomain kernel: NET: Registered protocol family 10
Feb 06 13:03:26 localhost.localdomain kernel: mip6: Mobile IPv6
Feb 06 13:03:26 localhost.localdomain kernel: NET: Registered protocol family 17
Feb 06 13:03:26 localhost.localdomain kernel: mce: Unable to init device /dev/mcelog (rc: -5)
Feb 06 13:03:26 localhost.localdomain kernel: Loading compiled-in X.509 certificates
Feb 06 13:03:26 localhost.localdomain kernel: input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input1
Feb 06 13:03:26 localhost.localdomain kernel: Loaded X.509 cert 'Fedora kernel signing key: a3deaae72f85c63029d7879041c633438a40e688'
Feb 06 13:03:26 localhost.localdomain kernel: registered taskstats version 1
Feb 06 13:03:26 localhost.localdomain kernel:   Magic number: 3:210:76

最後の行:

    Feb 06 13:03:30 localhost.localdomain systemd[1]: Configuration file /usr/lib/systemd/system/auditd.service is marked world-inaccessible. This has no effect as configuration data is accessible via APIs without restrictions. Proceeding anyway.
Feb 06 13:03:31 localhost.localdomain systemd-fsck[489]: /dev/mapper/Fedora-root contains a file system with errors, check forced.
Feb 06 13:03:31 localhost.localdomain lvm[487]: /dev/sr0: open failed: No medium found
Feb 06 13:03:31 localhost.localdomain lvm[487]: 2 logical volume(s) in volume group "Fedora" monitored
Feb 06 13:03:32 localhost.localdomain systemd-fsck[489]: /dev/mapper/Fedora-root: Duplicate or bad block in use!
Feb 06 13:03:32 localhost.localdomain systemd-fsck[489]: /dev/mapper/Fedora-root: Multiply-claimed block(s) in inode 1316688: 5439532
Feb 06 13:03:32 localhost.localdomain systemd-fsck[489]: /dev/mapper/Fedora-root: Multiply-claimed block(s) in inode 1328717: 5439532
Feb 06 13:03:32 localhost.localdomain systemd-fsck[489]: /dev/mapper/Fedora-root: (There are 2 inodes containing multiply-claimed blocks.)
Feb 06 13:03:32 localhost.localdomain systemd-fsck[489]: /dev/mapper/Fedora-root: File /var/log/wtmp (inode #1316688, mod time Fri Feb  6 13:03:20 2015)
Feb 06 13:03:32 localhost.localdomain systemd-fsck[489]: has 1 multiply-claimed block(s), shared with 1 file(s):
Feb 06 13:03:32 localhost.localdomain systemd-fsck[489]: /dev/mapper/Fedora-root:         /var/log/mariadb/mariadb.log (inode #1328717, mod time Fri Feb  6 13:01:52 2015)
Feb 06 13:03:32 localhost.localdomain systemd-fsck[489]: /dev/mapper/Fedora-root:
Feb 06 13:03:32 localhost.localdomain systemd-fsck[489]: /dev/mapper/Fedora-root: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
Feb 06 13:03:32 localhost.localdomain systemd-fsck[489]: (i.e., without -a or -p options)
Feb 06 13:03:32 localhost.localdomain systemd-fsck[489]: fsck failed with error code 4.
Feb 06 13:03:32 localhost.localdomain systemd-fsck[489]: Running request emergency.target/start/replace
Feb 06 13:03:33 localhost.localdomain kernel: EXT4-fs (dm-0): warning: mounting fs with errors, running e2fsck is recommended
Feb 06 13:03:33 localhost.localdomain alsactl[505]: alsactl 1.0.28 daemon started
Feb 06 13:03:33 localhost.localdomain alsactl[505]: /usr/sbin/alsactl: load_state:1729No soundcards found...
Feb 06 13:03:33 localhost.localdomain kernel: EXT4-fs (dm-0): re-mounted. Opts: (null)
Feb 06 13:03:33 localhost.localdomain systemd-journal[485]: Permanent journal is using 96.0M (max allowed 4.0G, trying to leave 4.0G free of 35.1G available → current limit 4.0G).
Feb 06 13:03:33 localhost.localdomain systemd-journal[485]: Time spent on flushing to /var is 537.241ms for 1381 entries.
Feb 06 13:03:34 localhost.localdomain kernel: piix4_smbus 0000:00:07.3: SMBus Host Controller not enabled!
Feb 06 13:03:34 localhost.localdomain kernel: vmw_vmci 0000:00:07.7: Found VMCI PCI device at 0x11080, irq 16
Feb 06 13:03:34 localhost.localdomain kernel: vmw_vmci 0000:00:07.7: Using capabilities 0xc
Feb 06 13:03:34 localhost.localdomain kernel: vmw_vmci 0000:00:07.7: irq 56 for MSI/MSI-X
Feb 06 13:03:34 localhost.localdomain kernel: vmw_vmci 0000:00:07.7: irq 57 for MSI/MSI-X
Feb 06 13:03:34 localhost.localdomain kernel: Guest personality initialized and is active
Feb 06 13:03:34 localhost.localdomain kernel: VMCI Host device registered (name=vmci, major=10, minor=59)
Feb 06 13:03:34 localhost.localdomain kernel: Initialized Host personality
Feb 06 13:03:34 localhost.localdomain kernel: shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
Feb 06 13:03:34 localhost.localdomain kernel: parport_pc 00:05: reported by Plug and Play ACPI
Feb 06 13:03:34 localhost.localdomain kernel: parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
Feb 06 13:03:34 localhost.localdomain kernel: alg: No test for crc32 (crc32-pclmul)
Feb 06 13:03:34 localhost.localdomain kernel: ppdev: user-space parallel port driver
Feb 06 13:03:34 localhost.localdomain mtp-probe[553]: checking bus 2, device 2: "/sys/devices/pci0000:00/0000:00:11.0/0000:02:00.0/usb2/2-1"
Feb 06 13:03:34 localhost.localdomain mtp-probe[553]: bus: 2, device: 2 was not an MTP device
Feb 06 13:03:33 localhost.localdomain systemd-udevd[526]: starting version 217
Feb 06 13:03:34 localhost.localdomain kernel: Adding 3014652k swap on /dev/mapper/Fedora-swap.  Priority:-1 extents:1 across:3014652k FS
Feb 06 13:03:34 localhost.localdomain lvm[573]: 3 logical volume(s) in volume group "Fedora" now active
Feb 06 13:03:34 localhost.localdomain systemd-fsck[575]: /dev/sda1: clean, 419/128016 files, 129336/512000 blocks
Feb 06 13:03:34 localhost.localdomain kernel: EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
Feb 06 13:03:34 localhost.localdomain kernel: SELinux: initialized (dev sda1, type ext4), uses xattr
Feb 06 13:03:34 localhost.localdomain systemd-fsck[589]: /dev/mapper/Fedora-home contains a file system with errors, check forced.
Feb 06 13:03:34 localhost.localdomain systemd-fsck[589]: /dev/mapper/Fedora-home: Duplicate or bad block in use!
Feb 06 13:03:34 localhost.localdomain systemd-fsck[589]: /dev/mapper/Fedora-home: Multiply-claimed block(s) in inode 2359436: 9445606
Feb 06 13:03:34 localhost.localdomain systemd-fsck[589]: /dev/mapper/Fedora-home: Multiply-claimed block(s) in inode 2359723: 9445606
Feb 06 13:03:34 localhost.localdomain systemd-fsck[589]: /dev/mapper/Fedora-home: (There are 2 inodes containing multiply-claimed blocks.)
Feb 06 13:03:34 localhost.localdomain systemd-fsck[589]: /dev/mapper/Fedora-home: File /dder/.cache/mozilla/firefox/fl6tebaj.default/cache2/entries (inode #2359436, mod time Fri Feb  6 12:58:01 2015)
Feb 06 13:03:34 localhost.localdomain systemd-fsck[589]: has 1 multiply-claimed block(s), shared with 1 file(s):
Feb 06 13:03:34 localhost.localdomain systemd-fsck[589]: /dev/mapper/Fedora-home:         /dder/.mozilla/firefox/fl6tebaj.default/prefs.js (inode #2359723, mod time Sun Jan 11 21:22:16 2015)
Feb 06 13:03:34 localhost.localdomain systemd-fsck[589]: /dev/mapper/Fedora-home:
Feb 06 13:03:34 localhost.localdomain systemd-fsck[589]: /dev/mapper/Fedora-home: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
Feb 06 13:03:34 localhost.localdomain systemd-fsck[589]: (i.e., without -a or -p options)
Feb 06 13:03:34 localhost.localdomain systemd-fsck[589]: fsck failed with error code 4.
Feb 06 13:03:34 localhost.localdomain systemd-fsck[589]: Running request emergency.target/start/replace
Feb 06 13:03:34 localhost.localdomain kernel: EXT4-fs (dm-2): warning: mounting fs with errors, running e2fsck is recommended
Feb 06 13:03:34 localhost.localdomain kernel: EXT4-fs (dm-2): mounted filesystem with ordered data mode. Opts: (null)
Feb 06 13:03:34 localhost.localdomain kernel: SELinux: initialized (dev dm-2, type ext4), uses xattr
Feb 06 13:03:35 localhost.localdomain systemd-tmpfiles[608]: remove(/var/lib/rpm/__db.001): Input/output error
Feb 06 13:03:35 localhost.localdomain kernel: EXT4-fs error (device dm-0): ext4_lookup:1441: inode #1316485: comm systemd-tmpfile: deleted inode referenced: 1328892
Feb 06 13:03:35 localhost.localdomain auditd[612]: Started dispatcher: /sbin/audispd pid: 618
Feb 06 13:03:35 localhost.localdomain audispd[618]: priority_boost_parser called with: 4
Feb 06 13:03:35 localhost.localdomain audispd[618]: max_restarts_parser called with: 10
Feb 06 13:03:35 localhost.localdomain audispd[618]: audispd initialized with q_depth=150 and 1 active plugins
Feb 06 13:03:35 localhost.localdomain auditd[612]: Init complete, auditd 2.4.1 listening for events (startup state enable)
Feb 06 13:03:35 localhost.localdomain kernel: audit: type=1305 audit(1423224215.337:4): audit_pid=612 old=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:auditd_t:s0 res=1
Feb 06 13:03:35 localhost.localdomain auditctl[613]: No rules
Feb 06 13:04:08 localhost.localdomain kernel: EXT4-fs error (device dm-0): ext4_mb_generate_buddy:757: group 161, block bitmap and bg descriptor inconsistent: 12 vs 13 free clusters
Feb 06 13:08:30 localhost.localdomain kernel: EXT4-fs (dm-0): error count since last fsck: 230
Feb 06 13:08:30 localhost.localdomain kernel: EXT4-fs (dm-0): initial error at time 1421083217: ext4_lookup:1441: inode 1722417
Feb 06 13:08:30 localhost.localdomain kernel: EXT4-fs (dm-0): last error at time 1423224248: ext4_mb_generate_buddy:757
Feb 06 13:08:34 localhost.localdomain kernel: EXT4-fs (dm-2): error count since last fsck: 36
Feb 06 13:08:34 localhost.localdomain kernel: EXT4-fs (dm-2): initial error at time 1421083213: ext4_mb_generate_buddy:757
Feb 06 13:08:34 localhost.localdomain kernel: EXT4-fs (dm-2): last error at time 1423223563: ext4_mb_generate_buddy:757

Live-USBから起動しようとし、fdisk -lと入力しました。これはfdisk -lからの出力の一部です。

Disk /dev/sda: 111.8 GiB, 120034123776 bytes, 234441648 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x337f0bd9

Device     Boot   Start       End   Sectors   Size Id Type
/dev/sda1  *       2048   1026047   1024000   500M 83 Linux
/dev/sda2       1026048 234440703 233414656 111.3G 8e Linux LVM

Disk /dev/mapper/Fedora-root: 50 GiB, 53687091200 bytes, 104857600 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/Fedora-swap: 2.9 GiB, 3087007744 bytes, 6029312 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/Fedora-home: 58.4 GiB, 62662901760 bytes, 122388480 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/sdb: 14.7 GiB, 15728640000 bytes, 30720000 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xa1d41386

Device     Boot Start      End  Sectors  Size Id Type
/dev/sdb1  *     8064 30719999 30711936 14.7G  c W95 FAT32 (LBA)

sdaは私のFedoraシステムであり、sdbは私の暗号化されたWindowsであり、すべて別個のブートローダーで実行されています。

e2fsckの出力は以下をもたらします。

e2fsck /dev/sda
e2fsck 1.42.11 (09-Jul-2014)
/dev/sda is in use.
e2fsck: Cannot continue, aborting.

e2fsck /dev/sda1
e2fsck 1.42.11 (09-Jul-2014)
/dev/sda1 is mounted.
e2fsck: Cannot continue, aborting.

e2fsck /dev/sda2
e2fsck 1.42.11 (09-Jul-2014)
/dev/sda2 is in use.
e2fsck: Cannot continue, aborting.

Live-USBから起動すると、e2fsck /dev/sda1clean driveを生成し、e2fsck /dev/sda2/dev/sda2 is in use. e2fsck: Cannot continue, aborting.を生成します

2
Joel

Live-USBは明らかにファイルシステムを自動的にマウントします。それらを修復するには、e2fsckを使用する前にそれらをアンマウントする必要があります。また、LVMを使用しているため、ファイルシステムは/ dev/mapperディレクトリにリンクファイルとしてリストされます。たとえば、/ dev/sda2ではなく/ dev/mapper/whatever(/dev/mapper/vg_hostname_lv_root、/ dev/mapper/vg_hostname_lv_homeのように)... LVMを使用するときにファイルシステムが構築される場所だからです。

1