• March 18, 2024, 07:19:23 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: SMB.CONF  (Read 2662 times)

veasmkii

  • Level 1 Member
  • *
  • Posts: 3
SMB.CONF
« 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.
« Last Edit: June 28, 2012, 12:29:43 AM by veasmkii »
Logged

veasmkii

  • Level 1 Member
  • *
  • Posts: 3
Re: SMB.CONF
« Reply #1 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.
« Last Edit: June 28, 2012, 11:31:34 AM by veasmkii »
Logged