Your flash drive is mounting as /mnt/...
Flash drives should be mounted as /media/...
Can you post the result of the following command:
Code: Select all
cat /etc/fstab
Code: Select all
cat /etc/fstab
There is a small partition on the flash drive that holds files and programs from SanDisk. It's not needed. Most of it is encryption software provided by SanDisk to keep your files safe while in Windows. There is an installable utility. I believe it tries to autorun."Authentication is required to unmount SanDisk Corporation Flash Drive..."
Yes, I see... I actually made it mount in /mnt (and I changed permissions for /mnt for all users to access). should I change it to media/? Would that make a difference?JerryF wrote: ⤴Thu Dec 06, 2018 12:23 pm ...needed to do some research and testing.
Your flash drive is mounting as /mnt/...
Flash drives should be mount as /media/...
Can you post the result of the following command:
Code: Select all
cat /etc/fstab
Code: Select all
bekor@Lab1 ~ $ 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/sda2 during installation
UUID=e79d0f2e-7072-4c9b-a494-442e043fc305 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=D537-60E9 /boot/efi vfat umask=0077 0 1
# swap was on /dev/sda3 during installation
UUID=7b0aa389-5929-4e21-80ff-cc5b4c366222 none swap sw 0 0
/dev/disk/by-id/usb-ZOOM_H1_SD_R_W_0123456789ABCDE-0:0-part1 /home/derushah/usb-ZOOM_H1_SD_R_W_0123456789ABCDE-0:0-part1 auto nosuid,nodev,nofail,noauto,x-gvfs-show 0 0
/dev/disk/by-id/usb-SanDisk_Corporation_Flash_Drive_200411004318b5514b6a-0:0-part1 /mnt/usb-SanDisk_Corporation_Flash_Drive_200411004318b5514b6a-0:0-part1 auto nosuid,nodev,nofail,x-gvfs-show 0 0
/dev/disk/by-id/usb-SanDisk_Corporation_Flash_Drive_200411004318b5514b6a-0:0 /mnt/usb-SanDisk_Corporation_Flash_Drive_200411004318b5514b6a-0:0 auto nosuid,nodev,nofail,noauto,x-gvfs-show 0 0
What does that mean? You only deleted the last line?
Ah!otlichnik73 wrote: ⤴Thu Dec 06, 2018 7:08 pm sorry, I mean after I saw your request I added the command output you requested to my last post
On the storage tab is everything o.k.otlichnik73 wrote: ⤴Wed Dec 05, 2018 10:54 pm Thanks! Here are the settings for removable media. All other tabs have nothing checked.
Are these settings okremov media.png
I think ricardo means 1st unmounting, not dismantling.ricardogroetaers wrote: ⤴Sat Dec 08, 2018 11:42 am ...
Important:
To prevent loss of data on removable media, use the following procedure through File Manager:
1st dismantling
2nd eject
3rd remove physically
The multimedia guide is only for choosing the default program for each case. It's up to you.
https://i.imgur.com/qimPGhP.png
Hi there again Jerry! I 've been kind of busy and I forgot where we were up to with that issue. But anyway, I still wanted to get a clearer understanding on multi-user scenario when mounting media. In your reply above, you mentioned that no external media should be asking for a password.
Yes, that's been the problem. Even though it's removed, it wasn't unmounted. You shouldn't "just remove the media". Always unmount it first, then remove it. One doesn't have to be an IT person to be trained to unmount first, then remove.otlichnik73 wrote: ⤴Sat Dec 08, 2018 3:53 pmHi there again Jerry! I 've been kind of busy and I forgot where we were up to with that issue. But anyway, I still wanted to get a clearer understanding on multi-user scenario when mounting media. In your reply above, you mentioned that no external media should be asking for a password.
But what if (and I think this is what happens here):
userA logs in and inserts drive; it is mounted in userA/media/; when finished, he does not unmount; just removes media
userB logs in later and inserts the same drive, it mounts to userA/media/
userB has no permissions to access userA/media/; so in his file manager, even though he can see the drive, he can't access it
Is that how it works? Will that create an issue?
I am dealing with multiple users who are not IT-kind-of-people; I don't think they understand about unmounting and stuff; I think they just pop their flash drives in and out as they please...
/etc/fstab
file is mounting the SanDisk flash drive under /mnt, not /media./etc/fstab
file. You don't need or should have fstab mounting flash drives.Code: Select all
/dev/disk/by-id/usb-SanDisk_Corporation_Flash_Drive_200411004318b5514b6a-0:0-part1 /mnt/usb-SanDisk_Corporation_Flash_Drive_200411004318b5514b6a-0:0-part1 auto nosuid,nodev,nofail,x-gvfs-show 0 0
/dev/disk/by-id/usb-SanDisk_Corporation_Flash_Drive_200411004318b5514b6a-0:0 /mnt/usb-SanDisk_Corporation_Flash_Drive_200411004318b5514b6a-0:0 auto nosuid,nodev,nofail,noauto,x-gvfs-show 0 0
Code: Select all
/dev/disk/by-id/usb-ZOOM_H1_SD_R_W_0123456789ABCDE-0:0-part1 /home/derushah/usb-ZOOM_H1_SD_R_W_0123456789ABCDE-0:0-part1 auto nosuid,nodev,nofail,noauto,x-gvfs-show 0 0
Thanks a lot!
Did you use the Disks utility in Linux to assign those drives? The entries look like they are from that.otlichnik73 wrote: ⤴Sat Dec 08, 2018 4:45 pmThanks a lot!
...
Main question - why do those drives have an entry in fstab you think?
Is it because I changed mounting from /user/media to /mnt/?
Wa that a good idea?
I was just trying to give everyone permission to access...
1. No remedy. You can't mount the flash drive if it's not unmounted/ejected and the user isn't logged off. It's the nature of the beast. I totally understand about artistic people. My partner is a musician. He plays bassoon and organ. I also have a friend who is also an organist. They don't think logically, not like regular people---LOL.otlichnik73 wrote: ⤴Sat Dec 08, 2018 6:07 pm Thank you!
Yes, disks utility is what I used.
Two questions:
1. My problem is - what if the first user does not unmount/eject? Is there a remedy? (these users were used to Windows, where it was not an issue)
You see, the users I am dealing with are mostly artistic-type people, if you know what I mean. They often miss basic things when it comes to IT.
2. I created some web pages for the users as a reference. If you are interested, are you able to look over the one on media and correct any errors? Thanks!
Here it is: https://switchtolinuxdesktop.wordpress. ... ble-media/
Thanks!JerryF wrote: ⤴Sat Dec 08, 2018 7:01 pm [
2. In my opinion, your webpage has too much information (for them, not for me). They don't want to know the reasons behind why they're doing any steps. They just want to know how to do the steps. You have to make it into a list of steps to perform---that's it. I know this will sound silly, but you have to put it in such a way that a 5-year-old will understand.
Any entry that you create in fstab is a permanent one. The Disk utility usually sets the mounting point starting atotlichnik73 wrote: ⤴Sun Dec 09, 2018 12:56 am Thanks!
More questions ... thanks for bearing with the newbie..
1. If I change the mounting point to /mnt/ (and thus create a permanent entry in the fstab - correct?) - then it will mount the flash there every time, regardless of what happened (unmounted or not). would that solve the issue?
/mnt
. Yes, it will mount the flash there every time. No, that wouldn't solve the issue because you already had that setup before.Code: Select all
/dev/disk/by-id/usb-SanDisk_Corporation_Flash_Drive_200411004318b5514b6a-0:0-part1 /mnt/usb-SanDisk_Corporation_Flash_Drive_200411004318b5514b6a-0:0-part1 auto nosuid,nodev,nofail,x-gvfs-show 0 0
/dev/disk/by-id/usb-SanDisk_Corporation_Flash_Drive_200411004318b5514b6a-0:0 /mnt/usb-SanDisk_Corporation_Flash_Drive_200411004318b5514b6a-0:0 auto nosuid,nodev,nofail,noauto,x-gvfs-show 0 0
/media/<username>
) that user must unmount/eject the drive then remove it so that system releases the mount file.It's quite good.otlichnik73 wrote: ⤴Sun Dec 09, 2018 12:56 am 2. What do you think the actual content of the page ? In particular, the "typical scenario" part in the first half, about mounting flash drives?
Cheers!
/user1/media
." It should read /media/user1
.