cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

238
Views
0
Helpful
7
Replies
Highlighted
Beginner

ASA 5512-X disk0: is erased on ever boot

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

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
VIP Advisor

Re: ASA 5512-X disk0: is erased on ever boot

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:

--
Please remember to select a correct answer and rate helpful posts

View solution in original post

7 REPLIES 7
Highlighted
VIP Mentor

Re: ASA 5512-X disk0: is erased on ever boot

can you connect the console and post complete boot logs and show flash:

 

BB
*** Rate All Helpful Responses ***
Highlighted
Beginner

Re: ASA 5512-X disk0: is erased on ever boot

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

Highlighted
VIP Mentor

Re: ASA 5512-X disk0: is erased on ever boot

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 :

 

https://www.cisco.com/c/en/us/support/docs/security/asa-5500-x-series-next-generation-firewalls/113266-asa-flash-error-ts.html

BB
*** Rate All Helpful Responses ***
Highlighted
VIP Advisor

Re: ASA 5512-X disk0: is erased on ever boot

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:

--
Please remember to select a correct answer and rate helpful posts

View solution in original post

Highlighted
Beginner

Re: ASA 5512-X disk0: is erased on ever boot

The fsck is failing...

 

smc-asa# fsck disk0:
Unsupported file system type!

fsck of disk0: complete
smc-asa#

Highlighted
Beginner

Re: ASA 5512-X disk0: is erased on ever boot

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

Highlighted
VIP Advisor

Re: ASA 5512-X disk0: is erased on ever boot

?Yes, do try for a reboot. However, do make a complete backup of all your configuration and all your files on disk0: before doing so...just incase.

--
Please remember to select a correct answer and rate helpful posts