Probably too late to do anything now but perhaps for future reference this would be useful.
I made the horrible mistake of making a bash script which batch deletes some files, and accidentally put the the wrong directory name in. 3 days of simulation time wasted, and on monday I have to hand in a report with my result. Should just about be able to get the work done on time.
But, what is the best way to recover files? I only have a single HD so unmounting the drive would be a pain.
The files were text files, containing 100 lines of text which conisted of more or less random real valued numbers (0.264,32.8972,.etc)
Thus I do not know the starting string, just the size, old location and filename.
Grep'ing the filesystem proved to be unproductive.
I found this script which can provide partion info:
I made the horrible mistake of making a bash script which batch deletes some files, and accidentally put the the wrong directory name in. 3 days of simulation time wasted, and on monday I have to hand in a report with my result. Should just about be able to get the work done on time.
But, what is the best way to recover files? I only have a single HD so unmounting the drive would be a pain.
The files were text files, containing 100 lines of text which conisted of more or less random real valued numbers (0.264,32.8972,.etc)
Thus I do not know the starting string, just the size, old location and filename.
Grep'ing the filesystem proved to be unproductive.
I found this script which can provide partion info:
Code:
echo "DEVICE DIRECTORY FS-TYPE" > tmp; mount | cut -d" " -f1,3,5 | sort >> tmp; cat tmp | column -t | sed -e "1s/.*/`tput smso`&`tput rmso`/"