Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SMBFS vs NTFS Support
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 3674

PostPosted: Tue Apr 05, 2005 11:58 pm    Post subject: SMBFS vs NTFS Support Reply with quote

Hi, ALL,
I have 2 PCs @ home: Windows XP and Linux Gentoo based on gentoo-dev.sources 2.6. And I would like to interconnect them.
I installed Samba on Gentoo machine, but after more precise reading found out that I have to turn on the SMBFS support in the kernel.
So I ran the "make menuconfig" command and looked for this option. During the lookup process I found out that threre is 2 different options:

1. SMBFS for Windows 3.11, 95, 98, NT and OS/2 in the "Network File Systems" section.

2. NTFS file system support for Windows 2000, 2003, NT, XP in the "DOS/FAT/NT Filesystems" section".

So my question is: maybe all I need to do is to activate second option and mount the XP share? All I should turn on the first one and continue to use the Samba? Please help......

Thank you.
Back to top
View user's profile Send private message
cokey
Advocate
Advocate


Joined: 23 Apr 2004
Posts: 3355

PostPosted: Wed Apr 06, 2005 12:04 am    Post subject: Reply with quote

samba is for a networked machine, it will mount windows shares. If however you have a NTFS partition on a single box then that partition wont be active during your linux use so you have to mount it and compile the ability to read its filesystem in the kernel.
_________________
https://otw20.com/ OTW20 The new place for off the wall chat
Back to top
View user's profile Send private message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 3674

PostPosted: Wed Apr 06, 2005 1:54 am    Post subject: Reply with quote

Thank you for the reply, cokehabit.
So, if I undersood you correctly, option number 2 is if I have a partition of NTFS and the Linux Gentoo on the same machine, right?
So, in this case I am stuck with the option number 1.
I amnow sitting under the KDE. What would be you recommendation about how to do that? Does it matter if I do it from KDE in the console, or I should do it out of the GUI? Should compile it in kernel, or as a module? If I compile it in the kernel, all I will need to do is reboot, right? And if I compile it as a module, do I still need to reboot?

Thank you.
Back to top
View user's profile Send private message
cokey
Advocate
Advocate


Joined: 23 Apr 2004
Posts: 3355

PostPosted: Wed Apr 06, 2005 2:22 am    Post subject: Reply with quote

ONEEYEMAN wrote:
Thank you for the reply, cokehabit.
You're welcome

ONEEYEMAN wrote:
So, if I undersood you correctly, option number 2 is if I have a partition of NTFS and the Linux Gentoo on the same machine, right?
correct

ONEEYEMAN wrote:
So, in this case I am stuck with the option number 1.
correct

ONEEYEMAN wrote:
I am now sitting under the KDE. What would be you recommendation about how to do that? Does it matter if I do it from KDE in the console, or I should do it out of the GUI?
Just do it from a terminal in KDE

ONEEYEMAN wrote:
Should compile it in kernel, or as a module?
In the kernel. When you build things as modules they have to be loaded at boot

ONEEYEMAN wrote:
If I compile it in the kernel, all I will need to do is reboot, right?
correct

ONEEYEMAN wrote:
And if I compile it as a module, do I still need to reboot?
Yes you do

ONEEYEMAN wrote:
Thank you.
you're welcome :D

once you have enabled it in the kernel work through this, it will help you http://www.gentoo.org/doc/en/quick-samba-howto.xml#doc_chap2
_________________
https://otw20.com/ OTW20 The new place for off the wall chat
Back to top
View user's profile Send private message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 3674

PostPosted: Wed Apr 06, 2005 2:50 am    Post subject: Reply with quote

Ok, thank you for the fast reply.
When I choose the SMB file system, another option pops-up, that says: "Use a default NLS". Should I check it or leave blank? I checked this options under: File Systems ->Networking File Systems->SMB file system support
Also, I have a files on the floppy disks, that are located on the DOS/FAT floppies. Should I include the DOS/FAT support in order to be able to read those files, and copy them over to the Gentoo partitions?

Thank you.
Back to top
View user's profile Send private message
cokey
Advocate
Advocate


Joined: 23 Apr 2004
Posts: 3355

PostPosted: Wed Apr 06, 2005 8:58 am    Post subject: Reply with quote

yeah you want both of those, NLS is native language support and you need FAT fs to read disks
_________________
https://otw20.com/ OTW20 The new place for off the wall chat
Back to top
View user's profile Send private message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 3674

PostPosted: Wed Apr 06, 2005 8:19 pm    Post subject: Reply with quote

Thank you for the reply.
Do I have to change /etc/fstab in order to read the DOS floppy drives?
Now, after I recompile the kernel and reboot, I will run the testparm again. Hopefuly everything will be OK. Now, what should I do in order to mount XP shares @ boot time? Is it possible?

Thank you again.
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6069
Location: Removed by Neddy

PostPosted: Wed Apr 06, 2005 8:34 pm    Post subject: Reply with quote

This is my fstab

Code:

# This file is edited by fstab-sync - see 'man fstab-sync' for details
# /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.14 2003/10/13 20:03:38 azarah Exp $
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.

# <fs>             <mountpoint>    <type>     <opts>            <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hdb1      /boot      ext3      noauto,noatime      1 2
/dev/hdb3      /      ext3      noatime,exec      0 1
/dev/hdb2      none      swap      sw         0 0

/dev/hdc      /mnt/cdr   iso9660      noauto,ro,user,exec   0 0
/dev/hdd      /mnt/dvd   iso9660      noauto,ro,user,exec   0 0
/dev/fd0      /mnt/floppy   auto      noauto,user      0 0

/dev/hda1      /mnt/w2k   ntfs      ro,user,umask=0      0 0
/dev/hda5      /mnt/progs   ntfs      ro,user,umask=0      0 0
/dev/hda6               /mnt/xport      auto            rw,user,umask=0         0 0

/dev/usbkey             /mnt/usbstick   vfat            noatime,sync,noauto,user,exec               0 0
/dev/nikon4100          /mnt/nikon      vfat            noatime,sync,noauto,user,exec               0 0


# NOTE: The next line is critical for boot!
none         /proc      proc      defaults      0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:

none         /dev/shm   tmpfs      defaults      0 0
#none         /tmp      tmpfs      defaults      0 0

[/quote]
_________________
#define HelloWorld int
#define Int main()
#define Return printf
#define Print return
#include <stdio>
HelloWorld Int {
Return("Hello, world!\n");
Print 0;
Back to top
View user's profile Send private message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 3674

PostPosted: Wed Apr 06, 2005 9:39 pm    Post subject: Reply with quote

Thank you for the fast reply, all.
Now, I recompiled the kernel with SMB file system and use default NLS included in the kernel (not modules), and I turned on the DOS file system support also compiled in the kernel.
But when I tried to run the testparm I still got the same error:

Code:

bash-2.05b# /usr/bin/testparm
Load smb config files from /etc/samba/smb.conf
Can't find include file /etc/samba/smb.conf.
Processing section "[public]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
^[OM
# Global parameters
[global]
        workgroup = MSHOME
        server string = Samba Server %v
        interfaces = lo, eth0
        bind interfaces only = Yes
        security = SHARE
        guest account = samba
        log level = 3
        log file = /var/log/samba3/log.%m
        max log size = 50
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        vscan-clamav:config-file = /etc/samba/vscan-clamav.conf
        guest ok = Yes
        hosts allow = 127.0.0.1, x.x.x.
        hosts deny = 0.0.0.0
        include = /etc/samba/smb.conf.
        vfs objects = vscan-clamav

[public]
        comment = Public Staff
        path = /home/samba/public
        create mask = 0766


The interesting thing is that the service definition is the same as in the /etc/samba/smb.conf file. Maybe I should compile them as a module? But then again, it shouldn't matter, right?

And as far as I could read the previous post, I don't need anything specific related to the ability to read DOS/FAT floppy drives. My /etc/fstab for the floppy looks like this:

Code:

/dev/fd0         /mnt/floppy         auto           noauto       0 0


Thank you.
Back to top
View user's profile Send private message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 3674

PostPosted: Thu Apr 07, 2005 12:31 am    Post subject: Reply with quote

OK, I just tried to change the fstab for my /dev/fd0 device, but it says that there is unknown file system msdos. The line in /etc/fstab look like this:

Code:

/dev/fd0      /mnt/floppy    auto       noauto,user     0 0


And I compiled the DOS support and Windows 98 support in the kernel. Maybe I should get rid of auto and put specific msdos. The msdos support is compiled into the kernel..... :(

Thank you.
Back to top
View user's profile Send private message
cokey
Advocate
Advocate


Joined: 23 Apr 2004
Posts: 3355

PostPosted: Thu Apr 07, 2005 10:52 am    Post subject: Reply with quote

msdos is not a filesystem, DOS is "Disk Operating System" and was the operating system that windows used to sit on top of (as a GUI).

The filesystem you are looking for is vfat. vfat is fat32. Floppy drives just use "fat" though and not fat32 (vfat)
_________________
https://otw20.com/ OTW20 The new place for off the wall chat
Back to top
View user's profile Send private message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 3674

PostPosted: Thu Apr 07, 2005 6:56 pm    Post subject: Reply with quote

Thank you for the reply, cokehabit.
The only options I have in the File Systems->DOS/FAT/NT Filesystems are:

1. MSDOS fs support
2. VFAT (Windows 95) fs support
3. NTFS file system support

Right now first 2 compiled into the kernel. Matbe I need to compile them as a module?
Also, the error message saying that the unknown file system is "msdos", and not fat. I guess that's a typo-bug..... :)

Thank you.
Back to top
View user's profile Send private message
lbrtuk
l33t
l33t


Joined: 08 May 2003
Posts: 910

PostPosted: Thu Apr 07, 2005 7:31 pm    Post subject: Reply with quote

You don't need SMBFS. It's only for if you want to transparently mount a share into your local filesystem. (Equivalent of windows' map network drive)

If you're just going to access it occasionally in kde through konqueror or through gnome's nautilus, you can just browse it through smb:/ as long as you have samba installed.
Back to top
View user's profile Send private message
cokey
Advocate
Advocate


Joined: 23 Apr 2004
Posts: 3355

PostPosted: Thu Apr 07, 2005 7:37 pm    Post subject: Reply with quote

Code:
< > MSDOS fs support
<*> VFAT (Windows-95) fs support
  (437) Default codepage for FAT
  (iso8859-1) Default iocharset for FAT

Same here, you must be right, it must be calles msdos fs but i KNOW floppy disks are FAT (file allocation table)
_________________
https://otw20.com/ OTW20 The new place for off the wall chat
Back to top
View user's profile Send private message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 3674

PostPosted: Thu Apr 07, 2005 7:39 pm    Post subject: Reply with quote

Thank you for the reply, Ibrtuk.
Actually, I do want it to be constant, and mounted @ boottime. It just makes life easier.
Also, it looks like samba installed is not enough. I installed samba and got the same error message with the testparm as with the SMBFS compiled. I am just thinking - maybe all I really need is to compile DOS fs and SMB fs as a modules, and load them in the boottime?

Thank you.
Back to top
View user's profile Send private message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 3674

PostPosted: Thu Apr 07, 2005 7:45 pm    Post subject: Reply with quote

Like I said its' a typo bug.
OK, I will recompile it with just VFAT fs in the kernel (not as module), and post the responce, after I am done.
What about SMBFS. Maybe just compile it as a module? Because it looks like the testparm is loading the config file, but then for some reason it rejects include file.
Also, is there any differences between "emerge samba" and "emerge net-fs/samba"? Because I did the first command first, and when I did second, it started merging it again...... :?:

Thank you.
Back to top
View user's profile Send private message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 3674

PostPosted: Thu Apr 07, 2005 8:13 pm    Post subject: Reply with quote

Yeah, it is exactly the same error:
"Unknown file system: msdos.
Please check that the disk is inserted correctly."

Any other suggestions? Or maybe just compile it as a module?

Thank you.
Back to top
View user's profile Send private message
cokey
Advocate
Advocate


Joined: 23 Apr 2004
Posts: 3355

PostPosted: Thu Apr 07, 2005 8:27 pm    Post subject: Reply with quote

Are you trying to mount samba shares or a floppy?
_________________
https://otw20.com/ OTW20 The new place for off the wall chat
Back to top
View user's profile Send private message
throck
n00b
n00b


Joined: 10 Apr 2004
Posts: 39

PostPosted: Thu Apr 07, 2005 8:53 pm    Post subject: Reply with quote

1. Are you having problems mounting your floppy drive?
2. Are you having problems mounting an smb share (ie: Windows XP share)?

For number 2:

Try the following command:
Code:
mount -t smbfs //computername/sharename /mnt/winxp
Please be sure to change the values accordingly.

If that works, then you should be able to add the following to your fstab:
Code:
//computername/sharename  /mnt/winxp smbfs  auto  0 0
You will also probably have to add a umask=xxx to get read and write to it from regular user accounts.
_________________
Adopt an Unanswered Post Initiative
Back to top
View user's profile Send private message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 3674

PostPosted: Thu Apr 07, 2005 9:18 pm    Post subject: Reply with quote

Thank you for the reply.
2cokehabit:

I am trying to do both.

2 throck:

I am having problems with both.
I will try to do this command, but, actually, I tried to install samba according to the link.. And when I ran the /usr/bin/testparm, I am receiving the error message, that I put couple of posts earlier.

Thank you.
Back to top
View user's profile Send private message
throck
n00b
n00b


Joined: 10 Apr 2004
Posts: 39

PostPosted: Thu Apr 07, 2005 9:31 pm    Post subject: Reply with quote

To connect to an smb share, you need to have samba installed, but you don't need to configure the server. All you are using is the client pieces. So running testparm is going to give you errors, but you should only need to use it if you want to run an smb server for your windows XP machine to connect to (which is possible).
_________________
Adopt an Unanswered Post Initiative
Back to top
View user's profile Send private message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 3674

PostPosted: Fri Apr 08, 2005 12:35 am    Post subject: Reply with quote

OK, so how I should get rid of this error?

Thank you.
Back to top
View user's profile Send private message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 3674

PostPosted: Fri Apr 08, 2005 12:52 am    Post subject: Reply with quote

Also, I just tried to run the "mount -t smbfs" command that you mentioned in the last post and that's what I received:

Code:

bash-2.05b# mount -t smbfs //your-vp7x3s9ctm/temp /mnt/winxp
Can't find include file /etc/samba/smb.conf.
opts: rw
mount.smbfs started (version 3.0.10)
added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0
added interface ip=192.168.1.142 bcast=192.168.1.255 nmask=255.255.255.0
Could not resolve mount point /mnt/winxp


So this error that I am trying to get rid of is here when I mounting the Samba share.
BTW, Samba started without any problems....

Thank you.:)
Back to top
View user's profile Send private message
darkphader
Veteran
Veteran


Joined: 09 May 2002
Posts: 1225
Location: Motown

PostPosted: Fri Apr 08, 2005 3:09 am    Post subject: Reply with quote

My guess is that the directory /mnt/winxp does not exist. If not, create the directory and try again.

Also to attempt some clarifications from my limited point of understanding:

Your testparm error:
    You have no /etc/samba/smb.conf file. Solution:copy /etc/samba/smb.conf.example to /etc/samba/smb.conf and edit appropriately
Samba:
    In general you do not need Samba to connect to Windows shares (you will notice that you can stop Samba and your mount -t smbfs command will still work). You will want Samba if you want to share your Linux files/printers with Windows (or other smb/cifs capable systems) systems using smb/cifs or to join a domain, take part in an Active Directory, be a Domain Controller, run a WINS service, etc.
SMBFS/CIFS
    Is what you will generally use to connect to smb shares on other systems.
    smbfs is not part of Samba and has some serious limitations, especially the 2GB limit, use cifs instead, it's available in the 2.6.x kernel as well as shipping with Samba.
MSDOS/VFAT/NTFS:
    The kernel support for these file systems is only for local drives, not network drives. When using the network the file system on the remote computer is basically transparent - the remote system handles all access dealing with its file systems.

Chris
_________________
WYSIWYG - What You See Is What You Grep
Back to top
View user's profile Send private message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 3674

PostPosted: Fri Apr 08, 2005 4:20 pm    Post subject: Reply with quote

Thank you for the reply, but....
The directory /mnt/winxp does exist. I created it right before the mount command. And if it didm't exist the eror message would be different.
The /etc/samba/smb.conf file does exist as well. The testparm reads this file and gives me correct info after I press the Enter key when it asks.

Code:

bash-2.05b# ls -l /etc/samba
total 28
-rw-r--r--  1 root root  126 Apr  4 00:43 lmhosts
-rw-r--r--  1 root root  603 Apr  3 15:27 smb.conf
-rw-r--r--  1 root root 7808 Apr  4 00:43 smb.conf.example.gz
-rw-r--r--  1 root root  204 Apr  4 00:43 smbusers
-rw-r--r--  1 root root  370 Apr  3 15:16 vscan-clamav.conf
-rw-r--r--  1 root root 2089 Apr  4 00:43 vscan-oav.conf


Any other suggestion?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
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