Results 1 to 3 of 3

Thread: how to undo 'dd' command

Hybrid View

  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
  •  


Dell OptiPlex 3060 MICRO DESKTOP PC COMPUTER I5 8TH GEN UP TO 32GB UP TO 2TB M.2 picture

Dell OptiPlex 3060 MICRO DESKTOP PC COMPUTER I5 8TH GEN UP TO 32GB UP TO 2TB M.2

$295.00



HP ProBook 440 G8 14

HP ProBook 440 G8 14" Intel i5-1135G7 2.40 GHz 8GB RAM 256GB SSD Win 11 H434

$149.99



Lenovo  LOQ Laptop, i7-13700H, GB, Up to 1TB SSD, Up To Win 11 Pro picture

Lenovo LOQ Laptop, i7-13700H, GB, Up to 1TB SSD, Up To Win 11 Pro

$613.99



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



AMD Ryzen 7 7800X3D 8-Core - 16-Thread 4.2 GHz (5.0 GHz Max Boost) Socket AM5 picture

AMD Ryzen 7 7800X3D 8-Core - 16-Thread 4.2 GHz (5.0 GHz Max Boost) Socket AM5

$318.99



Intel Core i7-9700 Coffee Lake 8-Core 3.0 GHz LGA 1151 Desktop Processor SRG13 picture

Intel Core i7-9700 Coffee Lake 8-Core 3.0 GHz LGA 1151 Desktop Processor SRG13

$114.99



Intel - Core i7-13700K 13th Gen 16 cores 8 P-cores + 8 E-cores 30M Cache, 3.4... picture

Intel - Core i7-13700K 13th Gen 16 cores 8 P-cores + 8 E-cores 30M Cache, 3.4...

$329.99



Intel - Core i9-13900K 13th Gen 24 cores 8 P-cores + 16 E-cores 36M Cache, 3 ... picture

Intel - Core i9-13900K 13th Gen 24 cores 8 P-cores + 16 E-cores 36M Cache, 3 ...

$459.99



TRANSOURCE A-PDT (QEB2019A) | INTEL CORE I7-9700 3.00GHZ | 256GB | 16GB | NO OS picture

TRANSOURCE A-PDT (QEB2019A) | INTEL CORE I7-9700 3.00GHZ | 256GB | 16GB | NO OS

$179.99



Dell Latitude Business Class Laptop Quad Core i5 8th Gen 16GB 512GB SSD Grade A picture

Dell Latitude Business Class Laptop Quad Core i5 8th Gen 16GB 512GB SSD Grade A

$239.99