Vesselin Peev
Registered
Hello,
I'm helping friends recover a deleted manuscript on their Mac running Panther. We tried a couple of recovery utilities with no success, but I would also like to try using grep on the drive. The problem is that the command, run in "Terminal"
sudo grep "some text from the deleted file" <mount point>
where mount point is the mount point of the partition the deleted file is in, gives:
"Permission denied"
As you can see, I run the command as root.
I try to execute grep in its simplest form, once that succeeds (hopefully), I'll try with different options.
Listing the directory structure through the same mount point, i.e.
ls <mount point>
works, i.e. gives a listing of various files
If so, what could be the reason for the "Permission denied"? By the way, the mount point directory does not contain spaces, it's /Volumes/My_disk
Because grepping the filesystem has failed, I've tried grep on the raw disk drive, e.g. instead of the mount point I supply /dev/rdisk0 as a parameter to grep (which I run again as a root through sudo), but then I get
"Bad address"
I've read about this particular error that it can be caused when the disk is not present (but this is an internal disk, so that can't be, unless the disk is damaged, but the disk drive seems fine); if the drive does not support the operation -- but running grep just does simple reads on the drive, so that shouldn't be, either; or if there are driver problems (but other recovery programs seem to do reads on the drive just fine).
Thank you in advance for your consideration and help.
I'm helping friends recover a deleted manuscript on their Mac running Panther. We tried a couple of recovery utilities with no success, but I would also like to try using grep on the drive. The problem is that the command, run in "Terminal"
sudo grep "some text from the deleted file" <mount point>
where mount point is the mount point of the partition the deleted file is in, gives:
"Permission denied"
As you can see, I run the command as root.
I try to execute grep in its simplest form, once that succeeds (hopefully), I'll try with different options.
Listing the directory structure through the same mount point, i.e.
ls <mount point>
works, i.e. gives a listing of various files
If so, what could be the reason for the "Permission denied"? By the way, the mount point directory does not contain spaces, it's /Volumes/My_disk
Because grepping the filesystem has failed, I've tried grep on the raw disk drive, e.g. instead of the mount point I supply /dev/rdisk0 as a parameter to grep (which I run again as a root through sudo), but then I get
"Bad address"
I've read about this particular error that it can be caused when the disk is not present (but this is an internal disk, so that can't be, unless the disk is damaged, but the disk drive seems fine); if the drive does not support the operation -- but running grep just does simple reads on the drive, so that shouldn't be, either; or if there are driver problems (but other recovery programs seem to do reads on the drive just fine).
Thank you in advance for your consideration and help.