イメージからパーティションをマウントできません。

イメージからパーティションをマウントできません。

dd古いSSDの画像があります。しばらく外付けハードドライブに座っていましたが、以前でもイメージとそのパーティションをマウントできました。これで、何らかの理由でEFIパーティション(最初のパーティション)のみをマウントできますが、残りのファイルシステムは認識されません。さらに、LVM2 パーティションはまったく検出されません。

imgファイルのマウント:

ubuntu > sudo losetup -f -P /mnt/d/Disks/Toshiba/ssd-backup.gpt.img
ubuntu > lsblk
NAME      MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
loop0       7:0    0 238.5G  0 loop
├─loop0p1 259:0    0   100M  0 part
├─loop0p2 259:1    0   128M  0 part
├─loop0p3 259:2    0    50G  0 part
├─loop0p4 259:3    0   200M  0 part
├─loop0p5 259:4    0   200M  0 part
├─loop0p6 259:5    0    50G  0 part
└─loop0p7 259:6    0   100G  0 part
...

イメージとマウントポイントのパーティション情報が同じであることを確認してください。

ubuntu > gdisk -l /mnt/d/Disks/Toshiba/ssd-backup.gpt.img
GPT fdisk (gdisk) version 1.0.5

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /mnt/d/Disks/Toshiba/ssd-backup.gpt.img: 500118192 sectors, 238.5 GiB
Sector size (logical): 512 bytes
Disk identifier (GUID): 74230653-CCAA-49B1-B5F7-7A901F6960BE
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 500118158
Partitions will be aligned on 2048-sector boundaries
Total free space is 79400926 sectors (37.9 GiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048          206847   100.0 MiB   EF00  EFI system partition
   2          206848          468991   128.0 MiB   0C01  Microsoft reserved ...
   3          468992       105326591   50.0 GiB    0700  Basic data partition
   4       105326592       105736191   200.0 MiB   8300  Linux filesystem
   5       105736192       106145791   200.0 MiB   8300  Linux filesystem
   6       106145792       211003391   50.0 GiB    0700  Basic data partition
   7       290402304       500118158   100.0 GiB   8E00  Linux LVM

ubuntu > sudo gdisk -l /dev/loop0
GPT fdisk (gdisk) version 1.0.5

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/loop0: 500118192 sectors, 238.5 GiB
Sector size (logical/physical): 512/512 bytes
Disk identifier (GUID): 74230653-CCAA-49B1-B5F7-7A901F6960BE
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 500118158
Partitions will be aligned on 2048-sector boundaries
Total free space is 79400926 sectors (37.9 GiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048          206847   100.0 MiB   EF00  EFI system partition
   2          206848          468991   128.0 MiB   0C01  Microsoft reserved ...
   3          468992       105326591   50.0 GiB    0700  Basic data partition
   4       105326592       105736191   200.0 MiB   8300  Linux filesystem
   5       105736192       106145791   200.0 MiB   8300  Linux filesystem
   6       106145792       211003391   50.0 GiB    0700  Basic data partition
   7       290402304       500118158   100.0 GiB   8E00  Linux LVM

lsblk何らかの理由でファイルシステムはどこにも検出されません。

ubuntu > sudo lsblk -f
NAME      FSTYPE LABEL UUID FSAVAIL FSUSE% MOUNTPOINT
loop0
├─loop0p1
├─loop0p2
├─loop0p3
├─loop0p4
├─loop0p5
├─loop0p6
└─loop0p7
sda
sdb
sdc                          236.1G     1% /

Linuxファイルシステムの1つをマウントしてみてください(パーティション4、試行5も同じ)。

ubuntu > sudo mount /dev/loop0p4 /tmp/mnt
mount: /tmp/mnt: wrong fs type, bad option, bad superblock on /dev/loop0p4, missing codepage or helper program, or other error.
ubuntu > sudo mount -t ext3 /dev/loop0p4 /tmp/mnt
mount: /tmp/mnt: wrong fs type, bad option, bad superblock on /dev/loop0p4, missing codepage or helper program, or other error.
ubuntu > sudo mount -t ext4 /dev/loop0p4 /tmp/mnt
mount: /tmp/mnt: wrong fs type, bad option, bad superblock on /dev/loop0p4, missing codepage or helper program, or other error.
ubuntu > sudo mount -t btrfs /dev/loop0p4 /tmp/mnt
mount: /tmp/mnt: wrong fs type, bad option, bad superblock on /dev/loop0p4, missing codepage or helper program, or other error.
ubuntu > sudo btrfs device scan -d /dev/loop0p4
Scanning for Btrfs filesystems
ubuntu >

LVMファイルシステムをスキャンしてみてください。

ubuntu > sudo pvdisplay /dev/loop0p7
  Failed to find physical volume "/dev/loop0p7".
ubuntu > sudo pvscan
  No matching physical volumes found
ubuntu > sudo lvdisplay /dev/loop0p7
  Volume group "loop0p7" not found
  Cannot process volume group loop0p7
ubuntu > sudo vgscan
ubuntu > sudo vgdisplay
ubuntu >

それにもかかわらず、ディスクイメージと最初のパーティションはまだ正しくマウントされています。

ubuntu > sudo mount /dev/loop0p1 /tmp/mnt
ubuntu > ll /tmp/mnt
total 11531
drwxr-xr-x  3 root root    1024 Dec 31  1969 ./
drwxrwxrwt 12 root root    4096 Jan 23 19:44 ../
drwxr-xr-x  7 root root    1024 Sep  4  2014 EFI/

ここでどこに行くべきかわかりません。日曜日から、私はこのパーティションにファイルシステムをマウントする5つの方法を試しましたが、成功しませんでした。ディスクimgからもパーティションimgファイルを抽出しましたが、そのファイルも利用できませんでした。

ubuntu > sudo losetup -f -P /mnt/d/Disks/Toshiba/ssd-backup.gpt/6.Linux\ LVM.img
ubuntu > lsblk
NAME      MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
loop0       7:0    0 238.5G  0 loop
├─loop0p1 259:0    0   100M  0 part /tmp/mnt
├─loop0p2 259:1    0   128M  0 part
├─loop0p3 259:2    0    50G  0 part
├─loop0p4 259:3    0   200M  0 part
├─loop0p5 259:4    0   200M  0 part
├─loop0p6 259:5    0    50G  0 part
└─loop0p7 259:6    0   100G  0 part
loop1       7:1    0   100G  0 loop
sda         8:0    0   256G  0 disk
sdb         8:16   0 339.8M  1 disk
sdc         8:32   0   256G  0 disk /
ubuntu > sudo pvdisplay /dev/loop1
  Failed to find physical volume "/dev/loop1".

どんな助けでも大変感謝します。このデータを回復する方法を理解する必要があります。

ベストアンサー1

おすすめ記事