Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[SOLVED] zero bytes smb-shares.conf

Featured Replies

Hi,

 

something is very fishy on my server.  After replacing a defect HDD with a spare one, I rebooted. After the reboot, all shares were gone. I found that the /etc/samba/smb-shares.conf has become a zero bytes file. And the backup file in the same directory is gone.

 

- When trying to enter the share information in the GUI, nothing happens. The list of share stays empty.

 

- I tried to enter one share manually in the file from the command line using vi, and it works. I can see the share content now again in the Windows file explorer. However, this manually created share does not show up in the Unraid GUI, both in the Shares and the User section. And after some time the new smb-shares.conf will become zero bytes again.

 

 

Any idea how I can reset the SMB and the Users configuration?

 

Diagnostics file attached.

 

Thanks for your support!

 

 

 

Edited by Raki72

  • Author

Anybody?

  • Community Expert

Try booting in safe mode.

  • Author

Thanks for the advise. Unfortunately, it didn't change anything.

 

There are weird effects like when I am adding a new share called "C", I get an error message, that "Share C has been deleted" without any changes at all.

 

Any idea what to do? Is there a good guide somewhere, how to reset Unraid, without losing all the data in the shares (/mnt/user)?

 

 

  • Community Expert

You can always backup and recreate the flash drive, then restore only super.dat and the key, both from the config folder, all users shares will be recreated at first array start, user shares are just top level folders, but they will use default settings.

  • Author

Okay. I will give this a try.

 

Thanks JorgeB! 😀

  • Author

Hi!

 

I reinstalled Unraid on my USB stick and copied my license on there.  Booting up, I reassigned all drives in the right order. Started the array up and... it's still exactly the same. Although all content / directories is still visible under /mnt/user, nothing shows up in the share GUI.

 

Even worse, when I add a share "AAAA", it will show up under /mnt/user but not in the Shares menu.

 

As said, the USB stick was completely empty and I installed a new Unraid from scratch. Yet the problem persists.

 

Is there a problem on the filesystem under /mnt/user maybe?

 

HELP!

 

  • Community Expert

When you say the “Shares Menu” do you mean the Shares tab in the GUI or something else?

 

/mnt/user is just a combined view of all the top level golfers on all the disks.    It might be worth running a file system chevk on each of your drives in case some corruption has occurred and is upsetting things.

  • Author
9 hours ago, itimpi said:

When you say the “Shares Menu” do you mean the Shares tab in the GUI or something else?

 

/mnt/user is just a combined view of all the top level golfers on all the disks.    It might be worth running a file system chevk on each of your drives in case some corruption has occurred and is upsetting things.

Yes, I mean the Shares tab in the GUI which is out of sync.

 

The directories that are created under /mnt/user when adding a Share via the GUI will show up in the shell (ls), but not in the network (trying to access it from another PC).

 

I'll give a file system check a try and will report back.

  • Author

Okay, provlem solved. For whatever reason my Cache SSD drive showed an error message like "unsupported partition layout". This apparently lead to the symptoms mentioned earlier.

 

After deleting all partitions manually using Windows 10 from the SSD, then re-inserting and formating it, everything was working again. Of course, the VMs and configs on the Cache drive were lost, but that wasn't dramatic.

 

Thanks for your support!

Edited by Raki72

  • Raki72 changed the title to [SOLVED] zero bytes smb-shares.conf
  • Community Expert

Seems odd that unmountable cache would cause that, but happy that it's solved.

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.