LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 12-15-2006, 08:49 AM   #1
lbdgwgt
Member
 
Registered: Aug 2006
Distribution: Ubuntu
Posts: 87

Rep: Reputation: 15
smbmount problem


Hi all,

i have a problem with smbmount which i installed from samba 2.2.12 (old i know ).

so after i installed samba packages on my linux system (i am building it on my own for a project purpose). i tried to connect it with my notebook (with windows XP) using the smbclient command:
Code:
# smbclient -L //NOTEBOOK
# smbclient //NOTEBOOK/Documents
both are working, i can access the shared documents in my windows system under the smb> prompt

but the if i tried to mount it using the smbmount command:
Code:
# smbmount //NOTEBOOK/Documents /mnt/share
Can't get mtab~ lock filesmbmnt failed: 1
but i think the mount is somehow succeed:
Code:
# cat /proc/mounts
.....
//NOTEBOOK/Documents /mnt/share smbfs rw,file_mode=0755,dir_mode=0755 0 0
but i cannot see the content of the directory, and even there are errors when i umount it:
Code:
# ls -l /mnt/share
ls: /mnt/winshare: Input/output error
# umount /mnt/share
smb_retry: no connection process
smb_delete_inode: could not close inode 2
i tried to find in google, and also here but there is no good hints how to solve the problem.

actually i am using a CF card to store the read-only linux system. for my application, i want to save a log file maybe on another computer (maybe windows). so the shared directory should be mounted somewhere in my root file system.

i need an opinion: is it really necessary to install samba? because maybe i think in this case my linux system does not need the server.
i just read this thread:
http://www.linuxquestions.org/questi...ght=filesmbmnt
can i just try to patch my kernel with the CIFS file system patch and then do the mount with cifs file system type?

big thanks for any hints for the newbee
 
Old 12-16-2006, 10:25 AM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Change NOTEBOOK to the IP of the machine.
smbmount //xxx.xxx.xxx.xxx/Documents /mnt/share

Brian
 
Old 12-18-2006, 01:27 AM   #3
lbdgwgt
Member
 
Registered: Aug 2006
Distribution: Ubuntu
Posts: 87

Original Poster
Rep: Reputation: 15
Hi,

thanks for the answer. i tried but it result the same error. i cannot see the content of directory after mounting it.

Code:
# smbmount //192.168.1.2/Documents /mnt/share
Password:
Can't get /etc/mtab~ lock filesmbmnt failed: 1

# ls -al /mnt/share
ls: /mnt/share: Input/output error

# cat /proc/mounts
.....
//192.168.1.2/Documents /mnt/share smbfs rw,file_mode=9755,dir_mode=0755 0 0
any hints what should i do next?
thanks,
 
Old 12-18-2006, 08:21 AM   #4
lbdgwgt
Member
 
Registered: Aug 2006
Distribution: Ubuntu
Posts: 87

Original Poster
Rep: Reputation: 15
Hi all,

so i managed to do something. i patched the 2.4 kernel for CIFS file system supprot, compiled the samba 3.0.23 package, install:
Code:
# make installbin
# make installcifsmount
then i can mount my windows share directory using
Code:
# mount.cifs //192.168.1.5/Documents /mnt/winshare
the problem is it always asks for password.

but i cannot do it with the normal mount command:
Code:
# mount -t cifs //192.168.1.5/Documents /mnt/winshare
CIFS: Missing UNC name for mount target
mount: Mounting //192.168.1.5/Documents on /mnt/winshare failed : Invalid argument
what is the cause of the problem?
becuase actually i want to mount the windows directory during startup. i use busybox, so if put the following line in my /etc/init.d/rcS file:
Code:
/usr/local/samba/sbin/mount.cifs //192.168.1.5/Documents /mnt/winshare
it will ask for password before getty runned.
how can i solve the problem?

thanks,
 
  


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
smbmount problem with filenames from multiple codepages Cyber_Paladin Linux - Software 0 09-17-2006 01:27 PM
Strange problem with SMBMOUNT and LAN Browser 1kyle Linux - Software 0 07-14-2004 12:58 PM
SMBMOUNT problem pepino Linux - Newbie 12 02-05-2004 11:21 AM
Problem with smbmount running as root linxtc Linux - Networking 2 10-18-2003 04:52 PM
smbmount problem / question hildog Linux - Networking 8 10-12-2003 05:17 PM

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

All times are GMT -5. The time now is 10:11 PM.

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