Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
If you read around on the man page for mount, it'll tell you all about loop mounting filesystems. In the above example, Mara has given another option too -t ext2. This would mount a Linux filesystem as a loop device - you will (more than likely) need to use -t vfat.
Originally posted by Thymox If you read around on the man page for mount, it'll tell you all about loop mounting filesystems. In the above example, Mara has given another option too -t ext2. This would mount a Linux filesystem as a loop device - you will (more than likely) need to use -t vfat.
Good luck.
Right...Or even maybe
mount /image.img /mnt/image -o loop
When -t is not specified, it tries to detect the filesystem. It usually works.
I'm a totally Linux person, so when bfay mentioned 'extended partition', my only idea was that it means ext2.
Hi i know this thread is dates, but i was wondering is it possible to programmatically read through the files of this image without mounting to compare file extensions on the drive. If mounting is required is it possible to again look through the image for known file extensions, e.g PSEUDO:
Loop-retrieve file extension for file #1{
if file extension == JPG{
message == contains jpg
else
{
}
sorry for the weird coding, just want to know if its possible and some direction would be great, thank you
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.