小男孩‘自慰网亚洲一区二区,亚洲一级在线播放毛片,亚洲中文字幕av每天更新,黄aⅴ永久免费无码,91成人午夜在线精品,色网站免费在线观看,亚洲欧洲wwwww在线观看

分享

啟動時出現(xiàn)錯誤an error occurred during the file system check dropping you to a shell

 七克白菜 2017-04-17

啟動時候出現(xiàn)錯誤。

好好的系統(tǒng)突然啟動時出現(xiàn)了

***an error occurred during the file system check
***Dropping you to a shell;thesystem will reboot
***when you leave the shell.
Give root password for mainteance
(or type Control -D for normal startup)

是文件系統(tǒng)出了錯誤。用fsck進行回復,剛開始使用-a選項,沒有成功,后來仔細看了出錯提示,

解決方法,root密碼

于是檢查邏輯卷,提示:

# fsck.ext3 -f /dev/mapper/test-test 
e2fsck 1.38 (30-Jun-2005)
fsck.ext3: Attempt to read block from filesystem resulted in short read while trying to open /dev/mapper/test-test
Could this be a zero-length partition?

 

然后,查看了一下這個邏輯卷的信息:

# mkfs.ext3 -n /dev/mapper/test-test 
mke2fs 1.38 (30-Jun-2005)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
6553600 inodes, 13107200 blocks
655360 blocks (5.00%) reserved for the super user
First data block=0
400 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks: 
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
        4096000, 7962624, 11239424

 

然后,嘗試了一下,用備用超級塊來修復:

# fsck.ext3 -b 163840 /dev/mapper/test-test 
e2fsck 1.38 (30-Jun-2005)
fsck.ext3: Attempt to read block from filesystem resulted in short read while trying to open /dev/mapper/test-test
Could this be a zero-length partition?


結(jié)果仍然報錯。那就再試試重啟lvm服務(wù)吧,執(zhí)行

/etc/init.d/lvm stop

/etc/init.d/lvm start

然后再執(zhí)行:

# fsck.ext3 -b 163840 /dev/mapper/test-test 
e2fsck 1.38 (30-Jun-2005)
ext3 recovery flag is clear, but journal has data.
Recovery flag not set in backup superblock, so running journal anyway.
/dev/mapper/test-test: recovering journal
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information

/dev/mapper/test-test: ***** FILE SYSTEM WAS MODIFIED *****
/dev/mapper/test-test: 31/6553600 files (3.2% non-contiguous), 1823265/13107200 blocks

 

執(zhí)行/etc/init.d/checkfs.sh start,也可檢查、修復文件系統(tǒng)。


執(zhí)行

(Repair filesystem)# fdisk -l    查看所有的/dev

之后依次 :
(Repair filesystem)#fsck -y /dev/sda2
(Repair filesystem)#fsck -y /dev/sda3
(Repair filesystem)#fsck -y /dev/sda4
(Repair filesystem)#fsck -y /dev/sda5


說可以嘗試用不帶-a或-p的fsck,過程中會讓你選擇幾個yes/no,是關(guān)于文件塊修復的,都選yes就可以了,成功。

以后要養(yǎng)成正常關(guān)機的好習慣。。

    本站是提供個人知識管理的網(wǎng)絡(luò)存儲空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點。請注意甄別內(nèi)容中的聯(lián)系方式、誘導購買等信息,謹防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊一鍵舉報。
    轉(zhuǎn)藏 分享 獻花(0

    0條評論

    發(fā)表

    請遵守用戶 評論公約

    類似文章 更多