S Chan wrote:Hi all, I wonder if it is possible for Java to access Hard disk clusters?
Let's say I want to write a file rescue program with Java. Normal deleting operation by OS is to just remove the pointer of the file, so the file is "lost" in the large sea of hard disk clusters. The actual file still exists in the hard disk if it is not overwritten or corrupted later on. If I want to write an application in Java so that the application can scan the hard disk clusters to find the deleted file back, how can I do that?
Similarly, if I want to write the application so that it hard deletes a deleted file, i.e. overwriting data over the deleted file at the exact hard disk clusters, is that possible?
Also another example, when Java creates a large file on the hard disk, can I make sure the file is written on continuous clusters on the hard disk (if space available)?