[理工] [os]-磁碟

看板Grad-ProbAsk作者 (123)時間14年前 (2010/02/17 23:50), 編輯推噓1(106)
留言7則, 4人參與, 最新討論串1/1
An IDE hard disk spins at 7200RPM,1000 cylinders,10 tracks per cyclinder 100 sector per track, and 512 bytes per sector. The disk is performatted by a file system which the logical block size is 1024 bytes. If we ignore the space to keep directory and indexes, how many 1-byte files that the disk can store ? Disk總容量為512000000 bytes,為啥還要除1024?不是直接除5120000000/1byte就好了嗎 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.138.109.248

02/18 00:45, , 1F
因為一個檔案至少要一個磁區
02/18 00:45, 1F

02/18 08:09, , 2F
98交大 同樓上
02/18 08:09, 2F

02/18 10:08, , 3F
是說1個檔案至少1個block嗎/
02/18 10:08, 3F

02/18 10:10, , 4F
它是以block為單位,儘管1個block有能塞好幾個file的
02/18 10:10, 4F

02/18 10:10, , 5F
大小?
02/18 10:10, 5F

02/18 12:45, , 6F
File是以block為單位,即使它實際只占block中的1byte
02/18 12:45, 6F

02/18 20:29, , 7F
恩恩
02/18 20:29, 7F
文章代碼(AID): #1BV11Dgj (Grad-ProbAsk)