Fsck

tune2fs:嘗試打開 /dev/sda1 時沒有這樣的設備或地址?

  • April 5, 2011

我的硬碟壞了:

Apr  3 20:26:48 207 kernel: aacraid: Host adapter abort request (0,0,0,0)
Apr  3 20:26:48 207 kernel: aacraid: Host adapter reset request. SCSI hang ?
Apr  3 20:26:58 207 kernel: sd 0:0:0:0: timing out command, waited 360s
Apr  3 20:26:58 207 kernel: sd 0:0:0:0: SCSI error: return code = 0x06000000
Apr  3 20:26:58 207 kernel: end_request: I/O error, dev sda, sector 4358861306
Apr  3 20:26:58 207 kernel: EXT3-fs error (device sda1): ext3_free_branches: Read failure, inode=246590279, block=544857659
Apr  3 20:26:58 207 kernel: Aborting journal on device sda1.

Apr  3 20:33:48 207 kernel: aacraid: Host adapter abort request (0,0,0,0)
Apr  3 20:33:48 207 kernel: aacraid: Host adapter reset request. SCSI hang ?
Apr  3 20:33:58 207 kernel: sd 0:0:0:0: timing out command, waited 360s
Apr  3 20:33:58 207 kernel: sd 0:0:0:0: SCSI error: return code = 0x06000000
Apr  3 20:33:58 207 kernel: end_request: I/O error, dev sda, sector 34
Apr  3 20:33:58 207 kernel: Buffer I/O error on device sda1, logical block 0
Apr  3 20:33:58 207 kernel: lost page write due to I/O error on sda1
Apr  3 20:33:58 207 kernel: EXT3-fs error (device sda1) in ext3_reserve_inode_write: Journal has aborted

Apr  3 20:44:18 207 kernel: aacraid: Host adapter abort request (0,0,0,0)
Apr  3 20:44:18 207 kernel: aacraid: Host adapter reset request. SCSI hang ?
Apr  3 20:44:30 207 kernel: ext3_abort called.
Apr  3 20:44:30 207 kernel: EXT3-fs error (device sda1): ext3_journal_start_sb: Detected aborted journal
Apr  3 20:44:30 207 kernel: Remounting filesystem read-only

/dev/sda1 掛載到 /data。當我cd進入某些文件夾時,系統會給我“輸入/輸出錯誤”。

我將fsck在此設備上執行,請按照以下步驟操作:

  1. 停止所有服務訪問 /data
  2. 解除安裝 /data
  3. tune2fs -O ^has_journal /dev/sda1
  4. e2fsck -fcy /dev/sda1
  5. tune2fs -j/開發/sda1

但我在執行第 3 步時得到以下資訊:

# tune2fs -O ^has_journal /dev/sda1 
tune2fs 1.39 (29-May-2006)
tune2fs: No such device or address while trying to open /dev/sda1
Couldn't find valid filesystem superblock.

我備份了這方面的部分數據。我現在該怎麼辦?

P/S:這個盤已經使用了大約1年。我的系統需要高讀/寫強度,我應該更換為 SSD 嗎?

恐怕在這種情況下你將不得不重新啟動盒子。磁碟控制器與驅動器通信時出現問題。重新啟動後,您可能必須執行 fsck。完成後,我將檢查 SMART 數據:

http://sourceforge.net/apps/trac/smartmontools/wiki

這可以讓您更好地了解磁碟處於什麼狀態,並幫助您計劃下一步行動。

引用自:https://serverfault.com/questions/255257