為什麼linux系統有時可以恢復windows無法恢復的資料?

今天的問答環節是由SuperUser提供的,SuperUser是Stack Exchange的一個分支,是一個由社群驅動的問答網站分組。...

為什麼linux系統有時可以恢復windows無法恢復的資料? Why is it that you can use a Linux-based computer or Linux Live CD to recover data Windows could not?

今天的問答環節是由SuperUser提供的,SuperUser是Stack Exchange的一個分支,是一個由社群驅動的問答網站分組。

問題

超級使用者讀者Philip Allgaier想知道為什麼他能夠用Linux Live CD恢復資料,而該CD在Windows中被報告為不可恢復:

Background: Earlier this year I had a problem with a SSD drive that Windows would recognize anymore. But eventually a bootable Parted Magic 2012-10-10 did the trick. See this solved thread. One question stuck with me from that moment…

Question: I am aware that Linux is generally a bit more technical and raw, but can someone roughly outline why a Linux system (or in fact only that particular one, since Ubuntu did not do the trick) is capable of still accessing/communicating with a half-corrupted device when Windows isn’t?

  • 他們是否忽略了任何可能出現問題的潛在指標?
  • 有什麼具體的原因嗎?
  • 這種特殊的環境能夠讓SSD在有限的時間內做出響應,這只是運氣嗎?

當然,這可能是運氣使然,但可能有更多的因素在起作用。讓我們調查一下。

答案

超級使用者貢獻者Eike為他儲存資料的能力提供了一些可能的解釋,不僅僅是運氣:

Usually this comes down to what, exactly, is being accessed and how, exactly, the device is failing. For instance, if the SSD in question is unable to retrieve, say, sector 5 and will start stalling as soon as anything reads sector 5, the difference may simply be due to what different systems automatically access once they recognize a new disk.

When Windows detects a new disk, it will read the partition table and automatically attempt to open any filesystems it knows how to read. If any of the structures/blocks being read during this “mounting”-process trigger your faulty SSD to go bye-bye, the difference with that specific linux distribution is simply that it may not automatically mount all the partiti*** in question, or may, when mounting, simply read a different subset of sectors (the implementation of NTFS in Linux is very different from the one in Windows — while the on-disk format is the same, it is up to the OS which structures it deems necessary to read. Windows may read secondary copies of the MFT, or it may start precaching some data and that could be the difference. Ubuntu is in a similar boat — it is not geared towards recovery out of the box, it will attempt to mount any filesystem it finds on newly discovered media, automatically. It is for this reason that specialized distributi*** geared towards recovery are a better bet, as they only do what you explicitly ask them to as opposed to doing things automatically.

Of course, you may simply have gotten lucky, too. I don’t know enough about the failure mode of the SSD to say.

Linux generally does not ignore indicators that something is wrong. It will receive the same SCSI errors from the SATA chipset as Windows will — if you look at the kernel log, on a faulty disk you will see lots of error messages. It depends on what programs are actuallly accessing the disk what will happen next. If it’s software geared towards recovery, it may try to reread the same sector a limited number of times, it may skip it, etc. Usually the best bet is to get an image of the drive with as many sectors read cleanly as possible, and then try to recover your data from that image (doing any ****ysis directly on the drive is a bad idea usually since its condition may worsen and just because you were able to read something once, that does not mean you will be able to read it again.)

另一位撰稿人Athonfere則提供了另一種觀點:

A lot of it is the way the environment handles the file system, and the ACLs or the hard drive.

Windows is going to do everything it can on its own to obey its ACLs, and sectors marked as bad or empty. So NTFS or Fat partiti*** created and maintained in Windows as well as Windows MBRs will be handled by Windows as Windows marked it.

Also, if the drive is failing the more you use it the more likely it is to encounter a major problem and the environment will crash. Then how the OS handles that comes into play, Windows will BSOD or reboot, the windows boot process will throw MBR messages, missing file messages (NTDLR.dll is missing or corrupt) and stop, because these bad files are required.

When you use a live disk, you are not relying on any of this. A bad MBR is bypassed because you boot off of the disk. A bad sector that corrupted the NTDLR.dll is not needed. Everything is on the disk. You can then attempt a read. If it encounters a ‘blank’ sector or bad bit, that environment handles it however it was programmed to do. Ubuntu likely would rather maintain normal OS behaviors and continue on with what is most likely to be happening. The sector is blank, do something else. That sector is bad, stay away, do not read again do not write or it will cause problems.

A recovery platform however, is going to want to read all data. The file markers say the file should be on 0,5, 13…. if the filesystem reports 13 is missing, ignore the blank header and read the file anyway, or read the bad sector as best as it can and try to recover.

Also, Windows CAN do alot of this with third party applicati***, Recuva can find alot of these “missing” files, for one. But you don’t want to be in an environment that may write back to the disk and cause true permanent loss.

I did simplify this, and add some interpretation, but it should fill in some blanks for what you are asking.

 


有什麼要補充的解釋嗎?在評論中發出聲音。想從其他精通技術的Stack Exchange使用者那裡瞭解更多答案嗎?在這裡檢視完整的討論主題。

 

http://superuser.com/questi***/586666/why-can-linux-systems-time-recover-data-windows-cant-any-concrete-reas***

  • 發表於 2021-04-11 18:56
  • 閱讀 ( 52 )
  • 分類:網際網路

你可能感興趣的文章

SSD真的可以安全地刪除您的資料嗎?下面是方法

...資料的磁碟扇區被覆蓋之前,檔案資料仍然存在。這就是為什麼檔案恢復程式可以恢復檔案。此外,這也是為什麼一些檔案恢復程式可以恢復部分檔案的原因——包含舊資料的扇區沒有被完全覆蓋,留下一些完整的資料。 ...

  • 發佈於 2021-03-11 19:03
  • 閲讀 ( 48 )

livecd的50個酷用法

...Ubuntu。如果您想試用這些程式,但又不想在硬碟上安裝,為什麼不從livecd上試用呢? ...

  • 發佈於 2021-03-12 09:39
  • 閲讀 ( 50 )

分割槽表:錯誤的含義及避免方法

... 讓我們看看分割槽表到底是什麼,以及為什麼在重新配置計算機驅動器時要小心。 ...

  • 發佈於 2021-03-13 14:42
  • 閲讀 ( 49 )

使用iboysoft資料恢復在windows和mac上恢復丟失的檔案

... 為什麼使用iboysoft資料恢復? ...

  • 發佈於 2021-03-19 05:32
  • 閲讀 ( 45 )

如何從iphone中恢復已刪除的照片等

...越多地使用**工作,**上儲存的檔案也越來越多。這就是為什麼這些東西不見了會特別痛苦。 ...

  • 發佈於 2021-03-21 09:59
  • 閲讀 ( 54 )

如何重新格式化外部硬碟而不丟失其上的所有內容

... 這是一個教訓,告訴我們為什麼您應該總是與雲提供商以及本地副本進行異地備份,但現在已經太遲了。 ...

  • 發佈於 2021-03-21 23:31
  • 閲讀 ( 48 )

windows update刪除了linux!怎麼辦,怎麼預防

...可以處理。同時,覆蓋的資料更難處理。那麼,你能做些什麼呢? ...

  • 發佈於 2021-03-22 20:48
  • 閲讀 ( 57 )

如何修復或恢復損壞的pdf檔案中的資料

...,或者您可能只能提取元素並重建其餘的元素。你能得到什麼,對吧? ...

  • 發佈於 2021-03-24 11:02
  • 閲讀 ( 45 )

是否可以從發生故障的ssd恢復資料?你需要知道的

... 為什麼SSD會失敗? ...

  • 發佈於 2021-03-30 21:18
  • 閲讀 ( 53 )

如何用testdisk恢復linux上刪除的檔案

...到了無法挽回的失落,這是你永遠都會感激的。 這就是為什麼testdisk是如此方便的實用工具。當你透過選單,可以開始恢復檔案,很容易陷入一個節奏的突出顯示,c,c,重複。

  • 發佈於 2021-04-01 08:34
  • 閲讀 ( 45 )
wyy66002
wyy66002

0 篇文章

作家榜

  1. admin 0 文章
  2. 孫小欽 0 文章
  3. JVhby0 0 文章
  4. fvpvzrr 0 文章
  5. 0sus8kksc 0 文章
  6. zsfn1903 0 文章
  7. w91395898 0 文章
  8. SuperQueen123 0 文章

相關推薦