Rockstor Shares and Ubuntu

Prior to Rockstar I was running NAS4Free. I had the NAS4Free shares automatically mounted in Ubuntu via fstab. The shares were set up as follows.

//xxx.xxx.xxx.xxx/mnt2/tvshows/tv_shows /home/ritzie/tvshows cifs guest,uid=1000,iocharset=utf8 0 0
//xxx.xxx.xxx.xxx/mnt2/movies/movies1 /home/ritzie/movies cifs guest,uid=1000,iocharset=utf8 0 0

The file shares aren’t mounting. I think there is something wrong with this cifs guest,uid=1000,iocharset=utf8 0 0 but I’m not sure. Very new to CentOS.

I got further. //xxx.xxx.xxx.xxx/tvshows/tv_shows //home/ritzie/tvshows btrfs defaults 0 0

The mount point is under //tvshows/tv_shows however unbuntu comes back with the mount point doesn’t exist. TVshows being the pool and tv_shows shared

Hi @malejo,

Your original fstab should have been fine - I’m not sure about the uid spec, but beyond that I don’t foresee any issues.

Are you sure that you have configured Samba/CIFS file sharing on your system shares? (Storage menu -> Samba)

Please note that by default, Shares is actually a pretty poor name for Rockstor’s shares, as they’re not actually shared, they are simply segmented slices of your filesystem for Rockstor to use as storage locations.
To share them, you must configure for sharing via SMB/CIFS, NFS, SFTP or AFP.

Cheers.

Hmm I’m able to access the shared drives via windows (r/w) but the shares will not mount in ubuntu. Keeps saying the share doesn’t exists.

Can you provide:

  • The related fstab contents
  • The exact error you’re receiving
  • Where you’re seeing the error (console, /var/log/messages, etc)
  • Output of an attempted manual mount, IE:

mount -t cifs //xxx.xxx.xxx.xxx/tvshows/tv_shows /home/ritzie/tvshows

/etc/fstab: static file system information.

Use ‘blkid’ to print the universally unique identifier for a

device; this may be used with UUID= as a more robust way to name devices

that works even if disks are added and removed. See fstab(5).

/ was on /dev/sda1 during installation

UUID=928f1043-31cd-41b9-9837-b60e43095a18 / ext4 errors=remount-ro 0 1

swap was on /dev/sda5 during installation

UUID=53f65d61-8a25-46dd-9fdb-7c46fef2c5b5 none swap sw 0 0

#network drives
#//xxx.xxx.xxx.xxx/music /home/ritzie/music cifs guest,uid=1000,iocharset=utf8 0 0
//xxx.xxx.xxx.xxx/mnt2/tvshows/tv_shows /home/ritzie/tvshows cifs guest,uid=1000,iocharset=utf8 0 0
#//xxx.xxx.xxx.xxx/movies /home/ritzie/movies cifs guest,uid=1000,iocharset=utf8 0 0
#//xxx.xxx.xxx.xxx/movies2 /home/ritzie/movies2 cifs guest,uid=1000,iocharset=utf8 0 0
#//xxx.xxx.xxx.xxx/movies3 /home/ritzie/movies3 cifs guest,uid=1000,iocharset=utf8 0 0

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)

seeing error in console when I use sudo mount -a in ubuntu.

mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

image

Thanks @malejo,

Please from the system you’re trying to mount the share on, also provide the output of:

smbclient -L xxx.xxx.xxx.xxx -U ritzie

This should tell us what shares are are available on xxx.xxx.xxx.xxx to your user.

My apologies, had an emergency and had to go out of town. I’ll get back to you with the info.

Any reason why you’re not using NFS? It’s much easier to setup via fstab.

I’m coming from nas4free. Drives were formatted as ufs or zfs . So I need to transfer my files to a new drive used for Rockstor with btrfs.

Does rockstor r/w to NFS?

output for smbclient


    tv_shows        Disk      Samba-Export
    IPC$            IPC       IPC Service (Samba 4.7.1)

Domain=[HOME] OS=[Windows 6.1] Server=[Samba 4.7.1]

    Server               Comment
    ---------            -------
    ROCKSTOR             Samba 4.7.1
    RT-AC5300-86D0       RT-AC5300-86D0

    Workgroup            Master
    ---------            -------
    HOME                 RT-AC5300-86D0