LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problem mounting network raid drive in Ubuntu (https://www.linuxquestions.org/questions/linux-newbie-8/problem-mounting-network-raid-drive-in-ubuntu-4175492798/)

cryan 01-27-2014 07:30 PM

Problem mounting network raid drive in Ubuntu
 
Hello everyone.

I'm attempting my first-ever mount in Linux (Ubuntu 12), specifically a network raid drive that contains a photo archive that I want to access with a photo management/editing program.

The drive is accessible through the file manager at the location smb://mybookliveduo/public/PhotoArchive, and I can properly see the files using the Linux machine.

I *think* the command I am looking for is: sudo mount -t cifs //mybookliveduo/public/PhotoArchive /mnt/NetworkPhotoArchive

But I'm getting the following errors. I'd appreciate it if someone could point me in the right direction. Thanks much!

Code:

christopher@Heidi:/mnt$ sudo mount -t cifs //mybookliveduo/public/PhotoArchive /mnt/NetworkPhotoArchive
mount: wrong fs type, bad option, bad superblock on //mybookliveduo/public/PhotoArchive,
      missing codepage or helper program, or other error
      (for several filesystems (e.g. nfs, cifs) you might
      need a /sbin/mount.<type> helper program)
      In some cases useful info is found in syslog - try
      dmesg | tail  or so

christopher@Heidi:/mnt$ sudo mount.cifs -t cifs //mybookliveduo/public/PhotoArchive /mnt/NetworkPhotoArchive
sudo: mount.cifs: command not found
christopher@Heidi:/mnt$ sudo /sbin/mount.cifs -t cifs //mybookliveduo/public/PhotoArchive /mnt/NetworkPhotoArchive
sudo: /sbin/mount.cifs: command not found
christopher@Heidi:/mnt$


gengisdave 01-27-2014 07:45 PM

usually smb shares are in form //<server>/<share>, you can see what network shares you can access by "smbtree" command (it scans all your network)

cryan 01-27-2014 08:06 PM

Thanks, gengisdave.

I ran smbtree and get these results:

Code:

christopher@Heidi:/mnt$ smbtree
Enter christopher's password:
WORKGROUP
        \\MYBOOKLIVEDUO                  My Book Live Duo Personal Cloud Storage
                \\MYBOOKLIVEDUO\IPC$                  IPC Service (My Book Live Duo Personal Cloud Storage)
                \\MYBOOKLIVEDUO\Public                Public Share
        \\MYBOOKLIVE                    My Book Live Network Storage
                \\MYBOOKLIVE\IPC$                  IPC Service (My Book Live Network Storage)
                \\MYBOOKLIVE\Public                Public Share
        \\MEDIASERVER                   
        \\LKGA62336                     
                \\LKGA62336\ADMIN$                IPC Service ()
                \\LKGA62336\IPC$                  IPC Service ()
                \\LKGA62336\HDD_2_1_1              For everyone
                \\LKGA62336\HDD_1_1_1              For everyone
        \\IOMEGA-0059AD                  Iomega Network Hard Drive
        \\FON_5922_N                    Netbios-Arada 0.9.10
        \\ELLE                         
FUTUREOFNEWS

Since the exact reference to the share on the raid drive is "\\MYBOOKLIVEDUO\Public", I tried the following command using that exact reference, but still got the same error.

Code:

christopher@Heidi:/mnt$ sudo mount -t cifs \\MYBOOKLIVEDUO\Public /mnt/NetworkPhotoArchive
mount: wrong fs type, bad option, bad superblock on \MYBOOKLIVEDUOPublic,
      missing codepage or helper program, or other error
      (for several filesystems (e.g. nfs, cifs) you might
      need a /sbin/mount.<type> helper program)
      In some cases useful info is found in syslog - try
      dmesg | tail  or so

I looked at the properties of the directory /mnt/NetworkPhotoArchive and saw a message saying the directory name was too long. So I deleted the directory and created /mnt/PhotoArch. I've tried using both forward-slashes and backward-slashes, but still get the error about the wrong fs type...

gengisdave 01-27-2014 08:13 PM

do you have cifs utils installed? something like "apt-get install cifs-utils" or "apt-get install cifs" or "apt-get install smbfs", don't know exactly the package name

EDIT : "cat /proc/filesystems | grep cifs" should show if fs is supported, but i'm not totally sure about it

cryan 01-27-2014 08:50 PM

I ran sudo apt-get install cifs-utils, and it either installed or re-installed. I also ran "cat /proc/filesystems | grep cifs", but just got the command prompt, with no other response.

Interestingly, the error response changed when I re-tried the mount command (I tried it with both backwards and forwards slashes).

Code:

christopher@Heidi:~$ cat /proc/filesystems | grep cifs
christopher@Heidi:~$ sudo mount -t cifs \\MYBOOKLIVEDUO\Public /mnt/PhotoArch
mount.cifs: bad UNC (\MYBOOKLIVEDUOPublic)
christopher@Heidi:~$ sudo mount -t cifs //MYBOOKLIVEDUO/Public /mnt/PhotoArch
mount error: could not resolve address for MYBOOKLIVEDUO: Unknown error
christopher@Heidi:~$

\\MYBOOKLIVEDUO\Public is definitely what's listed in the response to the smbtree command, and it is still visible and accessible in the Nautilis file manager. Mystery...

cryan 01-27-2014 11:49 PM

Aha! The Western Digital MyBookLiveDuo does not officially support Linux, but it can be accessed by the local network IP address -- just not the //MYBOOKLIVEDUO name. After changing that to the IP address, it successfully mounted.

Thanks!

gengisdave 01-28-2014 12:43 AM

glad it works :) probably you have no association in your linux between your hd ip and its netbios name, "cat /etc/hosts" to see all this associations, this is mine:
Code:

#
# hosts        This file describes a number of hostname-to-address
#              mappings for the TCP/IP subsystem.  It is mostly
#              used at boot time, when no name servers are running.
#              On small systems, this file can be used instead of a
#              "named" name server.  Just add the names, addresses
#              and any aliases to this file...
#
# By the way, Arnt Gulbrandsen <agulbra@nvg.unit.no> says that 127.0.0.1
# should NEVER be named with the name of the machine.  It causes problems
# for some (stupid) programs, irc and reputedly talk. :^)
#

# For loopbacking.
127.0.0.1              localhost
192.168.1.2            tachi
192.168.1.3            batou
192.168.1.9            motoko

# End of hosts.

where tachi is my laptop, batou the desktop where i'm writing and motoko my nas; just "sudo <your text editor> /etc/hosts" to modify it as you need


All times are GMT -5. The time now is 11:52 PM.