• 0

External HDDs detected as internal HDD after synoinfo.conf edit.


Question

Please be patient with the newbie here. This is my third xpenology box that I put together in the last 5 months, so I have some experience with editing the synoinfo.conf file, and minimal experience in Linux. This is my very first post.

 

DS918+ running DSM 6.2.3-25426 Update 2 on Jun's 1.04b loader. I love it! :) Everything was working fine after install (including detecting and reading from external HDDs), but it not detect all 10 internal drives were detected. I had this problem before on when using DS3615xs on the same NAS box, and this tutorial worked great! But this time the external HDDs are showing up as internal HDD!

 

Original binary to HEX (with "maxdisks=16"):

11 0000 0000 0000 0000 ==> USB ports = 30000

00 1111 1111 1111 1111 ==> Sata ports = FFFF

 

Modified binary to HEX (with "maxdisks=20")

11 0000 0000 0000 0000 0000 ==> USB ports = 300000

00 1111 1111 1111 1111 1111 ==> Sata ports = FFFFF

esataportcfg="0x0"

Both synoinfo.conf from /etc and /etc.defaults were edited.

dmesg.txt shows 4 USB ports detected, but when I changed the binary to "1111" it also did not detect any USB port.

dmesg.txt shows 20 ata ports detected, this is why I have expanded the maxdisks to 20.

It sounds cool to be able to use external HD as part of internal volumes, but my data is located in the external HDD, so I cannot bring it back to new volumes. I want to have access to external HDDs to use HyperBackup on a NTFS drive for portability of backups.

 

Hardware:

• OptiPlex XE2: Intel Core I7-4770S (4 Cores/8 Threads, 3.10 GHz, Turbo 3.90 GHz), RAM 12Gb 1600 MHz DDR3

 

Drives #17 and #18 below are two different external HDDs.

 

Any ideas are highly appreciated! Thanks! :)

Capture2.PNG

Capture.PNG

Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 1
17 hours ago, Triplex said:

Please be patient with the newbie here. This is my third xpenology box that I put together in the last 5 months, so I have some experience with editing the synoinfo.conf file, and minimal experience in Linux. This is my very first post.

 

 

Both synoinfo.conf from /etc and /etc.defaults were edited.

dmesg.txt shows 4 USB ports detected, but when I changed the binary to "1111" it also did not detect any USB port.

dmesg.txt shows 20 ata ports detected, this is why I have expanded the maxdisks to 20.

It sounds cool to be able to use external HD as part of internal volumes, but my data is located in the external HDD, so I cannot bring it back to new volumes. I want to have access to external HDDs to use HyperBackup on a NTFS drive for portability of backups.

 

Hardware:

• OptiPlex XE2: Intel Core I7-4770S (4 Cores/8 Threads, 3.10 GHz, Turbo 3.90 GHz), RAM 12Gb 1600 MHz DDR3

 

Drives #17 and #18 below are two different external HDDs.

from the picure it looks like as if you missed to put in a 5th zero in usb config, when your usb starts above 16 instead of 20

it should look like this

maxdisks=20
internalportcfg="0xfffff"
esataportcfg="0x0"
usbportcfg="0xf00000"

 

how do you reach 20 ports, what additional hardware did you use, maybe you can provide /var/log/dmesg

 

Link to post
Share on other sites
  • 0

Hi IG-88! It's an honor to have you addressing my question, as I have learned so much from your posts/replies in the last months. 🤩 Thank you for your support! 👍

After few days battling this issue, I gave up troubleshooting it and installed DS3615xs with Jun's 1.03b loader and the latest DSM (6.2.3-25426), because I had a good experience using the 6.2.2 version before (and I didn't need transcoding in this NAS box). I was trying to use 918+ simply because it is running in another NAS at home. Now, with 3615xs, everything is working great after few edits to adjust the number of drives and activate SHR in the synoinfo. 

 

To answer your questions, so maybe it will help others:

  1. I may have messed up the number of zeros on the HEX code, but I tried so many times, using different numbers from 12 to 24 drives (and different HEX codes for USB and internal ports every time) that I don't believe this may be the issue.
  2. To reach 20 drives, I used 2 PCie Sata controllers: one for 6 drives and one for 2 drives (plus the 4 SATA onboard). 
  3. Sorry, I cannot provide the dmesg file simply because I installed DS3615xs and did not backup the DS918+ system files (as they were giving me trouble).
  4. Now, I am trying to work with those ata ports that are always listed as DUMMY in the dmesg file (#5, #6, #9, #10). They remain empty. I also don't understand why disks 13 -> 16 are not automatically populated, as they are not listed as dummy in the dmesg file and I did change the grub.cfg file with SataPortMap=462 (as per my setup). I understand that I can use sata_remap (works great!), and I am also trying to learn more about SasIdxMap. Let me know if you have any idea in how to deal with these drive numbers that don't populate automatically. 

Thank you again for helping this amazing community! 😃

Link to post
Share on other sites
  • 0

there is some documentation about kernel commads in older source of synoplogy

i started documenting it in a thread in tutorial and guides but its not yet visible as it's not approved yet by a mod

"sata and sas config commands in grub.cfg and what they do"

 

just a small snipped that might be interesting here

 

config SYNO_SATA_PORT_MAP
    bool "Modify SATA Hosts Port Number"
    depends on SYNO_FIXED_DISK_NAME
    default y
    help
      <DSM> #18789
      Reads Sata-Port-Mapping information and forces the sata hosts
      to initialize specified number of ports. This makes the disk
      name not skip some characters.

      Notice - Do NOT set the port number out of the range that [0-9].
               It supports as most 9 ports now.

      For example, SataPortMap=4233 means the 1st host use 4 ports,
      the 2nd host use 2 ports, the 3rd and 4th host use 3 ports.

 

config SYNO_DISK_INDEX_MAP
    bool "Modify Disk Name Sequence"
    depends on SYNO_FIXED_DISK_NAME
    default y
    help
      <DSM> #19604
      Add boot argument DiskIdxMap to modify disk name sequence. Each
      two characters define the start disk index of the sata host. This
      argument is a hex string and is related with SataPortMap.

      For example, DiskIdxMap=030600 means the disk name of the first
      host start from sdd, the second host start from sdq, and the third
      host start sda.

 

config SYNO_SATA_REMAP
    bool "Re-map Disk Name Sequence"
    depends on SYNO_FIXED_DISK_NAME
    default y
    help
      <DSM> #47418
      Add boot argument sata_remap to remap data port sequence.

      For example, sata_remap=0>4:4>0 means swap the first disk name
      and the 5th. The following is the remap result.
          ata1 - sde
          ata2 - sdb
          ata3 - sdc
          ata4 - sdd
          ata5 - sda

 

config SYNO_SATA_DISK_SEQ_REVERSE
    bool "Reverse Disk Port Sequence"
    depends on SYNO_FIXED_DISK_NAME
    default y
    help
      <DSM> #23278
      Add boot argument DiskSeqReverse to reverse the ports of each SATA chip.

      For example, for a 4 SATA chips model, 4 ports of each SATA chip.
      We want to reverse all 4 ports of 1st chip, no modification of 2nd chip,
      reverse 2 former ports of 3rd chip, and reverse 3 former ports of 4th chip.
      The boot argument should be DiskSeqReverse=4023. And the sequence of disk is:
        1st chip - [sdd, sdc, sdb, sda]
        2nd chip - [sde, sdf, sdg, sdh]
        3rd chip - [sdj, sdi, sdk, sdl]
        4th chip - [sdo, sdn, sdm, sdp]

 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.