Hello.
I was playing around with a 128GB dual usb drive (usb 3.0 + usb-c) that I use for media consumption between my computers and phone.
My phone (OnePlus 6: Android) does this weird thing where it sometimes can't read the usb and only comes up with an option to format it to an appropriate filesystem (exfat). I've used this option in the past with the usb in question as well as other usb drives without any issue.
I formatted the usb to an exfat filesystem (not really sure if I used the phone or the laptop to do that, it's been a while) and after loading it up with some movies it's now kind of unusable:
- I can mount it on my laptop and read data from it, but I can't write anything to it (e.g. delete existing movies or load up new ones)
- My phone can read it but only briefly; it auto-ejects after ~30 seconds
- I can't seem to be able to reformat it using mkfs, fdisk, or my phone. The former two options end up hanging forever (I've tried letting both run for more than 8 ours to no avail). The hanging also occurs when I try to write anything to the drive as well.
Some terminal output that might help:
- fsck
> sudo fsck -CM /dev/sdb
[sudo] password for george:
fsck from util-linux 2.37.3
e2fsck 1.46.5 (30-Dec-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/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>
/dev/sdb contains `DOS/MBR boot sector; partition 1 : ID=0xb, start-CHS (0x0,4,5), end-CHS (0x3c1,217,24), startsector 256, 245759744 sectors, extended partition table (last)' data
- blkid
/dev/sdb1: UUID="F1DF-B900" BLOCK_SIZE="512" TYPE="exfat" PTTYPE="dos" PARTUUID="57529403-01"
- fdisk
Disk /dev/sdb: 117.19 GiB, 125829120000 bytes, 245760000 sectors
Disk model: FDU050
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x57529403
A possible cause of the issue might have been physically ejecting the usb drive while it was still in use, but as I said earlier this was a while ago so I don't really remember.
This is likely not the right forum to be posting these kinds of issues so apologies in advance. On that note, besides possible solutions to my problem, I'd very much appreciate suggestions on which forums / subreddits to move this conversation to. Cheers!
EDIT: New information
- findmnt
findmnt -fn usb
/mnt/usb /dev/sdb1 exfat rw,relatime,fmask=0022,dmask=0022,iocharset=utf8,errors=remount-ro
I also tried using dd
to fill the usb with zeros as per @BluishHumility 's suggestion but that led to the hanging again after running without issues for ~30 seconds.