martes, 24 de enero de 2017

Montar Particion NTFS y compartir con NFS

MONTAR UNIDAD NTFS

1. Instlamos el paquete "ntfs-3g":
    sudo apt-get install -y ntfs-3g

2. Creamos una carpeta:
    mkdir /home/usuario/carpeta

3. Identificamos el disco a montar con el sigueinte comando
    blkid
    NOTA: Identifcamos nuestro deisco por que trae la etiqueta y dice q es una particion tipo NTFS de la siguiente forma:
    
/dev/sdi2: LABEL="Midisco" UUID="5HSE20D8BC9" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="5b5a3bfc-e4ae-4acf-80c4-a6e3b29502d2"

4. Montamos la unidad de la siguiente manera:
    sudo mount.ntfs-3g /dev/sdi2 -o rw,noatime /home/usuario/carpeta

NOTA: si aparece el error:
                  The disk contains an unclean file system (0, 0).
                  Metadata kept in Windows cache, refused to mount.
                  Falling back to read-only mount because the NTFS partition is in an
                  unsafe state. Please resume and shutdown Windows fully (no  hibernation
                 or fast restarting.)
Conectar el disco duro a un wondows 8 en adelante y ejecutar el sisguiente comando: powercfg.exe /hibernate off
quitar el disco y conectarlo en la maquina Linux


INSTALACION DEL SERVIDOR NFS

1. Instalamos el paquete "nfs-kernel-server"
    sudo apt-get update
    sudo apt-get install nfs-kernel-server

2. Editamos el archivo de configuracion "/etc/exports":
    sudo nano /etc/exports

3. Agregamos las sigueinte liena:
        /var/nfs/general    203.0.113.256(rw,sync,no_subtree_check)
        /var/nfs/general    *(rw,sync,no_subtree_check)


rw: This option gives the client computer both read and write access to the volume.

sync: This option forces NFS to write changes to disk before replying. This results in a more stable and consistent environment since the reply reflects the actual state of the remote volume. However, it also reduces the speed of file operations.

no_subtree_check: This option prevents subtree checking, which is a process where the host must check whether the file is actually still available in the exported tree for every request. This can cause many problems when a file is renamed while the client has it opened. In almost all cases, it is better to disable subtree checking.

no_root_squash: By default, NFS translates requests from a root user remotely into a non-privileged user on the server. This was intended as security feature to prevent a root account on the client from using the file system of the host as root. no_root_squash disables this behavior for certain shares. 

     




No hay comentarios.:

Publicar un comentario