USB harddisk not initialized on boot (race issue)

  • Hi, I'm having trouble with my new 1 TB USB harddisk not being initialized before OMV claims it during boot. The drive comes available only after 1-2 seconds after OMV initializes the disks. (Known as "race issue" in the old days). Quite surprised to see this still happens.


    How can I "slow down" OMV during boot?


    Thank you :)


    /Thomas

  • Hi,


    You can try to add the rootdelay option (in seconds) this in /etc/default/grub


    Code
    ...
    GRUB_CMDLINE_LINUX_DEFAULT="rootdelay=15 quiet"
    ...


    then save and run


    Code
    # update-grub2


    Should do the tricks.

    Lian Li PC-V354 (with Be Quiet! Silent Wings 3 fans)
    ASRock Rack x470D4U | AMD Ryzen 5 3600 | Crucial 16GB DDR4 2666MHz ECC | Intel x550T2 10Gb NIC

    1 x ADATA 8200 Pro 256MB NVMe for System/Caches/Logs/Downloads
    5 x Western Digital 10To HDD in RAID 6 for Datas
    1 x Western Digital 2To HDD for Backups

    Powered by OMV v5.6.26 & Linux kernel 5.10.x


  • I'm thinking this might help me on another issue, i open putty and enter the user name root with the password.
    I then type /etc/default/grub. this gives me bash: /etc/default/grub: permission denied.


    so i then try su enter
    then /etc/default/grub enter and get the same bash: /etc/default/grub: permission denied


    can someone explain what i'm missing here?
    Thanks

  • I don't think that will solve the problem. The default rootdelay is 30 seconds if not set otherwise. Setting it to 15 will not help. Is the USB drive your boot drive, meaning that you installed OMV on this disk? If not, then the rootdelay will not change anything.


    One quick workaround might be to do

    Code
    echo 'mount -a' > /etc/rc.local


    on the SSH console.


    Stefan

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!