Inhaltsverzeichnis

mount

besonderes Mounten

NFS

bei neueren Ubunuts (13.04) scheint das NFS-mount standardmäßig gar nicht mehr dabei zu sein.

Man muss es erst installieren:

sudo apt-get install nfs-common

Wenn man auch NFS4 möchte, dann noch ein

sudo apt-get install nfs4-acl-tools

hinterher.

Why Upgrade to NFSv4

bind

Man kann bestehende Dateisystem in ander mounten mit der Option 'bind'.

http://docs.1h.com/Bind_mounts

Using bind mounts, we can mount all, or even part of an already-mounted filesystem to another location, and have the filesystem accessible from both mount points at the same time! For example, you can use bind mounts to mount your existing root filesystem to /home/drobbins/nifty, as follows:

# mount --bind / /home/drobbins/nifty

eintrag in fstab:

/von /nach none bind 0 0

loop

# mount -t iso9660 -o ro,loop=/dev/loop0 cd.iso /mnt/cdrom

Meine /etc/fstab

# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=28586c7f-63e4-4008-ae22-97d60c014633 /               ext4    errors=remount-ro,noatime 0       1

# mount hdd
UUID=3c995734-59ba-4d8a-8276-e6d1fcde3cf2 /media/hdd      ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 b< gerald
#UUID=252a1482-82df-4560-ab5a-ee58f948b46d none            swap    sw              0       0

192.168.123.95:/files      /Server/files     nfs4     soft,intr,rsize=8192,wsize=8192    0 0
#192.168.123.95:/archive      /Server/archive     nfs     exec,nosuid,ro,rsize=8192,wsize=8192    0 0
192.168.123.95:/pictures /Server/pictures      nfs4     soft,intr,rsize=8192,wsize=8192    0 0

192.168.123.4:/public      /Server/NAS     nfs     exec,nosuid,rw,user    0 0
192.168.123.4:/fotografenbilder      /var/Server/fotografenbilder     nfs     exec,nosuid,rw,user    0 0
192.168.123.4:/gerald      /Server/gerald_backup     nfs     exec,nosuid,rw,user    0 0

/media/hdd/tmp	/tmp	none	bind	0 0
/media/hdd/home/.ecryptfs/gerald/	/home/.ecryptfs/gerald/	none	bind	0 0
#/media/hdd/var	/var	none	bind	0 0