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
  •  


DELL PowerEdge R630 8SFF Server 2x E5-2680v4 2.4GHz =28 Cores 128GB H730 4xRJ45 picture

DELL PowerEdge R630 8SFF Server 2x E5-2680v4 2.4GHz =28 Cores 128GB H730 4xRJ45

$346.00



Dell PowerEdge R630 Server 2x E5-2680 V4 = 28 Cores S130 32GB RAM NEW 480GB SSD picture

Dell PowerEdge R630 Server 2x E5-2680 V4 = 28 Cores S130 32GB RAM NEW 480GB SSD

$256.99



DELL PowerEdge R430 8SFF 2x E5-2680v4 2.4GHz =28 Cores 32GB H730 4xRJ45 picture

DELL PowerEdge R430 8SFF 2x E5-2680v4 2.4GHz =28 Cores 32GB H730 4xRJ45

$216.00



Dell Poweredge R730xd LFF 14-Bay 2U Server | Choose Your CPU & RAM Config picture

Dell Poweredge R730xd LFF 14-Bay 2U Server | Choose Your CPU & RAM Config

$489.99



Dell PowerEdge R630 Server 2x E5-2640v3 2.60Ghz 16-Core 64GB H330 picture

Dell PowerEdge R630 Server 2x E5-2640v3 2.60Ghz 16-Core 64GB H330

$182.65



HP ProLiant DL360 G9 Server 2x E5-2690v3 2.60Ghz 24-Core 256GB P440ar picture

HP ProLiant DL360 G9 Server 2x E5-2690v3 2.60Ghz 24-Core 256GB P440ar

$302.90



Dell PowerEdge T620 8-Bay LFF Xeon E5-2660 0 2.20GHz 48GB NO HDD S110 Server picture

Dell PowerEdge T620 8-Bay LFF Xeon E5-2660 0 2.20GHz 48GB NO HDD S110 Server

$174.99



HP ProLiant MicroServer Gen8 Server Xeon E3-1220L 8GB RAM No HDD's picture

HP ProLiant MicroServer Gen8 Server Xeon E3-1220L 8GB RAM No HDD's

$229.99



Dell Poweredge R630 2x Xeon E5-2680 v4 2.4ghz 28-Cores / 128gb / H330 / 2x 1TB picture

Dell Poweredge R630 2x Xeon E5-2680 v4 2.4ghz 28-Cores / 128gb / H330 / 2x 1TB

$324.99



HP ProLiant DL380 Gen9 16SFF 2x E5-2680v4 2.4GHz =28 Cores 64GB P840 4xRJ45 picture

HP ProLiant DL380 Gen9 16SFF 2x E5-2680v4 2.4GHz =28 Cores 64GB P840 4xRJ45

$287.00