I have a remote VPS with Ubuntu 20.04 which worked well yesterday. Today I found out the whole disc is read only. I can not write anymore nor as sudo nor the root. After the search I found command which should fix it https://askubuntu.com/a/1273263/568046
sudo ntfsfix /dev/sda2
This command throws me an error:
Mounting volume... NTFS signature is missing.
FAILED
Attempting to correct errors... NTFS signature is missing.
FAILED
Failed to startup volume: Invalid argument
NTFS signature is missing.
Trying the alternate boot sector
Unrecoverable error
Volume is corrupt. You should run chkdsk.
Command chkdsk does not exist. After this command all programs are dead. I can run commands like systemctl status apache2 but can not start it any more. Does somebody know what it means? Thanks for any help.
chkdsk
is a Windows tool. And you need Windows tools to try fixing NTFS. – ChanganAuto Jul 15 '21 at 12:15fsck /dev/sda2
and it ask me to fix filesystem. Can I run the fix? – Čamo Jul 15 '21 at 12:49ntfsfix
command can at best signal the drive to be checked (and, if possible, corrected) at the boot time of an Windows instance. This is assuming you have tried a command for NTFS because you have NTFS but it isn't clear that you know what you're doing? The previous comment/question suggests exactly that. – ChanganAuto Jul 15 '21 at 12:50fsck
may work. – ChanganAuto Jul 15 '21 at 12:51