Menu

Veracrypt system favorites mount order - Windows services fail to start

2022-08-19
2022-08-22
  • Francois Court

    Francois Court - 2022-08-19

    I just encrypted my system disk and added a system favorite volume (on a different disk): everything went well without issue.
    The system favorite is mounted a startup - that works well; however, there are windows services (Apache, MySql) which depends on data located on this system favorite, and since I moved to veracrypt, these services fail to start because the system favorite volume is not mounted yet when the attempt to start.
    Any idea?
    thanks in advance

    System: Windows 10, single OS boot
    1 ssd for system
    1 ssd for data and others

     
  • KoRni

    KoRni - 2022-08-19
    1. Make sure you're using system favorites and not just favorites.
    2. In "System Favorite Volumes" window, at the bottom, check "Mount favorite volumes when Windows starts". make sure you understand limitations and follow guide that appears on two subsequent window messages - most importantly, the mounted system favorite voume has to use the same password you use for pre-boot, for obvious reasons.
     
  • Francois Court

    Francois Court - 2022-08-19

    Thanks for the prompt feedback

    yes - this is a system favorite, it uses the same password as the pre-boot, and it is indeed correctly mounted at startup. This system favorite disk is however not available for the two services that need it (Apache and Mysql) when these two services start or try to start. Both services work fine when I start them manually after logon.

     
  • KoRni

    KoRni - 2022-08-19

    Do you have the "Mount system favorite volumes when Windows starts" checkbox checked as described? If so, I don't know why the issue happens, but you can change these services start type from "Auto" to "Auto (Delayed)". There's a way to adjust the delay time, handle starting service by task scheduler or script, but just try that first option first.

     

    Last edit: KoRni 2022-08-19
  • Francois Court

    Francois Court - 2022-08-19

    Yes, the option is checked and the system favorite volume is indeed correctly mounted
    It does work with the "Auto (Delayed)" for the two services but not with just "Auto"- not sure why that happens...
    In any case, many thanks, that was very helpful!

     
  • Francois Court

    Francois Court - 2022-08-20

    After a few tests, the "Auto (Delayed)" fix works most of the time but not always (for Apache, ok for MySql). I assume it's a timing issue in the way services start in Windows and how "veracrypt System Favorites" service manages this. Irritating but not blocking.
    thanks again

     
  • KoRni

    KoRni - 2022-08-21

    Glad that it helped, but it seems that the services still need a bit more time. AFAIK, default "delay" for "Autostart (Delayed)" is 120 s, so you can try increasing it a bit for these services:
    1. Start -> Run (or Win+R) and type: services.msc
    2. Find the failing service(s), right click and choose Properties
    3. Note the service(s) name at the top - it might be something totally different than displayed name.
    4. Start -> Run (or Win+R) and type: regedit
    5. Navigate to "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\@SERVICENAME@", and click it so it opens in the right pane. @SERVICENAME@ is the name of service you noted in step 3.
    6. In the right pane, right click, select New -> DWORD (32-bit) and name it AutoStartDelay
    7. Double click it, change "Base" from Hexadecimal to Decimal
    8. Provide new delay value in Value Data field - in milliseconds, e.g. 180000 or whatever value you think will work and click OK.
    9. Repeat 5-9 for all the services you want to increase the autostart delay for.

    That's it, good luck :)

     
  • Francois Court

    Francois Court - 2022-08-21

    Great, thanks again.
    Eventually, would it be possible to ensure that the mounting of the system favorites is attempted before starting services (not sure how that would work on windows)?

     
  • KoRni

    KoRni - 2022-08-22

    That's what System Favorites are supposed to do, form the documentation:

    System favorites are useful, for example, in the following cases:
        You have volumes that need to be mounted before system and application services start and before users start logging on. 
    

    I'm really unsure on why doesn't it work in your case.

     
  • Adrian Kentleton

    Do your Apache error or startup logs provide any clues?

     
  • Francois Court

    Francois Court - 2022-08-22

    Regarding KoRni's remark on the mounting order of system favorites - this is indeed in the documentation but I raised the point because I saw in the Windows service list a Veracrypt service dedicated to mounting system favorites volumes. Maybe there is a disconnect there?

     
  • Francois Court

    Francois Court - 2022-08-22

    There is nothing in Apache logs because the volume on which Apache resides is not mounted - the error is from Windows which cannot find Apache

     
  • Adrian Kentleton

    So, it's not just data that Apache needs that's located on the system favourire, but the program itself? So, it's not that it tries to start but fails; it just doesn't try?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.