NTFS partition problem

  • I have a drive with existing NTFS partitions with files and I'm trying to share one via Samba. I've gotten to the point where I have access and can create/delete files and directories, the only problem is I don't see any of the existing files in the partition. If I login via ssh I can see the files just fine so I know they are there. The share is DadXP.



    smb.conf


    #======================= Global Settings =======================
    [global]
    workgroup = WORKGROUP
    server string = %h server
    dns proxy = no
    log level = 0
    syslog = 0
    log file = /var/log/samba/log.%m
    max log size = 1000
    syslog only = yes
    panic action = /usr/share/samba/panic-action %d
    encrypt passwords = true
    passdb backend = tdbsam
    obey pam restrictions = yes
    unix password sync = no
    passwd program = /usr/bin/passwd %u
    passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
    pam password change = yes
    socket options = TCP_NODELAY IPTOS_LOWDELAY
    guest account = nobody
    load printers = no
    disable spoolss = yes
    printing = bsd
    printcap name = /dev/null
    unix extensions = yes
    wide links = no
    create mask = 0777
    directory mask = 0777
    map to guest = Bad User
    use sendfile = yes
    aio read size = 16384
    aio write size = 16384
    null passwords = yes
    local master = yes
    time server = no
    wins support = no


    #======================= Share Definitions =======================
    [storage4]
    path = /media/03f096be-80c4-44c4-97b4-a8a77b148c88/storage4/
    guest ok = yes
    read only = no
    browseable = yes
    inherit acls = yes
    inherit permissions = no
    ea support = no
    store dos attributes = no
    printable = no
    create mask = 0755
    force create mode = 0644
    directory mask = 0755
    force directory mode = 0755
    hide dot files = yes
    read list =
    write list = "Kent"


    [DadXP]
    path = /media/26861A3A861A0AC7/DadXP/
    guest ok = yes
    read only = no
    browseable = yes
    inherit acls = yes
    inherit permissions = no
    ea support = no
    store dos attributes = no
    printable = no
    create mask = 0755
    force create mode = 0644
    directory mask = 0755
    force directory mode = 0755
    hide dot files = yes
    read list =
    write list = "Kent"


    [storage3]
    path = /media/63dc1e00-a697-4677-bd2e-afee8f8dfd4a/storage3/
    guest ok = yes
    read only = no
    browseable = yes
    inherit acls = yes
    inherit permissions = no
    ea support = no
    store dos attributes = no
    printable = no
    create mask = 0755
    force create mode = 0644
    directory mask = 0755
    force directory mode = 0755
    hide dot files = yes
    read list =
    write list = "Kent"


    [storage2]
    path = /media/a8d585ab-783b-42b5-b987-13ca4bc5de14/storage2/
    guest ok = yes
    read only = no
    browseable = yes
    inherit acls = yes
    inherit permissions = no
    ea support = no
    store dos attributes = no
    printable = no
    create mask = 0755
    force create mode = 0644
    directory mask = 0755
    force directory mode = 0755
    hide dot files = yes
    read list =
    write list = "Kent"


    [storage1]
    path = /media/51e46225-3006-d001-50c0-62253006d001/storage1/
    guest ok = yes
    read only = no
    browseable = yes
    inherit acls = yes
    inherit permissions = no
    ea support = no
    store dos attributes = no
    printable = no
    create mask = 0755
    force create mode = 0644
    directory mask = 0755
    force directory mode = 0755
    hide dot files = yes
    read list =
    write list = "Kent"



    fstab


    # /etc/fstab: static file system information.
    #
    # Use 'blkid' to print the universally unique identifier for a
    # device; this may be used with UUID= as a more robust way to name devices
    # that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point> <type> <options> <dump> <pass>
    # / was on /dev/sda1 during installation
    UUID=f0571eb3-ee9b-4675-8b1d-d2574ff54303 / ext4 errors=remount-ro 0 1
    # swap was on /dev/sda5 during installation
    UUID=a3627d3c-4ccd-4f80-80cb-31c6cb7a2e55 none swap sw 0 0
    /dev/sdb1 /media/usb0 auto rw,user,noauto 0 0
    tmpfs /tmp tmpfs defaults 0 0
    # >>> [openmediavault]
    UUID=51e46225-3006-d001-50c0-62253006d001 /media/51e46225-3006-d001-50c0-62253006d001 ext4 defaults,nofail,acl,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 0 2
    UUID=a8d585ab-783b-42b5-b987-13ca4bc5de14 /media/a8d585ab-783b-42b5-b987-13ca4bc5de14 ext4 defaults,nofail,acl,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 0 2
    UUID=63dc1e00-a697-4677-bd2e-afee8f8dfd4a /media/63dc1e00-a697-4677-bd2e-afee8f8dfd4a ext4 defaults,nofail,acl,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 0 2
    /dev/disk/by-uuid/26861A3A861A0AC7 /media/26861A3A861A0AC7 ntfs defaults,nofail 0 2
    UUID=03f096be-80c4-44c4-97b4-a8a77b148c88 /media/03f096be-80c4-44c4-97b4-a8a77b148c88 ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
    # <<< [openmediavault]

  • DadXP is the 268**** directory


    root@openmediavault:/# ls -la /media
    total 40
    drwxr-xr-x 9 root root 4096 Mar 9 00:59 .
    drwxr-xr-x 23 root root 4096 Nov 22 14:17 ..
    drwxr-xr-x 4 root root 4096 Mar 9 00:59 03f096be-80c4-44c4-97b4-a8a77b148c88
    drwxrwxrwx 1 root root 8192 Mar 8 23:32 26861A3A861A0AC7
    drwxr-xr-x 5 root root 4096 Mar 7 00:05 51e46225-3006-d001-50c0-62253006d001
    drwxr-xr-x 4 root root 4096 Mar 7 00:06 63dc1e00-a697-4677-bd2e-afee8f8dfd4a
    drwxr-xr-x 4 root root 4096 Mar 7 00:06 a8d585ab-783b-42b5-b987-13ca4bc5de14
    drwxr-xr-x 2 root root 4096 Nov 22 14:17 cdrom
    lrwxrwxrwx 1 root root 4 Nov 22 14:15 usb -> usb0
    drwxr-xr-x 2 root root 4096 Nov 22 14:15 usb0


    root@openmediavault:/media# ls -la 268*
    total 14531476
    drwxrwxrwx 1 root root 8192 Mar 8 23:32 .
    drwxr-xr-x 9 root root 4096 Mar 9 00:59 ..
    drwxrwxrwx 1 root root 0 Sep 19 09:59 Apps
    drwxrwxrwx 1 root root 4096 Feb 28 15:08 backup
    drwxrwxrwx 1 root root 8192 Sep 19 10:07 dell
    -rwxrwxrwx 1 root root 30419 Sep 19 11:32 dell.sdr
    lrwxrwxrwx 2 root root 60 Jul 13 2009 Documents and Settings -> /media/26861A3A861A0AC7/Users
    drwxrwxrwx 1 root root 4096 Sep 19 11:03 Drivers
    -rwxrwxrwx 1 root root 6377136128 Feb 18 14:42 hiberfil.sys
    drwxrwxrwx 1 root root 131072 Sep 19 10:56 Hotfix
    -rwxrwxrwx 2 root root 795 Sep 19 09:58 installlog.txt
    drwxrwxrwx 1 root root 0 Sep 19 11:36 Intel
    drwxrwxrwx 1 root root 0 Feb 19 05:41 MSOCache
    drwxrwxrwx 1 root root 4096 Mar 8 11:24 Office Computer Data
    drwxrwxrwx 1 root root 0 Mar 8 16:18 OldXP
    -rwxrwxrwx 1 root root 8502849536 Sep 19 10:03 pagefile.sys
    drwxrwxrwx 1 root root 0 Jul 13 2009 PerfLogs
    drwxrwxrwx 1 root root 4096 Sep 19 10:07 ProgramData
    drwxrwxrwx 1 root root 8192 Sep 19 09:55 Program Files
    drwxrwxrwx 1 root root 8192 Sep 19 09:58 Program Files (x86)
    drwxrwxrwx 1 root root 0 Feb 19 10:36 $Recycle.Bin
    drwxrwxrwx 1 root root 0 Sep 19 13:22 System Recovery
    drwxrwxrwx 1 root root 4096 Mar 5 17:33 System Volume Information
    drwxrwxrwx 1 root root 0 Sep 19 09:58 Temp
    drwxrwxrwx 1 root root 4096 Nov 20 2010 Users
    drwxrwxrwx 1 root root 16384 Sep 19 09:48 Windows

  • Ignore previous post found my problem my problem right after I posted it.


    I found my problem. When I was configuring the Shared Folder for this drive/partition I just hit the tab key on the edit field and hit save not knowing that it was creating the empty DadXP directory inside the directory I wanted to share. I went back and changed the path from /DadXP to / and everything is ok

  • Don't see dadxp listed in 268. If you want to share the whole usb drive root you have to put / in folder when you create the shared folder.


    Yeah, at first I thought it was some empty directory I created last night while troubleshooting this for about 7 hours and deleted it from the reply. Then I figured it out.... Sorry for the confusion.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!