LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 10-17-2006, 01:50 PM   #1
pjo
Member
 
Registered: Jan 2006
Posts: 68

Rep: Reputation: 15
samba, xubuntu and mount


Hi all,

I am totally baffled and stumped ... let me explain the setup:
I have a wireless router (managed to get wpa working fine, thank you all)
It has 4 ethernet ports:
2 unused,
1 for my desktop
1 for a level1 usb server (FPS-3003)
this thing provides network services for usb devices, i.e disks, storage and scanners

I have on my laptop Xubuntu
I want to connect to the usb device server with samba
I purposefully chose Xubuntu, because I don't need much fluff, basic working stuff will do
I want to use the USB device, to which I attached a 200G disk, as backup device for both pc's
So what I really want is to mount the USB disk, over the air and over the cables, over samba, as a regular disk.

the problem is that I can't see it with smbclient, when I do
> smbclient -L hostname
it queries for a password (so far so good)
and then returns:
Sharename Type Comment
--------- ---- -------
IPC$ IPC Remote IPC
PRINTER$ Disk
hpdeskje Printer hp deskjet 845c
USB2_D1P1 Disk

Server Comment
--------- -------
hostname stuff
Workgroup Master
--------- -------
hostname stuff

so far so good (bis)

then I try to mount it.
> mount -t smb //hostname/USB2_D1P1 /mnt/somedir

doesn't work, you have to sudo
but if you sudo, the user doesn't match the usbserver user (who is also the user I'm logged on with, you have to synch those) anymore, so that does not work either

when I try LinNeighborhood, it seems to work but it doesn't mount anything, but it creates in my home dir a structure ~/mnt/hostname/USB2_D1P1 which, upon ls -al, looks like:
?--------- ? ? ? ? ? USB2_D1P1

very weird .... and i can't remove it because it cannot be lstatted or because it is a directory ???


the annoying thing is, I can see the shares in konqueror, read/write, as smb://hostname/USB2_etc with the proper user and all, but I am totally stomped on how to mount them.

Also, that obviously means the server works well. Incidentally, printing from the laptop over the air, wpa, et tutti quanti, is now also a breeze

Ideas, anybody?

Regards,

Peter
PS: I tried to follow http://julien.herbin.ecranbleu.org/samba_client_howto/
but alas, no success.
http://www.oreilly.com/catalog/debia...k/ch10_04.html never even gave the advertised prompt, so I abandonned that


Thanks

Last edited by pjo; 10-17-2006 at 02:06 PM.
 
Old 10-17-2006, 03:26 PM   #2
Redeye2
Member
 
Registered: Feb 2004
Posts: 489

Rep: Reputation: Disabled
First, install the samba filesystem tools: sudo apt-get install smbfs
Then, use smbmount to mount the remote share -but- with a different user/pass (along with other different options, for more man smbmount): smbmount //hostname/USB2_D1P1 /mnt/somedir -o username=user,password=pass
 
Old 10-19-2006, 12:06 PM   #3
pjo
Member
 
Registered: Jan 2006
Posts: 68

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Redeye2
First, install the samba filesystem tools: sudo apt-get install smbfs
Then, use smbmount to mount the remote share -but- with a different user/pass (along with other different options, for more man smbmount): smbmount //hostname/USB2_D1P1 /mnt/somedir -o username=user,password=pass
ok ... that seems to get rid of the user conflicts, but I still can't access it, if I follow that script the ls -al in /mnt, looks like:
?--------- ? ? ? ? ? somedir
smbfs seems installed:
lsmod | grep smbfs
smbfs 66552 2

Pointers, anyone???

Peter
 
Old 10-19-2006, 04:08 PM   #4
Redeye2
Member
 
Registered: Feb 2004
Posts: 489

Rep: Reputation: Disabled
What about using the uid and gid options for smbmount?
 
Old 10-20-2006, 09:35 AM   #5
sweetnsourbkr
Member
 
Registered: Aug 2005
Location: Bay
Distribution: Zenwalk, OpenBSD, Slackware
Posts: 167

Rep: Reputation: 30
A little OT here but: is samba absolutely required in your application? Is there a chance you could use NFS instead?

I've never had any luck with samba, so I'm a little biased.
 
Old 10-22-2006, 11:04 AM   #6
pjo
Member
 
Registered: Jan 2006
Posts: 68

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by sweetnsourbkr
A little OT here but: is samba absolutely required in your application? Is there a chance you could use NFS instead?

I've never had any luck with samba, so I'm a little biased.
yep, it is required ... the server only supprts ftp and samba, and connects to my network with DHCP, so it may get any adress ... and AFAIK samba can handle that. But smbmount seems to do something, it logs the start of a server, there is a process running etc ... it's just that
ls -al in /mnt, looks like:
?--------- ? ? ? ? ? somedir
and ls /mnt/somedir complains about invalid lsstat ???

What does that mean???


Peter

Last edited by pjo; 10-22-2006 at 11:13 AM.
 
Old 10-22-2006, 11:14 AM   #7
pjo
Member
 
Registered: Jan 2006
Posts: 68

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Redeye2
What about using the uid and gid options for smbmount?
I used all the available options except the mask ones, same result ...

Peter
 
Old 10-22-2006, 02:18 PM   #8
pjo
Member
 
Registered: Jan 2006
Posts: 68

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by pjo
ls -al in /mnt, looks like:
?--------- ? ? ? ? ? somedir
and ls /mnt/somedir complains about invalid lsstat ???

What does that mean???


Peter
sorry, it was rm -rf somedir that complained about the lstat

Anyway, apparently ls puts ? when it treats a graphical character, so I thought to add the codepage and charset to the commandline (the server codepage claims to be western european) :

> sudo smbmount //hostname/USB2_D1P1 ~/somedir -o username=user,password=pwd,uid=user,gid=users,
iocharset=iso8859-1,debug=7,codepage=cp1252

the first thing it says:

opts: codepage=cp1252
passthrough options 'iocharset=iso8859-1,codepage=cp1252'
mount.smbfs started (version 3.0.22)

and then it goes on ... does this mean it ignored the options?
(still fails, btw)

Peter
 
  


Reply



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
Can I mount a local NTFS disc as SAMBA mount point? alek66 Linux - Networking 15 10-01-2006 10:02 AM
Problem using Samba SWAT on Xubuntu 6.06 drosen Linux - Networking 3 08-25-2006 02:50 PM
samba mount when not owner of mount point cotton213 Linux - General 1 08-04-2005 06:21 AM
Permissions on a samba mount of a samba mount rimcrazy Linux - Networking 0 04-15-2005 07:57 AM
Samba: Authenticate Linux-Clients in Samba Domain & Mount mule Linux - Software 0 12-10-2003 01:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 07:54 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