LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   GPT EXT4 2TB drive recovery & explanation & Advice please (http://www.linuxquestions.org/questions/linux-newbie-8/gpt-ext4-2tb-drive-recovery-and-explanation-and-advice-please-4175451491/)

wikapuki 02-24-2013 07:45 AM

GPT EXT4 2TB drive recovery & explanation & Advice please
 
Debian squeeze amd64
parted -l
Quote:

Model: ATA WDC WD20EARX-00P (scsi)
Disk /dev/sdb: 2000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt

Number Start End Size File system Name Flags
1 1049kB 2000GB 2000GB ext4 primary
fsck.ext4 /dev/sdb1
Quote:

e2fsck 1.41.12 (17-May-2010)
fsck.ext4: Attempt to read block from filesystem resulted in short read while trying to open /dev/sdb1
Could this be a zero-length partition?
So the drive appears to be there and ok but no partition, when it should have one big one and about 16Gb free.

I tried gdisk but that scares me (Truth be told anythinglike this does)
gdisk /dev/sdb1
Quote:

GPT fdisk (gdisk) version 0.8.1

Partition table scan:
MBR: not present
BSD: not present
APM: not present
GPT: not present

Creating new GPT entries.

Command (? for help):
So I exited.

Does creating a new partion wipe the data from the drive? I haven't done that.

I was looking around at tools (parted Magic, RIPlinux) but unsure is any of them will fix me problem.

Was also thinking a forum for hard drives or even tutorials would be good.

Elv13 02-24-2013 05:36 PM

Hi,

If your partition table is destroyed, chances are you will have hard time getting your data back. While not impossible, you will have to specify the superblock location directly. If the data are disposable (remember, you should always have backup), then use "gparted" to create a new partition table and new partitions. This will permanently wipe out all data on the disk. My advice would be to use gparted to make your partitions. Some utilities have incomplete or buggy GPT support.

wikapuki 02-25-2013 06:37 AM

Its one of my Backup data drives (containing backups) and all my TV DVD Box set ripped tv programmes. I can't phyically put DVD's in out of drives or the containing boxes hence why I use a drive. It took EONS of time to rip them, & I'm not sure I can designate that amount of time for my carers to be stuffing DVD drives with discs when they have to be doing my needs.

So I would like to have a go at trying to recover the files with no worry about loosing stuff. Good practice for other critical occassions.

1st thing I did was google "superblock location" and this led me too two possible ways:

I ended up here: http://unix.stackexchange.com/questi...t4-superblocks

and then this site: https://help.ubuntu.com/community/DataRecovery though it all seems to be for non ext4 problems.

Basically I'm getting the message your screwed with ext4??? (which must be me reading it wrong as why would the distro choose ext4 and gpart?) so I'm just going to through that thought away.

1) try to manually restore the superblocks.
2) use The sleuth kit and use "kfairbanks / sleuthkit" which is for ext4.



1) This is very confusing becuase if the super blocks are lost how come software can find the supper blocks?

2)
So Im going to buy a new Bigger than 2TB drive to image the 2TB drive too. This seems to be the common thing to do and then format the 2TB so I can save the recovered files from the 2TB image onto it.

I'm ordering a new drive, so say stop dont do that if there is an easier way?

Also is there a more up-to-date ext4 for recover super blocks guide anywhere?


All times are GMT -5. The time now is 12:43 AM.