D-Link Forums

The Graveyard - Products No Longer Supported => D-Link Storage => DNS-343 => Topic started by: veasmkii on June 27, 2012, 02:43:25 PM

Title: SMB.CONF
Post by: veasmkii on June 27, 2012, 02:43:25 PM
I've setup my device with four HDD's now, but unfortunately everytime my NAS reboots the smb.conf gets re-created and maps two devices (Vol2 and Vol4) to the same name Volume_2, which means I can't distinguish the two.

Where does the smb.conf get re-generated and what scripts do I need to prevent this or modify its behavior so I can have a little more control?

*EDIT*
I'm using funplug.
Title: Re: SMB.CONF
Post by: veasmkii on June 28, 2012, 11:25:36 AM
Well, good job there is some other help out there.

I found that each drive has a .smb.ses folder which seems related to the auto/reconfiguration of the SMB file.

Each one of these files seems to build the complete and eventual smb.conf so it's a simple case of modifying these to get what you need.

eg,
Code: [Select]
/mnt/HD_X4/.systemfile/.smb.ses <- Replace X with your drive (a, b, c, d).

Code: [Select]
#version = 1.06
[ Volume_2 ]
comment =
path = /mnt/HD_d2
valid users =
read only = no
guest ok = yes
oplocks = no
map archive = no

For my HD_d4 this label is obviously incorrect so I can manually edit this and correct the issue.