Solved fsck on ext4 [Cannot find file system superblock]

Although I can mount other ext4 disks on my FreeBSD, I can only mount that one ext4 disk in read-only mode. When I try to mount it normally (read/write mode), it shows Operation not permitted. When I check the kernel message I found the following message.
Code:
Sep 23 19:11:36 FreeBSD kernel: WARNING: R/W mount denied.  Filesystem is not clean - run fsck
So, I try to run fsck on da1 but I'm getting an error message.
Code:
# fsck /dev/da1
** /dev/da1
Cannot find file system superblock
It seems it is possible to fix that disk on Linux but I haven't run it yet.
Code:
$ fsck /dev/sdc
fsck from util-linux 2.36.1
e2fsck 1.46.2 (28-Feb-2021)
ext2fs_open2: Bad magic number in super-block
fsck.ext2: Superblock invalid, trying backup blocks...
fsck.ext2: Bad magic number in super-block while trying to open /dev/sdc

The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem.  If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>
 or
    e2fsck -b 32768 <device>

Found a dos partition table in /dev/sdc
I would like to know how can I fix that disk on FreeBSD 13.0-RELEASE. Thanks.
 
ext4 has only partial support on FreeBSD. I would try booting a Linux partition or installer where ext4 is native, and run fsck from there.
 
Back
Top