Ok
To restore your nas database :
I assume you have create a share "temp" on the
SD card - backup the nas database
- Code: Select all
cp /etc/nas_conf_db.xml /share/1000/temp/nas_conf_db.xml.org
- copy the nas database
- Code: Select all
cp /etc/nas_conf_db.xml /share/1000/temp
- set write permissions
- Code: Select all
chmod a+w /share/1000/temp/nas_conf_db.xml
From a laptop (so you need a full access on the share "temp"), edit nas_conf_db.xml file stored in the share temp:
- remove this disk node:
- Code: Select all
<disk>
<size>1863.01269531</size>
<internal>true</internal>
<name>USB-A</name>
<system>false</system>
<blockdev>/dev/sda</blockdev>
<diskid>DE177DE8040000BF_Samsung_M3_Portable</diskid>
<model>Samsung_M3_Portable</model>
<usb>true</usb>
<freesize>0</freesize>
<init>true</init>
<partitions>
<partition>
<lvname>/dev/sda5</lvname>
<volid>2000</volid>
<color>#5088be</color>
<index>0</index>
<size>1863.01269531</size>
</partition>
</partitions>
</disk>
(so disk node with diskid DE177DE8040000BF_Samsung_M3_Portable)
and keep only one vol node(you have to keep only one)
- Code: Select all
<vol>
<volid>2001</volid>
<md>/dev/sda5</md>
<fs>2001</fs>
<lastindex>1</lastindex>
<name>USB-A-5</name>
<devices/>
<raidtype>single</raidtype>
<color>#71d975</color>
<formatting>0</formatting>
<size>1863.01269531</size>
</vol>
- save it and overwrite the current nas database
- Code: Select all
cp /share/1000/temp/nas_conf_db.xml /etc
So go to the disk setup menu it should be ok now (check also the main share menu)
But do not restart the NAS (you will get again two disks).
I am building a test patch for fixing this bug