[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Oops - copied iso image to wrong device



On Sun 13 Oct 2013 at 21:49:40 +0100, Jonathan Dowland wrote:

> On Sun, Oct 13, 2013 at 11:00:50AM +0100, Brian wrote:
> > The data on the drive are gone. Do
> > 
> >    dd if=/dev/zero of=/dev/sdb count=10000
> > 
> > to remove all traces of the iso you put on it and start from scratch.
> 
> …why? As things currently stand, the user could possibly reconstruct
> the partition table and recover most of their data, or, use forensic
> recovery tools that don't rely on the FS being intact to identify and
> recover bits past the ISO-length offset into the drive.
> 
> If they do as you suggest, they rule out any of the above recovery
> options. What do they gain?

Time to enjoy the finer things in life? The OP would have to weigh up
the benefits of possibly being able to recover data etc as against
definitely being able to restore from a backup.

> If they are to write off the drive, they could plop a new partition
> table on top of things as they stand, mkfs on the partitions, and start
> over, without  having to wait for the dd to complete.

The dd command was recommended on the off-chance GRUB might be put on 
the drive now or in the future; it will refuse to install.


Reply to: