(個人的)LaVie の Ubuntu 18.04 のファイルシステムが死んだので修復

Ubuntu が立ち上がらなくなってしまったので、Kubuntu のインストール・ディスクをお試しモードで立ち上げて修復する。

Ubuntu は /dev/sda3 だということを確認して、fsck で修復。

kubuntu@kubuntu:/$ umount /dev/sda3 
kubuntu@kubuntu:/$ fsck /dev/sda3 -p
fsck from util-linux 2.28.2
fsck.ext2: Permission denied while trying to open /dev/sda3
You must have r/w access to the filesystem or be root
kubuntu@kubuntu:/$ sudo fsck /dev/sda3 -p
fsck from util-linux 2.28.2
/dev/sda3 contains a file system with errors, check forced.
/dev/sda3: Inodes that were part of a corrupted orphan linked list found.  

/dev/sda3: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
        (i.e., without -a or -p options)

kubuntu@kubuntu:/$ sudo fsck /dev/sda3
fsck from util-linux 2.28.2
e2fsck 1.43.3 (04-Sep-2016)
/dev/sda3 contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
Inodes that were part of a corrupted orphan linked list found.  Fix<y>? yes
Inode 14418682 was part of the orphaned inode list.  FIXED.
Inode 14419665 was part of the orphaned inode list.  FIXED.
Inode 14419758 was part of the orphaned inode list.  FIXED.
Inode 14419776 was part of the orphaned inode list.  FIXED.
Inode 14423215 was part of the orphaned inode list.  FIXED.
Inode 14423281 was part of the orphaned inode list.  FIXED.
Inode 14423330 was part of the orphaned inode list.  FIXED.
Inode 14423410 was part of the orphaned inode list.  FIXED.
Inode 20709604 was part of the orphaned inode list.  FIXED.
Inode 21758134 was part of the orphaned inode list.  FIXED.
Inode 21758255 was part of the orphaned inode list.  FIXED.
Inode 21759035 was part of the orphaned inode list.  FIXED.
Inode 21764033 was part of the orphaned inode list.  FIXED.
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Block bitmap differences:  -196672 -(11081728--11083775) -(11085824--11087871) -(11089920--11091967) -(11094016--11096063) -(11098112--11100159) -(11102208--11104255) -(11106304--11108062) -82870390 -83039424 -83039568 -(83643970--83643985) -(83643994--83644009) -(83644068--83644075) -(83664452--83664459) -83664619 -83664890 -(83946396--83946399) -(85817921--85817928) -85818358 -(92887458--92887465)
Fix<y>? yes
Free blocks count wrong for group #6 (32089, counted=32090).
Fix<y>? yes
Free blocks count wrong for group #338 (868, counted=14915).
Fix<y>? yes
Free blocks count wrong for group #2529 (26184, counted=26185).
Fix<y>? yes
Free blocks count wrong for group #2534 (13904, counted=13906).
Fix<y>? yes
Free blocks count wrong for group #2552 (9182, counted=9222).
Fix<y>? yes
Free blocks count wrong for group #2553 (9769, counted=9779).
Fix<y>? yes
Free blocks count wrong for group #2561 (10796, counted=10800).
Fix<y>? yes
Free blocks count wrong for group #2618 (1808, counted=1817).
Fix ('a' enables 'yes' to all) <y>? yes to all
Free blocks count wrong for group #2834 (18779, counted=18787).
Fix? yes

Free blocks count wrong (63838170, counted=63852292).
Fix? yes

Inode bitmap differences:  -14417977 -14418682 -14419665 -14419758 -14419776 -14423215 -14423281 -14423330 -14423410 -20709604 -21758134 -21758255 -21759035 -21764033
Fix? yes

Free inodes count wrong for group #1760 (5, counted=14).
Fix? yes

Free inodes count wrong for group #2528 (1718, counted=1719).
Fix? yes

Free inodes count wrong for group #2656 (1995, counted=1999).
Fix? yes

Free inodes count wrong (22957171, counted=22957185).
Fix? yes


/dev/sda3: ***** FILE SYSTEM WAS MODIFIED *****
/dev/sda3: 1094527/24051712 files (0.4% non-contiguous), 32339114/96191406 blocks
kubuntu@kubuntu:/$ 

 
これで立ち上がるようになった。