LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 07-21-2011, 09:02 PM   #1
Xombie216
LQ Newbie
 
Registered: Jul 2011
Posts: 4

Rep: Reputation: Disabled
Thumbs down messed up hard drive with dd command


I wrote a part of a bootable image to the hard drive with the dd command and now i can't finish installing a linux without getting a grub fatal error...how can i restore my hard drive?
 
Old 07-21-2011, 09:11 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
We need a lot more information here. To start with, why did you only write part of the bootable image to the drive? What happened that you had to stop before the image was fully written? Is there a reason you can't simply redo the operation to competition?

What is the image of? Did you accidentally write it to the wrong part of the drive?
 
Old 07-21-2011, 09:13 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
You probably cannot restore it, based on how you describe the problem. It's more likely that you will need to reformat it.

Try booting the computer to a Live CD such as Knoppix and seeing whether you can mount the partitions on your hard drive and take a look at them. This should give you a idea of the extent of the damage and also allow you to make copies of any crucial data files that are still readable.

Knoppix is not specifically designed for data recovery, though it can be used for that.

Here is a list of data recovery tools that I found.
 
Old 07-21-2011, 09:45 PM   #4
Xombie216
LQ Newbie
 
Registered: Jul 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
reformatting the drive

I've tried to reinstall and completely clear out the drive with new partitions but it wont let me finish installing...gives me a fatal grub error...when i boot from a live kubuntu usb i can see it like created an embedded mandriva iso partition that doesn't show up in the installer when it gets to the drive specs...kno of any app that would let me locate that partition and delete that partition?
 
Old 07-21-2011, 09:48 PM   #5
Xombie216
LQ Newbie
 
Registered: Jul 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
to ms3

I initially didn't see ur post...i was trying to write a bootable mandriva iso to a flash drive and accidently wrote it to the hard drive...while writing it started shutting down the pc and i powered it off...hence the partially written...and my other reply should give u some more info as to my prob
 
Old 07-22-2011, 07:38 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
If Grub is installed to the MBR, you may have to format the MBR and reinstall Grub.

This article explains how to do that with the dd command. I know it works, I've done it.

http://linuxgazette.net/issue63/okopnik.html

Proofread the command carefully before pushing enter. Once it's done, it cannot be undone.
 
Old 07-28-2011, 11:26 AM   #7
Xombie216
LQ Newbie
 
Registered: Jul 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
Lightbulb how i fixed it

I'm sorry...i forgot to close the thread...anyway...i did manage to fix it...first i unmounted the embedded mandriva partition...deleted the partitions...formated the partition ntfs...made a txt file on it...then it let me install kubuntu...i think mandriva was linked to the ext4 partition in the mbr and by formatting it ntfs it couldn't itself or something...i really don't know but that worked...
 
  


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
Hard drive got messed up by fedora installer crash! the_mulletator Linux - Hardware 3 06-05-2009 11:25 PM
Moved OS to new hard drive, now partition info is all messed up. xmrkite Linux - Hardware 4 04-19-2009 10:12 AM
hard drive messed up with dd eddygrinder Slackware 8 03-10-2009 06:51 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 - Newbie

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