LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 08-11-2011, 08:57 AM   #1
bobwidget
LQ Newbie
 
Registered: Jul 2006
Location: UK
Distribution: Ubuntu 11.04, Linux Mint 11, Fedora 15
Posts: 6

Rep: Reputation: 0
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!
 
Old 08-11-2011, 11:36 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,766
Blog Entries: 54

Rep: Reputation: 2976Reputation: 2976Reputation: 2976Reputation: 2976Reputation: 2976Reputation: 2976Reputation: 2976Reputation: 2976Reputation: 2976Reputation: 2976Reputation: 2976
Quote:
Originally Posted by bobwidget View Post
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 View Post
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.
 
Old 08-11-2011, 12:01 PM   #3
bobwidget
LQ Newbie
 
Registered: Jul 2006
Location: UK
Distribution: Ubuntu 11.04, Linux Mint 11, Fedora 15
Posts: 6

Original Poster
Rep: Reputation: 0
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?
 
Old 08-11-2011, 12:17 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,766
Blog Entries: 54

Rep: Reputation: 2976Reputation: 2976Reputation: 2976Reputation: 2976Reputation: 2976Reputation: 2976Reputation: 2976Reputation: 2976Reputation: 2976Reputation: 2976Reputation: 2976
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.
 
Old 08-11-2011, 12:39 PM   #5
bobwidget
LQ Newbie
 
Registered: Jul 2006
Location: UK
Distribution: Ubuntu 11.04, Linux Mint 11, Fedora 15
Posts: 6

Original Poster
Rep: Reputation: 0
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!
 
  


Reply

Tags
crash, ext4, files, invisible, missing


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux files invisible to windows computers linux hates me Linux - Networking 1 06-02-2009 01:49 PM
Mounted hard drive's files/folders are invisible when created jay_rod101 Linux - Newbie 6 06-16-2006 02:57 AM
Locate and invisible files pittopitto Linux - Software 2 10-24-2005 03:22 AM
invisible files and dirs karmine Slackware - Installation 8 12-26-2004 04:05 PM
files invisible gunz Linux - General 2 08-04-2003 07:28 AM


All times are GMT -5. The time now is 08:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration