計算機怎麼知道什麼時候沒有正常關閉?

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

計算機怎麼知道什麼時候沒有正常關閉?When you start your computer up after an improper shutdown/system crash, it will usually suggest acti*** like booting into safe mode and running a disk check. How does the computer know it crashed?

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

問題

超級使用者讀者FrozenKing想知道他的電腦是如何知道什麼時候宕機或是不正常關機的。他寫道:

Actually, this question struck me because of power cuts in my house. When there is a power cut, there is a sudden loss of power from the computer.

How does the computer know that the shutdown was not properly done?

這是一個有趣的問題;很明顯,現代作業系統很清楚地意識到出了問題,但它們是透過什麼機制意識到的呢?

答案

超級使用者貢獻者David Schwartz對不同的作業系統提供了一般性的答案和見解:

For non-Windows based PCs, the detection is usually done on a per-filesystem basis. When a filesystem is mounted in read/write mode, an entry is written to the filesystem marking it dirty. When the filesystem is unmounted, an entry is written marking it clean. On startup, the operating system checks if its core filesystems are marked dirty, and if so it knows there wasn’t a clean shutdown — at least of those filesystems.

另一個貢獻者ChrisF更具體地回答了Windows作業系統:

007Ys3FFgy1gpgeevrguaj30gn08pgme

Windows also uses the Dirty Bit method to detect whether the PC was shut down properly:

When powered off as normal, the bit is switched off. However, in case of power outage or improper (forced) shutdown, the bit will still be on the next time the PC is started.

This means that Windows can suggest remedial action – such as booting into Safe Mode.

In addition a Windows based PC will write an entry into event log detailing when and why (if known) it was shut down. It also writes an event when the PC starts up.


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

  • 發表於 2021-04-12 03:08
  • 閱讀 ( 39 )
  • 分類:網際網路

你可能感興趣的文章

crashplanforhome關閉:現在線上資料備份怎麼辦?

...網路連線儲存)。 將最重要的檔案下載到計算機的驅動器。 將部分或所有檔案上載到新的雲備份。 ...

  • 發佈於 2021-03-13 06:56
  • 閲讀 ( 51 )

從命令列關閉linux計算機的5種方法

...情況下!),可能會有一段時間你需要重新啟動你的Linux計算機。這可能是因為有些東西不起作用。或者,您可以透過SSH連線到遠端計算機或伺服器,並希望它重新啟動或完全關閉。 ...

  • 發佈於 2021-03-14 17:35
  • 閲讀 ( 47 )

嘿,科塔納?所有你不知道要問的事情還有更多

...a可以快速開啟Microsoft Edge中的網站、已安裝的應用程式或計算機上的設定。 ...

  • 發佈於 2021-03-16 10:46
  • 閲讀 ( 51 )

你不知道的rootkit會嚇到你

... 任何普通的防毒軟體都無法在rootkit進入您的計算機時捕獲它。一旦它進入,它會藏在你永遠找不到的地方;你甚至不知道它在那裡。當你這麼做的時候,它將竊取你所有的敏感資訊,銷燬你的檔案,並使你的電腦完...

  • 發佈於 2021-03-16 15:43
  • 閲讀 ( 43 )

9個跡象表明你被駭客攻擊了

... 如果您的計算機或internet連線突然比最近慢了一點,則可能是其他人正在使用您的處理能力或頻寬。一些駭客會安裝一個在你電腦後臺執行的應用程式,佔用資源,減慢速度。 ...

  • 發佈於 2021-03-16 18:16
  • 閲讀 ( 45 )

如何解決windows無法自動檢測網路代理設定錯誤

... 1重新啟動計算機和路由器 ...

  • 發佈於 2021-03-18 02:39
  • 閲讀 ( 80 )

mac鍵盤不工作?下面是如何修復它

...項”面板,檢視是否已連線。如果您的鍵盤正在搜尋您的計算機但未連線,請在裝置列表中右鍵單擊鍵盤並選擇“連線”(如果您的裝置未列出,請跳到下面的第五步)。 ...

  • 發佈於 2021-03-18 03:54
  • 閲讀 ( 56 )

你的mac電腦一直隨機關機?這是你能做的

...Mac可能無法解決這個問題。在這種情況下,蘋果建議重置計算機的系統管理控制器(SMC)。 ...

  • 發佈於 2021-03-22 13:46
  • 閲讀 ( 56 )

什麼是127.0.1、localhost或環回地址?

...您將瀏覽器指向127.0.0.1時,它將嘗試連線到您當前使用的計算機。當您想連線到自己計算機上的伺服器時,這很方便。 ...

  • 發佈於 2021-03-30 20:02
  • 閲讀 ( 52 )

如果你的mac電腦不關機怎麼辦

Mac電腦和其他電腦一樣。有時它們無法啟動,有時它們無法關閉。如果你的Mac電腦拒絕關閉,下面是如何關閉它無論如何,希望,永久性地解決這個問題。 如何關閉mac 關閉Mac電腦非常簡單,只需單擊螢幕頂部選單欄上的Apple徽...

  • 發佈於 2021-04-03 05:35
  • 閲讀 ( 47 )
nbv51b5j9z
nbv51b5j9z

0 篇文章

作家榜

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

相關推薦