I have an external 1TB hard drive which contains a corrupted file system. I cannot format it in windows anyway. I tried command prompt, diskpart and many 3rd party softwares. I get "Data Error (Cyclic Redundancy Check)" error in some stage.
I learnt it has become RAW.
So I am wondering if I could format (NTFS) it using Linux. I have a ubuntu 18.04 guest os in my virtual box.
I really appreciate someone's help in this regard as I am novice to Linux.
EDIT:
S.M.A.R.T. information output when I run following command
sudo smarctl -d sat -a /dev/sdb | less
Output
SMART overall-health self-assessment test result: PASSED
there were more details of course like device name and id etc...
Tried to Repair the partition table and file system with following commands which gave errors. I guess that's because of the file system (RAW)(Not FAT or linux file system)
sudo dosfsck -a /dev/sdb
sudo e2fsck -cfk /dev/sdb
Result:
Read 512 bytes at 0:Input/output error
e3fsck: Input/output error while trying to open /dev/sdb
Wiped the first mibibyte using this command.
sudo mkusb-nox wipe-1
Output:
Wiping the first megabyte (Mibibyte) of /dev/sdb ... :
gpt_zap: done
< /dev/zero pv | dd bs=4096 count=256 of=/dev/sdb
please wait for sync (flushing file system buffers to the device)
until 'Done' is written ...
256+0 records in[3.42KiB/s] [ <=>
256+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00294777 s, 356 MB/s
1.00MiB 0:00:37 [27.4KiB/s] [ <=>
Syncing the device ...
Done :-)
And now the hdd is displayed on GParted but cannot create a partition table. An input/output error comes.
Device -> Create Partition Table ...
– pLumo Jul 04 '18 at 14:40clean
,create partition primary
andformat fs=ntfs quick
consecutively and you got an error message? – Paul Benson Jul 06 '18 at 14:53