You are not logged in.
Hi,
Recently, I've bought a new PC, and I intend to copy much info from the old PC to the new one using SAMBA (both are dual boot).
Both PCs have fully updated ARCH (32b on the old, 64b on the new), have samba installed, share the same home 192.168.1.x network, can ping each other and enable Internet surfing.
IP addresses: Old: 192.168.1.100 (also named "miki_old" in the /etc/hosts of the NEW PC); New: 192.168.1.101;
I've copied the same smb.conf from the old to the new one. The smb.conf (see below) is derived from the SAMBA guide in Arch Wiki and miki is my user name on both PCs, which I also added using smbpasswd -a miki (and assigning the same PW as miki's one).
Being a KDE user, I tried to access the shares using Dolphin "smb://192.168.1.100/share/" (per the Wiki's recommendations) and got an error saying file or folder does NOT exist.
For manual mount trials - see below.
I'd appreciate your help in solving this issue!
Thanks!
Michael Badt
=========terminal output -ALL from NEW PC===========
$ smbclient -L miki_old -U%
Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.5.5]
Sharename Type Comment
--------- ---- -------
IPC$ IPC IPC Service (Samba Server)
mikisdir Disk Miki's win docs
Lexmark_E232 Printer Lexmark_Laser
Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.5.5]
Server Comment
--------- -------
MYHOST Samba Server
Workgroup Master
--------- -------
MYGROUP MYHOST
******************************************************************************
# mkdir /mnt/win2_doc
[root@myhost etc]# mount -t cifs //MYHOST/mikisdir /mnt/win2_doc -o user=miki, password=pwd, workgroup=MYGROUP,ip=192.168.1.100
Usage: mount -V : print version
mount -h : print this help
....rest of options....
*****************************************************************************
*****************my /etc/samba/smb.conf file (same on BOTH PCs) without many comments lines***************
[global]
# workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH
workgroup = MYGROUP
# server string is the equivalent of the NT Description field
server string = Samba Server
# Security mode. Defines in which mode Samba will operate. Possible
# values are share, user, server, domain and ads. Most people will want
# user level security. See the Samba-HOWTO-Collection for details.
security = user
# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The
# following example restricts access to two C class networks and
# the "loopback" interface. For more examples of the syntax see
# the smb.conf man page
hosts allow = 192.168.1. 127.
# this tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba/%m.log
# Put a capping on the size of the log files (in Kb).
max log size = 50
# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
wins support = yes
dns proxy = no
#============================ Share Definitions ==============================
[homes]
comment = Home Directories
browseable = no
writable = no
# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
# Set public = yes to allow user 'guest account' to print
guest ok = no
writable = no
printable = yes
# A private directory, usable only by fred. Note that fred requires write
# access to the directory.
[mikisdir]
comment = Miki's win docs
path = /windows/Documents\ and\ Settings/Owner/My\ Documents
valid users = miki
public = no
writable = no
printable = no
============================================================
Last edited by mibadt (2010-09-28 04:52:47)
Best regards,
Michael Badt
Offline
What I wonder about is what that path for mikisdir refer to if we're talking about two Linux boxes. Are both dual boot systems? I would expect such partition to be mounted on /media or /mnt. I can't see any reference to how that path is resolved.
Offline
Hi,
Indeed both PCs are dual boot.
mikisdir refers to Miki's "My Documents" on my Windows drive (old PC).
On my old PC the Windows partition ("C") is indeed mounted as /windows (yes-under root).
I'm still looking for a solution.
Thanks
Best regards,
Michael Badt
Offline
mount -t cifs //MYHOST/mikisdir /mnt/win2_doc -o user=miki, password=pwd, workgroup=MYGROUP,ip=192.168.1.100
Should be:
mount -t cifs //MYHOST/mikisdir /mnt/win2_doc -o user=miki,password=pwd,workgroup=MYGROUP,ip=192.168.1.100
(No spaces between commas)
Offline
Just out of curiosity. You are using two Linux boxs. I presume they both have ssh/sshd. You are using Dolphin.
Why Samba?
Why, instead of the smb:// kioslave, do you not use the sftp:// kioslave?
I dislike posts that sidestep the OP's questions with suggestions of other ways to achieve the means, but in this case I just could not resist. :-P
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Agree with ewaller, bad.
no hijack intended, just to help you reach your goal faster: why not rsync ?
my own memo for it is here: http://wiki.zenerves.net/index.php/Rsync cause, well, I have the memory of a goldfish.
Cheers.
Offline
Thanks all!
Problem was eventually solved by omitting the back slashes in the path definition in mikisdir (smb.conf).
New path is /windows/Documents and Settings/Owner/My Documents
I wasn't aware of kioslave.
I didn't choose rsync as I intended to selectively move data- not complete folders/drives.
Regards!
Best regards,
Michael Badt
Offline