Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
0
Help us understand the problem. What is going on with this article?
@TSA2019

IMGファイルのマウント

More than 1 year has passed since last update.

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

0
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
TSA2019
このサイトにおける掲載内容はあくまで私自身の見解であり、必ずしも私の所属団体・企業における立場、戦略、意見を代表するものではありません。

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
0
Help us understand the problem. What is going on with this article?