LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 02-24-2013, 07:45 AM   #1
wikapuki
Member
 
Registered: Jun 2009
Distribution: Debian
Posts: 80

Rep: Reputation: 15
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.
 
Old 02-24-2013, 05:36 PM   #2
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 128Reputation: 128
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.
 
1 members found this post helpful.
Old 02-25-2013, 06:37 AM   #3
wikapuki
Member
 
Registered: Jun 2009
Distribution: Debian
Posts: 80

Original Poster
Rep: Reputation: 15
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?
 
  


Reply

Tags
ext4, fsck, parted


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
Sackware64 -current & EXT4 & SSD mlpa Slackware 15 09-12-2010 02:20 PM
Drive image for backup & recovery exactiv Linux - Software 1 07-22-2009 11:11 AM
Raid 5, >2TB, GPT, Grub, booting, mounting root dtdionne Linux - Software 6 12-18-2007 05:37 AM
Phục hồi dữ liệu bị mất???, cứ pollsite General 1 06-27-2005 12:39 PM
2>/dev/null && {...} need explanation G-Fox Linux - Networking 2 08-16-2003 12:31 PM


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

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