Warning: Undefined array key 1 in /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php on line 505
Warning: Undefined array key 2 in /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php on line 505
Warning: Cannot modify header information - headers already sent by (output started at /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php:505) in /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php on line 557
Warning: Cannot modify header information - headers already sent by (output started at /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php:505) in /home/yogindar/www/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1930
Warning: Cannot modify header information - headers already sent by (output started at /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php:505) in /home/yogindar/www/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1930
Warning: Cannot modify header information - headers already sent by (output started at /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php:505) in /home/yogindar/www/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1930
Warning: Cannot modify header information - headers already sent by (output started at /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php:505) in /home/yogindar/www/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1930
Warning: Cannot modify header information - headers already sent by (output started at /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php:505) in /home/yogindar/www/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1930
Warning: Cannot modify header information - headers already sent by (output started at /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php:505) in /home/yogindar/www/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1930
Warning: Cannot modify header information - headers already sent by (output started at /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php:505) in /home/yogindar/www/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1930
Warning: Cannot modify header information - headers already sent by (output started at /home/yogindar/www/blog/wp-content/plugins/visitors-online/visitors-online.php:505) in /home/yogindar/www/blog/wp-includes/rest-api/class-wp-rest-server.php on line 1930
{"id":2624,"date":"2026-01-21T06:07:49","date_gmt":"2026-01-21T06:07:49","guid":{"rendered":"https:\/\/blog.yogindar.org\/?p=2624"},"modified":"2026-01-21T06:07:50","modified_gmt":"2026-01-21T06:07:50","slug":"startup-nsh-the-uefi-shells-hidden-autopilot","status":"publish","type":"post","link":"http:\/\/blog.yogindar.org\/?p=2624","title":{"rendered":"\u201cstartup.nsh: The UEFI Shell\u2019s Hidden Autopilot\u201d"},"content":{"rendered":"\nIn the UEFI Shell<\/strong>, the default auto-run script<\/em> is:<\/p>\n\n\n\n\ud83d\udc49 startup.nsh<\/code><\/h3>\n\n\n\nHow it works<\/h4>\n\n\n\n\n- When the UEFI Shell starts, it automatically looks for and executes<\/strong> a file named:
startup.nsh<\/code><\/li>\n\n\n\n- It searches the root directory<\/strong> of mapped filesystems in order:
fs0:\\startup.nsh fs1:\\startup.nsh fs2:\\startup.nsh ...<\/code><\/li>\n\n\n\n- The first one found<\/strong> is executed.<\/li>\n<\/ul>\n\n\n\n
Typical use cases<\/h4>\n\n\n\n\n- Automating boot commands<\/li>\n\n\n\n
- Loading drivers<\/li>\n\n\n\n
- Running diagnostics<\/li>\n\n\n\n
- Launching an OS loader or firmware tools<\/li>\n<\/ul>\n\n\n\n
Example startup.nsh<\/code><\/h4>\n\n\n\necho -off\nmap -r\nfs0:\ncd EFI\\BOOT\nBOOTX64.EFI\n<\/code><\/pre>\n\n\n\nImportant notes<\/h4>\n\n\n\n\n- The script must be exactly named<\/strong>
startup.nsh<\/code> (case-insensitive).<\/li>\n\n\n\n- It must be in the filesystem root<\/strong> (not a subdirectory).<\/li>\n\n\n\n
- If multiple filesystems have it, only the first discovered<\/strong> is run.<\/li>\n\n\n\n
- You can disable auto-execution<\/strong> by launching the shell with:
Shell.efi -nostartup<\/code><\/li>\n<\/ul>\n\n\n\nDebug tip<\/h4>\n\n\n\n
If your script isn\u2019t running:<\/p>\n\n\n\n
map\nls fs0:\\\n<\/code><\/pre>\n\n\n\nto verify filesystem mapping and file location.<\/p>\n","protected":false},"excerpt":{"rendered":"
In the UEFI Shell, the default auto-run script is: \ud83d\udc49 startup.nsh How it works Typical use cases Example startup.nsh Important notes Debug tip If your script isn\u2019t running: to verify filesystem mapping and file location.<\/p>\n","protected":false},"author":29,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1748],"tags":[1746,1747,1745],"class_list":["post-2624","post","type-post","status-publish","format-standard","hentry","category-uefi","tag-efi-shell","tag-startup-nsh","tag-uefi"],"_links":{"self":[{"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=\/wp\/v2\/posts\/2624","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=\/wp\/v2\/users\/29"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2624"}],"version-history":[{"count":1,"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=\/wp\/v2\/posts\/2624\/revisions"}],"predecessor-version":[{"id":2625,"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=\/wp\/v2\/posts\/2624\/revisions\/2625"}],"wp:attachment":[{"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2624"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2624"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.yogindar.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2624"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}