openSuse 42.3 (KDE) 以 root 身分登入
LUKS 加密的 /home 分割區(/sda4 是主分割區,沒有 LVM)儘管已解鎖,但在啟動時無法存取。顯然存在壞塊。
fsck.ext4 -nf /dev/sda4
e2fsck 1.42.11 (09-Jul-2014)
Warning! /dev/sda4 is in use.
ext2fs_open2: Bad magic number in super-block
fsck.ext4: Superblock invalid, trying backup blocks...
fsck.ext4: Bad magic number in super-block while trying to open /dev/sda4
然後
unmount /dev/sda4
umount: /dev/sda4: not mounted
唉
sudo mke2fs -n /dev/sda4
mke2fs 1.42.11 (09-Jul-2014)
/dev/sda4 contains a crypto_LUKS file system
Proceed anyway? (y,n) y
/dev/sda4 is apparently in use by the system; will not make a filesystem here!
下一步
fdisk -l
Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: A-LONG/NUMBER
Device Start End Sectors Size Type
/dev/sda1 2048 2099199 2097152 1G BIOS boot
/dev/sda2 2099200 18909183 16809984 8G Microsoft basic data
/dev/sda3 18909184 169904117 150994934 72G Microsoft basic data
/dev/sda4 169904128 1953523711 1783619584 850.5G Microsoft basic data
Disk /dev/mapper/A-HDID-part4: 850.5 GiB, 913211129856 bytes, 1783615488 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
下次嘗試
umount /dev/mapper/A-HDID-part4:
umount: /dev/mapper/A-HDID-part4: not mounted
fsck 再次抱怨它正在使用中。因此,任何關於如何從這裡繼續進行的建議,我的意思是讓 fsck.ext4 運行或如何潛在的資料遺失不是問題,存在完整備份。 (是的,這是 ext4,即使 fdisk 傳回了 Microsoft 基本資料)
除了瀏覽器和控制台之外沒有其他東西在運行,df -h 也沒有顯示任何內容。如何讓 fsck 開始運作。