Removable storage tests fail write without sudo access.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Checkbox |
Fix Released
|
High
|
Jeff Lane |
Bug Description
This issue was found while looking at possible resolutions for bug: https:/
I've found instances where running the following: removable_
Example:
jeff:~/
mount: only root can do that
Error: can't mount /dev/sdc5
mount: only root can do that
Error: can't mount /dev/sdc2
There're total 2 device(s) failed at mounting.
Found the following mounted ['usb'] partitions:
/dev/sdc1 : /media/
-------
Running ['usb'] file transfer test for 1 iterations
Creating Temp Data file
File name is :/tmp/tmpmcwhn4
File size is 1052041 bytes
Parent hash is: c0151b27b0b27b2
Copying /tmp/tmpmcwhn4 to /media/
ERROR: Unable to copy the file to /media/
Completed 1 test iterations, but there were errors
Suppling sudo before hand will allow the script to write to disk:
Output from: sudo python3 removable_
Running ['usb'] file transfer test for 1 iterations
Creating Temp Data file
File name is :/tmp/tmph1ah08
File size is 1052081 bytes
Parent hash is: a2f74ae2293a1e4
Copying /tmp/tmph1ah08 to /media/
Hashing copy on /media/
Hash of /media/
Completed 1 test iterations, but there were errors
Workaround: Provide root permissions.
Results
Related branches
- Zygmunt Krynicki (community): Approve
- Jeff Lane : Needs Resubmitting
- Sylvain Pineau: Approve
-
Diff: 204 lines (+24/-0)5 files modifieddebian/changelog (+2/-0)
jobs/esata.txt.in (+1/-0)
jobs/firewire.txt.in (+1/-0)
jobs/mediacard.txt.in (+16/-0)
jobs/usb.txt.in (+4/-0)
summary: |
- Removable storage tests fail stating: only root can do that + Removable storage tests fail write without sudo access. |
Changed in checkbox: | |
status: | New → Triaged |
Changed in checkbox: | |
importance: | Low → High |
status: | Triaged → In Progress |
assignee: | nobody → Jeff Lane (bladernr) |
Changed in checkbox: | |
status: | Fix Committed → Fix Released |
Changed in checkbox: | |
status: | Fix Released → Fix Committed |
Changed in checkbox: | |
status: | Fix Committed → Fix Released |
The USB key has a weird partitioning scheme. Just for the sake of completeness, could you post the output of sudo fdisk -l /dev/sdc so we can see what the USB key's partition table contains?
Also, output of ls -la /media/ would be useful to see the actual permissions for the directories where the USB key's partitions are mounted.
Finally, the following bugs are related to this problem (multiple partitions and writableness on USB sticks), although they are not duplicates:
https:/ /bugs.launchpad .net/checkbox/ +bug/887049 /bugs.launchpad .net/ubuntu/ +source/ checkbox/ +bug/912522
https:/
The second one in particular has a lengthy discussion about the exact problem (some partitions on USB stick unwritable). I guess this bug is about the "NO partitions writable" corner case :)