少し前にAmazonEC2で作成したディスクをマウントしようとしています。これが私が見ているものです(読みやすくするために改行が追加されています):
$ sudo file -s /dev/xvda4
/dev/xvda4: x86 boot sector; partition 1: ID=0x83, starthead 1,
startsector 63, 10474317 sectors, extended partition table (last)\011,
code offset 0x0
マウントしようとしているとき:
$ sudo mount /dev/xvda4 /mnt/foo
mount: wrong fs type, bad option, bad superblock on /dev/xvda4,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
このディスクをマウントするにはどうすればよいですか?
この情報が役立つかもしれません:
$ sudo fdisk -lu /dev/xvda4
Disk /dev/xvda4: 5368 MB, 5368709120 bytes
255 heads, 63 sectors/track, 652 cylinders, total 10485760 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: 0x0952616d
Device Boot Start End Blocks Id System
/dev/xvda4p1 63 10474379 5237158+ 83 Linux
承認された回答:
Fernandez de Quilonによる投稿が私を助けてくれました:
$ mount -t ext4 -o offset=32256 /dev/xvda4 /mnt/foo
正常に動作します。 32256
63
として計算されます (パーティションの開始)に512
を掛けたもの (セクターサイズ)。