mounting shared folder at boot


 
Thread Tools Search this Thread
Operating Systems Linux Ubuntu mounting shared folder at boot
# 1  
Old 04-16-2010
mounting shared folder at boot

Hi All
Everytime a reboot my machine "hostB" I have to mount a shared (with machine "hostA" ) NFS folder giving this command
Code:
sudo mount hostA:/sharedFolder /sharedFolder

How to use fstab in order to do this automatically?

I should say
Code:
hostA:/sharedFolder    /sharedFolder          nfs          rw                     0 0

but I don't know whether last 2 values 0 0 are correct and I ddin't understand what they exactly mean and how they impact on the system.
Thanks
MNSTN
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Sub-folder in share disappears when mounting to other server

Hello, I have 3 solaris 11.2 servers: 1 and 2: are just fileservers with 1 zfs-share server 3: i want to use this one to connect to the rest of our network (windows machines and a few solaris machines) I created the shares on all servers like this (x needs to be replace with the number... (9 Replies)
Discussion started by: Wim_123
9 Replies

2. UNIX for Dummies Questions & Answers

Trouble setting up a shared folder

I'm trying to set up a folder in my home directory that will be shared with another user but for some reason it is not working this is what I've done, I have tried two different ways using ACL's and chown/chgrp etc I set up a group called say: sharedgroup and added both my user (john) and fred... (3 Replies)
Discussion started by: 14952john
3 Replies

3. Solaris

Help mounting nfs on boot on Solaris 11

Hello, I am looking for some assistance in mounting an nfs drive on boot, on a Solaris 11 machine. On my Solaris 9/10 machines, I have an entry for my nfs mount in /etc/vfstab, however when I add the same entry to my vfstab on Solaris 11, the drive will not mount on boot. After booting up, I... (5 Replies)
Discussion started by: bstring
5 Replies

4. Solaris

Help with mounting a folder-Virtual Box

How do you mount a shared folder within Solaris 10 virtual machine that has been shared by Virtual Box? (1 Reply)
Discussion started by: jastanle84
1 Replies

5. Shell Programming and Scripting

See shared folder

Hello, I want to list all shared folder in terminal in local. I haven't found the command for, i'm on bash in mac os x. Thanks (2 Replies)
Discussion started by: protocomm
2 Replies

6. Solaris

mounting windows share folder

please help me,,i need step to mount windows share folder,,i try samba and nfs and it didnt work (in my linux server the command is fine),,can somenone give me an example for this to be done? (0 Replies)
Discussion started by: Cellscript
0 Replies

7. Filesystems, Disks and Memory

can folder shared with NFS (/usr/)

hello i wanted to ask you i try to setting: pc server name: A pc user name: B pc user name: C server A is opensuse 11.2 with kde 4.3.5 and last kernel so i create NFS server, i think.. folder (/usr is all softwares and library) because server A can share to PC A. because all... (0 Replies)
Discussion started by: tunjin
0 Replies

8. Solaris

Mounting disk at boot

Hi once more :p Yesterday I reinstalled Solaris OS and now I can not mount pcfs HDD SunOS unknown 5.10 Generic_142901-03 i86pc i386 i86pc and what has been added in /etc/vfstab is /dev/dsk/c1t0d0p1:c - /podaci - pcfs - yes rw But as I said , my disk is... (4 Replies)
Discussion started by: solaris_user
4 Replies

9. Windows & DOS: Issues & Discussions

mounting a directory to a windows 2000 shared folder

until recently I've been using the following command successfully: mount -t smbfs -o username=my_user_name,password=password /home/temp/ //oldserver/openexchange To connect to a Win2000 shared folder called openexchange on a machine called //oldserver. But as from today, I've been getting... (2 Replies)
Discussion started by: cw1972
2 Replies

10. UNIX for Dummies Questions & Answers

Mounting on boot up

Is there a recognised way of mounting drives/network connections on bootup? I realise you can do this by adding the mount command to the 'bashrc' file, but for some rearon this does not seem to be the way i would expect you are supposed to do it. Cheers! Nic (7 Replies)
Discussion started by: nicfellows
7 Replies
Login or Register to Ask a Question
next(1) 						      General Commands Manual							   next(1)

NAME
next - show the next message (only available within the message handling system, mh) SYNOPSIS
next [+foldername] [-[no]header] [-help] [-showproc program] [-noshowproc] [options to showproc] OPTIONS
Displays a one-line header before the message. The header consists of the name of the folder and the message number. This is the default behavior. It can be suppressed with the -noheader option. Prints a list of the valid options to this command. Specifies an alternative program to list messages. The default is to use the program defined by the showproc: entry in the file. As with show, you can give options to the showproc program at the command line. These are passed directly to showproc by next. (If you specify an option that has a numerical value, leave no space between the argument and the value. See RESTRICTIONS for more information.) The defaults for this command are: +folder defaults to the current folder -header DESCRIPTION
The command next displays the next message in the current folder. The next message is the one after the current message in the folder. The message that is shown becomes the current message. If you name a folder using the +folder argument, next displays the next message in the folder you specify. That folder becomes the current folder. RESTRICTIONS
The next command is really a link to the show program. As a result, if you make a link to next and that link is not called next, your link will act like show instead. To avoid this, add a profile-entry for the link to your and add the argument next to the entry. Also, if you use the showproc switch to specify an alternative viewer, leave no space between the options specified with the viewer and their values. For example, if you want to use the more command to scroll through messages in your inbox folder, and you want to pause every five lines, you would enter the following command, where there is no space between the option n and the value 5: % next +inbox -showproc more -n5 If there is space between the option n and the value 5, the command interprets 5 as a message number to view. PROFILE COMPONENTS
Path: To determine the user's Mail directory showproc: Program to show the message FILES
The user profile. SEE ALSO
show(1), prev(1), mh_profile(4) next(1)