Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Connecting to Windows from Gentoo & vice versa [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Sun Apr 27, 2008 10:40 pm    Post subject: Connecting to Windows from Gentoo & vice versa [SOLVED] Reply with quote

I'm sure this is discussed elsewhere in these forums, but searching for it hasn't brought anything to the surface, so I apologize if this is redundant.

How do I open a shared folder in my Windows computer from my Gentoo computer? Everything is set up for sharing in the Windows folder and I'm able to map it as a network drive from another Windows computer. I just want to do the same thing in my Gentoo computer.
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN


Last edited by audiodef on Wed Jun 11, 2008 9:45 pm; edited 5 times in total
Back to top
View user's profile Send private message
poly_poly-man
Advocate
Advocate


Joined: 06 Dec 2006
Posts: 2477
Location: RIT, NY, US

PostPosted: Mon Apr 28, 2008 12:02 am    Post subject: Reply with quote

http://gentoo-wiki.com/HOWTO_Setup_Samba

should be a starting point - basically look for samba documentation.

poly-p man
_________________
iVBORw0KGgoAAAANSUhEUgAAA

avatar: new version of logo - see topic 838248. Potentially still a WiP.
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5934

PostPosted: Mon Apr 28, 2008 12:11 am    Post subject: Reply with quote

poly_poly-man wrote:
http://gentoo-wiki.com/HOWTO_Setup_Samba

should be a starting point - basically look for samba documentation.

poly-p man


from what i understand you don't need to configure samba or anything (samba is only for hosting shares, or logging onto a windows domain controller)... just install it and use mount... and enable CIFS support in the kernel.
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
cyblord
Guru
Guru


Joined: 22 May 2006
Posts: 424

PostPosted: Mon Apr 28, 2008 3:29 am    Post subject: Reply with quote

bunder wrote:
poly_poly-man wrote:
http://gentoo-wiki.com/HOWTO_Setup_Samba

should be a starting point - basically look for samba documentation.

poly-p man


from what i understand you don't need to configure samba or anything (samba is only for hosting shares, or logging onto a windows domain controller)... just install it and use mount... and enable CIFS support in the kernel.


Mounting seemed to work fine for me before.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Mon Apr 28, 2008 1:42 pm    Post subject: Reply with quote

I read the man mount page, but I'm not sure I found what I need. If my network drive is at 192.168.1.100 (I'm assuming the filesystem type is ntfs for Windows XP), the shared folder is called "Muzedox" and I have a local dir called "win" I want to mount it in, what is the command I should use to mount this network folder?
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
desultory
Bodhisattva
Bodhisattva


Joined: 04 Nov 2005
Posts: 9410

PostPosted: Tue Apr 29, 2008 2:55 am    Post subject: Reply with quote

If the name of the mounting user is usable to mounting shares from the remote machine and entering a password at a prompt is acceptable, mount -t cifs //192.168.1.100/Muzedox win should suffice.

Note that NTFS is a media based file system type whereas the files are being accessed via a network without the use of network block devices, in this case using CIFS.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Tue Apr 29, 2008 1:42 pm    Post subject: Reply with quote

Thanks, desultory!

The first time I tried it, I got an unknown fs error, so I compiled CIFS into the kernel. The second time I tried it, I got

Code:

CIFS VFS: cifs_mount failed w/return code = -22


I looked it up and found http://gentoo-wiki.com/HOWTO_Setup_Samba, which mentioned the need to emerge mount-cifs, which I did. After that, the mount command worked.

Thanks for everyone's help!
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Fri May 16, 2008 12:48 am    Post subject: Reply with quote

I just set up a new system. I have CIFS built into the kernel, but

Code:

mount -t cifs //192.168.1.100/(dir) (mountpoint)


doesn't work. I get

Code:

mount: wrong fs type, bad option, bad superblock on //192.168.1.100/Muzedox,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so


when I try that command.

I installed this system using 2008 beta and am running KDE.

Did I miss something?
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
desultory
Bodhisattva
Bodhisattva


Joined: 04 Nov 2005
Posts: 9410

PostPosted: Fri May 16, 2008 4:49 am    Post subject: Reply with quote

Perhaps the appropriate code page, probably the output of dmesg | tail.
Back to top
View user's profile Send private message
SeaTiger
l33t
l33t


Joined: 22 Nov 2007
Posts: 603
Location: Toronto, Ontario, Canada

PostPosted: Fri May 16, 2008 5:15 am    Post subject: Reply with quote

Make sure you ave the sambe package installed.
Code:
emerge samba
Then try
Code:
smbmount //192.168.1.100/(dir) (mountpoint) -o user=window_username
Then it will ask for your window_user password.
Back to top
View user's profile Send private message
obrut<-
Apprentice
Apprentice


Joined: 01 Apr 2005
Posts: 183
Location: near hamburg, germany

PostPosted: Fri May 16, 2008 4:02 pm    Post subject: Reply with quote

as stated above, it's not necessary to have samba installed as long you have net-fs/mount-cifs installed, cifs support and the appropiate codepage in your kernel. you can find it under file systems --> native language support in kernel configprog.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Fri May 16, 2008 4:17 pm    Post subject: Reply with quote

Thanks, junksiu and obrut.

I needed to emerge samba and mount-cifs.
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Wed Jun 11, 2008 8:24 pm    Post subject: Now for the opposite... Reply with quote

I thought I'd post here instead of creating a new thread, since it's the same issue reversed.

I need to connect to my Gentoo box from a Windows machine. I have Samba installed and started (including winbind), and have tried some basic configurations of smb.conf. I can now get my windows machine to prompt me for a password when I map network drive to \\192.168.1.100\(username), but nothing happens. Every time I submit my username and password the password box pops right back up. I tried setting a share like [share1] path=(wherever) but that didn't help.

I also have SWAT set up and running, but I can't access it because this also asks for a username and password, and will accept neither root nor a regular user as valid credentials.

Stump the chump day! I didn't come running here without doing some reading, so I would appreciate any help.
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Wed Jun 11, 2008 9:42 pm    Post subject: Reply with quote

Solved by yours truly!

smbpasswd -a root to set the root password for SWAT.

Messed around with SWAT for a bit, continued to have the same problem mapping the network drive. On a hunch, I did smbpasswd -a (username) and presto! I'm in. The documentation was not very clear on that part.
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum