[Solved] USB Drive Mounts as Read-Only

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
mikeflan
Level 17
Level 17
Posts: 7136
Joined: Sun Apr 26, 2020 9:28 am
Location: Houston, TX

[Solved] USB Drive Mounts as Read-Only

Post by mikeflan »

When I format an external USB hard drive to EXT4 it mounts in /media/, but is still owned by Root and Read-Only for me. Why does it do that? How can I make it mount as read/write? Yes I researched this. Yes, I can chown to fix it temporarily, but I want it fixed for good.

Code: Select all

$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=328055c3-8217-4ce4-b13b-1c29631bfbe7 /               ext4    errors=remount-ro 0       1
/swapfile                                 none            swap    sw              0       0
disk.png
gpart.png
LM 19.3 Cinnamon
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
LanceM

Re: USB Drive Mounts as Read-Only

Post by LanceM »

Try
Plug it in, when the window opens, right click a blank area and choose open as root. Now right click a blank area and choose properties, then click the permissions tab. Use the dropdowns and select your user name for owner and group
User avatar
AndyMH
Level 21
Level 21
Posts: 13740
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: USB Drive Mounts as Read-Only

Post by AndyMH »

When I format an external USB hard drive to EXT4 it mounts in /media/, but is still owned by Root and Read-Only for me.
If you formatted it in gparted, that's what it does.

chowning it should fix it

Code: Select all

sudo chown -R $USER:$USER /media/mike/passport3
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
mikeflan
Level 17
Level 17
Posts: 7136
Joined: Sun Apr 26, 2020 9:28 am
Location: Houston, TX

Re: USB Drive Mounts as Read-Only

Post by mikeflan »

Excellent. Thanks Lance and Andy. Chown worked, but it was only temporary. Thankfully, Lance's procedure is apparently permanent.

I did format it with gparted. I guess I will use Disks next time. I sure wish gparted would supply an option that defaulted to owned by the user who is running gparted, but then you could select Root if you wanted to. This kind of thing causes a lot of trouble to someone new to Linux, which I am not I guess.

Thank you. Thank you. Thank you.
Locked

Return to “Software & Applications”