You are not logged in.

#1 2008-11-11 11:31:53

Rorschach
Member
From: Ankh-Morpork
Registered: 2008-11-07
Posts: 143

How to mount an image-file?

Hi,
I have an EFI-partition on my hdd which drastically improves my bios-boot time. But I wanna take a closer look at it and what it does. Because I don't wanna mess this EFI-Partition I wanna work with a copy.

So I created an image with:

dd if=/dev/sdXX of=my_image.img

But how can I mount it now? I loaded the loop-module and tried an:

mount my_image.img /my/mountpoint -o loop

But he wants to know the fs-type. But he doesn't understand what efi is and always tells me it's and unknown filetype if I try:

 -t efi

So is it not possible to mount and efi-image under linux? I would really like to take a look at it.

Offline

#2 2008-11-11 12:12:26

EnvoyRising
Member
Registered: 2008-08-08
Posts: 118

Re: How to mount an image-file?

since you made an image of it, wouldn't the fs-type technically be iso9660?

 -t iso9660

Just a thought, so I could be absolutely incorrect.

Offline

#3 2008-11-11 12:33:08

jakobm
Member
Registered: 2008-03-24
Posts: 132

Re: How to mount an image-file?

Extensible Firmware Interface - Wikipedia:

The EFI specification does not include a description for a file system; implementations of EFI typically support FAT32 as their file system.

Try '-t msdos' (-t auto did not work?).

Offline

#4 2008-11-11 16:17:50

Rorschach
Member
From: Ankh-Morpork
Registered: 2008-11-07
Posts: 143

Re: How to mount an image-file?

@EnvoyRising: No that's just for cd-isos.
@jakobm:

$ sudo mount my_image.img /my/mountpoint  
mount: my_image.img is not a block device (maybe try `-o loop'?)
$ sudo mount my_image.img /my/mountpoint  -o loop
mount: you must specify the filesystem type
$ sudo mount my_image.img /my/mountpoint  -o loop -t auto
mount: you must specify the filesystem type
$ sudo mount my_image.img /my/mountpoint  -o loop -t msdos
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

The same with every fs-type (like vfat..) I tried. So no matter what I try it seems not to work.

Offline

#5 2008-11-11 16:42:42

jakobm
Member
Registered: 2008-03-24
Posts: 132

Re: How to mount an image-file?

You could try to determine the filesystem the original block device contains with 'blkid'. Be aware that you cannot use this on a loop device/image file.

blkid - command-line utility to locate/print block device attributes

Offline

#6 2008-11-11 17:45:55

Rorschach
Member
From: Ankh-Morpork
Registered: 2008-11-07
Posts: 143

Re: How to mount an image-file?

blkid gives no information about the filesystem type. Just fdisk seems to make a (good) guess:

/dev/sda3           19453       19457       40162+  ef  EFI (FAT-12/16/32)

Offline

#7 2008-11-11 18:11:10

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,000
Website

Re: How to mount an image-file?

Jep, when i had a macbook I could mount it as fat32.  (directly, not as loopback).  Are you sure your image is correct?


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#8 2008-11-11 18:52:22

Rorschach
Member
From: Ankh-Morpork
Registered: 2008-11-07
Posts: 143

Re: How to mount an image-file?

Yes pretty sure I think. I took the image of the partition several times and each time the md5sum is the same. And the partition is definitivly working and boosting my bios-boot.

Offline

Board footer

Powered by FluxBB