LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-11-2016, 06:50 PM   #121
zillur
Member
 
Registered: Apr 2015
Posts: 179

Original Poster
Rep: Reputation: Disabled

Thank you very much. Apparently I don't have file in this folder that contains the string "/dev/sda".

Code:
[root@bioworkstation archive]# find -type f | xargs grep -l "/dev/sdb2"
./centos_00041-1599850704.vg
./centos_00000-2104135608.vg
./centos_00045-491443017.vg
./centos_00044-188562476.vg
./centos_00004-1631854341.vg
./centos_00005-42234307.vg
./centos_00048-1034920566.vg
./centos_00049-1606676836.vg
./centos_00008-1049104796.vg
./centos_00056-1166212850.vg
./centos_00009-621532139.vg
./centos_00057-292786513.vg
./centos_00012-533124639.vg
./centos_00013-749774833.vg
./centos_00060-2040195770.vg
./centos_00061-466145557.vg
./centos_00016-1946361307.vg
./centos_00017-990965195.vg
./centos_00064-1991740132.vg
./centos_00020-936287849.vg
./centos_00021-173758742.vg
./centos_00024-1104120888.vg
./centos_00025-1364061328.vg
./centos_00028-730527686.vg
./centos_00029-2078078171.vg
./centos_00032-324594338.vg
./centos_00033-630763344.vg
./centos_00036-1251450669.vg
./centos_00037-1435913710.vg
./centos_00040-806321248.vg
./centos_00052-1094636157.vg
./centos_00053-1328933811.vg
[root@bioworkstation archive]# find -type f | xargs grep -l "/dev/sda2"
[root@bioworkstation archive]# find -type f | xargs grep -l "/dev/sda3"
[root@bioworkstation archive]# find -type f | xargs grep -l "/dev/sda1"
[root@bioworkstation archive]# find -type f | xargs grep -l "/dev/sda"
[root@bioworkstation archive]# find -type f | xargs grep -l "/dev/sdc2"
./centos_00042-89672931.vg
./centos_00002-918150670.vg
./centos_00046-896094875.vg
./centos_00006-921765673.vg
./centos_00010-1659183757.vg
./centos_00058-942456102.vg
./centos_00014-1956355869.vg
./centos_00062-1024369931.vg
./centos_00063-1887333586.vg
./centos_00018-1152685768.vg
./centos_00022-526894443.vg
./centos_00026-1731646661.vg
./centos_00030-1696950664.vg
./centos_00034-262850408.vg
./centos_00038-1850928948.vg
./centos_00050-1019182063.vg
./centos_00054-391000384.vg
[root@bioworkstation archive]# pwd
/etc/lvm/archive
[root@bioworkstation archive]#
Thanks again.

Best Regards
Zillur
 
Old 08-11-2016, 07:07 PM   #122
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,963

Rep: Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530
Since you reinstalled the operating system any file if it existed on the /dev/sda LVM would of been lost.
 
1 members found this post helpful.
Old 08-11-2016, 07:18 PM   #123
zillur
Member
 
Registered: Apr 2015
Posts: 179

Original Poster
Rep: Reputation: Disabled
Thank you very much for your reply. But using TestDisk (Photorec) I recovered more than 10TB data. The problem with test disk is that, it renamed the files and folders. Is there any way to retrieve them in original name?

Best Regards
Zillur
 
Old 08-11-2016, 08:34 PM   #124
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,604

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
Quote:
Originally Posted by zillur View Post
Thank you very much for your reply. But using TestDisk (Photorec) I recovered more than 10TB data. The problem with test disk is that, it renamed the files and folders. Is there any way to retrieve them in original name?

Best Regards
Zillur
Same answer as before.

No.

the file names were in the information that was lost.
 
Old 08-11-2016, 09:34 PM   #125
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 2,967

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Quote:
Originally Posted by zillur View Post
Thank you very much for your reply. But using TestDisk (Photorec) I recovered more than 10TB data. The problem with test disk is that, it renamed the files and folders. Is there any way to retrieve them in original name?

Best Regards
Zillur
There are two entirely different programs, photorec and testdisk. Both are included on the testdisk CD. photorec is filesystem agnostic. It just recovers blocks of data that look like recognizable files, and it has no knowledge of the directory structure or file names. testdisk does recognize filesystems, and is able to recover directories and files, complete with names, even from some pretty badly damaged filesystems. I suggest that you give the testdisk program a try. (You will probably hate the UI, but testdisk does its job well enough that I recommend it despite the clunky UI.)

Run "testdisk /dev/sda3". Select the partition table type as "None". Let it scan and see what it can find. If it can identify a filesystem, I believe it's "Advanced filesystem utils" that allows you to copy files.

Last edited by rknichols; 08-11-2016 at 09:40 PM.
 
1 members found this post helpful.
Old 08-12-2016, 02:26 PM   #126
zillur
Member
 
Registered: Apr 2015
Posts: 179

Original Poster
Rep: Reputation: Disabled
Thank you very much. Using testdisk, I created an image in '/mordor/old_data'. Now, what I need to do?
Code:
[zillur@bioworkstation old_data]$ ls -sh
total 11T
11T image.dd
[zillur@bioworkstation old_data]$ pwd
/mordor/old_data
Best Regards
Zillur
 
Old 08-12-2016, 05:32 PM   #127
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 2,967

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Without looking over your shoulder and seeing exactly what steps you did, it's hard to say. Presumably, you ran testdisk, proceeded into "[Advanced] Filesystem Utils", and ran "Image Creation". Did you try anything else first? Before "Advanced", did you try "Analyze"? If so, what was the result? Before you ran "Image Creation", what information about the disk was displayed? Did it include any partition information?

If you didn't try any of those other steps, run testdisk again, but on the image.dd file this time. Again select "None" as the partition table type, and then run "Analyze" and report the result.
 
1 members found this post helpful.
Old 08-12-2016, 05:48 PM   #128
zillur
Member
 
Registered: Apr 2015
Posts: 179

Original Poster
Rep: Reputation: Disabled
Thank you very much. I think I exactly have done this. Now its running. (attachment). Do you think its gonna be ok.

Best Regards
Zillur
Attached Thumbnails
Click image for larger version

Name:	13987757_10209730208396603_164402314_o.png.jpeg
Views:	3
Size:	50.9 KB
ID:	22712  
 
Old 08-12-2016, 06:18 PM   #129
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 2,967

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
I'm not at all optimistic. All it's showing is some fairly unlikely filesystem types at very unlikely starting locations. Also, something doesn't look right about that image. It's an 11TB image that claims to contain a 14.6TB LVM volume. What does "/bin/ls -ls image.dd" show? Do include the "/bin" so that I can see a result uncontaminated by whatever alias might exist for "ls".
 
Old 08-12-2016, 06:26 PM   #130
zillur
Member
 
Registered: Apr 2015
Posts: 179

Original Poster
Rep: Reputation: Disabled
Thank you very much. Here it is:
Code:
[root@bioworkstation old_data]# ls -la
total 11661723080
drwxr-xr-x. 2 root root             21 Aug 11 21:59 .
drwxr-xr-x. 4 root root             34 Aug 10 19:33 ..
-rw-r--r--. 1 root root 11941605019648 Aug 12 09:34 image.dd
[root@bioworkstation old_data]# /bin/ls -ls image.dd 
11661723080 -rw-r--r--. 1 root root 11941605019648 Aug 12 09:34 image.dd
[root@bioworkstation old_data]#
 
Old 08-12-2016, 07:27 PM   #131
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 2,967

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Quote:
Originally Posted by zillur View Post
[root@bioworkstation old_data]# /bin/ls -ls image.dd
11661723080 -rw-r--r--. 1 root root 11941605019648 Aug 12 09:34 image.dd[/CODE]
That can't possibly be the full image of a 14.6TB partition. You just ran out of space when trying to create the image.

I'm still trying to wrap my head around what might have happened to sda. Presumably the data that you are trying to recover was placed there prior to July 31, but that is the date that the currently empty PV was created. Did you repartition that disk when you reinstalled the OS? That means that the current partitioning is meaningless. You will need to run testdisk on the entire disk (sda) and see what it can find. It should be safe enough to run testdisk directly on /dev/sda. It won't write anything to that disk unless you tell it to write out a new partition table. Let's see what it can find, first.

Run "testdisk /dev/sda", select "None" as the partition table type, and see what "Analyze" can find.
 
1 members found this post helpful.
Old 08-12-2016, 07:39 PM   #132
zillur
Member
 
Registered: Apr 2015
Posts: 179

Original Poster
Rep: Reputation: Disabled
Thank you very much. Its like:
Code:
TestDisk 7.0, Data Recovery Utility, April 2015                                                                                                                                    
Christophe GRENIER <grenier@cgsecurity.org>                                                                                                                                        
http://www.cgsecurity.org                                                                                                                                                          
                                                                                                                                                                                   
                                                                                                                                                                                   
Disk /dev/sda - 16 TB / 14 TiB - LSI MR9361-8i                                                                                                                                     
                                                                                                                                                                                   
Please select the partition table type, press Enter when done.                                                                                                                     
 [Intel  ] Intel/PC partition                                                                                                                                                      
>[EFI GPT] EFI GPT partition map (Mac i386, some x86_64...)                                                                                                                        
 [Humax  ] Humax partition table                                                                                                                                                   
 [Mac    ] Apple partition map                                                                                                                                                     
 [None   ] Non partitioned media                                                                                                                                                   
 [Sun    ] Sun Solaris partition                                                                                                                                                   
 [XBox   ] XBox partition                                                                                                                                                          
 [Return ] Return to disk selection                                                                                                                                                
                                                                                                                                                                                   
                                                                                                                                                                                   
                                                                                                                                                                                   
Hint: EFI GPT partition table type has been detected.                                                                                                                              
Note: Do NOT select 'None' for media with only a single partition. It's very                                                                                                       
rare for a disk to be 'Non-partitioned'.
Still I need to select none???

Best Regards
Zillur
 
Old 08-12-2016, 08:06 PM   #133
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 2,967

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Quote:
Originally Posted by zillur View Post
Still I need to select none???
I would. At this point you aren't trying to write out a new partition table, just look at the raw disk and try to find any region that looks like a filesystem.
 
1 members found this post helpful.
Old 08-13-2016, 01:03 PM   #134
zillur
Member
 
Registered: Apr 2015
Posts: 179

Original Poster
Rep: Reputation: Disabled
Thank you very much. Here what 'Analyse' found:
Code:
TestDisk 7.0, Data Recovery Utility, April 2015
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org

Disk /dev/sda - 16 TB / 14 TiB - CHS 1945332 255 63
     Partition               Start        End    Size in sectors
>P XFS 4                    0  65  2    63 253 62    1024000
 P Linux LVM2              63 253 63 1945331 230 51 31250728960

Structure: Ok.

Keys T: change type,
     Enter: to continue
XFS 6.2+ - bitmap version blocksize=4096, 524 MB / 500 MiB
And:
Code:
Disk /dev/sda - 16 TB / 14 TiB - CHS 1945332 255 63
     Partition               Start        End    Size in sectors
 P XFS 4                    0  65  2    63 253 62    1024000
>P Linux LVM2              63 253 63 1945331 230 51 31250728960

Structure: Ok.


Keys T: change type,
     Enter: to continue
LVM2, 16 TB / 14 TiB
Should I select Linux LVM2 and proceed?
If I do this:

Quote:
Disk /dev/sda - 16 TB / 14 TiB - CHS 1945332 255 63

Partition Start End Size in sectors

P XFS 4 0 65 2 63 253 62 1024000
P Linux LVM2 63 253 63 1945331 230 51 31250728960

Write isn't available because the partition table type "None" has been selected.
A deeper search?

Best regards
Zillur

Last edited by zillur; 08-13-2016 at 01:09 PM.
 
Old 08-13-2016, 01:53 PM   #135
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 2,967

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Quote:
Originally Posted by zillur View Post
A deeper search?
Yes, do the deeper search. testdisk did not look inside the region that it found as an LVM volume.
 
1 members found this post helpful.
  


Reply


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
Failing to boot up due to failing to acces the GRUB spenot09 Linux - Software 7 10-19-2015 11:56 AM
Jessie boot cd failing to boot on a Poweredge R905 Jasambo Debian 5 06-15-2015 05:38 PM
Boot Problem in Grub (Chainloader failing? /boot messed up?) gjemmott Linux - Desktop 2 03-15-2010 11:26 AM
eth1 failing on boot, IEEE firewire card driver failing, help jackuss_169 Linux - Laptop and Netbook 5 03-05-2005 08:34 AM
LILO install failing, Boot failing, but Installation fine. sramelyk Slackware 9 08-23-2003 03:37 PM


All times are GMT -5. The time now is 04:51 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration