UNSOLVED

SKOIR1

updated

10 years ago

S

SKOIR1

1 Rookie

•

13 Posts

0

5921

June 2nd, 2016 09:00

SMB Share mount

I got a very basic question : how can I mount a SMB Share (Shared folder in ISILON) to a Linux server? Please lay out detailed steps.

  • scott_owens

    60 Posts

    3756

    0

    Posted June 2nd, 2016 15:00

    What flavor of Linux are you running? Here are some steps that worked on a Ubuntu configuration

    The correct syntax for mounting from your Ubuntu client should be similar to the following:

    # mount - t cifs // / / -o username= ,dom=

    In an example form that looks like:

    # mount -t cifs //10.20.4.216/ifs /mnt/ifs -o username=kstag,dom=cslab

    It will prompt you for the password after you press enter. If you would like to put this in your fstab then the following should be what your'e looking for:

    //cluster/ifs /mnt/ifs cifs credentials=/root/.smbcreds,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0

    Where you'll need to change the '//cluster/ifs' value to your cluster and share. The 'credentials=' parameter specifies a file that contains username, password and domain information so that not just anyone can pull those by looking at your fstab. Here's an example of what you want in that file:

    # cat /root/.smbcreds

    username=kstag

    password=a

    domain=a

  • SKOIR1

    1 Rookie

    •

    13 Posts

    3754

    0

    Posted June 7th, 2016 07:00

    Hi scot_owens,

    Running this command I am getting the error as follows;

    CIFS VFS: cifs_mount failed w/return code = -6

    Retrying with upper case share name

    CIFS VFS: cifs_mount failed w/return code = -6

    mount error(6) : No such device or address

    Refer to the mount. cifs(8) manual page (e.g. man mount.cifs)

    Am I missing something here? Client is running at RHEL(6.5). 

  • scott_owens

    60 Posts

    3754

    0

    Posted June 10th, 2016 13:00

    In my lab, I get error 6 when I reference a share that does not exist on the cluster

    The following is using CentOS.

    [root]scott_centos# mount -t cifs //lab_cluster/noshare /mnt/isilon                                                                                 /root

    Password:

    Retrying with upper case share name

    mount error(6): No such device or address

    Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

    [root]scott_centos# mount -t cifs //lab_Cluster/ifs /mnt/isilon                                                                                     /root

    Password:

    [root]scott_centos# ls /mnt/isilon/data                                                                                                               /root

    Isilon_Support/