
デュアル ブート ラップトップ (Ubuntu 12.04.4/Windows 7) を使用していますが、ハード ディスクが故障しています。SMART の現在の保留セクター数が増加し始めており、Ubuntu と Windows の両方でシステムの起動に数分かかります。ディスクを同じ容量 (750 GB) の別のディスクに交換し、dd コマンドを使用してすべてを新しいディスクに転送しようとしました。
Ubuntu (論理) パーティションが消え、以前占有していた領域が拡張パーティション内の RAW 領域として表示されます。Ubuntu (14.04) を再インストールすることにしました。正常に動作しますが、Windows 7 でデュアル ブートするオプションが提供されなくなりました。インストール中に、他の OS が見つからないというメッセージが表示されました。
不思議なことに、NTFS パーティションは存在し、Ubuntu にマウントされ、ファイルにアクセスできます。ハード ディスクのクローン作成中にいくつかのエラーが発生しましたが、最初のエラーは Windows パーティションの開始から 28 GB ほどのところにあったため、ファイル システムに重大な損傷を与えることはなかったと思います。以下は、私が試したいくつかのユーティリティの出力です。
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 リカバリ ディスクを使用することをお勧めします。これらはさまざまなソースから (合法的に) 入手できますが、少し注意してください。インターネット上のランダムなサイトには、正規のソフトウェアがあるかもしれませんが、ウイルスが詰まっている可能性もあります。まずは Microsoft に確認してください。(ただし、直接 URL を共有することはできません。) このようなディスクは、パーティションの内容が完全に破壊されていないほどコピーが良好であると仮定すると、ファイル システムの損傷を修復できるはずです。