Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have several NAS drives connected to my server, which are then set up as symbolic links and shared via samba - to allow all the NAS drives to look like 1 drive on the samba share. However, in all the drives I have mounted with cifs the directory information is not passed through, so that directories look like files on the share drive.

For example - in a directory called Boston Legal, on the NAS drive they are as follows:
drwxr-xr-x 0 nobody nogroup 0 Dec 7 2011 Season 01 (2004)
drwxr-xr-x 0 nobody nogroup 0 Oct 16 2011 Season 02 (2005)
drwxr-xr-x 0 nobody nogroup 0 Jun 28 2011 Season 03 (2006)
drwxr-xr-x 0 nobody nogroup 0 Jun 28 2011 Season 04 (2007)
drwxr-xr-x 0 nobody nogroup 0 Jun 28 2011 Season 05 (2008)

But when shared in Samba they look like this:
-rwxr-xr-x 0 nobody nogroup 0 Dec 7 2011 Season 01 (2004)
-rwxr-xr-x 0 nobody nogroup 0 Oct 16 2011 Season 02 (2005)
-rwxr-xr-x 0 nobody nogroup 0 Jun 28 2011 Season 03 (2006)
-rwxr-xr-x 0 nobody nogroup 0 Jun 28 2011 Season 04 (2007)
-rwxr-xr-x 0 nobody nogroup 0 Jun 28 2011 Season 05 (2008)

As you can see the "d" flag is missing. This only happens from cifs mounted drives. Here are my configurations:
(fstab)
/dev/sda1 /mnt/drive1 reiserfs defaults 0 2
/dev/sdc1 /mnt/drive3 reiserfs defaults 0 2
/dev/sdf1 /mnt/drive4 reiserfs defaults 0 2
/dev/sdd1 /mnt/drive5 reiserfs defaults 0 2
/dev/sdb1 /mnt/backups reiserfs defaults 0 2
//192.168.0.181/Videos /mnt/NAS_01 cifs iocharset=utf8,uid=65534,gid=65534,guest,rw 0 0
//192.168.0.182/Videos /mnt/NAS_02 cifs iocharset=utf8,uid=65534,gid=65534,guest,rw 0 0

Then in a directory called /shares/Videos varies folders from the various drives are symlinked:
lrwxrwxrwx 1 nobody nogroup 29 Mar 5 2012 Terra Nova -> /mnt/drive1/Videos/Terra Nova
lrwxrwxrwx 1 nobody nogroup 28 May 25 09:15 Torchwood -> /mnt/drive5/Videos/Torchwood
lrwxrwxrwx 1 nobody nogroup 30 Mar 4 2012 Tudors, The -> /mnt/NAS_02/Series/Tudors, The
lrwxrwxrwx 1 nobody nogroup 32 Feb 28 2012 Universe, The -> /mnt/NAS_02/Series/Universe, The

Finally that directory is shared via Samba:
[global]
follow symlinks = yes
wide links = yes
unix extensions = no
....
[video]
path = /shares/Video
guest ok = yes
read only = no

This system used to work just fine when I was using smbfs, however, when it was removed and I had to switch to cifs all the directories in any of the cifs mounted drives no longer show as directories.

Any ideas?

share|improve this question
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.