04-03-2011 03:32 AM
After a sudden power outage exactly during reconfiguration the /config partition on a SRX240h is gone:
% df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/da0s1a 293M 207M 63M 77% /
devfs 1.0K 1.0K 0B 100% /dev
/dev/md0 566M 566M 0B 100% /junos
/cf 293M 207M 63M 77% /junos/cf
devfs 1.0K 1.0K 0B 100% /junos/dev/
procfs 4.0K 4.0K 0B 100% /proc
/dev/md1 168M 17M 138M 11% /mfs
/dev/md2 39M 4.0K 36M 0% /mfs/var/run/utm
/dev/md3 1.8M 4.0K 1.7M 0% /jail/mfs
% ls -la /dev/da0*
crw-r----- 1 root operator 0, 46 Apr 3 10:16 /dev/da0
crw-r----- 1 root operator 0, 47 Apr 3 10:16 /dev/da0s1
crw-r----- 1 root operator 0, 51 Apr 3 10:16 /dev/da0s1a
crw-r----- 1 root operator 0, 52 Apr 3 10:16 /dev/da0s1c
crw-r----- 1 root operator 0, 48 Apr 3 10:16 /dev/da0s2
crw-r----- 1 root operator 0, 53 Apr 3 10:16 /dev/da0s2a
crw-r----- 1 root operator 0, 54 Apr 3 10:16 /dev/da0s2c
crw-r----- 1 root operator 0, 49 Apr 3 10:16 /dev/da0s3
crw-r----- 1 root operator 0, 50 Apr 3 10:16 /dev/da0s4
crw-r----- 1 root operator 0, 55 Apr 3 10:16 /dev/da0s4a
crw-r----- 1 root operator 0, 56 Apr 3 10:16 /dev/da0s4c
Needless to say that nothing except serial console is working now...
I think the filesystem of the config partition got seriously corrupted, taking an image with dd and looking at the data this looks like all "FF"... and even the disklabel is gone:
% bsdlabel /dev/da0s3
bsdlabel: /dev/da0s3: no valid label found
Is there a way to recover or recreate the config partition?
Thanks!
04-03-2011 09:20 AM
reinstalling from usb recreated the partitions...