LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-05-2004, 05:36 PM   #1
sausage-n
LQ Newbie
 
Registered: Nov 2004
Location: Canada, SK
Distribution: slack
Posts: 11

Rep: Reputation: 0
how to make a fs mount recursively


? this is probally an easy question, but I can't seem to find a straight answer..

thanks
 
Old 11-05-2004, 06:02 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927
On the contrary, I haven't got the slightest clue
as to what "mounting a file-system recursively"
could possibly mean ...


Cheers,
Tink
 
Old 11-05-2004, 07:08 PM   #3
sausage-n
LQ Newbie
 
Registered: Nov 2004
Location: Canada, SK
Distribution: slack
Posts: 11

Original Poster
Rep: Reputation: 0
heh, sorry that does sound a bit cryptic, doesnt it, .

I mean recursively as in each time i boot up,

and im mounting my win partitions as in " mount -t ntfs /dev/sda1 /mnt/C"

I remember one distro I was using had a flag you could add like -r or somthing to make it static
 
Old 11-05-2004, 07:29 PM   #4
jon_k
Member
 
Registered: Jul 2003
Location: Fort Worth, Texas
Distribution: Mepis Linux 2004
Posts: 547

Rep: Reputation: 30
I read this post earlier, saw you mention recursive.. I was thinking.. what the heck could he mean?!

Anyhow, now we're on the same page...

I have never heard of the mount command being able to add an entry to the fstab, nor does my manpage tell me of such.

I'll tell you what, I'll just teach you so you can do this on any linux based system the manual way.
1. Login as root by running from a terminal [b]su[/a] followed by typing the root password.

2. Open the file /etc/fstab in your favorite text editor.

3. On a new line at the bottom of the file, add the line
Code:
/dev/sda1 /mnt/C ntfs users,owner,ro,umask=000 0 0
4. Save and quit the file /etc/fstab

5. Then run mount -a and the NTFS partition will be mounted. It will also be mounted automatically after reboot so that you do not have to do anything after you reboot.

6. Double check the setup by rebooting. Does it work? If so, be sure to give me a hollar so I know it worked.

regards,

Last edited by jon_k; 11-05-2004 at 07:37 PM.
 
Old 11-05-2004, 08:23 PM   #5
sausage-n
LQ Newbie
 
Registered: Nov 2004
Location: Canada, SK
Distribution: slack
Posts: 11

Original Poster
Rep: Reputation: 0
thanks jon, I'll try that right away, but tell me , what does the -a do?
because i am actually mounting 3 partitions from 2 drives, one of them being vfat.

would the procedure change?

TIA
 
Old 11-05-2004, 08:55 PM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
The -a option to mount stands for 'all'. It tries to mount all of the entries found in the /etc/fstab.

The file-system type to use for the FAT32 drive is vfat.

Read through the mount man page. There are options such as uid=, gid=, dmask= and fmask= which you might want to use for an NTFS or VFAT mount. You cannot use the 'chmod' or 'chown' commands for these filesystems so they need to be set in the mount entry of /etc/fstab.
 
Old 11-05-2004, 10:27 PM   #7
jon_k
Member
 
Registered: Jul 2003
Location: Fort Worth, Texas
Distribution: Mepis Linux 2004
Posts: 547

Rep: Reputation: 30
Above poster is correct. It attempts to mount all entries in /etc/fstab.

That means, if you just added a device in /etc/fstab, and then proceded to mount -a, then everything in the file /etc/fstab would attempt to mount. (If it was already mounted, then it doesn't bother)

That's an effective way to 'reload' the fstab and apply its settings when you add a device to it.

Remember to tell me if you get it working the way you want.

NOTE: I forgot to tell you earlier, the fstab entry line I hooked you up with will only mount the drive as READ-ONLY. I did this for safety precautions because I've heard too many people say that it's dangerouse to write to NTFS from linux. Also I believe you'd need a kernel module (or compiled in to kernel directly) in order to write to NTFS. Best to play it safe and do read-only. (thats what the ro stands for in the fstab entry line)


sincerely,
jon

Last edited by jon_k; 11-05-2004 at 10:29 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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make 4 RHEL CDs into ISO and Mount? guest Linux - Newbie 3 03-18-2005 09:35 PM
How do I prepare/mount/make filesystem on a new HDD? weblance Linux - Newbie 4 02-18-2005 12:35 AM
What would make an NFS mount EXTREMELY slow ? lostboy Linux - General 3 06-17-2004 10:20 PM
How to make mount --bind persistant linuxnube Linux - Software 1 06-10-2004 09:06 PM
would it make sense to have 2 mount point for 1 device? sirpelidor Linux - Hardware 3 12-27-2003 01:10 PM

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

All times are GMT -5. The time now is 11:29 AM.

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