Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
284 views
in Technique[技术] by (71.8m points)

linux - 提取没有分区的磁盘映像的内容(Extract contents of Disk image which has no partitions)

I have a disk image which has no partitions:

(我有一个没有分区的磁盘映像:)

sudo fdisk -lu image
Disk image: 1 GiB, 1073741824 bytes, 2097152 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

How can i extract the contents?

(如何提取内容?)

I have tried creating a partition with parted and mounting it but had little success: mkpart primary ext4 0 1074MB and the output:

(我曾尝试创建一个磁盘分区parted ,并安装它,但收效甚微: mkpart primary ext4 0 1074MB和输出:)

fdisk -l image
Disk image: 1 GiB, 1073741824 bytes, 2097152 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
Disklabel type: dos
Disk identifier: 0x1c20ae46

Device     Boot Start     End Sectors  Size Id Type
image1              1 2097151 2097151 1024M 83 Linux

But i still couldn't mount it.

(但是我仍然无法安装它。)

I would just like to be able to extract the files from the disk image.

(我只希望能够从磁盘映像中提取文件。)

Any help would be appreciated, i have little experience here.

(任何帮助将不胜感激,我在这里经验很少。)

Thank you!

(谢谢!)

  ask by Mike translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...