LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-08-2009, 12:24 AM   #1
gonvaro
Member
 
Registered: Jan 2009
Location: Medellín, Colombia
Distribution: Fedora 17
Posts: 69

Rep: Reputation: 15
Mount


Hi friends;

I try below:

pepito@pepon:~$ sudo smbmount //192.168.2.2/DRIVE1 /mnt/usbdrv -o username=root
[sudo] password for pepito:
Password:
mount error(112): Host is down
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
pepito@pepon:~$

root is the username at remote pc,
192.168.2.2 its ip.

Well, i try from other pc with Windows and ok, but on my PC with Ubuntu 9.04 not works.

I try many ways and nothing across servername and ip like the example...

ˇ I need some help !
 
Old 09-08-2009, 01:28 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
In Ubuntu you can try Places > Network and see if it mounts it for you.

Also it gives you one point look into man mount.cifs
 
Old 09-08-2009, 08:13 AM   #3
gonvaro
Member
 
Registered: Jan 2009
Location: Medellín, Colombia
Distribution: Fedora 17
Posts: 69

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by linuxlover.chaitanya View Post
In Ubuntu you can try Places > Network and see if it mounts it for you.

Also it gives you one point look into man mount.cifs
Just because I read it.
====================

सिर्फ इसलिए मैं इसे पढ़ें.

Last edited by gonvaro; 09-08-2009 at 08:14 AM.
 
Old 09-08-2009, 08:14 AM   #4
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Can you ping the remote machine?
And if you read the man page, did you try the GUI method?
 
Old 09-08-2009, 08:03 PM   #5
gonvaro
Member
 
Registered: Jan 2009
Location: Medellín, Colombia
Distribution: Fedora 17
Posts: 69

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by linuxlover.chaitanya View Post
Can you ping the remote machine?
And if you read the man page, did you try the GUI method?

Can you ping the remote machine?

Well, as you'll see the following table with IP and Resource Name

pepito@pepon:~$ ping 192.168.2.2
PING 192.168.2.2 (192.168.2.2) 56(84) bytes of data.
64 bytes from 192.168.2.2: icmp_seq=1 ttl=255 time=6.71 ms
64 bytes from 192.168.2.2: icmp_seq=2 ttl=255 time=1.23 ms
64 bytes from 192.168.2.2: icmp_seq=3 ttl=255 time=1.20 ms
64 bytes from 192.168.2.2: icmp_seq=4 ttl=255 time=4.89 ms
64 bytes from 192.168.2.2: icmp_seq=5 ttl=255 time=1.58 ms
64 bytes from 192.168.2.2: icmp_seq=6 ttl=255 time=2.07 ms
64 bytes from 192.168.2.2: icmp_seq=7 ttl=255 time=1.06 ms

--- 192.168.2.2 ping statistics ---
7 packets transmitted, 7 received, 0% packet loss, time 6007ms
rtt min/avg/max/mdev = 1.061/2.680/6.711/2.057 ms

pepito@pepon:~$ ping usbsvr
PING usbsvr.dummy.porta.siemens.net (192.168.2.2) 56(84) bytes of data.
64 bytes from USBSVR.dummy.porta.siemens.net (192.168.2.2): icmp_seq=1 ttl=255 time=1.21 ms
64 bytes from USBSVR.dummy.porta.siemens.net (192.168.2.2): icmp_seq=2 ttl=255 time=1.13 ms
64 bytes from USBSVR.dummy.porta.siemens.net (192.168.2.2): icmp_seq=3 ttl=255 time=1.18 ms
64 bytes from USBSVR.dummy.porta.siemens.net (192.168.2.2): icmp_seq=4 ttl=255 time=1.31 ms
64 bytes from USBSVR.dummy.porta.siemens.net (192.168.2.2): icmp_seq=5 ttl=255 time=3.54 ms
64 bytes from USBSVR.dummy.porta.siemens.net (192.168.2.2): icmp_seq=6 ttl=255 time=1.43 ms

--- usbsvr.dummy.porta.siemens.net ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5008ms
rtt min/avg/max/mdev = 1.139/1.638/3.546/0.859 ms

And if you read the man page, did you try the GUI method?
Indeed, yes.

At scan_192.168.2.2_Umit.txt file is the result of Unit scan, It may helps
Attached Files
File Type: txt scan_192.168.2.2_Umit.txt (17.9 KB, 4 views)

Last edited by gonvaro; 09-08-2009 at 08:57 PM.
 
Old 09-09-2009, 01:55 AM   #6
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
When you try to use the GUI mode using Places > Network what are the errors?
 
Old 09-09-2009, 02:46 AM   #7
gonvaro
Member
 
Registered: Jan 2009
Location: Medellín, Colombia
Distribution: Fedora 17
Posts: 69

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by linuxlover.chaitanya View Post
When you try to use the GUI mode using Places > Network what are the errors?

Failed to mount the place.
Failed to get list of server sharing

or also..

Failed to mount the place
Failed to mount Windows Sharing
 
Old 09-09-2009, 03:30 AM   #8
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
This is the issue that I faced when I used Hardy. But Jaunty has not had the problem though. Gutsy started having the same problem after some updates were installed. I tried to solve for Hardy, but could not. Really sorry for it. But I can not think of anything right now.
 
Old 09-09-2009, 06:24 PM   #9
gonvaro
Member
 
Registered: Jan 2009
Location: Medellín, Colombia
Distribution: Fedora 17
Posts: 69

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by linuxlover.chaitanya View Post
This is the issue that I faced when I used Hardy. But Jaunty has not had the problem though. Gutsy started having the same problem after some updates were installed. I tried to solve for Hardy, but could not. Really sorry for it. But I can not think of anything right now.
and?
 
Old 09-09-2009, 07:11 PM   #10
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
If you can ping the server (at 192.168.2.2) then you have network connectivity. You probably need to check the firewalls for both hosts and see if the ports are open.

139/tcp, 445/tcp, 137/udp, 138/udp

Also make sure that that samba is running on the server (smbd, nmbd and possibly winbind)
 
Old 09-09-2009, 08:35 PM   #11
gonvaro
Member
 
Registered: Jan 2009
Location: Medellín, Colombia
Distribution: Fedora 17
Posts: 69

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jschiwal View Post
If you can ping the server (at 192.168.2.2) then you have network connectivity. You probably need to check the firewalls for both hosts and see if the ports are open.

139/tcp, 445/tcp, 137/udp, 138/udp

Also make sure that that samba is running on the server (smbd, nmbd and possibly winbind)
When I navigate the Network with Nautilus 2.26.2, show the server and its resources. immediately try to enter the share, this is how I do it, and surprise popup messages that I wrote above :


Failed to mount the place.
Failed to get list of server sharing

or also..

Failed to mount the place
Failed to mount Windows Sharing
 
Old 09-10-2009, 01:29 AM   #12
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
You can get the list of windows share with smbtree command. And if windows clients can access the shares I doubt its firewall. But jschiwal, I still dont know why samba server needs to be running for just mounting windows shares on Ubuntu?
 
Old 09-10-2009, 09:31 AM   #13
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
The samba server needs to be running on the remote machine. I missed the line about another windows machine accessing the shares. The firewall on Ubuntu could still be blocking ports needed for browsing and accessing shares.

You can also use "smbclient -L <server>" to list the shares on the remote server.
The samba-client package needs to be installed. ( Ubuntu may call it something else )
You need to run "smbpasswd -a <username>" to add your username and password to the samba user/password database file. This file contains the credentials that you connect with.

Last edited by jschiwal; 09-10-2009 at 09:46 AM.
 
Old 09-10-2009, 09:19 PM   #14
gonvaro
Member
 
Registered: Jan 2009
Location: Medellín, Colombia
Distribution: Fedora 17
Posts: 69

Original Poster
Rep: Reputation: 15
Question

Quote:
Originally Posted by jschiwal View Post
The samba server needs to be running on the remote machine. I missed the line about another windows machine accessing the shares. The firewall on Ubuntu could still be blocking ports needed for browsing and accessing shares.

You can also use "smbclient -L <server>" to list the shares on the remote server.
The samba-client package needs to be installed. ( Ubuntu may call it something else )
You need to run "smbpasswd -a <username>" to add your username and password to the samba user/password database file. This file contains the credentials that you connect with.
I run smbclient -L and failed, next time add parameter to smb.conf:

lanman auth = yes
client plaintext auth = yes
client ntlmv2 auth = no
client lanman auth = yes
client schannel = auto
client signing = auto
client use spnego = yes

try again and :

root@pepon:/home/pepito# smbclient -L usbsvr
Enter root's password:

Sharename Type Comment
--------- ---- -------
USB1 Printer Deskjet F300 series
IPC$ IPC
REPORT Disk in Read only files
SETUP Disk in Configuration files
DRIVE1 Disk Kingston DataTraveler 2.0 1.00

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

Workgroup Master
--------- -------
root@pepon:/home/pepito# smbclient -L 192.168.2.2
session request to 192.168.2.2 failed (Called name not present)
session request to 192 failed (Called name not present)
session request to *SMBSERVER failed (Called name not present)
root@pepon:/home/pepito# ping usbdrv
PING usbdrv (192.168.2.2) 56(84) bytes of data.
64 bytes from usbdrv (192.168.2.2): icmp_seq=1 ttl=255 time=1.27 ms
64 bytes from usbdrv (192.168.2.2): icmp_seq=2 ttl=255 time=3.06 ms
64 bytes from usbdrv (192.168.2.2): icmp_seq=3 ttl=255 time=2.63 ms
64 bytes from usbdrv (192.168.2.2): icmp_seq=4 ttl=255 time=1.18 ms
64 bytes from usbdrv (192.168.2.2): icmp_seq=5 ttl=255 time=1.83 ms
64 bytes from usbdrv (192.168.2.2): icmp_seq=6 ttl=255 time=2.37 ms
^C
--- usbdrv ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5007ms
rtt min/avg/max/mdev = 1.182/2.061/3.068/0.694 ms
root@pepon:/home/pepito# smbtree
Password:
CASA
\\PEPON pepon server (Samba, Ubuntu)
\\PEPON\HP-Deskjet-f380 HP Deskjet f380 All-in-One
\\PEPON\IPC$ IPC Service (PEPON server (Samba, Ubuntu))
\\PEPON\print$ Printer Drivers

\\USBSVR
\\USBSVR\DRIVE1 Kingston DataTraveler 2.0 1.00
\\USBSVR\SETUP in Configuration files
\\USBSVR\REPORT in Read only files
\\USBSVR\IPC$
\\USBSVR\USB1 Deskjet F300 series

But can't access to \\USBSVR\DRIVE1
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS mount of smb mount of windows share: permission denied problem :( Bagatur Linux - Networking 4 07-07-2009 12:34 PM
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 2 12-24-2005 08:16 AM
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 1 12-24-2005 05:25 AM
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 2 12-24-2005 03:15 AM


All times are GMT -5. The time now is 01:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration