LoginSignup
5
0

More than 3 years have passed since last update.

IMGファイルのマウント

Posted at

1)まずマウントしてみる

mount -o loop0 ./XXX.img /mnt/1
mount: /dev/loop0 is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.

2)失敗したら調査
parted ./XXX.img unit B print
モデル: (file)
ディスク /root/XXX.img: 10292707328B
セクタサイズ (論理/物理): 512B/512B
パーティションテーブル: msdos
ディスクフラグ:

番号 開始 終了 サイズ タイプ ファイルシステム フラグ
1 1048576B 7444889599B 7443841024B primary ext4 boo

2-1)詳細を設定しマウント操作
#mount -o loop,offset=1048576,sizelimit=7443841024 ./XXX.img /data3

5
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
0