Quote:
Originally Posted by lincoln.runwal
i want to know that on which block no. my file is saving
|
You can find the inode of the file and the amount of blocks it occupies with say 'stat -c "%i %b" /sbin/init'.
Quote:
Originally Posted by lincoln.runwal
how can i access that block.
|
What do you mean "access"? With ext2/ext3 you could use 'debugfs' to show detailed stats and do some ops or use 'fsgrab'.
Quote:
Originally Posted by lincoln.runwal
can i recover my file if i deleted it in linux.
|
Depends on stuff like file specs (think link vs 20GB database), filesystem (journalling), time (amount of reads and writes since deletion). If you search LQ you'll find a lot of "undelete" threads about file recovery. Most of them should mention header and footer-based file carving as in photorec and foremost and Live CD's like HELIX, FIRE or KNOPPIX-STD and where it's not mentioned explicitly YMMV(VM) applies anyway...