USB stick automounts as root instead of user

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
mgruber
Level 1
Level 1
Posts: 48
Joined: Tue Oct 30, 2018 3:05 pm

USB stick automounts as root instead of user

Post by mgruber »

I'm using Mint XFCE 20.3.
I own several USB sticks, most are FAT32 or NTFS formatted.
Now I got a new USB stick, which I re-formatted using EXT3 (the target device it's intended doesn't support EXT4).
XFCE automounts this stick now using root rights, so I'm not able to use it as normal user without manual re-mounting.

How can I fix this?
All my other USB sticks automount with user rights without any problems.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
all41
Level 19
Level 19
Posts: 9520
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: USB stick automounts as root instead of user

Post by all41 »

You created the partition with root privilege so root owns the partition.
You will need to change the owner and group to your username.

Find the mountpoint. It should be /media/username. If the partition is labeled it will show as that name.

Then:
chown -R $USER:$USER /media/username/label or id
substitute your username after /media/
owner.png
In this example the command would be:
sudo chown -R $USER:$USER /media/uno/90B8-260E
Everything in life was difficult before it became easy.
mikeflan
Level 17
Level 17
Posts: 7106
Joined: Sun Apr 26, 2020 9:28 am
Location: Houston, TX

Re: USB stick automounts as root instead of user

Post by mikeflan »

Now I got a new USB stick, which I re-formatted using EXT3
What did you use to reformat? Gparted? If so, next time try Disks to reformat.
I think it will be owned by you if you use Disks.
mgruber
Level 1
Level 1
Posts: 48
Joined: Tue Oct 30, 2018 3:05 pm

Re: USB stick automounts as root instead of user

Post by mgruber »

Yes, I used Gparted.
Thank you for the explanation, solution and how to prevent it in the future!
Locked

Return to “Beginner Questions”