Reading a filesystem without mounting?

Status
Not open for further replies.

Ho0ligaN

Inactive
Contributor
Hi,
I have an ext2 filesystem image, is it possible to see/read its contents without actually mounting it?
 
Thanks, but I want to do it programmatically in a shell script. I need to know the contents of an ext2 filesystem image without acutally mounting it somewhere. Is that possible? Also, is there a way to check whether a given file is an ext2 image or a normal file?

As in before a pass an image name to the mount command, I should be sure that it is an image and not a normal text file or something.
 
Status
Not open for further replies.