On Fri, 2013-08-16 at 10:30 +0200, Jochen Spieker wrote: > Ethan Rosenberg, PhD: > > > > I have a usb drive, with data on it, that I [stupidly!!] tried to > > name using fdisk. Of course, it erased the data. I have not used > > the drive since then. I think there is a method to "unformat" a > > drive. What shall I do now? > > Generally, it should be possible to access the filesystem if you restore > the previous partitioning scheme. I don't think putting a label on a > partition should have destroyed existing partitions, but anyway. > > If you cannot restore the old partition layout for some reason, you can > install testdisk and use the program "photorec". It can restore almost > anything, unless you write to the disk. Caveat: photorec will not > restore the directory layout. You will have one directory with > everything in it.
Before you do anything like making a backup with dd and/or use photorec or any other recovery tool of that kind, mount the USB stick read only. Until you haven't restore your data, mount it only read and write, when needed. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/1376660981.690.30.camel@archlinux