this post was submitted on 10 Feb 2024
612 points (94.1% liked)

linuxmemes

20880 readers
6 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 9 months ago (1 children)

You don't need to. It is handled automatically. When I plug in a drive it mounts automatically. If I want to unmount or mount partitions I just open up gnome disks and click the toggle mount button.

Under the hood I believe it is just udev rules I think.

[–] [email protected] 3 points 9 months ago (2 children)

You don’t need to. It is handled automatically.

No it's not, and you still need to identify what data is on what drive when swapping. I am not aware of a distro where a drive is auto-mounted with write privileges after you install it.

[–] [email protected] 2 points 9 months ago* (last edited 9 months ago)

Most will require you to just enter your user's password when mounting, that's it. Though, yes, your user has to be in the storage group, otherwise you might not get full read/write access (unless you mount with sudo manually that is), especially if it's a real disk, not a USB drive. Even physical discs comnected over USB usually have no problems with persmissions, but ones connected via SATA or M2, yeah, those can have permission read/write issues (user credentials required).

Also wise, though most distros don't do this: add your local user to the storage and networking groups. Makes setting things up a lot easier. Otherwise, you'd have to use root/sudo to do most of these things.

[–] [email protected] 1 points 9 months ago* (last edited 9 months ago) (1 children)

I should if you use a GUI. Normally the largest partition is mounted automatically.

[–] [email protected] 2 points 9 months ago

What? Are you talking removable drives? Because there is no distro I'm aware of, that automatically mounts a newly installed disk.
Also usually systems don't grant write privileges for EXT4 or other security featured formats. But only for FAT32 and ExFAT and other "lesser" formats.
So often you have to switch to root, and grant those privileges to your user account.