external hdd disapeared
I have a hdd attached to my server. It's sda
but has 2 partitions so sda1
@16M and sda2
@3.6T
It defaulted to being in the location /media/devmon
so I kept that and it worked for ages.
Suddenly the data is gone.
I had files located here: /media/devmon/4tb_drive/kiwix/zim
and that directory is now empty.
But I put the drive into a Windows box, and everything was there.
When I run mount /dev/sda2 /media/devmon/
it says:
The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
Falling back to read-only mount because the NTFS partition is in an
unsafe state. Please resume and shutdown Windows fully (no hibernation
or fast restarting.)
Could not mount read-write, trying read-only
I originally formatted this drive in Windows, is that the issue? Ideally I'd use btrfs or zfs not ntfs, but here we are.
How do I get access again?
You are viewing a single comment
@Dust0741 sometimes this can help -> in a linux console: ntfsfix -b -d /dev/sda1 oder ntfsfix -b -d /dev/sda2.
turned off windows quick start ran
chkdks D:
and waited...then shut down and put drive back into linux and reboot. still noany ideas? clearly not the larger partition, which is good.
I used this when my son's computer wouldn't boot after a Windows update. None of Microsoft's tools would repair the disk.
I attached it to mine and ran ntfsfix on it. Success!