شاید mbr هاتون خراب شدن نمیدونم میشه درستشون کرد یا نه ؟
فکر کنم دستور debugfs بدردتون بخوره این توضیحی هستش که تواین کتاب داده
البته این اپشنش شاید بدردتون خورد
Extract a File You can extract a file from the filesystem by typing write internal-file external-file, where internal-file is the name of a file in the filesystem you’re manipulating and external-file is a filename on your main Linux system. This facility can be handy if a filesystem is badly damaged and you want to extract a critical file without mounting the filesystem.
(( خودم هیچ وقت نتونستم باهاش کار کنم نمیدونم چرا عمل نمیکرد شاید برای شما کار کرد ))
[code]Interactively Debugging a Filesystem
The debugfs program is an interactive tool for ext2, ext3, and ext4 filesystems that provides the features of many other filesystem tools rolled into one. To use the program, type its name followed by the device filename corresponding to the filesystem you want to manipulate. You’ll then see the debugfs prompt:
# debugfs /dev/hda11
debugfs:
You can type commands at this prompt to achieve specific goals:
Display Filesystem Superblock Information The show_super_stats or stats command produces superblock information, similar to what dumpe2fs displays.
Display Inode Information You can display the inode data on a file or directory by typing stat filename, where filename is the name of the file.
Undelete a File You can use debugfs to undelete a file by typing undelete inode name, where inode is the inode number of the deleted file and name is the filename you want to give to it. (You can use undel in place of undelete if you like.) This facility is of limited utility because you must know the inode number associated with the deleted file. You can obtain a list of deleted inodes by typing lsdel or list_deleted_inodes, but the list may not provide enough clues to let you zero in on the file you want to recover.
Extract a File You can extract a file from the filesystem by typing write internal-file external-file, where internal-file is the name of a file in the filesystem you’re manipulating and external-file is a filename on your main Linux system. This facility can be handy if a filesystem is badly damaged and you want to extract a critical file without mounting the filesystem.
Manipulate Files Most of the commands described in Chapter 4, “Advanced Disk Management,” work within debugfs. You can change your directory with cd, create links with ln, remove a file with rm, and so on.
Obtain Help Typing list_requests, lr, help, or ? produces a summary of available commands.
Exit Typing quit exits from the program.
This summary just scratches the surface of debugfs’s capabilities. In the hands of an expert, this program can help rescue a badly damaged filesystem or at least extract critical data from it. To learn more, consult the program’s man page
.
کتاب :
http://ubuntuone.com/p/12gb/[/code]