Samba mount and access large 2GB+ files from share or NAS device

‮www‬.lautturi.com
Samba mount and access large 2GB+ files from share or NAS device

To mount and access large 2GB+ files from a Samba share or NAS device, you will need to follow these steps:

  1. Install the cifs-utils package. The cifs-utils package provides tools for mounting and accessing CIFS (Common Internet File System) shares. To install it, use the package manager of your distribution.

For example, on Debian or Ubuntu, you can use the following command:

sudo apt-get install cifs-utils
  1. Create a mount point. A mount point is a directory where the Samba share will be mounted. Create a mount point using the mkdir command:
mkdir /mnt/samba
  1. Mount the Samba share. Use the mount command to mount the Samba share on the mount point that you created in the previous step. Specify the Samba share as the source, and the mount point as the destination.

For example, to mount the Samba share \\server\share on the mount point /mnt/samba, you can use the following command:

mount -t cifs //server/share /mnt/samba -o username=user,password=pass

Replace server with the hostname or IP address of the Samba server, share with the name of the Samba share, user with the username of a user that has access to the share, and pass with the password of that user.

  1. Enable large file support. By default, the cifs filesystem driver in Linux does not support large files (larger than 2GB). To enable large file support, you need to specify the vers=3.0 option when mounting the share.

For example:

mount -t cifs //server/
Created Time:2017-10-30 14:27:17  Author:lautturi