How to Troubleshoot and Fix "bootflash" Directory Issues in Cisco Nexus Switches

How to Troubleshoot and Fix "bootflash" Directory Issues in Cisco Nexus Switches

Purpose

This article explains how to troubleshoot and resolve "bootflash" directory issues in Cisco Nexus switches. This method applies to both lab environments (GNS3/EVE-NG) and real production switches.


Common Symptoms

  • bootflash: No such file or directory

  • dir bootflash: shows empty

  • Image file missing

  • Switch stuck in loader mode

  • Switch not booting NX-OS

Step 1: Verify NX-OS Image in Bootflash

After logging into the switch, first check whether the NX-OS image is present.

Run:
dir bootflash:


Step 2: Enter Configuration Mode

Enter global configuration mode:

Run
configure terminal


Step 3: Set Boot Variable

Run
boot nxos bootflash:nxos.9.3.10.bin


Step 4: Save Configuration

Save the configuration:

copy running-config startup-config