Mounting raw disk
I accidentally did a quick format of the wrong disk when installing recently so have a disk that contains a lot of files I want but which is missing its partition table. Unfortunately testdisk hasn't been able to find it so I'm looking at carving out files using photorec. There was only one partition on it, an EXT4 but none of he mount commands I'm trying are working.
sudo mount -o loop, offset34, ro, /dev/sdc /media/Dodgy What am I doing wrong here? |
If you accidentally formatted the wrong disk, you're probably SOL unless you have some special recovery software and only then it's only at best 50/50 if you get it back.
|
Foremost just needs the device file. I think it will recover files from an unmounted drive. But it only recovers certain types of files unless you tell it otherwise.
And, even if you reformatted the drive, it should still mount. |
Quote:
If it were me, I'd take an image then create a single partition to cover the entire disk and run "mkfs.ext4 -S ..." Note that is a capital S. Read the warnings in the manpage - all of them. I have used this to recover an ext4 f/s I deliberate reformatted as NTFS. This was a small test filesystem I had constructed specifically for this test - only a few files and no fragmentation. The recovery worked fine. caveat emptor. |
Try testdisk on it and see what it might recover.
|
???? - see first post.
|
All times are GMT -5. The time now is 10:35 AM. |