LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-18-2003, 12:54 AM   #16
Sutekh
Member
 
Registered: Apr 2002
Location: Melbourne, Australia
Distribution: Gentoo
Posts: 273

Rep: Reputation: 30

Quote:
Originally posted by yowwww
I have renamed the folder on my windows box from "Picture Shows" to "movies".
My username on the windows box is "User" and the computer name is "downstairs", the workgroup is "HOME".

Now, I want to mount those two folders, so I have created on my suse box /mnt/mainframe - will both of the folders on the windows box automatically go into this directory or should i create /mnt/mainframe/movies and /mnt/mainframe/d
pretty much yes, a seperate folder for each on the suse box.

Quote:
also I am sharing my whole "d" so it doesn't really have a name like the other folder. It shows MUSIC (D on the windows box - so what would it's name be when I mount it in fstab? I know it might be easier if I just created a folder in D: and call it "music" and then deposit all of my folders in there. If that is not necessary, I would like to leave things the same.
even though you are sharing the whole drive (which is fine, no need to change this) it still has a name of some sort (i can't check exactly what coz I don't have win xp (or windows at all for that matter) and I am telling you all this from memory (i have used XP only once and have never shared a folder on it so I am not sure of the exact syntax, I do however know that it must have a share name, so have a look it must be there somewhere).

Quote:
I am rather confused with the fstab entry actually. Does it not work the same way as it does for mounting drives from windows to linux on the same box - ie: "mount hda1 /mnt/windows"?
ok before you get to fstab just try to use mount to connect. The exact parameters can be a little tricky to get right so make llife easy for yourself, once you can connect with smbclient you will know what you need in terms of options for mount, then once you have mounted the drive with mount you can tranfer those options over to fstab

Quote:
don't you need to tell it where to put the folder and which one in windows so it can be directed to linux?
or does samba just know which ones because they are automatically designated as shared? [/B]
yes, basically your fstab entry will look something like this

[/i]/etc/fstab[/i]
/dev/hda1 /mnt/windows vfat defaults 0 0
//downstairs/d /mnt/mainframe/d smbfs username=charles,password= 0 0

NOTE: you may not need the username and password bit, I just put it in there as an example in case you do need it.

so this would mount hda1 into the /mnt/windows dir and mount the share called d on the machine called downstairs into /mnt/mainframe/d
 
Old 04-18-2003, 01:03 AM   #17
yowwww
Member
 
Registered: Apr 2003
Location: Ontario, Canada
Distribution: Arch Linux
Posts: 533

Original Poster
Rep: Reputation: 30
ok, so what do i need to put in the terminal to mount it there first?

the name of the "D" drive is "MUSIC" btw.

usually i would just do this:

mount /dev/hda1 /mnt/mainframe/windows
mount /dev/hdb1 /mnt/mainframe/d

but how will it know to look at the other computer and not this one?
 
Old 04-18-2003, 01:35 AM   #18
Sutekh
Member
 
Registered: Apr 2002
Location: Melbourne, Australia
Distribution: Gentoo
Posts: 273

Rep: Reputation: 30
mount -t smbfs -o username,password //downstairs/music /mnt/mainframe/music

as mentioned earlier you may be able to leave out the username and password
 
Old 04-18-2003, 02:58 AM   #19
yowwww
Member
 
Registered: Apr 2003
Location: Ontario, Canada
Distribution: Arch Linux
Posts: 533

Original Poster
Rep: Reputation: 30
ok, i will try that.
I figured some stuff... as usual it was FAR easier than it seemed.

I changed the name of the folders to make more sense.
here is how I mounted the shared folders...

smbmount //mainframe/movies /mnt/mainframe/movies
smbmount //mainframe/music /mnt/mainframe/music

when i put those in as commands in the terminal, it doesn't ask me for a username and when it says password: - I just press enter and it works.

so now I need to figure out how to add it to my fstab, going by what you said, it should be..

mount -t smbfs -o //mainframe/music /mnt/mainframe/music
mount -t smbfs -o //mainframe/movies /mnt/mainframe/movies

is that right? remember it doesn't ask me for a username but i can add one if i want and there is no password since i just press enter.
 
Old 04-18-2003, 07:31 PM   #20
Sutekh
Member
 
Registered: Apr 2002
Location: Melbourne, Australia
Distribution: Gentoo
Posts: 273

Rep: Reputation: 30
something like this should do the trick

/etc/fstab
... existing commands ...

//mainframe/movies /mnt/mainframe/movies smbfs 0 0
//mainframe/music /mnt/mainframe/music smbfs 0 0
 
Old 04-18-2003, 08:00 PM   #21
yowwww
Member
 
Registered: Apr 2003
Location: Ontario, Canada
Distribution: Arch Linux
Posts: 533

Original Poster
Rep: Reputation: 30
i don't need to put in a username or password?
just making sure
thanks for all your input btw.

also, this might be stupid, but i noticed that i could not mount those same folders today (although I didn't troubleshoot too much either)
but, do I need to be in windass on my downstairs machine to see them upstairs?
is there anything I need to do or can I just turn on my comp and boot into rh and be able to mount them in suse upstairs?


Last edited by yowwww; 04-18-2003 at 08:18 PM.
 
Old 04-18-2003, 09:34 PM   #22
Sutekh
Member
 
Registered: Apr 2002
Location: Melbourne, Australia
Distribution: Gentoo
Posts: 273

Rep: Reputation: 30
shouldn't need username or password, try it without and if it doesn't work then try it with ;-)

no probs for the help. that is what I am here for!

for the moment get it working with the downstairs macihne in windows, once you have that sussed then try to do the same for linux, the linux part is more difficult, you have two choices for that, either use nfs on the mounted paretitions - easy-ish to setup but permissions can be a bugger, or use samba to share those directories so the config on the macihne upstairs does not need to change
 
Old 04-19-2003, 05:01 AM   #23
azornoz
Member
 
Registered: Apr 2003
Posts: 52

Rep: Reputation: 15
hi
If u share a folder on your windows whatever it is, u'll see it on the network places when u click on the pcname. So if downstairs is pcname and music is a share on it I THINK u must do:
$smbclient //downstairs/music
or
$mount -t smbfs -o ro //downstairs/music /mnt/yourdir
Let me tell you that it could not be exact, in nfs is pcname:dir. And another thing: for resolving the name of the pc you must add an entry in /etc/hosts (like root), the new line would be:
ip_address remotepcname.domainname remotepcname
or more basic:
ip_address downstairs
Give it a try.
 
Old 04-19-2003, 05:03 AM   #24
azornoz
Member
 
Registered: Apr 2003
Posts: 52

Rep: Reputation: 15
Sorry I did not read the page 2.
You just were told the right way.
 
Old 04-19-2003, 01:02 PM   #25
yowwww
Member
 
Registered: Apr 2003
Location: Ontario, Canada
Distribution: Arch Linux
Posts: 533

Original Poster
Rep: Reputation: 30
no worries on that.

I'd just like to add that when looking at or using information on my windows box from my suse box, that the windows box must be on and in windows, otherwise the shred information is not accessible.

I was hoping I could access it without having to be in windows.
 
Old 04-19-2003, 01:19 PM   #26
bax
Member
 
Registered: Dec 2001
Location: NoVA
Distribution: Ubuntu, Solaris, OpenBSD
Posts: 492

Rep: Reputation: 30
I'm not quite sure where you're at on Samba but skimming the posts I can tell yu you'd probably want one full time Linux box as the Samba server and Samba client installed on your other Linux boxes.
 
Old 04-19-2003, 04:01 PM   #27
azornoz
Member
 
Registered: Apr 2003
Posts: 52

Rep: Reputation: 15
I don't know if this is gonna work, but u could mount the windows partition on a dir in you linux partition who dual boots on the same machine. Then try to share it with samba.
I have not done this before cos I got almost everything of my stuff on linux boxes but one day try to burn a cd with some mp3 from a ntfs partition mounted in a linux dir and I could not do it. I have to copy them to linux partition and say bye to Bill G*tes! (or goto hell).

viva linux
 
Old 04-19-2003, 04:13 PM   #28
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,678

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
mounting samba shares on boot:
http://www.justlinux.com/nhf/Filesys...rom_Linux.html
 
Old 04-19-2003, 06:46 PM   #29
Sutekh
Member
 
Registered: Apr 2002
Location: Melbourne, Australia
Distribution: Gentoo
Posts: 273

Rep: Reputation: 30
Quote:
Originally posted by yowwww
I was hoping I could access it without having to be in windows. [/B]
you can it is just a bit trickier than doing it directly from windows.

As I mentioned in the last post you can either mount the windows partition on your RH8 box and then export this new mount with NFS (permissions can be tricky when doing this), or you could setup the server part of samba (so far we have only looked at th client side) and use that to export the dirve as if your linux box was in fact a windows machine. The advantage of doing this is that the suse box does not need to change it confguration, in both cases it is looking at an windows share.

It would, however, be much easier to set up a central file store on the suse box that all other machine could access. You could easily run samba on this pc and create shares that the windows boxes could see and using either samba or NFS share the same directories to the linux boxes.

This is what I do at home, one pc always on large hard drives, samba for the windows pc's and NFS for the unix pc's. It is easy to administer, no permission problems, secure and scalable. It's all good ;-)
 
  


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
Sharing directories with NFS paddyjoy Linux - Newbie 6 08-14-2005 03:06 AM
Sharing directories outside of /home... AudioMechanic Linux - Networking 1 03-16-2005 08:18 PM
Sharing MS-Win directories with Linux guarriman Linux - Newbie 5 01-04-2005 08:35 AM
sharing directories not in $HOME GTBlackwell Linux - Networking 2 10-23-2003 06:21 PM
Sharing directories between XP and Mandy 9.1 AnandKM Linux - Newbie 2 09-18-2003 02:33 AM

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

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