LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 07-19-2010, 04:02 PM   #1
yeding71
LQ Newbie
 
Registered: Jun 2010
Posts: 11

Rep: Reputation: 0
linux file system - help/help needed


I am going to add following line to the /etc/fstab file

/dev/sda4 /MyApp ext3 noatime,errors=remount-ro 0 5

Does it also create directory "MyApp"? Or which kernel file is responsible for creating the directories?

Also on linux, which kernel file is able to create some soft links and additional directories?

Thanks in advance.
 
Old 07-19-2010, 04:34 PM   #2
falmdavis
Member
 
Registered: Jul 2010
Posts: 56

Rep: Reputation: 15
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!
 
Old 07-19-2010, 05:02 PM   #3
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 129Reputation: 129
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.
 
Old 07-19-2010, 09:31 PM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
You must create the mount point if it does not exist.
 
Old 07-20-2010, 04:04 PM   #5
selfprogrammed
Member
 
Registered: Jan 2010
Location: Minnesota, USA
Distribution: Slackware 13.37, 14.2, 15.0
Posts: 635

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


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Needed Help on EXT2 file system Superblock anshuman84 Linux - Software 1 11-07-2009 09:37 AM
Hard drive partition, mounting, and file system help needed please. nix-newb Linux - Hardware 4 11-02-2008 09:44 PM
Help needed to recover data from ext3 file system where mkfs was issued accidentally kapilsampath Linux - General 4 04-26-2005 07:52 AM
help needed reg Journaling File system deep123 Linux - General 3 04-25-2005 11:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:27 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration