I had a 3TB WD Red disk with movies and music in my HTPC(with ext4 filesystem). A few days ago the power supply gave up so I took the disk, put it an external USB case in which I usually have a 2TB backup-disk and attached it to my server running Ubuntu 14.04. I was however unable to mount it since the server claimed it had errors. That didn't feel all to strange as the HTPC had been running when the PSU gave up so I fired up a shell with:
sudo fsck -y /dev/sde
It ran for a while and I could mount the drive when it was finished. Now however it only have an empty 2TB partition as opposed to the ~80% full 3TB partition it had before. I'm letting Testdisk analyze it at the moment. But is there some other way to reverse the fsck changes or should I just take it as a lesson and start the lengthy process of adding my media again?
UPDATE: Not sure I get this right, but gdisk seems to think the partition is still using the full disk:
# gdisk -l /dev/sde
GPT fdisk (gdisk) version 0.8.8
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Disk /dev/sde: 5860533168 sectors, 2.7 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): CFAA3FF0-DE38-4FAD-B13B-91811BD71821
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 5860533134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2925 sectors (1.4 MiB)
Number Start (sector) End (sector) Size Code Name
1 2048 5860532223 2.7 TiB 0700 primary
But if I mount it, it's only 2TB:
# mount /dev/sde1 /mnt
# df -h /mnt
Filesystem Size Used Avail Use% Mounted on
/dev/sde1 2.0T 71M 1.9T 1% /mnt
Not much on it though:
# ls -altR /mnt
/mnt:
total 24
drwxr-xr-x 26 root root 4096 Jul 18 20:54 ..
drwxr-xr-x. 3 root root 4096 Jul 8 12:45 .
drwx------. 2 root root 16384 Jul 8 12:45 lost+found
/mnt/lost+found:
total 20
drwxr-xr-x. 3 root root 4096 Jul 8 12:45 ..
drwx------. 2 root root 16384 Jul 8 12:45 .
.fsck
files, otherwise it is empty and you will probably need to restore the data from something else.