User guide
Managing System Files File and Directory Management
OmniSwitch AOS Release 8 Switch Management Guide May 2014 page 2-11
Utility Commands
The utility commands include freespace, fsck, and newfs. These commands are used to check and verify
flash.
Displaying Free Memory Space
The freespace command displays the amount of free memory space available for use in the switch’s file
system. You may issue this command from any location in the switch’s directory tree.
-> freespace
/flash 16480256 bytes free
Performing a File System Check
The fsck command performs a file system check and can repair any errors found. It displays diagnostic
information in the event of file corruption.
There are two options available with the fsck command: no-repair and repair. Specifying the no-repair
option performs only the file system check whereas specifying the repair option performs the file system
check and also repairs any errors found on the file system.
If you want to repair any errors found automatically while performing the file system check, you must
specify the flash directory as follows:
-> fsck /uflash repair
The screen displays the following output:
/uflash/ - disk check in progress ...
/uflash/ - Volume is OK
Change volume Id from 0x0 to 0xef2e3c
total # of clusters: 29,758
# of free clusters: 18,886
# of bad clusters: 0
total free space: 77,357,056
max contiguous free space: 55,451,648 bytes
# of files: 59
# of folders: 5
total bytes in files: 44,357,695
# of lost chains: 0
total bytes in lost chains: 0
While performing the repair operation, the switch will display the errors found and specify those errors
that have been repaired. If there are no errors found, then just the file system information is displayed.