this post was submitted on 08 Nov 2023
29 points (93.9% liked)

Linux

48663 readers
530 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I was playing a game, alt-tabbing froze my system so I waited a bit and then rebooted by using the button on the case, since I couldn't do differently.

It now throws an error when mounting a drive: error mounting /dev/sdb1 at /media/user/local disk 1: unknown error when mounting (udisks-error-quark, 0)

This drive doesn't have anything I was using on it, since it's a media storage drive. I booted up Windows on my second drive and it can see and access this one without problems. How to fix?

top 26 comments
sorted by: hot top controversial new old
[–] [email protected] 16 points 1 year ago (2 children)

What filesystem is on the disk? If it's NTFS, you'll need to fix it on Windows (right click, Properties, Tools, Check).

[–] [email protected] 9 points 1 year ago (3 children)

It worked, thanks a lot! What would be the Linux alternative to do that?

[–] [email protected] 17 points 1 year ago (1 children)

There is none. NTFS is a filesystem you should only use if you need Windows compatibility anyways. Eventhough Linux natively supports it these days, it's still primarily a windows filesystem.

[–] [email protected] 5 points 1 year ago (2 children)

Oh, I see. So you're saying that, when I have the chance, I should move to a different filesysten and that would avoid me issues as the one in the OP?

[–] [email protected] 7 points 1 year ago (1 children)

If you're only using this filesystem on Linux anyways, absolutely.

[–] [email protected] 1 points 1 year ago (2 children)

Yes, I've basically moved permanently over to Linux and do 99.9% of the things on it. Had to boot Windows for the first time in days only to check whether or not my HDD died after I couldn't mount it

I'm still in the process of optimizing stuff around Linux (e.g. media drive filesystem) but I'll get there haha

[–] [email protected] 1 points 1 year ago

You could use btrfs on Linux and install the windows driver. The Windows driver isn't what I would call stable but it will work if your mostly using Windows.

Another option is a windows virtual machine instead of dual booting. With a VM you could simple transfer files with magic wormhole or something similar

[–] [email protected] 1 points 1 year ago

I’m still in the process of optimizing stuff around Linux (e.g. media drive filesystem)

What do you mean by that?

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (2 children)

FAT is older and has fewer features but it's better supported.

[–] [email protected] 5 points 1 year ago (1 children)

exFAT, not old school regular FAT.

[–] [email protected] 1 points 1 year ago
[–] [email protected] 2 points 1 year ago

I tried formatting an external HDD and I picked FAT, I'll have to research whether or not that filesystem is good for my needs

[–] [email protected] 7 points 1 year ago (1 children)

ntfsfix but in my experience it doesn't really work if it can't mount the drive in the first place.

[–] [email protected] 1 points 1 year ago (1 children)

Guess I'll need to keep W10 around haha thanks again

[–] [email protected] 3 points 1 year ago (1 children)

Can you reformat that drive as exFAT? That should remove NTFS as being a reason to keep Windoze around (and even if you do need Windoze, it should be able to read that format fine as well).

[–] [email protected] 1 points 1 year ago

Yes, I just learned I can use a different filesystem to avoid (or at least minimize) these issues in future. I tried formatting a portable HDD and I could only pick FAT, that should be OK since I picked "Linux compatibility" or something like that in the format wizard!

[–] FalseDiamond 3 points 1 year ago

If it's just the dirty flag (it was uncleanly unmounted) you can try

ntfsfix -d /dev/sdc1

Still probably better to boot into Windows and let it deal with it (ntfs tools are still reverse engineered stuff after all), and check journalctl before doing it, but it works in a pinch.

[–] [email protected] 4 points 1 year ago

It is, thanks I'll try that!

[–] [email protected] 15 points 1 year ago* (last edited 1 year ago) (4 children)

Tip for when you need to use the power button and do a force shutdown. Try the following first Alt+SysRq r>e>i>s>u>b

https://blog.kember.net/posts/2008-04-reisub-the-gentle-linux-restart/

[–] [email protected] 10 points 1 year ago (1 children)

Raising Elephants Is So Utterly Boring

[–] [email protected] 2 points 1 year ago

I always preferred BUSIER backwards. It's shorter and alliterative., but whatever helps you remember.

[–] [email protected] 8 points 1 year ago (1 children)

Annoyingly sysrq is disabled on a lot of distributions by default now, so you often have to manually enable it for this to work

[–] [email protected] 1 points 1 year ago

It is? I never noticed it being disabled honestly.

[–] [email protected] 3 points 1 year ago

That's very useful, I'll try it next time, thanks for the tip!

[–] ElderWendigo 3 points 1 year ago (1 children)

I've always just dropped down into a different virtual terminal with CTRL+ALT+F#, killed the bad process and/or just rebooted from there. Is that not a thing anymore? I haven't had to do it in so long because of improved stability and not using the DE on my server much, so maybe I'm out of the loop.

[–] [email protected] 3 points 1 year ago

Sometimes it's not possible if everything crashed.