That
should give him a "Permission Denied" (and this is his first post to LQ)
But it's a very good idea to take an image before you start playing with recovery tools (because your pendrive is un-written to, and therefore untouched by "recovery" tools )
A better way to do it might be:
Code:
dd if=/dev/sda1 of=~/pendrive.img # copy the data over, bit-by-bit , so you have an image
mkdir ~/pendisk # create a mountpoint for the image at /home/omraj/pendisk
mount -o loop -t ext3 ~/pendrive.img ~/pendisk # mount the image
*
ext3 will have to be changed if your pendrive's filesystem isn't
ext3 ( most are FAT32 or type
vfat - see
man mount )
Now the image is mounted at
~/pendisk just as if it was a real disk. Run your recovery tools on that. If you mess up, you can always re-image your pendrive (
dd if=/dev/sda1 of=~/pendrive.img ) and start again.
Welcome to LQ!