LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-25-2011, 11:36 AM   #1
jbulgier
LQ Newbie
 
Registered: Jul 2011
Posts: 4

Rep: Reputation: Disabled
mount: //10.52.0.102/Jim/dpc is not a valid block device


When I try to mount this XP share:
sudo mount -t cifs //$n.102/Jim/dpc mnt/mp2 -o username=user,password=pass
I get this error:
mount: //10.52.0.102/Jim/dpc is not a valid block device

When I mount its parent:
sudo mount -t cifs //$n.102/Jim mnt/mp2 -o username=user,password=pass
The mount is successful and I can view the 'dpc' folder I tried to mount before.

I shared the directory in XP even though its parent is shared, but that didn't help. The username and password are correct for the XP machine because I am able to mount the parent.

I am using Ubuntu 10. Any ideas?
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 08-03-2011, 04:57 PM   #2
cheesus
Member
 
Registered: Jan 2005
Location: Munich, Germany
Distribution: SuSE
Posts: 186

Rep: Reputation: 25
Hi, I would assume that you need to modify the XP share to point to the
Jim/dpc, not only dpc. (or add a 2nd share for the Jim/dpc).
I believe you can only directly mount what is shared, but not any
contents of that share.
Cheers, Tom.
 
2 members found this post helpful.
Old 08-03-2011, 07:18 PM   #3
jbulgier
LQ Newbie
 
Registered: Jul 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks Tom.

I created a new share and it is now working fine.
 
Old 09-11-2014, 02:57 PM   #4
fhp
LQ Newbie
 
Registered: Sep 2014
Posts: 1

Rep: Reputation: Disabled
I know the thread is old, but it showed high on google, so for future reference:

Installing cifs-utils allows you to mount directories inside a share (tested on debian wheezy).
 
  


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
Mount: /dev/cdrom is not a valid block device... spaceballs Slackware 8 03-12-2007 03:54 PM
mount: /dev/cdrom is not a valid block device blueAlien Slackware 2 03-26-2006 03:22 AM
mount USB2: no valid block device anon187 Linux - Hardware 4 01-03-2006 09:32 AM
/dev/cdrom is not a valid block device cannot mount eatmars Linux - Hardware 1 10-02-2005 07:50 AM
mount /dev/fd0 is not a valid block device jolly_good2000 Linux - Hardware 12 07-31-2003 06:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:13 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
Open Source Consulting | Domain Registration