[PLUG] Mount command creates new folders

Larry Brigman larry.brigman at gmail.com
Thu Oct 18 00:14:41 UTC 2018


Is it possible that there was a pending mount from the GUI that was waiting
for the sudo permissions and it did the mount not your command?

On Wed, Oct 17, 2018, 5:11 PM John Jason Jordan <johnxj at gmx.com> wrote:

> On Wed, 17 Oct 2018 13:25:42 -0700 (PDT)
> Rich Shepard <rshepard at appl-ecosys.com> dijo:
>
> >   I meant to ask what mount moints you have on /mnt.
>
> None on /mnt. Everything is on /media/jjj. Except maybe the optical
> drives; I'm not actually sure where they go. But they are not a problem
> so I ignore them.
>
> I think I have a solution. The man page for mount says that it goes
> to /etc/fstab to find where it is supposed to mount things, so I
> decided to do some serious editing of fstab. Here is my final version:
>
> # / and /home were installed on /dev/sdb because it was faster than
> /dev/sda
> # <file system> <mount point>   <type>  <options>       <dump>  <pass>
> UUID=27c11f6b-b443-417e-9853-12c99789d8d9 / ext4 errors=remount-ro,user 0 1
> UUID=9a201393-e364-4d11-b372-877cded3b9cc /home  ext4 defaults,user 0 2
> 192.168.1.115:/volume1/Synology /media/jjj/Synology nfs auto,user 0 0
> #so clients can see nfs share
> /media/jjj /export/users none bind  0  0
> #This line not added by me:
> #/dev/disk/by-label/256GB-1 /media/jjj/256GB-1 auto
>         nosuid,nodev,nofail,noauto,x-gvfs-show,x-gvfs-name=256GB-1 0 0
> #For Data drive
> UUID=f8b85f57-d7a6-4454-9939-7e21fb355bb4 /media/jjj/Data ext4
>         errors=remount-ro,user 0 1
> #For Movies USB device
> UUID=50b66cfb-01ba-4c15-9f3c-5e9718c6f604 /media/jjj/Movies ext4
>         errors=remount-ro,user 0 1
>
> After saving fstab where I added the Data and Movies drives, I unmounted
> both Data and Movies, and then did 'sudo mount -a'. It worked - both
> drives were mounted where they belonged, not in Data1 or Movies1 as
> sometimes happened in the past.
>
> I still don't know why mount would often take it upon itself to make a
> new folder to mount the drive in, ignoring the folder that I specified
> in the command. Like 'hey mount, what part of /media/jjj/Data did you
> not understand?'
> _______________________________________________
> PLUG mailing list
> PLUG at pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>



More information about the PLUG mailing list