Code:
ubuntu@ubuntu:~$ sudo fsck -n /dev/sda1
fsck from util-linux 2.20.1
e2fsck 1.42 (29-Nov-2011)
fsck.ext4: Group descriptors look bad... trying backup blocks...
fsck.ext4: Bad magic number in super-block when using the backup blocks
fsck.ext4: going back to original superblock
fsck.ext4: Group descriptors look bad... trying backup blocks...
fsck.ext4: Bad magic number in super-block when using the backup blocks
fsck.ext4: going back to original superblock
Error reading block 4294967295 (Invalid argument). Ignore error? no
Superblock has an invalid journal (inode 8).
Clear? no
fsck.ext4: Illegal inode number while checking ext3 journal for /dev/sda1
/dev/sda1: ********** WARNING: Filesystem still has errors **********
ubuntu@ubuntu:~$ echo $?
12
12 means Filesystem errors left uncorrected and Operational error
Code:
- 4 – Filesystem errors left uncorrected
- 8 – Operational error
sda2 looks fine, although its too big (my opinion)
Code:
ubuntu@ubuntu:~$ sudo fsck -n /dev/sda2
fsck from util-linux 2.20.1
e2fsck 1.42 (29-Nov-2011)
/dev/sda2: clean, 254/122400 files, 151105/488448 blocks
ubuntu@ubuntu:~$ echo $?
0
sda3 looks like sda1:
Code:
ubuntu@ubuntu:~$ sudo fsck -n /dev/sda3
fsck from util-linux 2.20.1
e2fsck 1.42 (29-Nov-2011)
fsck.ext4: Group descriptors look bad... trying backup blocks...
fsck.ext4: Bad magic number in super-block when using the backup blocks
fsck.ext4: going back to original superblock
fsck.ext4: Group descriptors look bad... trying backup blocks...
fsck.ext4: Bad magic number in super-block when using the backup blocks
fsck.ext4: going back to original superblock
Error reading block 1367597501 (Invalid argument). Ignore error? no
Superblock has an invalid journal (inode 8).
Clear? no
fsck.ext4: Illegal inode number while checking ext3 journal for /dev/sda3
/dev/sda3: ********** WARNING: Filesystem still has errors **********
ubuntu@ubuntu:~$ echo $?
12
Bookmarks