Boot Loader Operation
The following boot loader commands can be executed on the SD card:
■boot—Load and boot an executable IOS image
■cat—Concatenate (type) file or files
■copy—Copy a file
■delete—Delete file of files
■dir—List files in directories
■fsck—Check file system consistency
■format—Format a file system
■mkdir—Create directories
■more—Concatenate (display) file
■rename—Rename a file
■rmdir—Delete empty directories
■sd_init—Initialize sd flash file systems
Important: The switch can be booted from its internal flash memory or from an SD card. The SD card takes precedence over internal flash memory. If an SD card is installed in the switch, the switch attempts to boot in the following order:
1. From the IOS image that is specified in the SD card system boot path
2. From the first IOS image in the SD card
3. From the IOS image that is specified in the internal flash memory system boot path
4. From the first IOS image in the internal flash
IOS Operation
You can insert or remove an SD card while the IOS is running. If you insert a supported Cisco SD card while the IOS is running, the switch validates the Cisco embedded string in the Product Name (PNM) field and displays the product number and the flash capacity of the SD card. If you remove an SD card while the IOS is running, the switch displays a warning message to alert you that the SD card has been removed.
If syslog is enabled, the system also sends a message when the SD card is inserted or removed.
When an SD card is installed in a switch, the following IOS commands operate as described:
■ write command—Saves the running configuration. If the system boots from an SD card and you run a write command, the system saves the running configuration to the SD card, if the card is still installed. If the SD card has been removed, the system saves the running configuration to the internal flash memory and displays this message:
WARNING: The SD flash is not present.
The running-config is saved to the on-board flash.
NOTE: This warning message is displayed only once.
If the system boots from the internal flash memory and you then insert an SD card and run the write command, the system saves the running configuration to the internal flash memory.
■ boot command—Lets you change the system boot parameters.
If the system boots from an SD card and you run a boot command, the following behavior applies:
–If the SD card is installed and the system boot path or configuration file path points to the SD card, the system boot path or configuration file path is saved to the SD card
–If the SD card is installed and the system boot path or configuration file path points to the internal flash memory, the system boot path or configuration file path is saved to the internal flash memory
–If the SD card has been removed and the system boot path or configuration file path points to the SD card, the system boot path or configuration file path is not saved and the following message displays:
WARNING: The BOOT/config file path points to the
SD flash card and the SD flash card is not present.
The environment variable(s) is not saved.
NOTE: This warning message is displayed only once.
If the system boots from the internal flash memory and you then insert an SD card and run the boot command, the following behavior applies:
–If the system boot path or configuration file path points to the internal flash memory, the system boot path or configuration file path is saved to the internal flash memory
–If the system boot path or configuration file path points to the SD card, the system boot path or configuration file path is saved to the SD card and the following message is displayed:
WARNING: The BOOT/config file path points to the
SD flash card. The environment variable(s) is
saved onto the SD flash card.
NOTE: This warning message is displayed only once.
— If the SD card has been removed and the system boot path or configuration file path points to the SD card, the system boot path or configuration file path is not saved and the following message is displayed:
WARNING: The BOOT/config file path points to the
SD flash card and the SD flash card is not present.
The environment variable(s) is not saved.
NOTE: This warning message is displayed only once.
n sync command—Copies the IOS image directory (which includes the IOS image file, FPGA image files, Device Manager files, and Profinet/CIP configuration files), the config.text IOS configuration file, the vlan.dat VLAN configuration file, and IOS boot parameters from the internal flash memory to the SD card or from the SD card to the internal flash memory. This command verifies that the IOS image is appropriate for the switch model and that enough destination flash memory is present, and aborts the sync process if a potential problem is detected. The sync command obtains the source IOS image directory path and source IOS configuration files path from the IOS boot parameters on the source flash device that is specified in the sync command. By default, this command overwrites the destination IOS image directory and IOS configuration files. The “save-old-files” option can be used to override this default behavior. If the running configuration has not been saved and you run the sync command, the switch provides the option for you to save the running configuration before the command executes.
The sync command options are:
–Switch# sync flash: sdflash: —Sync IOS image directory, configuration files, and boot parameters from internal flash memory to SD card.
–Switch# sync sdflash: flash: —Sync IOS image directory, configuration files, and boot parameters from SD card to internal flash memory.
–Switch# sync flash: sdflash: ios-image-name IOS_image_path —Sync the designated IOS image directory, configuration files, and boot parameters from internal flash memory to SD card. For example, IOS_image_path might be f lash:/ie2000-universalk9-mz.150-2.EA1/ie2000-universalk9-mz.150-2.EA1.bin.
–Switch# sync sdflash: flash: ios-image-name IOS_image_path —Sync the designated IOS image directory, configuration files, and boot parameters from SD card to internal flash memory. For example, IOS_image_path might be f lash:/ie2000-universalk9-mz.150-2.EA1/ie2000-universalk9-mz.150-2.EA1.bin.
–Switch# sync flash: sdflash: skip config.text vlan.dat —Sync only IOS image directory from internal flash memory to SD card.
–Switch# sync sdflash: flash: skip config.text vlan.dat —Sync only IOS image directory from SD card to internal flash memory.
–Switch# sync flash: sdflash: skip ios-image —Sync only IOS configuration files from internal flash memory to SD card.
–Switch# sync sdflash: flash: skip ios-image —Sync only IOS configuration files from SD card to internal flash memory.