Hello all, I am writing here as a last attempt to get help in recovering my data. In short, I made a RAID 1 to ensure stuff like this doesn't happen. Turns out my 5400 rpm HDD from 2001 is more reliable. I will be extremely grateful if you can help me recover my data over the last eight years.
I ran UFS Explorer on both drives separately. I was able to recover the entire file structure. The files had the correct sizes, too, but 99.99% of them were damaged when I tried to extract to my Windows and Linux machines. Some txt and html files were 50% readable, everything else was corrupt and couldn't be opened.
Order of events:
I have Rev 804 on a CF and Rev 847 on a USB, both embedded. I tried reimporting the configuration, no go. After some troubleshooting, I found the UFSID for the disk is missing. Looks like the entire partition is gone. It is possible the wrong disk was synchronized (SIFTU suggested this on IRC). I use RAID 1 with UFS (I don't like ZFS myself). SIFTU tried to help me with a remote session but we couldn't figure out much. I have local SSH access, screenshare, etc.
So, the problem is a missing/hidden partition for the RAID.
Information from server:
Disks|Software RAID|RAID 1|Management
Disks|Software RAID|RAID 1|Information
On the CF the previous mount point is present. I don't have a second CF reader so I am using the USB right now. It has the mountpoint deleted, but when trying to add a new one:
I don't want to play around with gpart and other tools on my own as I am afraid I may destroy what little chance I have for recovery. Most people I asked were more familiar with ZFS. Can somebody please help me further with this issue? I have SSH access to the embedded install of NAS4Free as well as the WebGUI access.
Thanks.
I ran UFS Explorer on both drives separately. I was able to recover the entire file structure. The files had the correct sizes, too, but 99.99% of them were damaged when I tried to extract to my Windows and Linux machines. Some txt and html files were 50% readable, everything else was corrupt and couldn't be opened.
Order of events:
- using NAS4Free now and then, once a week, not always on
- disassemble the box
- reassemble, possible SATA cables plugged elsewhere
- start to copy a 700 MB .IMG file
- network share disappears within two to three seconds
- I reboot NAS4Free
- one of the disks starts scratching
- I see "degraded" and the disk is synchronizing
- after it completes, the disk is no longer visible
I have Rev 804 on a CF and Rev 847 on a USB, both embedded. I tried reimporting the configuration, no go. After some troubleshooting, I found the UFSID for the disk is missing. Looks like the entire partition is gone. It is possible the wrong disk was synchronized (SIFTU suggested this on IRC). I use RAID 1 with UFS (I don't like ZFS myself). SIFTU tried to help me with a remote session but we couldn't figure out much. I have local SSH access, screenshare, etc.
So, the problem is a missing/hidden partition for the RAID.
Information from server:
Code:
# uname -a
FreeBSD nas4free.local 9.1-RELEASE-p5 FreeBSD 9.1-RELEASE-p5 #0 r254466M: Sat Aug 17 22:54:54 CEST 2013 root@dev.nas4free.org:/usr/obj/nas4free/usr/src/sys/NAS4FREE-amd64 amd64
Disks|Software RAID|RAID 1|Management
Code:
Volume Name Type Size Status
WDBLACK 1 953870MB COMPLETE
Code:
# gmirror status
Name Status Components
mirror/WDBLACK COMPLETE ada1 (ACTIVE)
ada0 (ACTIVE)
Disks|Software RAID|RAID 1|Information
Code:
Software RAID information and status
Geom name: WDBLACK
State: COMPLETE
Components: 2
Balance: round-robin
Slice: 4096
Flags: NONE
GenID: 0
SyncID: 1
ID: 2836053330
Providers:
1. Name: mirror/WDBLACK
Mediasize: 1000204885504 (931G)
Sectorsize: 512
Mode: r0w0e0
Consumers:
1. Name: ada1
Mediasize: 1000204886016 (931G)
Sectorsize: 512
Mode: r1w1e1
State: ACTIVE
Priority: 1
Flags: NONE
GenID: 0
SyncID: 1
ID: 3557039084
2. Name: ada0
Mediasize: 1000204886016 (931G)
Sectorsize: 512
Mode: r1w1e1
State: ACTIVE
Priority: 0
Flags: NONE
GenID: 0
SyncID: 1
ID: 436938841
Code:
# df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/md0 207M 203M 4.7M 98% /
devfs 1.0k 1.0k 0B 100% /dev
/dev/da0a 103M 96M 6.9M 93% /cf
procfs 4.0k 4.0k 0B 100% /proc
/dev/md1 30M 3.4M 26M 11% /var
Code:
# pwd
/dev/mirror
# ls -la
total 1
dr-xr-xr-x 2 root wheel 512 Aug 28 08:13 .
dr-xr-xr-x 8 root wheel 512 Aug 28 08:12 ..
crw-r----- 1 root operator 0, 75 Aug 28 08:13 WDBLACK
On the CF the previous mount point is present. I don't have a second CF reader so I am using the USB right now. It has the mountpoint deleted, but when trying to add a new one:
Code:
Wrong partition type or partition number.
/dev/mirror/WDBLACKp1: Can't get UFS ID.
dumpfs: /dev/mirror/WDBLACKp1: could not find special device
I don't want to play around with gpart and other tools on my own as I am afraid I may destroy what little chance I have for recovery. Most people I asked were more familiar with ZFS. Can somebody please help me further with this issue? I have SSH access to the embedded install of NAS4Free as well as the WebGUI access.
Thanks.