Results 1 to 3 of 3

Thread: how to undo 'dd' command

  1. #1
    Junior Member registered user
    Join Date
    Feb 2006
    Location
    southafrica
    Posts
    21

    how to undo 'dd' command

    Hi,

    Could u please help me. I just used the 'dd' command and it mounted my usb files onto my main harddrive partition.
    Command used "dd if=/dev/sda1 of=/dev/hdc5" and this even changed my 80 gig harddrive into a 256Mb harddrive. I have been trying to undo the damage because I need the information on that harddrive. Could u please help as soon as possible.

    Thank U
    mduduzi

  2. #2
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    USA, IL
    Posts
    1,041

    Re: how to undo 'dd' command

    Err, sorry to have to break the bad news here - but you're screwed. I did the same thing a couple of years ago, and depending on HOW BAD you NEED the data on that HD partition, you should:

    a) **Immediately** shutdown and take the HD directly to a data-recovery specialist, do not pass Go, pay $$$ -- and there probably WILL BE some data loss regardless

    b) Reformat partition, Restore from backup ( YOU DO HAVE GOOD BACKUPS, RIIGHT?? )

    c) Give it up as a bad job, reformat partition, reinstall if necessary. Resolve to be more careful in future.

    Quote Originally Posted by mduduzi
    Hi,

    Could u please help me. I just used the 'dd' command and it mounted my usb files onto my main harddrive partition.
    Command used "dd if=/dev/sda1 of=/dev/hdc5" and this even changed my 80 gig harddrive into a 256Mb harddrive. I have been trying to undo the damage because I need the information on that harddrive. Could u please help as soon as possible.

    Thank U
    mduduzi

  3. #3
    Senior Member registered user
    Join Date
    Mar 2004
    Posts
    1,516
    OOOWWWWHH, that was bad, you wrote that disk with a bitcopy of the USB pan. not good, not good at all.
    sorry to say so but that partition is more or less gone if you do not like hexedit, and few weeks or so of work, or can pay $$$ for recovery, i am praying you have a great backup..

Similar Threads

  1. help with the ln command
    By Tuxgrrrl in forum General Support
    Replies: 5
    Last Post: 02-08-2007, 10:32 AM
  2. Using Man[command]
    By DigidocTN in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 05-16-2006, 07:04 AM
  3. undo swap
    By vartok in forum General Support
    Replies: 2
    Last Post: 10-22-2005, 05:44 AM
  4. How do I Undo a "chmod -R 777 on my /etc directory?
    By bob58 in forum General Support
    Replies: 1
    Last Post: 08-20-2004, 12:47 PM
  5. Which command is the right one?
    By darkwid in forum Hdd Install / Debian / Apt
    Replies: 4
    Last Post: 04-01-2004, 11:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Lenovo ThinkStation P920 2x Xeon Gold 6128 3.40GHZ 128GB DDR4 RAM No HDD TESTED picture

Lenovo ThinkStation P920 2x Xeon Gold 6128 3.40GHZ 128GB DDR4 RAM No HDD TESTED

$504.95



HP Workstation Z640 2x Xeon E5-2623V3 32GB Ram 2x256GB SSD Quadro K420 NO OS GA picture

HP Workstation Z640 2x Xeon E5-2623V3 32GB Ram 2x256GB SSD Quadro K420 NO OS GA

$154.98



Matched pair Intel Xeon E5-2667v4 SR2P5 3.20GHz, 8 core, 25MB Processors LGA2011 picture

Matched pair Intel Xeon E5-2667v4 SR2P5 3.20GHz, 8 core, 25MB Processors LGA2011

$62.95



HP Z2 Mini G3 Workstation Intel Xeon E3-1245 v6 3.70Ghz 32GB RAM No SSD No Hdd picture

HP Z2 Mini G3 Workstation Intel Xeon E3-1245 v6 3.70Ghz 32GB RAM No SSD No Hdd

$174.00



Intel Xeon E5-2680 V4 CPU 2.4~3.3GHz 14-Core 35M LGA 2011-3 R3 Server SR2N7 120W picture

Intel Xeon E5-2680 V4 CPU 2.4~3.3GHz 14-Core 35M LGA 2011-3 R3 Server SR2N7 120W

$15.99



INTEL Xeon E5-2697 V4 SR2JV 2.30GHZ 18-Core CPU 2697v4  GRADE A CONDITION    @ E picture

INTEL Xeon E5-2697 V4 SR2JV 2.30GHZ 18-Core CPU 2697v4 GRADE A CONDITION @ E

$39.00



Intel Xeon E5-2680 V3 2.50Ghz 12 Core 30MB Cache LGA 2011-3 CPU SR1XP Tested picture

Intel Xeon E5-2680 V3 2.50Ghz 12 Core 30MB Cache LGA 2011-3 CPU SR1XP Tested

$5.90



Intel Xeon Gold 6138 2.0GHz 27.5MB 20-Core 125W LGA3647 SR3B5 picture

Intel Xeon Gold 6138 2.0GHz 27.5MB 20-Core 125W LGA3647 SR3B5

$37.00



HP Z440 Workstation 18Cores Xeon E5-2699 V3 128GB 1TB SSD 2TB WIFI WIN11 R5-340X picture

HP Z440 Workstation 18Cores Xeon E5-2699 V3 128GB 1TB SSD 2TB WIFI WIN11 R5-340X

$309.99



HP Z6 G4 Workstation Xeon Silver 4116 1.5TB SSD 1TB HDD 16GB  B Win 11 Pro M4000 picture

HP Z6 G4 Workstation Xeon Silver 4116 1.5TB SSD 1TB HDD 16GB B Win 11 Pro M4000

$349.00