Okay, So a little bit of back story my flatmate brought me his USB Stick to fix it as it's size on his PC was appearing only 8Mbs while the actual size is 16Gbs so I looked into it and the windows disk manager was also showing 8Mbs as well and no other partitions. I asked what he did with it and he told me that he gave it to a friend and got it back like this. I had EaseUS partition manager so I copied it my USB and installed it on his pc but that gave a read-only error so I brought it to my room to see if I can fix it on Linux. So I plugged it in and started Gparted and it gave me this error.
this is what the info sign says
Failed to read last sector (31275006): Invalid argument
HINTS: Either the volume is a RAID/LDM but it wasn't setup yet,
or it was not setup correctly (e.g. by not using mdadm --build ...),
or a wrong device is tried to be mounted,
or the partition table is corrupt (partition is smaller than NTFS),
or the NTFS boot sector is corrupt (NTFS size is not valid).
Failed to mount '/dev/sdb1': Invalid argument
The device '/dev/sdb1' doesn't have a valid NTFS.
Maybe you selected the wrong device? Or the whole disk instead of a
partition (e.g. /dev/hda, not /dev/hda1)? Or the other way around?
Failed to open '/dev/sdb1'.
Failed to read last sector (31275006): Invalid argument
HINTS: Either the volume is a RAID/LDM but it wasn't setup yet,
or it was not setup correctly (e.g. by not using mdadm --build ...),
or a wrong device is tried to be mounted,
or the partition table is corrupt (partition is smaller than NTFS),
or the NTFS boot sector is corrupt (NTFS size is not valid).
Failed to mount '/dev/sdb1': Invalid argument
The device '/dev/sdb1' doesn't have a valid NTFS.
Maybe you selected the wrong device? Or the whole disk instead of a
partition (e.g. /dev/hda, not /dev/hda1)? Or the other way around?
Unable to read the contents of this file system!
Because of this some operations may be unavailable.
The cause might be a missing software package.
The following list of software packages is required for ntfs file system support: ntfs-3g / ntfsprogs.
When I tried to formate it.
It gives the same read-only error so I tried
[Yasir@Markhor ~]$sudo hdparm -r0 /dev/sdb
/dev/sdb:
setting readonly to 0 (off)
readonly = 0 (off)
but the error doesn't go way same for /dev/sdb1 so what should I do please guide me a bit I'm not too good in this.