Bug 31871 - Cannot write to external drives.
Summary: Cannot write to external drives.
Status: RESOLVED INVALID
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal minor
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-06 00:36 CEST by Ricard Alfe
Modified: 2023-05-07 00:18 CEST (History)
2 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments

Description Ricard Alfe 2023-05-06 00:36:48 CEST
MAGEIA 9 BETA 1

This is not a bug but it bothers many less advanced users. When we mount a usb it is mounted read-only in the /run/user/ drive directory. I think it would be better to leave it as read and write.
Comment 1 Ricard Alfe 2023-05-06 00:41:36 CEST
level security: fileserver
David Walser 2023-05-06 02:04:58 CEST

QA Contact: security => (none)
Component: Security => RPM Packages

David Walser 2023-05-06 02:05:55 CEST

Ever confirmed: 1 => 0
Status: NEW => UNCONFIRMED

Comment 2 Dave Hodgins 2023-05-06 17:31:07 CEST
I can't recreate. In m9 x86_64 kde plasma ...
/dev/sdb1 on /run/media/dave/BACKUP type ext4 (rw,nosuid,nodev,relatime,errors=remount-ro,uhelper=udisks2)

Note the errors=remount-ro. Check dmesg or the journal for errors.

Also make sure it's a file system that can be mounted rw. Not iso9660 for
example.

CC: (none) => davidwhodgins

Comment 3 Lewis Smith 2023-05-06 20:24:00 CEST
This complaint is so basic that every user would have complained since forever.
Ricard, you need to be more specific about when a mounted USB cannot be written to.
Dave's example line from (I suppose) 'mount' can be cross-checked by 'ls -l ...' the relevant directory; or the device Properties from a file manager. The end of the system journal, as Dave suggests, should help.

CC: (none) => lewyssmith

Comment 4 Dave Hodgins 2023-05-06 20:35:16 CEST
Sorry. Yes it's from the mount command. On my m8 system with the same device ...
# mount|grep media
/dev/sdf1 on /run/media/dave/BACKUP type ext4 (rw,nosuid,nodev,relatime,errors=remount-ro,uhelper=udisks2)
Comment 5 Dave Hodgins 2023-05-06 20:44:10 CEST
Use (as root) "dmesg|tail -n 20" to get those messages.
Comment 6 sturmvogel 2023-05-06 21:04:22 CEST
I think this is related to the security level "fileserver". 
This security level has other rights than the "standard" one. So i don't see how this could confuse a user...
Comment 7 Dave Hodgins 2023-05-06 21:16:21 CEST
Note that ls -l will still show the directory as rw, but writes will fail if the
device that directory is on is ro.

The security level is not relevant (I tested with security level fileserver to
be sure.

It's either errors forcing it to remount as ro, or a file system type that
can not be mounted rw such as iso9660. For file systems that support uid/gid
such as ext4, the ownership and permissions of the directories and files
matter too, on which users can write to it.
Comment 8 Ricard Alfe 2023-05-06 23:57:01 CEST
Today I tried again to recreate the bug on my computer from the dolphin program in mageia 9 beta 1. With a flash drive formatted as extfat, fat and ntfs like the other time and it hasn't given me any errors.
I have deleted the /run/media/user directory because I thought it still kept the permissions modified by me and I have let the system create it without giving me any error this time. I think it would be better to close the error created by me by not being able to reproduce it and provide more data.
Comment 9 Ricard Alfe 2023-05-06 23:58:47 CEST
If you need me to try something, let me know. Sorry for the google translation
Comment 10 Dave Hodgins 2023-05-07 00:18:59 CEST
Closing as invalid. Please reopen if you can recreate and there is a problem
with the Mageia packages.

Resolution: (none) => INVALID
Status: UNCONFIRMED => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.