LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 05-22-2013, 11:54 AM   #1
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Glendale, AZ
Distribution: Distro-homeless. Lost.
Posts: 1,873

Rep: Reputation: 62
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.

Last edited by newbiesforever; 05-22-2013 at 11:55 AM.
 
Old 05-22-2013, 12:04 PM   #2
John VV
Guru
 
Registered: Aug 2005
Posts: 12,898

Rep: Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713
/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 ?
 
1 members found this post helpful.
Old 05-22-2013, 12:07 PM   #3
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Glendale, AZ
Distribution: Distro-homeless. Lost.
Posts: 1,873

Original Poster
Rep: Reputation: 62
Quote:
Originally Posted by John VV View Post
/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.
 
Old 05-22-2013, 12:10 PM   #4
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,770

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
John VV beat me to it.

Last edited by bigrigdriver; 05-22-2013 at 12:11 PM.
 
Old 05-22-2013, 12:20 PM   #5
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Glendale, AZ
Distribution: Distro-homeless. Lost.
Posts: 1,873

Original Poster
Rep: Reputation: 62
And sorry, but what is "DE"--the desktop entries?
 
Old 05-22-2013, 12:26 PM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,197
Blog Entries: 3

Rep: Reputation: 1425Reputation: 1425Reputation: 1425Reputation: 1425Reputation: 1425Reputation: 1425Reputation: 1425Reputation: 1425Reputation: 1425Reputation: 1425
Member Response

Hi,

Quote:
Originally Posted by newbiesforever View Post
And sorry, but what is "DE"--the desktop entries?
Desktop Environment
 
Old 05-22-2013, 12:44 PM   #7
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Glendale, AZ
Distribution: Distro-homeless. Lost.
Posts: 1,873

Original Poster
Rep: Reputation: 62
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

Last edited by newbiesforever; 05-22-2013 at 12:49 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mount points and UMS devices? PClOStinspace Linux - Newbie 4 06-07-2008 01:59 PM
removable (usb-)devices mount points zlin50 Slackware 6 05-29-2006 04:34 PM
Mount Points vs Physical Devices SBFree Linux - Newbie 3 01-04-2006 06:43 PM
moving mount points in fstab s_siouris Linux - General 1 01-27-2005 08:48 AM
mount points, /home partitions, /etc/fstab's and booting bigjohn Linux - Newbie 4 11-16-2004 10:14 AM


All times are GMT -5. The time now is 10:46 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration