All files are accessible on a Linux box (and UNIX) are distributed under a big tree, the file hierarchy, rooted at /. These files can be spread across multiple devices. mount mount command serves to connect / mount the file system of a particular device to the tree of files.

Use the mount command as follows to mount remote Windows partition under Linux:

Procedure to mount remote Windows partition (NAS shared)

Make sure you have the following information:

  • The Windows user name and password to access the shared name
  • Name of the shared resource (such as / / server / share) or the IP address
  • Level of root access on Linux

Log in to Linux as a super user root, then create the mount point required:

  deathbian: ~ # mkdir-p / mnt / ntserver 



Use the mount as follows:

  deathbian: ~ # mount-t CIFS / / ntserver / download-o = fher98 username, password = MyKey / mnt / ntserver 


Now, mount the share of windows via samba, we apply the following command if we are using an older version of Linux, RHEL as <= 4 or Debian <= 3:

  deathbian: ~ # mount-t smbfs-o = fher98 username, password = mypassword / / ntserver / download / mnt / ntserver 


Accessing the partition of a shared Windows 2003/2000/NT using the command cd and ls

  deathbian: ~ # cd / mnt / ntserver; ls-l 



Where,

  • -t smbfs: Ttipo file system to mount (obsolete, use CIFS)
    CIFS-t: Type of file system that was set up.
  • -o: They are sent to the command options for assembly, in this instance I have spent two options. The first argument is the user name (fher98) and the second argument is the password to connect to remote server windows.
  • / / ntserver / download: Name of the server and share on Windows 2000/NT.
  • / mnt / ntserver: Point of assembly in our local Linux machine.

Popularity: 1% [?]