awslabs / coldsnap

A command line interface for Amazon EBS snapshots
Apache License 2.0
178 stars 24 forks source link

Mounting coldsnap downloaded img file in Linux machine #338

Open Jayesh-Cldscle opened 4 weeks ago

Jayesh-Cldscle commented 4 weeks ago

Hello,

Can anyone help to mount the coldsnap downloaded img file in linux machine?

Right now, I am trying to mount it with command sudo mount -o loop disk.img /mnt/disk, but it is not working, it is giving me the error below,

[root@ip-172-31-29-177 ec2-user]# mount -o loop disk.img ./iso/
mount: /home/ec2-user/iso: wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error.

Can someone please guide me about this? How to finish this up?

Thanks, Jayesh Desai

bcressey commented 4 weeks ago

If the snapshot corresponds to a partitioned disk image, you can try losetup -P first to make the different partitions available on the loopback device, then you can mount the specific partition you're interested in.