Это было время, через 5 лет мой внешний диск объемом 1 ТБ со всеми моими семейными фотографиями и всей моей музыкой рухнул. Достаточно глупо, у меня не было двух дисков в рейде, что я сделаю в будущем.
Я успешно восстановил файлы с помощью dd_rescue на моем другом накопителе с фильмом 2 ТБ на моем сервере, однако я не могу понять, как смонтировать этот файл .img.
Я использую GNU ddrescue
Мне действительно нужно это исправить, иначе я облажался
Вот как я выполнил свою команду ddrescue
sudo ddrescue / dev / sdh1 /media/external/rescue/rescue.img / media / external / rescue / rescuelog
Initial status (read from logfile)
rescued: 1 TB, errsize: 30944 kB, errors: 345
Finished
Вот мои тестовые команды
file image.img
image.img: x86 boot sector, code offset 0x52, OEM-ID "NTFS ", sectors/cluster 8, reserved sectors 0, Media descriptor 0xf8, heads 255, hidden sectors 2048, dos < 4.0 BootSector (0x80)
fdisk -l image.img
Disk image.img: 1000.2 GB, 1000203091968 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953521664 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x2052474d
This doesn't look like a partition table
Probably you selected the wrong device.
Device Boot Start End Blocks Id System
image.img1 ? 6579571 1924427647 958924038+ 70 DiskSecure Multi-Boot
image.img2 ? 1953251627 3771827541 909287957+ 43 Unknown
image.img3 ? 225735265 225735274 5 72 Unknown
image.img4 2642411520 2642463409 25945 0 Empty
Partition table entries are not in disk order
Я абсолютно не знаю, почему fdisk показывает все эти странные разделы, такие как как 'DiskSecure Multi-Boot' и два 'Unknown' раздела, команда parted дала мне информацию, которая казалась правильной, хотя
parted image.img print
WARNING: You are not superuser. Watch out for permissions.
Model: (file)
Disk /media/external/Rescue/image.img: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Number Start End Size File system Flags
1 0.00B 1000GB 1000GB ntfs
Я не уверен, что у меня есть правильные флаги и тому подобное, но здесь я пытаюсь смонтировать диск
sudo mount -r -o loop image.img / mnt
ntfs_mst_post_read_fixup_warn: magic: 0x00000000 size: 4096 usa_ofs: 0 usa_count: 65535: Invalid argument
Index buffer (VCN 0x0) of directory inode 0x5 has a size (24) differing from the directory specified size (4096).
ntfs_mst_post_read_fixup_warn: magic: 0x00000000 size: 4096 usa_ofs: 0 usa_count: 65535: Invalid argument
Index buffer (VCN 0x0) of directory inode 0x5 has a size (24) differing from the directory specified size (4096).
ntfs_mst_post_read_fixup_warn: magic: 0x00000000 size: 4096 usa_ofs: 0 usa_count: 65535: Invalid argument
Index buffer (VCN 0x0) of directory inode 0x5 has a size (24) differing from the directory specified size (4096).
Заранее спасибо, ребята!
Ваша таблица разделов повреждена, вы должны использовать Windows и запустить chkdsk /f
для этого поврежденного файла изображения. Проверьте этот Q & A для некоторых инструкций.