mounting a windows share

Hello :wink:

my isp is providing what they call a box, a modem/router in fact , there’s a hdd with it thus i can store there some files, videos …
i’m trying to watch a video that’s on the box’s hdd. 1st of all kaffeine (no result) and smplayer (took something like 4 minutes to make a local copy, then no picture, sound only) where ko (i lacked some codecs which i fixed), only vlc was able to play the files, with a little delay for the sound.

I’d like to mount the share to see if playing is quicker or not, could you please help me ? (i do have cifs-utils installed already)

here’s what i tried : Mount a Windows share on Linux with Samba , the test is ok but in step 2 it tells me smbfs is not a known fs (…) . How come ?

then i tried different things, but i’m still not able to mount

e.g :

mount -t cifs //stb01 -o username=myuser,password=mypwd /mnt/sfrbox

mount error: could not resolve address for stb01: Unknown error
how can i resolve this address ?

Thanks :wink:

On which openSUSE ersion is this?

could not resolve address for stb01:

This means that you use a host name and that this name can not be resolved to an IP address.
Either use the box’ IP address or see that thye name can ve resolved (using /etc/hosts or DNS).

BTW, I know almost nothing about using Samba (except that Swerdna has good docs about this: Samba: HowTo Mount a CIFS Network Share [AKA Map Network Drive] in openSUSE 11 plus FAQs), but sheer logics tells me that you should somewhere define a host AND directory (or name of the export or how that is called in MS wording).

Edit: Please use CODE tags when posting computer text: http://forums.opensuse.org/english/information-new-users/advanced-how-faq-read-only/451526-posting-code-tags-guide.html

hi,
it looks like the error is similar as the one described in the part mentioning a fail when using the netbios name , i added wins in /etc/nsswitch.conf but still have an error, slightly dirrerent though

how do i find the ip instead of the network name ? is the ip always the same ?

 

# mount -t smbfs -o username=user,password=pwd //stb01/DISQUE_INTERNE/Videos /mnt/sfrbox
mount: unknown filesystem type 'smbfs'

opensuse122:~ # mount -t cifs //stb01 -o username=user,password=pwd /mnt/sfrbox
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)

opensuse122:~ # mount -t cifs -o username=user,password=pwd //stb01 /mnt/sfrbox
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)

opensuse122:~ # mount -t cifs -o guest //stb01 /mnt/sfrbox
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)
opensuse122:~ # exit
logout

fabrice@opensuse122:~> smbclient -L stb01 -U fabrice
Enter fabrice's password: 
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.34]

        Sharename       Type      Comment
        ---------       ----      -------
        DISQUE_INTERNE  Disk      
        PERIPHERIQUES   Disk      
        PLAYLIST        Disk      
        IPC$            IPC       IPC Service (Neufbox)
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.34]

        Server               Comment
        ---------            -------

        STB01                Neufbox

        Workgroup            Master
        ---------            -------
        WORKGROUP            STB01


I do not understand what you are trying to do. All permutations of the parameter field of* mount*?

Please look at

man 8 mount

to see in what sequence the parameters must be.
And I doubt that //stb01 is a correct way of pointing to a share on a system. But I repeat, I do not know much about Samba nor Windows. Read Swrdna’s docs.

On 2012-10-04 10:36, manchette fr wrote:
>
> hi,
> it looks like the error is similar as the one described in the part
> mentioning a fail when using the netbios name , i added wins in
> /etc/nsswitch.conf but still have an error, slightly dirrerent though
>
> how do i find the ip instead of the network name ? is the ip always the
> same ?

As it is in your router/modem box, it better be the same >:-)

To the rest, please read Swrdna’s docs first.


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

i did and did not find a solution

my router has a harddisk attached to it and all my machines in my local network are setup to mount it.
Is it the same for you? How did you get access to it to write files onto it?
The IP address is needed in order to mount it (or name to be resolved via hosts file) and the directory where you try to mount the share to be owned by the user which needs to mount it.

Here is the command(as per Swerdna’s instructions)
mount -t cifs -o username=server_user,password=secret //192.168.44.100/share /path_to/mount
and here is yours:
mount -t cifs -o username=user,password=pwd //stb01 /mnt/sfrbox
assumptions are:
-that /mnt/sfrbox directory belongs to the user on the client side(your computer).
-The user/pass in the mount command is in fact the user/pass on the server(share)
the only puzzling thing is //stb01 ? is that the name of the share which is not resolved in your network? any device has an IP address(in my home network) is 192.168.1.1 as it is attached to my router. not sure where is on yours. is it internal to your home network or on the provide server?
Give me more details.

hi,

in fact i don’t know the server_user and how to know it, neither it’s ip.
Yes stb01 was the network name of the share, it’s stb01 but sometimes stb0xx , none are working . Looks like the ip is changing and the network name too …

as i understand this space is available on the modem/share provided by your provider. Is this in your home? if yes this router could be accessed as i assume the ip address is 192.168.1.1(most of the time). There is a default user/password based on the type of the router/modem which if you google it by type you should find it. This needs to be setup with your user password as any router. Try to find this info and we’ll go from there. If this modem/router is not in your house than the ISP should provide you info about it.

hi ,

you’re right, it’s accessible with the ip 192.168.1.1
i have a web console , i went there and found the user and pwd. i then tried to enter from the web console, but it was ko, it used to work (a long time ago).

then from command line :

 
mount -t cifs -o username=admin,password=secret //192.168.1.1 /mnt/sfrbox
mount error(115): Operation now in progress                                                                                                                                                                                                  
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)       
                                                                                                                                                                          
opensuse122:~ # man mount.cifs
opensuse122:~ # man mount.cifs

opensuse122:~ # mount -t cifs -o username=admin,password=secret //192.168.1.1/DISQUE_INTERNE /mnt/sfrbox/DISQUE_INTERNE                                                                                                        
mount error(115): Operation now in progress                                                                                                                                                                                                  
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)       


i do not understand the error as mount is calling mount.cifs when type cifs is used, as explains the man.

so we know now that the share is at 192.168.1.1 and we have the user/password. you should be able to see the share by going into your browser and type smb://192.168.1.1. This would show you the share name as it is(DISK_INTERNE?). Probably from this point if you want to access it you’ll need your credentials. Anyway now you could try to mount it again.

mount -t cifs -o username=admin,password=secret //192.168.1.1/DISQUE_INTERNE /mnt/sfrbox/DISQUE_INTERNE
make sure that directory /mnt/sfrbox/DISQUE_INTERNE exist before you attempt to mount it.
do a ll -rt /mnt/sfrbox/DISQUE_INTERNE
and is own preferably by your own id and not the root
chown -R youruser:users /mnt/sfrbox/DISQUE_INTERNE
otherwise after mount it will not be owned by you.

i did create the share file destination before the mount ( mkdir /mnt/sfrbox/DISQUE_INTERNE )

i don’t get this : " do a ll -rt /mnt/sfrbox/DISQUE_INTERNE"

do you mean the following ? :


ll -rt /mnt/sfrbox/DISQUE_INTERNE

yes. sorry i should have use some columns(:slight_smile: at least. so is your share called DISQUE_INTERNE(after you check it on the browser)?

as i told you the web console entrance was ko, i thus rebooted the box,

yes DISQUE_INTERNE is among the shares

using ll and chown did not help, i still have error 115 as above

smb://192.168.1.1 is loading endlessly

i usually use dolphin then network , samba shares, workgroup, stb0xx
which gives this in the adress bar smb://stb0xx/DISQUE_INTERNE and is not asking for any credentials

**edit :

now it works , but with the network name only


# mount -t cifs -o username=admin,password=secret //192.168.1.1/DISQUE_INTERNE /mnt/sfrbox/DISQUE_INTERNE
mount error(115): Operation now in progress
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

opensuse122:~ # mount -t cifs -o username=admin,password=secret //stb0xx/DISQUE_INTERNE /mnt/sfrbox/DISQUE_INTERNE

no error, aka -> it worked !! :=)


now i also mounted the other shares from stb0xx , it looks ok but the sound still takes a while to be ok in the videos.

what if the network name changes ? it sometimes is stb01 instaed of stb0xx

can you as root run the following command:
fdisk -l


opensuse122:~ # fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x20e3865f

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1       306280448   312580095     3149824   82  Linux swap / Solaris
/dev/sda2   *     4209030    67119569    31455270   83  Linux
/dev/sda3        67119570   306279224   119579827+  83  Linux

Partition table entries are not in disk order

Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x49196183

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1              63   312576704   156288321   83  Linux

Disk /dev/sdc: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00072096

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1              63   415248119   207624028+  83  Linux
/dev/sdc2   *   415248120   625137344   104944612+  83  Linux

Disk /dev/sdd: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors                                                                                                                                                                      
Units = sectors of 1 * 512 = 512 bytes                                                                                                                                                                                                       
Sector size (logical/physical): 512 bytes / 512 bytes                                                                                                                                                                                        
I/O size (minimum/optimal): 512 bytes / 512 bytes                                                                                                                                                                                            
Disk identifier: 0x000c1b47                                                                                                                                                                                                                  
                                                                                                                                                                                                                                             
   Device Boot      Start         End      Blocks   Id  System                                                                                                                                                                               
/dev/sdd1              63  1953520064   976760001   83  Linux                                                                                                                                                                                
opensuse122:~ #