Tôi đã trích xuất một tệp .img từ chương trình cơ sở của modem DSL. Tôi muốn xem những gì bên trong. Vì vậy, tôi đã cố gắng:Làm thế nào để gắn kết một tập tin ".img" (được trích xuất từ phần mềm modem) trên Linux?
[email protected]:/tmp# mount rootfs.img /tmp/1
mount: /tmp/rootfs.img is not a block device (maybe try `-o loop'?)
[email protected]:/tmp# mount -o loop rootfs.img /tmp/1
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
[email protected]:/tmp# mount -o loop -t squashfs rootfs.img /tmp/1
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
tập tin thông tin được đây: Sản lượng
[email protected]:/tmp# file rootfs.img
rootfs.img: Squashfs filesystem, big endian, version 2.0, 1369418 bytes, 382 inodes, blocksize: 65536 bytes, created: Tue May 3 13:44:22 2011
dmesg:
[ 7756.312067] SQUASHFS error: Can't find a SQUASHFS superblock on loop0
unsquashsfs đầu ra:
...
Failed to write squashfs-root/lib/modules/2.6.8.1/extra/bcmprocfs.ko, skipping
[==================================| ] 118/377 31%
gzip uncompress failed with error code -3
...
Failed to write squashfs-root/webs/cgi-bin/login, skipping
[========================================================================| ] 247/377 65%
gzip uncompress failed with error code -3
Failed to write squashfs-root/webs/top.html, skipping
[==============================================================================| ] 268/377 71%
gzip uncompress failed with error code -3
...
Failed to write squashfs-root/usr/bin/ledctl, skipping
[==============================================================================================================| ] 376/377 99%
gzip uncompress failed with error code -3
Failed to write squashfs-root/usr/sbin/brctl, skipping
[===============================================================================================================|] 377/377 100%
created 188 files
created 46 directories
created 52 symlinks
created 95 devices
created 1 fifos
Làm thế nào tôi có thể gắn nó?
Cảm ơn bạn.
Câu hỏi này đã được đóng cửa vì nó không phù hợp ở đây, có lẽ bạn nên tham gia các câu hỏi để unix.stackexchange.com. –
đây sẽ là câu trả lời của tôi http://unix.stackexchange.com/a/73905/3285 –
có thể đó là hình ảnh đĩa thay vì một số tệp. kiểm tra cấu trúc với 'fdisk -l image.img' và tìm kích thước Block sau đó nếu nó có một bỏ qua sector khởi động và bắt đầu tại phân vùng bạn muốn kiểm tra' #mount -o loop, offset = BlockSize * StartOfSector Image. img/mnt/' –