Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Samba, SMBFS, and NTFS

  1. #1

    Samba, SMBFS, and NTFS

    I have read that it is safe to write to a Windows share on a NTFS filesystem (and on a another machine) mounted using Samba with smbfs as the filesystem (i.e. mount -t smbfs -o <options> //computer/share /mount/point) because Samba sends the data over to the Windows machine, which then writes that data to the disk. However, I want to confirm this because I have come across posts and etc. that says it is still not safe (but I doubt this because the Linux kernel, I believe, does not directly write to the Windows share on the other machine and instead has Samba act as sort of layer). Thanks.

  2. #2

    Re:Samba, SMBFS, and NTFS

    It is safe. Windows is the one writing to the file system.
    I have a Windows 2000 box acting as a server, and I can write to it fine from within windows

  3. #3

    Re:Samba, SMBFS, and NTFS

    [quote author=trickster link=board=12;threadid=8967;start=0#msg80946 date=1081041410]
    It is safe. Windows is the one writing to the file system.
    I have a Windows 2000 box acting as a server, and I can write to it fine from within windows

    [/quote]

    Ok, thanks for the info!

  4. #4

    Re:Samba, SMBFS, and NTFS

    Correct me if I'm wrong, but all it does is use the SMB protocol to do stuff, hence the filesystem independence?

  5. #5

    Re:Samba, SMBFS, and NTFS

    I think so.

  6. #6
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,760

    Re:Samba, SMBFS, and NTFS

    [quote author=countach44 link=board=12;threadid=8967;start=0#msg80965 date=1081050410]
    Correct me if I'm wrong, but all it does is use the SMB protocol to do stuff, hence the filesystem independence?
    [/quote]

    Yes.

  7. #7
    Moderator
    Good Guru
    Compunuts's Avatar
    Join Date
    May 2001
    Location
    California
    Posts
    3,935

    Re:Samba, SMBFS, and NTFS

    NTFS write is consindered expermental only if you are writing NTFS partition mounted with Linux kernel directly, IIRC.

    If you are writing over the remote host, Linux SMB talks to Windows SMB, then Windows native FS writes to it.

  8. #8

    Re:Samba, SMBFS, and NTFS

    I've had no problems with reading NTFS, I've helped two people rescue files off their NTFS partitions (using live distros). Anyone else ever had the pleasure of teaching someone how to use linux over the phone?

  9. #9

    Re:Samba, SMBFS, and NTFS

    [quote author=Compunuts link=board=12;threadid=8967;start=0#msg81019 date=1081106442]
    If you are writing over the remote host, Linux SMB talks to Windows SMB, then Windows native FS writes to it.
    [/quote]

    Thanks for the info!

  10. #10

    Re:Samba, SMBFS, and NTFS

    hello all, i needed to continue this thread because you all sound like you can help.

    i have two RedHat AS 2.1 servers both running Oracle DB, one production, other test

    i have a application that when it is done writes a file locate to the Linux box

    right now i have a CRON job that runs three days a week every 20 minutes looking for a string unique to the file created by the app in the dir the app puts it in

    the CRON job FTP's the files it finds off to a win2k server into a dir shared to the network.

    this is a way bad bandaid!

    i am having my developers work on an edit to this app, that will put the file right where i need it on the windows file share.

    and this is where i have a question:

    it was to do with mounting a NTFS disk share on a win2k server, member of a AD domain

    i can mount the share like so:

    [root@rtlnxdev01 root]# smbmount //rtfpcl01/rtcommon /mnt/rtfpcl01/rtcommon rw -o username="<domain>\<domadmin>&quo t;
    Password:<domadminpass>

    and if the cd over to the /mnt/rtfpcl01/rtcommon/kyle dir:

    [root@rtlnxdev01 root]# cd /mnt/rtfpcl01/rtcommon/kyle/
    [root@rtlnxdev01 kyle]# pwd
    /mnt/rtfpcl01/rtcommon/kyle

    i can make a file in this dir:

    [root@rtlnxdev01 kyle]# touch testfile.txt

    but if i su to a non-root user:

    [root@rtlnxdev01 kyle]# su oracle
    [oracle@rtlnxdev01 kyle]$ pwd
    /mnt/rtfpcl01/rtcommon/kyle

    and try to make a file:

    [oracle@rtlnxdev01 kyle]$ touch anothertestfile.txt
    touch: creating `anothertestfile.txt': Permission denied

    ????????

    any ideas?

    Kyle













Similar Threads

  1. Ntfs
    By vamsi dhar in forum Redhat / Fedora
    Replies: 3
    Last Post: 03-27-2007, 01:19 PM
  2. Mounting NTFS
    By veejay in forum Linux - General Topics
    Replies: 2
    Last Post: 09-18-2003, 05:00 PM
  3. NTFS in RH 8.0
    By JockVSJock in forum Linux - General Topics
    Replies: 15
    Last Post: 03-14-2003, 03:11 PM
  4. Replies: 11
    Last Post: 07-22-2002, 12:08 AM
  5. NTFS under RH 7.2
    By Special_Ed in forum Redhat / Fedora
    Replies: 1
    Last Post: 01-28-2002, 11:39 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •