mortalkorona
May 16th, 2021, 10:38 AM
Hi, so I have previously shutdown my home server build by physically pressing the OFF button on the machine on many occasions. I was forced to do so because of alarms coming from my RAID card. This little maneuver seems to have damaged my operating system.
Can somebody help walk me through which options I should select when performing the fsck command?
Also considering which partition is damaged I'm afraid I will break the boot functionality If I choose the wrong options for /dev/sdb1.
I'm trying to follow this tutorial but it doesn't show which options I should select for my situation.
https://net2.com/using-fsck-to-check-or-repair-the-file-system-in-ubuntu/
$ dmesg
EXT4-fs (sdb2): mounted filesystem with ordered data mode. Opts: (null)
FAT-fs (sdb1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
# __________________________________________________ ___________________________
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sdb2 976M 201M 709M 23% /boot
/dev/sdb1 511M 7.9M 504M 2% /boot/efi
$ sudo umount /boot/efi
# __________________________________________________ ___________________________
$ sudo fsck /dev/sdb1
fsck from util-linux 2.34
fsck.fat 4.1 (2017-01-24)
0x41: Dirty bit is set. Fs was not properly unmounted and some data may be corrupt.
1) Remove dirty bit
2) No action
? 2
There are differences between boot sector and its backup.
This is mostly harmless. Differences: (offset:original/backup)
65:01/00
1) Copy original to backup
2) Copy backup to original
3) No action
? 3
/dev/sdb1: 11 files, 2005/130812 clusters
Can somebody help walk me through which options I should select when performing the fsck command?
Also considering which partition is damaged I'm afraid I will break the boot functionality If I choose the wrong options for /dev/sdb1.
I'm trying to follow this tutorial but it doesn't show which options I should select for my situation.
https://net2.com/using-fsck-to-check-or-repair-the-file-system-in-ubuntu/
$ dmesg
EXT4-fs (sdb2): mounted filesystem with ordered data mode. Opts: (null)
FAT-fs (sdb1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
# __________________________________________________ ___________________________
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sdb2 976M 201M 709M 23% /boot
/dev/sdb1 511M 7.9M 504M 2% /boot/efi
$ sudo umount /boot/efi
# __________________________________________________ ___________________________
$ sudo fsck /dev/sdb1
fsck from util-linux 2.34
fsck.fat 4.1 (2017-01-24)
0x41: Dirty bit is set. Fs was not properly unmounted and some data may be corrupt.
1) Remove dirty bit
2) No action
? 2
There are differences between boot sector and its backup.
This is mostly harmless. Differences: (offset:original/backup)
65:01/00
1) Copy original to backup
2) Copy backup to original
3) No action
? 3
/dev/sdb1: 11 files, 2005/130812 clusters