1

Topic: Unable to Format PenDrive

Already tried dosfsck and scandisk. Is there any chance of gettiing it in working state.


GParted 0.30.0 --enable-libparted-dmraid --enable-online-resize

Libparted 3.2
Check and repair file system (fat32) on /dev/sdb1  00:00:06    ( ERROR )
        
calibrate /dev/sdb1  00:00:00    ( SUCCESS )
        
path: /dev/sdb1 (partition)
start: 8192
end: 62333951
size: 62325760 (29.72 GiB)
check file system on /dev/sdb1 for errors and (if possible) fix them  00:00:01    ( SUCCESS )
        
fsck.fat -a -w -v '/dev/sdb1'  00:00:01    ( SUCCESS )
        
fsck.fat 4.1 (2017-01-24)
Checking we can access the last sector of the filesystem
0x41: Dirty bit is set. Fs was not properly unmounted and some data may be corrupt.
Automatically removing dirty bit.
Boot sector contents:
System ID "mkfs.fat"
Media byte 0xf8 (hard disk)
512 bytes per logical sector
16384 bytes per cluster
32 reserved sectors
First FAT starts at byte 16384 (sector 32)
2 FATs, 32 bit entries
7787008 bytes per FAT (= 15209 sectors)
Root directory start at cluster 2 (arbitrary size)
Data area starts at byte 15590400 (sector 30450)
1946728 data clusters (31895191552 bytes)
32 sectors/track, 64 heads
8192 hidden sectors
62325760 sectors total
/Red.Riding.Hood [ bhawna music ].mkv
File size is 333053952 bytes, cluster chain length is > 333053952 bytes.
Truncating file to 333053952 bytes.
Reclaiming unconnected clusters.
Checking free cluster summary.
Free cluster summary wrong (1740579 vs. really 1740355)
Auto-correcting.
Performing changes.
/dev/sdb1: 7 files, 206373/1946728 clusters
grow file system to fill the partition  00:00:05    ( ERROR )
        
using libparted
libparted messages    ( INFO )
        
Bad FAT: unterminated chain for \REDRID~1.MKV. You should run dosfsck or scandisk.

========================================

2

Re: Unable to Format PenDrive

Do you try to format the pendrive or recover content? It seems that there is corruption of the fat32 filesystem .
If you don't need any data in the pendrive, you can try to:
-  format it with GParted, or
-  delete the partition and create it again, or
-  create a new partition table msdos type in the pendrive and then create a new fat32 partition.

If this doesn't work, you can try to erase a few MiB of the drive space using the command dd from the terminal (as root or using sudo).

Another remark: you can try the latest stable GParted version. The 0.30.0 version is more than 2 years old.

*** It is highly recommended to backup any important files before doing resize/move operations. ***