
Operations of a file are separate from those of the attributes. For example, when you delete a main boot file from the Flash, the
main attribute of the file remains. If you download a valid file with the same name to the Flash, the new file will have the main
attribute.
The file attribute feature is backward compatible. When you upgrade the Boot ROM of a device, the original default app boot file
has the main attribute.
5.2.2 Impact of File Attributes on Downloading and Booting
I. Downloading
When you download an application, configuration, or Web file from the boot menu through TFTP or FTP, the device identifies
the file by its suffix and checks the validity of the file if it is an app file. Then, the device displays a message for you to confirm if
you want to set it as a boot file. You can set file attributes at prompt.
Note:
If a downloaded file has the same name as that of an existing file in the Flash, the new file will overwrite the original one, while
having the same attributes.
II. Booting
When a device boots, it first uses the application file with the main attribute. If the boot operation fails, the device selects the
application file with the backup attribute to try again. If the boot operation fails again, the device displays an error message and
repeats the above procedure.
Note:
If the device boots failed with an application file with main
attribute, it will display an alert message.
If the specified application file does not exist, the switch
will automatically choose an existing valid application file to
boot.
5.2.3 Setting the Attribute of a File
You can set the attribute of a file from the Boot menu.
The following takes an application file for example to describe the required steps:
I. Enter the Boot menu and input 2 to select “2. Select application file to
boot” and enter the corresponding submenu.
1. Download application file to flash
2. Select application file to boot
3. Display all files in flash
4. Delete file from flash
5. Modify bootrom password
6. Enter bootrom upgrade menu
7. Skip current configuration file
8. Set bootrom password recovery
9. Set switch startup mode
0. Reboot