LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   fstab lists nonexistent mount points for some devices (https://www.linuxquestions.org/questions/linux-general-1/fstab-lists-nonexistent-mount-points-for-some-devices-4175463029/)

newbiesforever 05-22-2013 11:54 AM

fstab lists nonexistent mount points for some devices
 
I have a recurring problem with fstab entries referring to nonexistent mount points; I know the immediate solution, but I don't understand why it happens (probably due to my not fully understanding fstab and mount points).
The fstab file will state that a device's mount point is some directory in /media--a directory that hasn't been created. I can solve the problem by opening /media and creating the directory. But why doesn't the system create the directory itself? I don't remember what kind of devices caused this problem the other times, but this occurrence was for a USB stick.

John VV 05-22-2013 12:04 PM

/media is used by udev to make mount points on the fly
you should be using /mnt or /opt for permanent mount points


A usb "should" have a listing in the DE .them after you click on it a folder in /media should be made

Did you write any custom udev rules ?

newbiesforever 05-22-2013 12:07 PM

Quote:

Originally Posted by John VV (Post 4956641)
/media is used by udev to make mount points on the fly
you should be using /mnt or /opt for permanent mount points


A usb "should" have a listing in the DE .them after you click on it a folder in /media should be made

Did you write any custom udev rules ?

No. I don't know how to edit udev yet, only fstab.

bigrigdriver 05-22-2013 12:10 PM

John VV beat me to it.

newbiesforever 05-22-2013 12:20 PM

And sorry, but what is "DE"--the desktop entries?

onebuck 05-22-2013 12:26 PM

Member Response
 
Hi,

Quote:

Originally Posted by newbiesforever (Post 4956652)
And sorry, but what is "DE"--the desktop entries?

Desktop Environment

newbiesforever 05-22-2013 12:44 PM

:scratch: I have this problem only occasionally, so there must be something missing or some setting set wrong, but I'm not sure what. Normally, my distro and DE can open all my devices without a problem.

I'm not figuring anything out from reading fstab, but if anyone else wants to see it:
Quote:

# Pluggable devices are handled by uDev, they are not in fstab
/dev/sda5 / ext4 defaults,relatime 0 1
proc /proc proc defaults 0 0
devpts /dev/pts devpts mode=0622 0 0
/dev/sda4 swap swap sw,pri=1 0 0
/dev/sde2 swap swap sw,pri=1 0 0
/dev/sda6 /home ext4 defaults,relatime 0 2
# Dynamic entries below
/dev/sda1 /media/sda1 ext4 noauto,users,exec,relatime 0 0
/dev/sda2 /media/sda2 ext3 noauto,users,exec,relatime 0 0
/dev/sr0 /media/sr0 iso9660 noauto,users,exec,relatime 0 0
/dev/sdb1 /media/sdb1 vfat noauto,users,gid=users,dmask=002,fmask=113,relatime 0 0
/dev/sdd1 /media/sdd1 vfat auto,users,gid=users,dmask=002,fmask=113,relatime 0 0
/dev/sde1 /media/sde1 ext4 noauto,users,exec,relatime 0 0
/dev/sdf1 /media/sdf1 vfat noauto,users,gid=users,dmask=002,fmask=113,relatime 0 0
/dev/cdrom /media/cdrom udf,iso9660 noauto,users,exec,ro 0 0
/dev/sr0 /media/cdrom udf,iso9660 noauto,users,exec,ro 0 0


All times are GMT -5. The time now is 08:22 AM.