[問題] mount , umount 的實質意義
各位好
想請教一下mount / unmount在 OS下的實質意義是甚麼呢
就一般來講 mount應該就是把一個partition掛載到掛載目錄上,
unmount則為卸載之.
但就OS的角度來看, 掛載上或卸載下此partition後, 系統目錄結構樹改變了.
還有呢? 是不是還有其他的意義存在.
例如我插入一個usb隨身碟或是sdcard, 並且mount他
當我拔除時, 如果不先unmount此裝置, 你將會在dmesg中看到很多錯誤...
像是
<3>[ 1610.037294] FAT: Directory bread(block 503) failed
<3>[ 1610.037317] FAT: Directory bread(block 504) failed
<3>[ 1610.037339] FAT: Directory bread(block 505) failed
<3>[ 1610.037361] FAT: Directory bread(block 506) failed
<3>[ 1610.037383] FAT: Directory bread(block 507) failed
<3>[ 1610.037405] FAT: Directory bread(block 508) failed
, 這是不是代表OS去讀取裝置時, 發現此fs的block i/o error所致?
謝謝!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 58.210.58.138
LinuxDev 近期熱門文章
PTT數位生活區 即時熱門文章