How To Recover Corrupted .conf File On Qnap

I – Easy Way To Recover/Fix Corrupted .conf File On Qnap

II – Hard Way To Recover/Fix Corrupted .conf File On Qnap

.

I – Easy Way To Recover/Fix Corrupted .conf File On Qnap

1. wget http://download.qnap.com/Storage/tsd/utility/qck

2. chmod +x qck

3. ./qck restore_conf

4. cp /mnt/HDA_ROOT/.conf_restore /mnt/HDA_ROOT/.conf

qnap .conf corruption

*Thanks for Daniel from Qnap!

.

II – Hard Way To Recover/Fix Corrupted .conf File On Qnap

Appendix: How to recover .conf (md9 fail to auto-assemble)

  • Try to mount 1st partition of any disk
    1. Please open /etc/enclosure_0.conf to get the correct disk mapping name.

[PhysicalDisk_1]

port_id=1

pd_sys_id=sg6

enc_sys_id=root

pd_sys_name=/dev/sdg

  1. Example command of mount Disk1 1st partition.
    [~] # /bin/mount /dev/sdg1 /mnt/sdg_root 
  • Try to read /mnt/sdg_root/.conf
    [~] # cat /mnt/sdg_root/.conf 
  • It should be a valid text file. If .conf file is is garbled, remove it and try to re-generate it.
  • Example of HAL support firmware(SMB):
    1. MAC address 1: 00:08:9B:CB:A3:EA
    2. World wide name of DISK1: 50014EE25C0D43B9
    3. World wide name of DISK2: 5000C5004EE02CCB
    4. World wide name of DISK3: 5000CCA378EF2455
    5. World wide name of DISK4: 50014EE2B21AEE7C
    6. To get the correct disk WWN, please refer to /etc/enclosure_0.conf.

[~] # cat /mnt/sdg_root/.conf
hw_addr=00:08:9B:CB:A3:EA
QNAP=TRUE
mirror=0
hal_support=yes
sm_v2_support=yes
pd_dev_wwn_50014EE25C0D43B9=0×1
pd_dev_wwn_5000C5004EE02CCB=0×2
pd_dev_wwn_5000CCA378EF2455=0×3
pd_dev_wwn_50014EE2B21AEE7C=0×4

  • Mount each disk 1st partition
  • Copy this new .conf to each disk 1st partition

[Note] You can use below tool to generate new .conf file in /mnt/HDA_ROOT/.conf_restore:

1. wget http://download.qnap.com/Storage/tsd/utility/qck

2. chmod +x qck

3. ./qck restore_conf

VN:F [1.9.22_1171]
Rating: 9.5/10 (2 votes cast)
VN:F [1.9.22_1171]
Rating: +1 (from 1 vote)
How To Recover Corrupted .conf File On QnapQnap'taki Bozulan .conf Dosyasını Düzeltme İşlemi;, 9.5 out of 10 based on 2 ratings

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>