
У меня ноутбук с двойной загрузкой (Ubuntu 12.04.4/Windows 7) с неисправным жестким диском. Текущее число ожидающих секторов SMART начало расти, и система загружается несколько минут как в Ubuntu, так и в Windows. Я заменил диск на другой с такой же емкостью (750 ГБ) и попытался перенести все на новый диск с помощью команды dd.
Раздел Ubuntu (логический) исчез, а его ранее занятое пространство теперь отображается как пространство RAW внутри расширенного раздела. Я решил переустановить Ubuntu (14.04), и он работает нормально, за исключением того, что он больше не предлагает выбор двойной загрузки в Windows 7. Во время установки он сказал, что не найдено других ОС.
Странно, но раздел NTFS есть, он монтируется в Ubuntu и файлы доступны. Во время клонирования жесткого диска было несколько ошибок, но первая ошибка была где-то в 28 ГБ от начала раздела Windows, так что я думаю, что она не могла нанести какой-то критический ущерб файловой системе. Ниже приведен вывод некоторых утилит, которые я пробовал:
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 сообщает о несоответствии головок/цилиндров (замененный жесткий диск был другой модели):
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.
Какой самый безопасный способ восстановить раздел и снова сделать систему двухзагрузочной? У меня нет DVD-диска Windows 7, так как мой ноутбук поставлялся с небольшим скрытым разделом в конце диска, который можно было использовать для восстановления всего в случае сбоя, но теперь он сильно поврежден.
решение1
Я рекомендую вам использовать диск восстановления Windows. Вы можете получить их (легально) из разных источников, но будьте осторожны — случайный сайт в Интернете может иметь легальное программное обеспечение, или он может быть загружен вирусами. Сначала обратитесь в Microsoft. (Хотя у меня нет прямого URL, которым я мог бы поделиться.) Такой диск должен иметь возможность исправить повреждение файловой системы, предполагая, что копия была достаточно хорошей, чтобы содержимое раздела не было полностью уничтожено.