LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-10-2009, 03:58 PM   #1
eddygrinder
Member
 
Registered: Dec 2007
Location: portugal
Distribution: The one and only... Slack
Posts: 71

Rep: Reputation: 15
hard drive messed up with dd


Hail to you all!

I bought a new hard drive (1Tb) and want to create a partition (on my old one) for W***s (Only for gaming...)

So i did: dd if=/dev/sda2 (old one) of=/dev/sdb1 (new one) bs=100M, to backup my /home partition.

In my new drive i had some movies, music, etc....

Now i have my 1Tb hard drive with 90Gb and no movies (Ok, you can call me a big dumb As* pt.2)

Is there any way to recover my movies and music?
I thought that dd copied the 90Gb into 1Tb and not replace it. So when i do df -hT not only i have 1 Tb drive with 90Gb but it converted the ext3 to reiserfs! (You can call me dumb As* pt.2)

Thx a lot
EddY
 
Old 03-10-2009, 04:08 PM   #2
jannekrille
Member
 
Registered: Jul 2005
Location: Dalsland, Sweden
Distribution: Slackware 13.0 and 13.1
Posts: 75

Rep: Reputation: 22
I have been able to rescue a whole lot of data, pictures and files with photoRec which is a part of the testDisk suite.

http://www.cgsecurity.org/wiki/TestDisk_Download

You can find it on several handy livedisks.

Last edited by jannekrille; 03-10-2009 at 04:09 PM. Reason: typo
 
Old 03-10-2009, 04:12 PM   #3
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
I agree, and do save the recovered data to somewhere else other than the drive you're recovering from. You may also want to try foremost if testdisk fails to do the job.
 
Old 03-10-2009, 04:24 PM   #4
eddygrinder
Member
 
Registered: Dec 2007
Location: portugal
Distribution: The one and only... Slack
Posts: 71

Original Poster
Rep: Reputation: 15
Thx!

I'm now running testdisk...

See Ya
EddY
 
Old 03-10-2009, 04:31 PM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,
Quote:
Originally Posted by eddygrinder View Post
Thx!

I'm now running testdisk...

See Ya
EddY
I hope you did a backup.

You can recover the original drive if the secondary partition table is still valid.

You could look at other tools within 'Tools, Recovery, Diagnostic, Emergency' section of 'Slackware-Links'. More than just SlackwareŽ links!
 
Old 03-10-2009, 04:38 PM   #6
eddygrinder
Member
 
Registered: Dec 2007
Location: portugal
Distribution: The one and only... Slack
Posts: 71

Original Poster
Rep: Reputation: 15
Yes...
i did a copy of my home partition but i didn't erase it
 
Old 03-10-2009, 04:45 PM   #7
eddygrinder
Member
 
Registered: Dec 2007
Location: portugal
Distribution: The one and only... Slack
Posts: 71

Original Poster
Rep: Reputation: 15
So... testdisk is finished. Do i make a deeper search or write the partition?
 
Old 03-10-2009, 05:00 PM   #8
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Did you recover all that you wanted ? If not, try foremost, in some cases it recovers more than testdisk.
 
Old 03-10-2009, 06:51 PM   #9
eddygrinder
Member
 
Registered: Dec 2007
Location: portugal
Distribution: The one and only... Slack
Posts: 71

Original Poster
Rep: Reputation: 15
I am now doing a exhaustive test... but...
I think i'm gonna give up... i can get the movies again!

Thx for your patience
See ya
EddY

Nothing, i reformatted the partition!
Thx!

Last edited by eddygrinder; 03-10-2009 at 07:26 PM.
 
  


Reply



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
Moving files from a Linux hard drive to a Windows Vista Premium hard drive WolfMan51 Linux - Hardware 5 07-12-2011 09:19 AM
Ubuntu: Installed to external hard drive; boot to primary hard drive gives error 22 dcorb62 Linux - General 7 09-04-2007 11:28 PM
New install on new hard drive messed up old install of old hard drive. AbsoluteMonkey Linux - General 26 01-10-2007 12:21 PM
Hard drive has been messed up by partitioning Battle Bott Linux - Newbie 3 12-14-2006 09:47 PM
Hard Drive Messed Up!! ricky333 Linux - Hardware 5 08-12-2005 10:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:56 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
Open Source Consulting | Domain Registration