From LedHed's Wiki
Line 20: | Line 20: | ||
+ | == Mounting NFS Shares == | ||
+ | In order to mount NFS shares you need the 'portmap' package to be installed. | ||
+ | apt-get install portmap | ||
+ | To mount a share do: | ||
+ | mount -t nfs <server-name or ip>:/remote/path /local/path | ||
+ | Example: | ||
+ | mount -t nfs 192.168.0.1:/share/junk /mnt/junk | ||
+ | This mounts the directory /share/junk on server 192.168.0.1 to the local path /mnt/junk | ||
+ | <br> | ||
+ | <br> | ||
+ | '''AutoMount at boot''' | ||
+ | To automount you need to edit /etc/fstab, and add a line like this: | ||
+ | 192.168.0.1:/share/junk /mnt/junk nfs defaults 0 0 | ||
+ | This mounts the directory /share/junk on server 192.168.0.1 to the local path /mnt/junk at boot-up | ||
[[Category:Ubuntu]] | [[Category:Ubuntu]] |
Revision as of 23:59, 28 January 2007
Ubuntu General Notes
Starting/Stoping Services
invoke-rc.d
Usage
invoke-rc.d service-name start|stop|restart
This is the equivalent to "service" in RedHat based Distros
Starting Services at Boot
update-rc.d
Usage
update-rc.d service-name start|stop|restart
This is the equivalent to "chkconfig" in RedHat based Distros
Optionally you can run rcconf a menu based Command Line utility
rcconfig
This package may not be installed by default
apt-get install rcconf
In order to mount NFS shares you need the 'portmap' package to be installed.
apt-get install portmap
To mount a share do:
mount -t nfs <server-name or ip>:/remote/path /local/path
Example:
mount -t nfs 192.168.0.1:/share/junk /mnt/junk
This mounts the directory /share/junk on server 192.168.0.1 to the local path /mnt/junk
AutoMount at boot
To automount you need to edit /etc/fstab, and add a line like this:
192.168.0.1:/share/junk /mnt/junk nfs defaults 0 0
This mounts the directory /share/junk on server 192.168.0.1 to the local path /mnt/junk at boot-up