More than 6 years later, and this still saved my bacon. Was running PI 3.1 and for whatever reason ended up in a boot loop that was asking for a root password in order to run a File System Check:
We attempted to follow Cisco Document ID:200760, but the syntax was incorrect in multiple places. Still, even after finding a second article in the Cisco Community here stating that the syntax was incorrect in the first article, we still were at a loss, as the issue did not seem to be resolvable...by luck, a Google search returned the article on the page you are reading now. I used the Linux SystemRescueCd-6.0.2 Released on Feb 21, 2019, which you can download here: http://www.system-rescue-cd.org/Download/
When I booted, I was presented with this screen, and I chose the first option, which got me to a CLI:
At this point, I picked up with step 7:
7. Determine which designation has been given to the volumes we need to repair. In the output below, this
particular linux distro has given the volumes the 'sdb' designation. This can vary. There will be three of them (sdb1, sdb2, sdb3)
# fdisk -l
The only problem was that the output went completely off the screen. If you aren't familiar with Linux, this can be frustrating, however not to worry - just use the "less" command, which is just the command stated above with a pipe:
# fdisk -l | less
Doing this gave me the following output (you have to hit Q to exit back to the CLI):
From that screen above, this (below) is all we care about:
From here, we can continue on with steps 8 through to completion. Not all of the output will look like what is posted above, but that's ok. I've posted mine for examples, yours may look a little different. I didn't show all of my volume fscks, because only one needed fixing.
As you can see above, I re-ran the fsck on the /dev/smosvg/optvol, and the second time it ran completely clean.
So, I then cleanly shut down so that I could disconnect the ISO, and then the system booted properly.
#shutdown -h now
If you wait patiently, that command should shut down any linux OS properly, cleanly, and fully.
... View more