My question is why does my use of ‘e2fsck -b 32768 <device>’ not work. Here is the blow-by-blow description of my problem and what I did to try to fix i:
Without known cause my system started wanting to enter filesystem repair during startup
error on stat() /dev/disk/by-id/scsi-200d04b341e047a1c-part3: No such file or directory
fsck.ext3: No such file or directoy while trying to open /dev/disk/by-id/scsi-200d04b341e047a1c-part3
bootsplash: status on console 0 changed to on
The superblock could not be read or does not describe a correct ext2 filesystem.
If I use Control-C at the prompt
Give root password for login:
Linux starts and I encounter no obvious problems while using it.
However, I would like to fix things properly, so following advice at Disk repair alternate superblocks - openSUSE I logged in at that prompt and then typed
dumpe2fs /dev/sda3 | grep Backup
to discover alternate superblocks. (I used ‘sda3’ because I have a dual-boot system on a Mac in which sda1 is the EFI Bootloader, sda2 is the MacOS X, sda3 is openSUSE, and sda4 is the Linux Swap.)
The first line was
Backup superblock at 32768, Group descriptors at 32769-32775
I then typed
e2fsck -b 32768 /dev/sda3
but the system responded
/dev/sda3 is mounted
WARNING!!! Running e2fsck on a mounted filesystem may cause SEVERE filesystem damage.
So I unmounted sda3 with
umount -f /dev/sda3
and continued with ‘e2fsck’ again.
I was told
/dev/sda3 was not cleanly unmounted, check forced.
It proceeded anyway. When it was done with Pass 5, it showed multiple instances of
Free blocks count wrong for group #n
and multiple instances of
Free inodes count wrong for group #n
which I approved, and finally it was done.
I restart the system at that point, but during startup I was put back at filesystem repair with the same complaint from fsck.
What can I do to repair the superblock on that partition? Why does the system complain when the OS starts up anyway and I can’t detect problems with the OS?