Dirty bit is set. Fs was not properly unmounted and some data may be corrupt.
Automatically removing dirty bit.
*** Filesystem was changed ***
Writing changes.
/dev/sdb1: 17 files, 1577/274657 clusters
ubuntu@ubuntu:~$ sudo fsck -y /dev/sdb*
fsck from util-linux 2.39.3
e2fsck 1.47.0 (5-Feb-2023)
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/sdb
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>
fsck.fat 4.2 (2021-01-31)
/dev/sdb1: 17 files, 1577/274657 clusters
Found a gpt partition table in /dev/sdb
e2fsck 1.47.0 (5-Feb-2023)
/dev/sdb2: clean, 309934/30457856 files, 8038027/121820928 blocks
ubuntu@ubuntu:~$