ubuntu@ubuntu:~$ sudo fsck /dev/sda1
fsck from util-linux 2.26.2
e2fsck 1.42.12 (29-Aug-2014)
/dev/sda1 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 2497006 was part of the orphaned inode list. FIXED.
Inode 2497369 was part of the orphaned inode list. FIXED.
Inode 2497391 was part of the orphaned inode list. FIXED.
Inode 2497437 was part of the orphaned inode list. FIXED.
Inode 2497438 was part of the orphaned inode list. FIXED.
Deleted inode 2497443 has zero dtime. Fix<y>? yes
Inode 2497494 was part of the orphaned inode list. FIXED.
Inode 2497607 was part of the orphaned inode list. FIXED.
Inode 2497802 was part of the orphaned inode list. FIXED.
Inode 2497832 was part of the orphaned inode list. FIXED.
Inode 2497874 was part of the orphaned inode list. FIXED.
Inode 2498221 was part of the orphaned inode list. FIXED.
Inode 2498288 was part of the orphaned inode list. FIXED.
Inode 2498354 was part of the orphaned inode list. FIXED.
Inode 2498390 was part of the orphaned inode list. FIXED.
Inode 2500260 was part of the orphaned inode list. FIXED.
Inode 2502188 was part of the orphaned inode list. FIXED.
Inode 2503520 was part of the orphaned inode list. FIXED.
Inode 2505484 was part of the orphaned inode list. FIXED.
Inode 2505850 was part of the orphaned inode list. FIXED.
Inode 2505906 was part of the orphaned inode list. FIXED.
Inode 2506737 was part of the orphaned inode list. FIXED.
Inode 2506957 was part of the orphaned inode list. FIXED.
Inode 8257554 was part of the orphaned inode list. FIXED.
Inode 11403376 was part of the orphaned inode list. FIXED.
Inode 11403527 was part of the orphaned inode list. FIXED.
Inode 11403711 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: -(10124588--10124596) -10186862 -(10211729--10211734) -(10214190--10214199) -(10221225--10221230) -(10298675--10298680) -(10308887--10308892) -10320970 -10327039 -(10329677--10329678) -(10329765--10329766) -10336596 -10338129 -(10353722--10353723) -(10353736--10353738) -(10353798--10353805) -(10365493--10365498) -11568222 -13696109 -(17878533--17878544) -45820790 -(45822649--45822654) -(45823508--45823513) -(45823564--45823569) -45823602 -(45849106--45849111)
Fix<y>? yes
Free blocks count wrong for group #308 (17594, counted=17603).
Fix<y>? yes
Free blocks count wrong for group #310 (7929, counted=7930).
Fix<y>? yes
Free blocks count wrong for group #311 (25532, counted=25554).
Fix<y>? yes
Free blocks count wrong for group #314 (27014, counted=27027).
Fix<y>? yes
Free blocks count wrong for group #315 (23565, counted=23585).
Fix<y>? yes
Free blocks count wrong for group #316 (16069, counted=16075).
Fix<y>? yes
Free blocks count wrong for group #353 (29176, counted=29177).
Fix<y>? yes
Free blocks count wrong for group #417 (6610, counted=6611).
Fix<y>? yes
Free blocks count wrong for group #545 (19282, counted=19294).
Fix<y>? yes
Free blocks count wrong for group #1398 (9399, counted=9419).
Fix<y>? yes
Free blocks count wrong for group #1399 (9098, counted=9104).
Fix<y>? yes
Free blocks count wrong (54706403, counted=54650627).
Fix<y>? yes
Inode bitmap differences: -2497006 -2497369 -2497391 -(2497437--2497438) -2497443 -2497494 -2497607 -2497802 -2497832 -2497874 -2498221 -2498288 -2498354 -2498390 -2500260 -2502188 -2503520 -2505484 -2505850 -2505906 -2506737 -2506957 -8257554 -11403376 -11403527 -11403711
Fix<y>? yes
Free inodes count wrong for group #304 (0, counted=15).
Fix<y>? yes
Free inodes count wrong for group #305 (1, counted=8).
Fix<y>? yes
Free inodes count wrong for group #306 (7295, counted=7296).
Fix<y>? yes
Free inodes count wrong for group #1008 (7104, counted=7105).
Fix<y>? yes
Free inodes count wrong for group #1392 (167, counted=170).
Fix<y>? yes
Free inodes count wrong (14596448, counted=14595649).
Fix<y>? yes
y
/dev/sda1: ***** FILE SYSTEM WAS MODIFIED *****
/dev/sda1: 412095/15007744 files (0.2% non-contiguous), 5350397/60001024 blocks
yubuntu@ubuntu:~$