wombat.ch

your Partner for Network Design and CMS

mount & fstab

 

       
   mkdir /mnt/shares/srv03-bkp-joomla    
       
  apt install -y cifs-utils    
       
  mount.cifs //192.168.1.107/share1/  /mnt/shares/srv03-bkp-joomla/ -o user=user1,pass=user1password    
       
       
       
fstab //192.168.1.129/share1  /mnt/shares/srv03-bkp-joomla  cifs  username=user1,password=user1password  0  0    
       
       
  from=$1
to=$2
rsync -zarv  --prune-empty-dirs --include "*/"  --include="*.sh" --exclude="*" "$from" "$to"
   

 

 

 

 

 

 

 

 

 



Mounting the Share in Linux 1. On your Linux machine, open terminal.


  • Make sure you have the nfs-common package installed. To do this in Unbuntu:

sudo apt-get install nfs-common

  • Otherwise, consult your system documentation or package manger for more info.
  • To mount an NFS, you first have to create the folder to which you want it to mount. Type this to create a directory:

sudo mkdir /mnt/<insertfoldername>

  • Now, once that is created, you can mount the share. Type:

sudo mount -t nfs4 <IP Address>:/<DriveVolumeName>/<NameofShare> /mnt/<FolderyouCreated>

  • What all this means:
    • -t : Is used to tell the system that this is just an ordinary mount command. You use this when you do not have the drive information located in /etc/fstab
    • nfs : Tells the type of share you are trying to mount.
    • <IP Address>:/ : IP address of the drive you are trying to mount.
    • <DriveVolumeName>/ : Volume Name of the actual hard drive that you want to mount. This defaults to DataVolume.
    • <NameofShare> : The Share within the Volume of the hard drive that you want to mount.
    • /mnt/<FolderyouCreated> : The location to which you want your share to be mounted. Remember that it is the folder that you already created.
  • Note: This will not create a shortcut on your desktop, nor will it show up in Computer. You will have to browse to the location of the folder. Normally this will be in Computer, under Filesystem and then mnt.

For example:

sudo mount -t nfs4 192.168.10.204:/DataVolume/Public /mnt/Public

or

Sudo mount -t   192.168.0.1:/NASShare  /mnt/NAS  nfs username=administrator,password=pass  0 0 

 

 

 


Source/Quellen:
- Mounting the Share in Linux  
-
-
-
-
-
-
-
Source

RSS Feed


Warning: Invalid argument supplied for foreach() in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 39

Warning: Invalid argument supplied for foreach() in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 39

neusten Links


Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/clients/client2/web2/web/j/modules/mod_quicklistweblinks/helper.php on line 78
many More Links »

part of ...

Linux Counter

Disqus

 

Learning Network

Seti@home & Boinc

myBonic

statistik

 


Who is Online

We have 342 guests and no members online

We have 394 guests, no bots and no members online