הפקודה del בדוס מוחקת לצמיתות או רק משנה התו הראשון? - לינוקס, Mac ומערכות הפעלה אחרות - HWzone פורומים
עבור לתוכן
  • צור חשבון

הפקודה del בדוס מוחקת לצמיתות או רק משנה התו הראשון?


Recommended Posts

את התו הראשון של מה ?

בכל מקרה הוא לא מוחק לצמיתות, כי ניתן לשחזר אותו (אם לא נכתב מידע על הדיסק). אבל זה פעולה לא טריויאלית.

אם אני מוחק קובץ בעזרת del אז למשל הקובץ mouse.com יהפוך ל - ouse.com_

אני צריך להוכיח את זה , אתר או בצורה פרקטית , איך אפשר?

קישור לתוכן
שתף באתרים אחרים

אוקי, הנה תשובה:

http://students.cs.byu.edu/~cs345ta/labs/winter04_specs/lab_fat_help.htm#Organization%20of%20the%20file%20allocation%20tables%20(FAT)

חפש שם Q&A: How DOS deletes files/directories

As you may know, DOS does not immediately erase a file or directory when it is deleted. In fact, it does to the clusters that contain the information (this is why it is sometimes possible to un-delete something). However, DOS does zero out the file/directory's cluster chain from the FAT table (see Organization of the file allocation tables (FAT)), and places a special character (0xe5) in the first byte of the directory entry (see Directory structures and their fields), signaling that this entry has been deleted. You will need to do the same when a file or directory is deleted. Start with the cluster indicated in the directory entry, traverse the cluster chain, and set each FAT entry to zero including the EOC entry.

The special code 0xe5 (as a character, this is a lower-case a with a circle above it) located in the first byte of a directory entry, indicates that this directory entry is free, and may be overwritten with a new entry in the future. Place this value in the first byte of the directory entry to effectively delete it (it will be the first character of the file/directory name field). When reading directory entries, ignore all entries that begin with 0xe5 (see Formatting and printing directory entries).

בפועל מה שקורה, הוא מסמן את הקובץ ע"י החלפת האות הראשונה כניתן למחיקה, וגם מוחק את הנתונים שלו מה FAT (ככה שאם אתה כותב על הכונן, זה יכול לעשות OVERRIDE לנתונים שלו).

קישור לתוכן
שתף באתרים אחרים

בימי ה-dos הטהור היה פקודת undelete שפשוט היתה מראה לך את כל הקבצים שנמחקו ועדיין לא נדרסו וכמובן איפשרה לך לשחזר אותם.

היום בדוס של וינדוס פקודת del מבצעת את המחיקה שוינדוס עושה וכבר לא קיים כל העסק הזה של שינוי השם וסימונו כפנוי. בנוסף אם תעשה היום undelete זה פשוט יגיד לך שזה לא נתמך יותר.

קישור לתוכן
שתף באתרים אחרים

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

×
  • צור חדש...