View previous topic :: View next topic |
Author |
Message |
IwillTryMyBest n00b

Joined: 04 Jan 2008 Posts: 20
|
Posted: Sun Jan 27, 2008 12:30 am Post subject: Samba and NTFS partitions |
|
|
Hi Ive got Gentoo 2.6.23-r3 and Iv got an NTFS partition that I mount with ntfs-3g. I can read and write to the drive fine, I also have samba
setup for a home windows network, and I can read the ntfs partition i have shared out with samba, however i cannot write to it from a windows machine.
I have googled for hours on end and i cannot find any answers if this is even supported ?
So does anyone know is it possible to write to an ntfs partition through a samba share ?
as i can write to my ext3 shared partitions from a windows machine through samba with no problems at all |
|
Back to top |
|
 |
S3tH n00b

Joined: 09 Dec 2005 Posts: 13
|
Posted: Sun Jan 27, 2008 3:20 pm Post subject: |
|
|
Yes, you can share ntfs-3g mounted partitions as read/write through samba with no extra steps. I tested just now to be absolutely sure.
This sounds to me more like a permissions issue. Please take a look at your fstab and ls -l to see who does own the mounted partition and who should.
Good Luck |
|
Back to top |
|
 |
IwillTryMyBest n00b

Joined: 04 Jan 2008 Posts: 20
|
Posted: Sun Jan 27, 2008 9:26 pm Post subject: |
|
|
S3th here is the mount i have shared :
drwxrwxrwx 1 root root 8192 Jan 27 20:53 The Vault
here is my fstab:
Code: |
# /etc/fstab: static file system information.
#
# 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 / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#
# <fs> <mountpoint> <type> <opts> <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda1 /boot ext2 noauto,noatime 1 2
/dev/hda3 / ext3 noatime 0 1
/dev/hda2 none swap sw 0 0
/dev/hdb1 /The\040Vault ntfs-3g umask=0000,rw 0 0
#/dev/cdrom /mnt/cdrom audo noauto,ro 0 0
#/dev/fd0 /mnt/floppy auto noauto 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)
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
|
and here is my smb.conf:
Code: |
# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2008/01/27 01:23:49
[global]
acl compatibility = win2k
ldap ssl = no
[Movies]
comment = Put Movies Here !!
path = /The Vault/Video/Movies
username = guest,root
valid users = guest, root
write list = guest, root
read only = No
inherit permissions = No
inherit acls = No
guest ok = Yes
hosts allow = 192.168.1., 192.168.2., 127.
[Documentaries]
path = /The Vault/Video/Documentaries
read only = No
guest ok = Yes
hosts allow = 192.168.1., 192.168.2., 127.
[Music]
path = /The Vault/Music
read only = No
acl check permissions = No
acl map full control = No
guest ok = Yes
hosts allow = 192.168.1., 192.168.2., 127.
[test]
comment = Put Movies Here !!
path = /test
username = guest, root
valid users = guest, root
write list = guest, root
read only = No
inherit permissions = Yes
inherit acls = Yes
guest ok = Yes
hosts allow = 192.168.1., 192.168.2., 127.
|
I dont get what the problem is i get a funny error when i try to copy anything from windows onto the ntfs partition , however the /test share works fine and thats an ext3 share, strange thing is though i can create new folders and rename folders from windows...just can't copy files....im baffled ! |
|
Back to top |
|
 |
thepustule Apprentice


Joined: 22 Feb 2004 Posts: 212 Location: Toronto, Canada
|
Posted: Mon Jan 28, 2008 10:28 pm Post subject: |
|
|
Take a look at your syslog when the ntfs-3g device mounts. If I recall correctly, there are instances where if the drive dismounted uncleanly, it will refuse to mount it read-write unless you use a "force" option.
Can you verify that you can indeed write to the ntfs-3g volume in linux itself without using Samba? |
|
Back to top |
|
 |
IwillTryMyBest n00b

Joined: 04 Jan 2008 Posts: 20
|
Posted: Sat Feb 16, 2008 6:43 am Post subject: |
|
|
thepustule: yes i can read/write to the drive in linux no problem, its just through samba that I can't,
I wonder if there are any samba cmd's that I can run to help me diagnose whats going on ? |
|
Back to top |
|
 |
|
|
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
|
|