r/debian • • 4d ago

Help!

I can't open one of disks on my PC, I don't know what to do. I'm not sure what could have done this. Last time I turned on PC everything was fine. Do you think the fact that PC went without electricity for nearly 24 hours? I wasn't able tot turn it off properly because of my UPS no longer working properly.

Update: I managed to copy all my data to a different disk. Problem was caused by one .odt file that was saved incorrectly due emergency incorrect shutdown of PC (thanks to my broken UPS).

19 Upvotes

31 comments sorted by

View all comments

Show parent comments

1

u/CardOk755 4d ago

Mods removed your dmesg, don't know why, but:

Aha, you have a Microsoft NTFS filesystem on /dev/sda2 and it was uncleanly unmounted.

Historically Linux has been really bad at fixing problems on NTFS filesystems. I'd recommend trying to mount that disk on a windows system.

(I might be out of date, I haven't messed with NTFS in years).

1

u/maria08042009 4d ago

how should I do that? it's not a disk I can just take out of PC (it's inside the PC, basicaly tome D, but not exactly). and my PC is fully Debian. should I try virtualbox Windows (how t odo that too...)?

1

u/CardOk755 4d ago

Ow. Looks like you got rid of Windows too soon. You should have copied all the data you wanted to save to somewhere safe first.

Just how much important data is on that partition?

1

u/maria08042009 4d ago

It's mostly pictures and few kinda personal docs, so it'd be really sad to lose them, but nothing that would cause long-trem damage, I think.

1

u/maria08042009 4d ago

And I had just Debian system from last February, and hadn't had any problems like this... Probably it's connected with the fact that my UPS stopped working (I live in Ukraine, situation with electricity is not pretty. I didn't have electricity from 7am Oct. 9 to 6:40 am Oct. 10).

1

u/CardOk755 4d ago

Oh, it's certainly due to the unclean shutdown.

If you can't use Windows then try ntfsprogs, https://manpages.debian.org/trixie/ntfs-3g/ntfsprogs.8.en.html

ntfsls to list the files in the partition and ntfscat to copy them from the partition to a Linux partition.

When you are sure you have all the data you want you can reformat the partition for Linux.

2

u/maria08042009 4d ago

Thanks! I think it can wait a till Monday-Tuesday, because I should have a working UPS by then (I really don't want to risk it, situation with electricity is very unstable).

1

u/CardOk755 4d ago

By the way, all the ntfsxxx programs (like ntfsls and ntfscat) from ntfsprogs are part of the ntfs-3g package, which I think you have installed.