Skip to content

Clover startup.nsh content rules? #779

@sambul13

Description

@sambul13

Hello,

I'm trying to boot NVMe drive hooked on a card to PCIe-2.0 slot on a legacy Windows 11 PC with BIOS Gigabyte Mobo using Clover. I tried several Clover releases, and found that r5070 boots OK from ISO via boot7 renamed as boot file, and recognises my NVMe every time. But after preparing a USB thumb with BDU tool using same r5070.iso, the thumb boots to Clover but doesn't see my NVMe drive.

I tried using the following commands in shell, and the loaded at Clover startup NVMe driver finally connects to the NVMe, maps it and boots OK :
reconnect -r
map -r
fs0:\efi\boot\bootx64.efi

Now I want to execute the script automatically upon the thumb boot. I tried to modify Clover config.plist, but googled that map -r command can't be used in it. I then created startup.nsh file with the above commands and saved it in EFI\Boot or _EFI_ folder, but Clover ignores it at startup, and stops when trying to run the file in shell from Clover UI.

How I can modify the startup.nsh so Clover can autorun it successfully upon boot? Changing letters to Capital in path doesn't help. Should I load shell with it first? Is there any guide or discussion about that file content and usage? Why nothing mentioned about that file in Clover Manual?

startup.nsh
reconnect -r
map -r
fs0:\efi\boot\bootx64.efi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions