Creating a New File System
Page 7-15

Creating a New File System

The newfs command removes a complete flash file system and all files within it, replacing it
with a new empty flash file system. Use this command when you want to reload all files in
the file system, or in the unlikely event that the flash file system becomes corrupted.
To create a new file system and re-initialize the flash memory, enter
newfs
at the system prompt. The following will be displayed.
You are about to destroy all files on file system /flash. If you
are experiencing problems with the flash file system, you might
want to use the "fsck" command to help determine where problems
may exist.
Are you absolutely sure you want to strip the current file
system and create a new one? (n)
Press <Enter> to cancel, or enter y to create a new file system. If you enter y, you will have to
load new software into the switch.
Warning
Do not power-down the switch after running the newfs
command until you reload your image and configura-
tion files. Otherwise, you will have to reload the image
files at the boot monitor prompt using the serial inter-
face (e.g., ZMODEM), which can take several minutes.
Also, before you execute the newfs command, you
may also want to preserve your configuration file by
saving it to another host.
You can now download new files via FTP or ZMODEM.