How to perform FSCK (file system check) from maintenance mode
Symptom
Resolution
Step 1. Determine the current bootup partition. This is required if you are looking to do FSCK on the current bootup partition.
user@host> debug swm status
Partition State Version
--------------------------------------------------------------------------------
sysroot0 REVERTABLE 6.1.9
sysroot1 RUNNING-ACTIVE 7.0.5-h2 <<<<<<< This is the current bootup partition
Step 2. Boot device to maintenance mode.
Step 3. Select the directory that you want to do a FSCK
FSCK (Disk Check)
Partition:
( ) panlogs ( ) sysroot0 (X) sysroot1
( ) panrepo ( ) pancfg
--------------------------------------------------------------------------------
Options:
[X] Force Fixing - 'y' to all questions
< Start Disk Check (May take a few minutes) >
--------------------------------------------------------------------------------
If the disk check fails, full formatting of panlogs may be required:
< Format Panlogs >
Step 4. Navigate to Start Disk Check and select it. Wait for FSCK to complete
FSCK Status
FSCK returned status 0
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
sysroot1: 36774/501952 files (0.4% non-contiguous), 338187/1002054 blocks
Step 5. Press 'esc' twice, to land on the main menu as shown below and select reboot.
< Maintenance Entry Reason >
< Get System Info >
< Factory Reset >
< Set FIPS Mode >
< Set CCEAL4 Mode >
< FSCK (Disk Check) >
< Log Files >
< Bootloader Recovery >
< Disk Image >
< Select Running Config >
< Content Rollback >
< Set IP Address >
< Diagnostics >
< Debug Reboot >
< Reboot > <<<<<<<