5
1
I wanted to dd
an image from sdb
to sdc
, but because one hour before I had set up things differently, I just copied the same command:
dd if=/home/user/Downloads/ubuntu.iso of=/dev/rsdb bs=2M; sync
sda = internal hard drive
sdb = USB hard drive (booted from right now)
sdc = USB stick
There are 3 partitions on the hard drive I've booted from, I guess the other 2 are in read only mode, and the error in shell as I tried two times:
568328192 bytes (568 MB) copied, 38,5818 s, 14,7 MB/s
dd: error writing ‘/dev/rsdb’: No space left on device
715128832 bytes (715 MB) copied, 17,1752 s, 41,6 MB/s
Now I realized I overwrote 1GB over the hard drive I'm booted from (using rsdb
). I haven't turned off my computer. Will I loose all data on this drive? Can I recover anything now?
Here’s my /proc/partitions
:
8 0 156290904 sda
8 1 154218496 sda1
8 2 1 sda2
8 5 2069504 sda5
8 16 244198582 sdb
8 17 31457280 sdb1
8 18 20971520 sdb2
8 19 191768576 sdb3
8 32 2011136 sdc
8 33 2011135 sdc1
Turning off your PC won’t make any difference. – Daniel B – 2016-02-23T18:06:11.917
Given how dd works, yes I think you are right. But I added details, some partitions are in read only mode, and I can still see the data. Am I am lucky to say that only the free space was overwritten ? – user1861388 – 2016-02-23T18:11:05.960
Partitions and filesystems don’t matter to
dd
. You’re most likely seeing cached data. Seeing how you also overwrote the partition table, you don’t even know exactly where those partitions were. Also, what operating system are you using? What kind of device isrsdb
supposed to be? – Daniel B – 2016-02-23T18:13:52.603If you haven’t rebooted yet, please provide
/proc/partitions
. – Daniel B – 2016-02-23T18:17:40.137When all hard drives are installed: sda is Ubuntu one partition. sdb1 sdb2 are also two versions of Linux and sdb3 is data. sdc was the drive supposed to be the target of dd. (But one hour before it was different setup and it was correct to use the usb stick as sdb) – user1861388 – 2016-02-23T18:21:30.057
8 0 156290904 sda -- 8 1 154218496 sda1 -- 8 2 1 sda2 -- 8 5 2069504 sda5 -- 8 16 244198582 sdb -- 8 17 31457280 sdb1 -- 8 18 20971520 sdb2 -- 8 19 191768576 sdb3 -- 8 32 2011136 sdc -- 8 33 2011135 sdc1 -- – user1861388 – 2016-02-23T18:22:51.127
Update your question. Comments are not meant for actual information that requires it to be formatted – Ramhound – 2016-02-23T18:23:49.283