LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Files have become invisible after crash (http://www.linuxquestions.org/questions/linux-software-2/files-have-become-invisible-after-crash-896744/)

bobwidget 08-11-2011 08:57 AM

Files have become invisible after crash
 
Hi there,

I've been recently trying out different distros and ran into an issue when installing the latest openSUSE.
The installation made the system hang at roughly 75% and didn't move for 2 hours, so I reset the system and booted Knoppix to assess the situation.

Two of my ext4 partitions were now empty although I hadn't told the installer to re-format them. However the file manager still listed the partitions as having the space used, just I couldn't get to the files.
I ran fsck on the partitions and managed to recover one of them.

The other still has the files there, the space on the disk is used, but there are no icons in the file manager. The disk is definitely mounted, and upon running fsck, it reports the disk to be clean.

I am unsure as to what tools there are to fix this issue. The data still exists but I can't get to it!
Any help would be greatly appreciated!

unSpawn 08-11-2011 11:36 AM

Quote:

Originally Posted by bobwidget (Post 4439571)
I reset the system and booted Knoppix to assess the situation.

Some installers will output gobs of information in different terminals and may allow you to switch between them during the installation process using CTRL+Fx key combos (x being a number between 1 and usually 6). Maybe next time try to cycle terminals to assess what's going on before deliberately b0rking your installation process?


Quote:

Originally Posted by bobwidget (Post 4439571)
I am unsure as to what tools there are to fix this issue. The data still exists but I can't get to it!

KNOPPIX should contain testdisk (to recover partitions) and photorec (to brute-force file recovery): use 'testdisk /debug /log' on the disk to assess the partition table. Don't change anything but post the log first if unsure.

bobwidget 08-11-2011 12:01 PM

Thanks for the assistance unSpawn. Rebooting was a total last resort, there was no response at all from the keyboard or mouse. However, thanks for the 'Ctrl+F' tip!

I had a play around with testdisk and this is the log output:

Quote:

Using locale 'C'.


Thu Aug 11 16:50:02 2011
Command line: TestDisk /debug /log

TestDisk 6.11, Data Recovery Utility, April 2009
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Linux, kernel 2.6.37 (#13 SMP PREEMPT Sun Jan 23 23:54:32 CET 2011)
Compiler: GCC 4.4 - Sep 5 2010 13:29:23
ext2fs lib: 1.41.12, ntfs lib: 10:0:0, reiserfs lib: none, ewf lib: none
User is not root!
Hard disk list
Disk /dev/sda - 250 GB / 232 GiB - CHS 30401 255 63, sector size=512 - ATA WDC WD2500SD-01K
Disk /dev/sdb - 1000 GB / 931 GiB - CHS 121601 255 63, sector size=512 - ATA WDC WD10EACS-00D
Disk /dev/sr0 - 732 MB / 698 MiB - CHS 357709 1 1 (RO), sector size=2048 - Optiarc DVD RW AD-5260S

Partition table type (auto): Intel
Disk /dev/sdb - 1000 GB / 931 GiB - ATA WDC WD10EACS-00D
Partition table type: Intel

Analyse Disk /dev/sdb - 1000 GB / 931 GiB - CHS 121601 255 63
Geometry from i386 MBR: head=255 sector=63
NTFS at 99642/0/1
get_geometry_from_list_part_aux head=255 nbr=8
get_geometry_from_list_part_aux head=8 nbr=3
get_geometry_from_list_part_aux head=16 nbr=1
get_geometry_from_list_part_aux head=32 nbr=1
get_geometry_from_list_part_aux head=64 nbr=1
get_geometry_from_list_part_aux head=128 nbr=1
get_geometry_from_list_part_aux head=240 nbr=1
get_geometry_from_list_part_aux head=255 nbr=8
Current partition structure:
1 P Linux 0 1 1 26199 254 63 420902937 [ubuntu_home]
2 P Linux 26200 0 1 52538 254 63 423136035 [music_cave]
3 P Linux 52539 0 1 99641 254 63 756709695 [soft_cave]
4 P HPFS - NTFS 99642 0 1 121600 254 63 352771335 [Audio]
No partition is bootable
sdb3 is the partition that's suffering the issues. I tried browsing the partition with test disk and just see the 'lost+found' folder.
You recommended trying 'photorec'. How is best to use it? Are there any options you recommend I should apply to the command?

unSpawn 08-11-2011 12:17 PM

Photorec, although a last resort option, has recovered many files for many users. Just run with the same debug and log flags but output recovered files to another physical disk, never the same physical disk.

bobwidget 08-11-2011 12:39 PM

Right, I'll give it a go. There's nothing mission critical to recover but it would be nice to retrieve what I've lost. I'll give it a try in the next couple of days. Thanks again for your suggestions!


All times are GMT -5. The time now is 11:20 AM.