
我有一台雙啟動筆記型電腦(Ubuntu 12.04.4/Windows 7),硬碟故障。 SMART 目前掛起的磁區數已開始增加,並且在 Ubuntu 和 Windows 中系統都需要幾分鐘才能啟動。我用另一塊具有相同容量(750GB)的磁碟替換了該磁碟,並嘗試使用 dd 命令將所有內容傳輸到新磁碟。
Ubuntu(邏輯)分割區已消失,其先前佔用的空間現在顯示為擴充分割區內的 RAW 空間。我決定重新安裝 Ubuntu (14.04),它運作正常,只是它不再提供在 Windows 7 中進行雙重啟動的選擇。安裝的時候提示沒有找到其他作業系統。
奇怪的是,NTFS分割區就在那裡,它掛載在Ubuntu中並且可以存取檔案。在硬碟克隆過程中出現了幾個錯誤,但第一個錯誤是從 Windows 分割區開始的大約 28GB,所以我猜它不會對檔案系統造成一些嚴重損壞。以下是我嘗試過的一些實用程式的輸出:
sudo fdisk -l
Disk /dev/sda: 750.2 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x677f9038
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 411647 204800 7 HPFS/NTFS/exFAT
/dev/sda2 411648 314984447 157286400 7 HPFS/NTFS/exFAT
/dev/sda3 314984448 1434222591 559619072 f W95 Ext'd (LBA)
/dev/sda4 1434222592 1465149167 15463288 12 Compaq diagnostics
/dev/sda5 314986496 323375103 4194304 82 Linux swap / Solaris
/dev/sda6 323377152 637949951 157286400 83 Linux
Windows 7 分割區是/dev/sda2。 gparted 工具中有一個感嘆號,並提供以下資訊:
無法讀取該檔案系統的內容!因此,某些操作可能無法使用。原因可能是缺少軟體包。 ntfs 檔案系統支援需要以下軟體包:ntfsprogs / ntfs-3g。
Testdisk 實用程式會報告磁頭/柱面不符(替換 HDD 是不同型號):
Disk /dev/sda - 750 GB / 698 GiB - CHS 91201 255 63
Current partition structure:
Partition Start End Size in sectors
Warning: number of heads/cylinder mismatches 16 (NTFS) != 255 (HD)
1 * HPFS - NTFS 0 32 33 25 159 6 409600
Bad relative sector.
Warning: number of heads/cylinder mismatches 16 (NTFS) != 255 (HD)
2 P HPFS - NTFS 25 159 7 19606 223 9 314572800
Bad relative sector.
3 E extended LBA 19606 223 10 89276 57 61 1119238144
4 P Compaq Diagnostics 89276 57 62 91201 80 63 30926576
5 L Linux Swap 19607 0 42 20129 43 10 8388608
X extended 20129 65 1 39710 139 45 314573472
6 L Linux 20129 75 43 39710 139 45 314572800
我也嘗試過 ntfsfix,但沒有寫任何東西:
ntfsfix -n /dev/sda2
Mounting volume... OK
Processing of $MFT and $MFTMirr completed successfully.
Checking the alternate boot sector... BAD
Error: Failed to fix the alternate boot sector
最後是 ntfsresize:
ntfsresize --info --force --no-progress-bar /dev/sda2
ntfsresize v2013.1.13AR.1 (libntfs-3g)
Device name : /dev/sda2
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 161061270016 bytes (161062 MB)
Current device size: 161061273600 bytes (161062 MB)
Checking filesystem consistency ...
Inode is corrupt (15996): Input/output error
Inode is corrupt (16000): Input/output error
Inode is corrupt (16001): Input/output error
Inode is corrupt (16003): Input/output error
Inode is corrupt (16007): Input/output error
Inode is corrupt (16008): Input/output error
Inode is corrupt (16009): Input/output error
Inode is corrupt (16010): Input/output error
Inode is corrupt (16012): Input/output error
Inode is corrupt (16014): Input/output error
Inode is corrupt (16015): Input/output error
Inode is corrupt (16016): Input/output error
Inode is corrupt (16017): Input/output error
Inode is corrupt (16019): Input/output error
Inode is corrupt (16020): Input/output error
Found stale mft reference in attribute list!
Inode is corrupt (16021): Input/output error
Inode is corrupt (16022): Input/output error
Inode is corrupt (16023): Input/output error
Inode is corrupt (16038): Input/output error
Inode is corrupt (83920): Input/output error
Inode is corrupt (171988): Input/output error
Inode is corrupt (172451): Input/output error
Accounting clusters ...
Cluster accounting failed at 118054 (0x1cd26): extra cluster in $Bitmap
Cluster accounting failed at 118055 (0x1cd27): extra cluster in $Bitmap
Cluster accounting failed at 118056 (0x1cd28): extra cluster in $Bitmap
Cluster accounting failed at 118057 (0x1cd29): extra cluster in $Bitmap
Cluster accounting failed at 118058 (0x1cd2a): extra cluster in $Bitmap
Cluster accounting failed at 118059 (0x1cd2b): extra cluster in $Bitmap
Cluster accounting failed at 118060 (0x1cd2c): extra cluster in $Bitmap
Cluster accounting failed at 118061 (0x1cd2d): extra cluster in $Bitmap
Cluster accounting failed at 118062 (0x1cd2e): extra cluster in $Bitmap
Cluster accounting failed at 118063 (0x1cd2f): extra cluster in $Bitmap
Filesystem check failed! Totally 426 cluster accounting mismatches.
ERROR: NTFS is inconsistent. Run chkdsk /f on Windows then reboot it TWICE!
The usage of the /f parameter is very IMPORTANT! No modification was
and will be made to NTFS by this software until it gets repaired.
修復分區並使系統再次可雙重啟動的最安全方法是什麼?我沒有 Windows 7 DVD,因為我的筆記型電腦在磁碟末尾有一個小的隱藏分割區,可用於在發生故障時恢復所有內容,但現在已嚴重損壞。
答案1
我建議您使用 Windows 恢復光碟。您可以從各種來源(合法)獲得這些信息,但要小心一點——互聯網上的隨機站點可能有合法軟體,或者可能充滿病毒。首先諮詢微軟。 (不過,我沒有直接的 URL 可以分享。)這樣的磁碟應該能夠修復檔案系統損壞,假設副本足夠好,分割區的內容沒有完全被丟棄。