LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 06-17-2003, 05:00 AM   #1
uncoolx2
LQ Newbie
 
Registered: Jun 2003
Posts: 4

Rep: Reputation: 0
Suse 8.1 - networking problem


OK I am using Suse 8.1 Personal. My current LAN setup is currently just 2 comps. one linux and the other Win XP Pro. XP has been setup already to be the server, back before I even had linux. So, what I am trying to do is just add this linux box to the LAN. I can already use the internet shared by the XP comp. But how do I veiw the shares of the windows comp? and how do i add shares on the linux comp, so I can access them from windows? Can this be done with just the Samba client? (damn personal, should have gotton pro.) And since I have the personal version I only have the client... If I do need the Samba server would it be possible to download it and install it to Suse?
 
Old 06-17-2003, 10:31 AM   #2
jvannucci
Member
 
Registered: Jan 2003
Location: Connecticut, US
Distribution: Red Hat 9.0
Posts: 98

Rep: Reputation: 15
I'm not familiar with Suse, so I don't know exactly how they package things, but if you have the Samba client package installed you should have smbmount - probably in /usr/bin. This package will allow you to mount Win shares on your Linux box. I assume you already know how to set up the shares on the Windows side. In Linux:

# mkdir /mnt/winshare
# mount -t smbfs //WINHOST/WINSHARE /mnt/winshare

where WINHOST is the hostname of the Win box and WINSHARE is it's share, as configured on the windows side.

You'll probably have to have an entry in /etc/hosts to map WINHOST to it's IP address, or you could just use the IP address in the mount command for starters - to separate name resolution issues from mounting issues.

Once all this works to your satisfaction, you can add an entry to /etc/fstab to mount this at boot time.

To go the other direction - share Linux directories with Windows - you'll need the Samba server package. Here's a link to a binary rpm: http://hostopia.samba.org/samba/ftp/...SuSE/i386/8.2/

Actually this is a directory with various packages. Once you have Samba installed look at it's config file - usually /etc/samba/smb.conf. It's very well documented and for what you want to do there are commented samples.
 
Old 06-17-2003, 04:50 PM   #3
uncoolx2
LQ Newbie
 
Registered: Jun 2003
Posts: 4

Original Poster
Rep: Reputation: 0
okay, i got it to work.. could you explain the format of fstab? and what should i add to it? Thanks.
 
Old 06-17-2003, 07:28 PM   #4
jvannucci
Member
 
Registered: Jan 2003
Location: Connecticut, US
Distribution: Red Hat 9.0
Posts: 98

Rep: Reputation: 15
# man 5 fstab
# man 8 mount

Using the previous example, your fstab entry could look like this (must all be on one line):

//WINHOST/WINSHARE /mnt/winshare smbfs defaults 0 0

Basically:
- device or in this case remote share
- local mount point
- fs type
- mounting options
 
Old 06-20-2003, 07:19 AM   #5
uncoolx2
LQ Newbie
 
Registered: Jun 2003
Posts: 4

Original Poster
Rep: Reputation: 0
I added that to the fstab, but it wont mount at boot up.
Here is what my fstab says:

/dev/hde7 / reiserfs defaults 1 1
/dev/hde5 /boot ext2 defaults 1 2
/dev/hde1 /windows/C ntfs ro,users,gid=users,umask=0002,nls=iso8859-1 0 0
/dev/hde6 swap swap pri=42 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
proc /proc proc defaults 0 0
usbdevfs /proc/bus/usb usbdevfs noauto 0 0
/dev/cdrecorder /media/cdrecorder auto ro,noauto,user,exec 0 0
/dev/fd0 /media/floppy auto noauto,user,sync 0 0
//matt-1/F /mnt/winshare/F smbfs defaults 0 0

It wont let me post it with the long spaces.. but I think yall get the idea.
 
Old 06-20-2003, 10:44 AM   #6
jvannucci
Member
 
Registered: Jan 2003
Location: Connecticut, US
Distribution: Red Hat 9.0
Posts: 98

Rep: Reputation: 15
Sorry, someone else needs to jump in here. I don't know the Suse init script layout - I use slack and rh.

Somewhere buried in the init scripts should be the mount commands. You could do something like:

# grep -l mount `find /etc/rc.d`

and poke through the listed files looking for where mounting is and isn't done.
 
  


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
Networking problem after SuSE 8.1 to SuSE 9.3 upgrade chiyoung_ku Suse/Novell 2 06-02-2005 11:14 AM
Suse 9.2 Networking problem knobula Suse/Novell 10 02-05-2005 10:20 AM
Suse Networking Problem Corxscrew Linux - Networking 3 01-18-2005 11:26 AM
Suse 9.1 Personal Networking Problem WindowsIsBetter Suse/Novell 2 12-23-2004 12:51 AM
Suse 8.2 Networking Problem ettienne Linux - Networking 1 03-09-2004 12:35 PM


All times are GMT -5. The time now is 08:52 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration