Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Network mounting has gone to hell on my machine [Solved]

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
11 posts • Page 1 of 1
Author
Message
HomerSimpson
l33t
l33t
User avatar
Posts: 869
Joined: Sat Jan 25, 2003 3:37 pm
Location: Ohio, USA

Network mounting has gone to hell on my machine [Solved]

  • Quote

Post by HomerSimpson » Fri Nov 25, 2005 11:14 pm

I have always struggled getting windows drives mounted. I can get it to work from time to time but it seems fragile.

Right now I can't mount at all.

Problems:
1) I have mount listed in fstab but recently when I try to mount it the directory listing disappears. I can cd to it but ls says "permission denied". Even though I have the permissions set on fstab and on the directory. Does work as root either

2) One of the shared directories, in particularly, shared documents, does not show up in webmin as possible shared directories even though it is shared just like the other directories that do show up.

3) I recompiled the kernel with cifs support but it will not mount at all anywhere.

4) If I try to mount manually on the command line I get "mount: no such partition found". I tried every combination of \\ and // as well as upper case and lower case, with multiple mount points and always I get "mount: no such partition found".

Something must seriously be messed up on my computer but most everything else works.

What am I doing wrong?

Thanks
Last edited by HomerSimpson on Sat Dec 10, 2005 5:01 pm, edited 1 time in total.
The strong must protect the Sweet.
Top
thecooptoo
Veteran
Veteran
Posts: 1353
Joined: Sun Apr 27, 2003 1:04 pm
Location: UK

  • Quote

Post by thecooptoo » Sat Nov 26, 2005 12:22 am

what are you trying to mount . For some folders on my XP machine eg windows I get a permission denied that I dont seem to be able to get around . the rest of the XP seems to work with -t cifs
join the optout - http://nhsconfidentiality.org
Top
HomerSimpson
l33t
l33t
User avatar
Posts: 869
Joined: Sat Jan 25, 2003 3:37 pm
Location: Ohio, USA

  • Quote

Post by HomerSimpson » Sat Nov 26, 2005 2:50 am

The invalid partition was from a bad command I was passing. I copied and pasted the command from a post somewhere. When I actually read the man page I realized I was passing a wrong parameter.

So now when I try to mount, I get:

Code: Select all

# mount -t cifs //home-xpp/shared_documents /mnt/shareddocs/
Password:
mount error 110 = Connection timed out
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
The strong must protect the Sweet.
Top
thecooptoo
Veteran
Veteran
Posts: 1353
Joined: Sun Apr 27, 2003 1:04 pm
Location: UK

  • Quote

Post by thecooptoo » Sat Nov 26, 2005 9:58 am

I've ended up added a username=Administrator, password=xxxx
to my /etc/fstab
might be worth trying adding those options ( or the windows user who owns the share that you are wanting to access) to the mount command
join the optout - http://nhsconfidentiality.org
Top
HomerSimpson
l33t
l33t
User avatar
Posts: 869
Joined: Sat Jan 25, 2003 3:37 pm
Location: Ohio, USA

  • Quote

Post by HomerSimpson » Sat Nov 26, 2005 6:21 pm

After compiling cifs in my kernel, is there anything I have to do to enable it?

When I try to mount using cifs it seems to hang but then eventually times out.

I tried adding username and password. I used my username that is the same on both machines and I tried Administrator.

Are there any tools I can use to test cifs?

Thanks
The strong must protect the Sweet.
Top
thecooptoo
Veteran
Veteran
Posts: 1353
Joined: Sun Apr 27, 2003 1:04 pm
Location: UK

  • Quote

Post by thecooptoo » Sun Nov 27, 2005 9:19 am

simple stuff
can you ping the XP machine?
XP firewall on ?
firewall in the way ?
whats the output of

Code: Select all

smbclient -L XPmachine 
[/code]
join the optout - http://nhsconfidentiality.org
Top
HomerSimpson
l33t
l33t
User avatar
Posts: 869
Joined: Sat Jan 25, 2003 3:37 pm
Location: Ohio, USA

  • Quote

Post by HomerSimpson » Sun Nov 27, 2005 3:31 pm

Aha!

I use a local DNS server and the IP of my XPmachine was wrong.

I can now ping.

The firewall in Windows was on (I forgot about that) but whether it is on or off I now get the same error:

Code: Select all

mount error 20 = Not a directory
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
smbclient -L XPmachine does not show the directory I am trying to mount, although it is shared from Windows. There is a second share that does show up but trying to mount it gives the same exact error.

Thanks for the help. I am re-reading the samba docs (again).
The strong must protect the Sweet.
Top
HomerSimpson
l33t
l33t
User avatar
Posts: 869
Joined: Sat Jan 25, 2003 3:37 pm
Location: Ohio, USA

  • Quote

Post by HomerSimpson » Sat Dec 10, 2005 12:08 pm

OK I have read and read and searched and searched. I am not making any progress.

If I mount to a windows share using smbfs from Gentoo, the mount point (directory) disappears but I can 'cd' to it. When I do an ls I get "ls: premission denied". If I try to mount using cifs I get "mount error 20 = Not a directory".

If I go into Windows explorer and type the network path, it works fine.

I can mount from Windows to Gentoo.

I can ping the Windows computer

The Windows firewall is off

smbclient -L <windows>/<directory> also gives me permission denied

The Windows and Gentoo user are the same name

The Windows and Gentoo user have the same password

I even recreated the user, using smbpasswd

What am I doing wrong?

Thanks
The strong must protect the Sweet.
Top
Randy R
n00b
n00b
Posts: 63
Joined: Fri Jan 09, 2004 4:02 pm

  • Quote

Post by Randy R » Sat Dec 10, 2005 12:49 pm

I had trouble authenticating while trying to mount XP directorys in linux. I was finally forced to dig deep and I found that there can be a issue with the smb.conf file (/etc/samba/smb.conf). Look at The global section, and change the file (one section shown) as follows, or if they do not exist insert them:

Code: Select all

password level = 4
username level = 4
Both of these need to be set to at least 4, but not higher than 8

This was a problem I ran into a long time ago, and I don't know if it has been fixed, but its woth a look.
Top
HomerSimpson
l33t
l33t
User avatar
Posts: 869
Joined: Sat Jan 25, 2003 3:37 pm
Location: Ohio, USA

  • Quote

Post by HomerSimpson » Sat Dec 10, 2005 1:26 pm

I made the change and restarted samba but I get the same problem. The mount directory is not shown in an ls and when I cd to it and try to ls I get permission denied.

Thanks for the post though. I know it is going to be something simple I just don't know what yet.

Thanks
The strong must protect the Sweet.
Top
HomerSimpson
l33t
l33t
User avatar
Posts: 869
Joined: Sat Jan 25, 2003 3:37 pm
Location: Ohio, USA

  • Quote

Post by HomerSimpson » Sat Dec 10, 2005 1:59 pm

I have been beating my head against the wall over this one for quite a while. I finally got it to work and I don't know why I didn't think of it earlier! :oops:

In Windows, I stopped sharing the folder then re-shared it. Now I can mount it. I kept thinking it was a Gentoo/Linux problem but it was Windows. Who would have thought!

Thanks all for your help
The strong must protect the Sweet.
Top
Post Reply

11 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic