03-20-2020 11:56 AM
I had to perform a password recovery on 5512-X ASA as our login stopped working. Password recovery was disabled so I performed a factory reset which deleted all the files on disk0: I copied the files back to disk0: and restored the config. Config-register is set to 0x01. I set the boot system and asdm images to match the uploaded files. The ASA works normally until it reboots. On reboot the ASA gives an error that the image is not located and disk0: is empty. Why are disk 0 files being deleted?
Thanks,
David
Solved! Go to Solution.
03-22-2020 01:00 PM
You could try running the command fsck disk0: to try and fix any issues with disk0: . Alternitively, and more drastically, and if you have a backup of all your files, you could also try to format disk0: and then copy all the files back.
If neither of these solve the issue then you will need to replace disk0:
03-20-2020 02:12 PM
can you connect the console and post complete boot logs and show flash:
03-23-2020 09:55 AM
How do I view the boot log?
This the contents of flash:
smc-asa# dir flash:
Directory of disk0:/
9838 -rw- 82593792 12:47:22 Mar 23 2020 asa952-smp-k8.bin
9831 -rw- 32738244 12:27:41 Mar 23 2020 asdm-792-152.bin
9802 -rw- 34033084 13:53:23 Mar 20 2020 asdm-7131.bin
9799 -rw- 103071744 13:52:40 Mar 20 2020 asa9-12-3-9-smp-k8.bin
9788 drw- 60 13:43:43 Mar 20 2020 coredumpinfo
9705 drw- 40 13:43:42 Mar 20 2020 crypto_archive
9558 drwx 40 13:43:13 Mar 20 2020 log
4 file(s) total size: 252436864 bytes
1986080768 bytes total (1429467136 bytes free/71% free)
Thanks,
David
03-23-2020 10:42 AM - edited 03-23-2020 10:45 AM
you only get boot logs if you reboot the device. as per the disk concern i do not see any issue.
can you redo the test and check.
fsck of disk0: complete
here troubleshooting flash errors for reference :
03-22-2020 01:00 PM
You could try running the command fsck disk0: to try and fix any issues with disk0: . Alternitively, and more drastically, and if you have a backup of all your files, you could also try to format disk0: and then copy all the files back.
If neither of these solve the issue then you will need to replace disk0:
03-23-2020 10:14 AM
The fsck is failing...
smc-asa# fsck disk0:
Unsupported file system type!
fsck of disk0: complete
smc-asa#
03-24-2020 07:14 AM
I reformatted disk0: and copied the files back. The fsck completes now. So that was good advice.
smc-asa# fsck disk0:
fsck.fat 3.0.28 (2015-05-16)
/dev/sda1: 14 files, 60739/1005392 clusters
fsck of disk0: complete
Do you think it's safe to reboot the ASA now that fsck is completing now?
Thanks
03-24-2020 08:30 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide