LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-29-2002, 12:12 PM   #1
sx10
Member
 
Registered: Jan 2002
Posts: 34

Rep: Reputation: 15
VFAT mounted or Samba


Can anybody explain to me (and perhaps some others too) why one would use Samba and not mount VFAT drives in Linux?
If there are more Win machines in a net than Linuxes, does that affect decision? Say you have a RH box that is available to some Win boxes, do you ned Samba to make the Win boxes see the Linux disk(s)? What about the other way? If you want to show to the Linux box drives C and D of PC#1, what would the steps be?
 
Old 01-29-2002, 12:21 PM   #2
theFuzzyOne
Member
 
Registered: Dec 2001
Distribution: redhat
Posts: 154

Rep: Reputation: 30
Samba is used to mount and serve NETWORKED shares (compatible to windows network shares).

mount VFAT drives is a LOCAL mounting of hard drives of a different partition type
 
Old 01-29-2002, 12:31 PM   #3
sx10
Member
 
Registered: Jan 2002
Posts: 34

Original Poster
Rep: Reputation: 15
I jogged thru a number of Samba/Networking related threads in another discussion group and it seems like it is not that difficult to set samba up. Let's ignore the physical side for now and assume I have a machine called PC1 and PC2 running Wk2. They have drives C, D and E. What commands would I need to stick into etc/fstab to get these mounted? The /mountpoint always puzzles me, would I do a MKDIR /MNT/PC1 and then connect the SAMBA thing to this using //PC1/C /MNT/PC1 or what? What about the other way around, from PC1 to LINUXPC? What is needed at that end?
 
Old 01-29-2002, 05:18 PM   #4
theFuzzyOne
Member
 
Registered: Dec 2001
Distribution: redhat
Posts: 154

Rep: Reputation: 30
you've pretty much got it. if you have a directory shared in w2k, and the access permissions are set properly, do this:

mkdir /mnt/whatever
smbmount //PC1/share1/ /mnt/whatever

this assumes that you do not need a password and that you have already created the /mnt/whatever directory. do a 'man smbmount' to get more options

to got the linux box to 'share' your directories, you need to run the samba server (smb) and configure it. read the howto: http://www.linuxdoc.org/HOWTO/SMB-HOWTO.html
 
Old 01-29-2002, 06:24 PM   #5
ryanstrayer
Member
 
Registered: Jan 2002
Location: Kansas City
Distribution: RedHat 7.2 Kernel 2.4.17
Posts: 250

Rep: Reputation: 30
You DO NOT need Samba to mount a physical drive, regardless if it is VFAT, FAT, NTFS, or whatever. If you have a drive in your machine that has Windows on it, all you do is mount the drive

mount -t auto /dev/hdc1 /mnt/windows <--- or whatever you want to call it

Samba is only used for network shares.. it has nothing to do with mounting those local drives. In the case above, that would only work for networked PCs...
 
Old 01-29-2002, 10:39 PM   #6
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Samba is really good Windows Networking Server Software. If you want to do what you have posted you should use it.

I had A RedHat 7.2 Samba server setup on the boat for about 15 users. It worked great.

The file permissions are pretty much setup the way most people would use them.

you should probably use swat to configure it.

I mount my windows shares with mount like this


mount -t smbfs //win2k/pub /lan/win2k -o username=david,password=passwd


plenty of info on the forum if you have trouble.



One thing to note here,

Local mounts depend on filesystem support

with network mounts filesystem types don't matter with file sharing.

I believe there is a problem with nfs and local vfat drives.

Last edited by DavidPhillips; 01-29-2002 at 10:45 PM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SAMBA]HOWTO Sharing vfat or any other mounted fs as guest(no pass when connect) SRKI-Neo Linux - Networking 0 10-20-2004 03:52 PM
mounted vfat permissions n3tw0rk Linux - General 3 12-05-2003 04:41 PM
VFAT partition can not be mounted. WHY???? robertoneto123 Linux - General 4 10-16-2003 07:19 AM
Mounted drive permissions? Vfat kiteless Linux - General 3 08-29-2003 12:32 PM
Access a vfat mounted partition vector Slackware 2 02-25-2003 09:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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