Mount :Files on Linux..


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Mount :Files on Linux..
# 8  
Old 06-21-2006
Well, with autofs filesystems are mounted on demand and umounted when not used.
You need to install autofs and then configure it, normally you have to edit:

/etc/auto.master

To define maps. And perhaps edit/create

/etc/auto.xxx

depending on what you want.

I don't know if SuSE or RedHat install autofs by default, I'm a debian user Smilie

Have a look at autofs manpages for details and examples.


Before you ask me, Im going to give you an example Smilie

Let's say you want to mount the /xxx filesystem from "aserver" on the /nfsmounts/xxx directory of "bserver".

Then, in "bserver", you would add a line in /etc/auto.master like this:
Code:
/nfsmounts   /etc/auto.mymounts

After that you would create a file named /etc/auto.mymounts with a line like this inside:
Code:
xxx          -ro,soft,intr           aserver:/xxx

Everytime you modify /etc/auto.master, you need to restart the service. So you will need to restart autofs in this case.
Finally, just "ls /nfsmounts/xxx" will mount the filesystem automatically.

Regards.

Last edited by grial; 06-21-2006 at 08:00 AM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. HP-UX

Mount problem with Linux

Hello, I want to mount a directory with nfs (v3). Server HP-UX 10.20 Client Centos If I export the path "/tausch" with access control for hosts with the command mount -t nfs <SERVER_HP-UX_IP>:/tausch/ /mnt/mnt_bach2/ /etc/exports: /tausch ... (8 Replies)
Discussion started by: nuts
8 Replies

2. Solaris

How to mount linux to Solaris

Hi Friends, I am trying following command on my solaris box: mount abchostlinux12:/data1/mount_dir /data/mount_dir OUTPUT: nfs mount: abchostlinux12: : RPC: Rpcbind failure - RPC: Success nfs mount: retrying: /data/mount_dir After this there is no response on command line. I have... (6 Replies)
Discussion started by: SBatra
6 Replies

3. UNIX for Advanced & Expert Users

SuSe Linux Mount

Hi everyone, I am new to Linux and I hope to have some advise. Suppose I have 2 differnt users who require differnt mount drives. When user1 logs in, his required drives are mounted. When user2 logs in, user1's drives are unmounted and user2's drives are mounted. May I know how I can achieve... (2 Replies)
Discussion started by: viper81
2 Replies

4. AIX

How to do a NFS mount from AIX to Linux?

How to do? Thanks (1 Reply)
Discussion started by: rainbow_bean
1 Replies

5. Linux

Mount ntfs in linux

How Can I mount Windows NTFS Partation in to Linux ? (4 Replies)
Discussion started by: Amit Deore
4 Replies

6. UNIX for Advanced & Expert Users

Mount Linux share onto Sco 5.0.6

I've got a Sco 5.0.6 box and an Ubuntu box on my network. i want to backup certain directories onto a share on the Ubuntu box. how do i mount a linux share onto the Sco box? (1 Reply)
Discussion started by: sall
1 Replies

7. Linux

Mount a harddrive in linux.

Hey people i'm very new to linux. I just put a extra 200 gig maxtor HD in my computer. Linux can tell it's there...but it says it cant mount it. How do i mount it manually? thanks, John (2 Replies)
Discussion started by: RKJV
2 Replies

8. UNIX for Dummies Questions & Answers

mount from unix(3.2. v5.0.5) to Linux rh8

mount -f NFS 128.1.80.1:/usr /mnt (: RPC: Program not registered) don't work :( please help. (1 Reply)
Discussion started by: RoMaGo
1 Replies

9. UNIX for Dummies Questions & Answers

Need help to access/mount so to access folder/files on a Remote System using Linux OS

Hi I need to access files from a specific folder of a Linux system from an another Linux System Remotely. I know how to, Export a folder on One SCO System & can access the same by using Import via., NFS in the Sco Unix SVR4 System using the scoadmin utility. Also, I know to use mount -t ... (2 Replies)
Discussion started by: S.Vishwanath
2 Replies
Login or Register to Ask a Question