I just installed exfat-utils and I'm trying to format a 16GB microSD card:
$ sudo mkfs.exfat /dev/sdb1 mkexfatfs 1.3.0 Creating... done. Flushing... done. File system created successfully.
But it actually doesn't do anything. All the old files are still on the SD card.
Thanks, Richard
On Sat, Sep 21, 2019 at 12:19 PM sixpack13 sixpack13@online.de wrote:
/dev/sdb1 still mounted ?
Tried with and without with the same result. You'd expect it to error out if it was.
Thanks, Richard
On Sat, 2019-09-21 at 12:03 -0500, Richard Shaw wrote:
But it actually doesn't do anything. All the old files are still on the SD card.
Are you absolutely sure the SD card was /dev/sdb1?
On Sat, Sep 21, 2019 at 11:30 PM Tim via users < users@lists.fedoraproject.org> wrote:
On Sat, 2019-09-21 at 12:03 -0500, Richard Shaw wrote:
But it actually doesn't do anything. All the old files are still on the SD card.
Are you absolutely sure the SD card was /dev/sdb1?
I figured someone would ask that :)
Yes, I only have a NVME SSD (completely different naming scheme), and one rotational HD (/dev/sda), plus I checked dmesg to be sure.
Thanks, Richard
Well, it may not be mkexfatfs's problem...
I tried using gparted to re-format it FAT32 - Everything "completed successfully" but same result on replug, all the files are there.
I tried deleting a directory on it, and "emptied the trash", unplug, replug, directory is back.
[86799.359224] scsi 10:0:0:0: Direct-Access Generic STORAGE DEVICE 1404 PQ: 0 ANSI: 6 [86799.359637] sd 10:0:0:0: Attached scsi generic sg2 type 0 [86799.571164] sd 10:0:0:0: [sdb] 31116288 512-byte logical blocks: (15.9 GB/14.8 GiB) [86799.573477] sd 10:0:0:0: [sdb] Write Protect is off [86799.573481] sd 10:0:0:0: [sdb] Mode Sense: 21 00 00 00 [86799.575487] sd 10:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA [86799.588396] sdb: sdb1 [86799.593493] sd 10:0:0:0: [sdb] Attached SCSI removable disk [86799.809090] FAT-fs (sdb1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
Also, I've tried clearing the dirty bit and I can keep running fsck and it keeps saying it's dirty but per the dmesg output write protect is off.
I'm at a loss...
Richard