Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Have not tried putting entries into /etc/fstab that are not existing directories. You could try it and boot up to see if it creates the directory on your system!
The kernel is not responsible to create that directory, nor is the mount command. /etc/fstab is a static configuration. It does not think, it does not check, it does nothing except printing a small error if your line have a problem. If you want the directory to be created and additional control over the whole mount process, then use /etc/udev/rules.d/ instead of /etc/fatab. You can also use the preconfigured "udisk" config for udev. When you plug an USB thumb drive and a folder is created, it is done by udev or HAL (deprecated) for some older distributions.
I have tried mounting to a not-existing-directory and can testify that it does not work.
You may have noticed the existing mount points at /mnt /mnt/tmp, etc., etc..
Some like all that organization, but that is too much typing for using them at a console.
I create custom mount points under the root directory for every partition, drive and usb port,
such as /d1 /d2 /d3 /s10 /s11 /s12/ /usb1 /usb2, etc..
Then have your fstab use those mount points.
Then you can
>> mount /s10
and it gets the rest from the fstab line for /s10.
KDE also has a mount tool.
Unless KDE has fixed this in the latest releases, do not mount using the KDE system tool, because it will not let go when you try to un-mount.
I always bring up a console and use a mount command, and for that reason I install the console device on the X-windows taskbar so it is handy.
To create a soft link
>> ln -s existing-dir link-name
see: man ln
To create a directory
>> mkdir newdirname
see: man mkdir
When you cannot find a command, such as linkthis for example, then search the man pages by doing
man -k linkthis
Some commands are part of bash, so to find them you must:
man bash
info bash
This also can be done in KDE, but I never do it that way, and they
keep changing things, so I do not know where to look in the menus.
Last edited by selfprogrammed; 07-20-2010 at 04:10 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.