looking_at_img_files

This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.



Subject: Re: how to look at files in *.img files
From: Statux <statux@bigfoot.com>
Date: Thu, 24 Aug 2000 16:54:20 -0400 (EDT)

example for 1.44MB image file:

dd if=boot.img of=/dev/fd0 bs=1440k

You must be root (have full permissions for the floppy disk device)
boot.img is the image file (or whatever it happens to be named)
/dev/fd0 is your floppy disk drive
bs=1440k says that the block size is 1.44MB. This option (for this
exact application of dd) doesn't usually make a difference and can be
ommited (from my experiences).

Then just mount the disk:

mount /dev/fd0 /mnt/floppy

or however your system is set up.

===
Subject: Re: how to look at files in *.img files
From: John Aldrich <john@chattanooga.net>
Date: Thu, 24 Aug 2000 17:00:45 -0400

On Thu, 24 Aug 2000, Bret Hughes wrote:
> How can I mount and look at the files contained in the
> intallation images for redhat?  I can't seem to mount them
> after copying to a the floppy as ext2 filesystems or as
> msdos.  Any ideas?  I would like to be able to run an
> upgrade installation on machines with no floppies.
> 
> Any help appreciated.
> 
Same way you mount an ISO image w/o actually burning it... IIRC, it
would be something like (and people, feel free to jump in and correct
me if I'm wrong! <G>): mount -o loop -t vfat <imagename.img>
<mountpoint>

At least that's what I did. *shrug*
	John


===

Subject: Re: how to look at files in *.img files
From: John Aldrich <john@chattanooga.net>
Date: Thu, 24 Aug 2000 17:04:07 -0400

On Thu, 24 Aug 2000, Statux wrote:
> example for 1.44MB image file:
> 
> dd if=boot.img of=/dev/fd0 bs=1440k
> 
> You must be root (have full permissions for the floppy disk device)
> boot.img is the image file (or whatever it happens to be named)
> /dev/fd0 is your floppy disk drive
> bs=1440k says that the block size is 1.44MB. This option (for this
> exact application of dd) doesn't usually make a difference and can be
> ommited (from my experiences).
> 
> Then just mount the disk:
> 
> mount /dev/fd0 /mnt/floppy
> 
> or however your system is set up.
> 
That'll work. However, I did notice he said he wanted to do some
upgrade installs on floppiless machines.... :-)
	John

===

Subject: Re: how to look at files in *.img files
From: John Aldrich <john@chattanooga.net>
Date: Thu, 24 Aug 2000 18:24:06 -0400

On Thu, 24 Aug 2000, Bret Hughes wrote:
> 
> Thanks.  Interestingly enough it would not mount as ext2 which is what I
> have /mnt/floppy set to in fstab.  I also had a /mnt/fatfloppy that was
> set to msdos file system that works.  Why would this be an msdos type?
> Is there a compatability issue somewhere that makes redhat need.
> 
> Thanks again, I thought I had tried the msdos thing but I guess not
> correctly.
> 
Yeah. You'll need to use dd to copy to a floppy, though, as
the previous person said. Then mount it as type vfat or
msdos (I typically use vfat, since it covers both fat16 and
fat32.)

OTOH, if you don't want to write it to a floppy, my
instructions will be what you want to use. :-)
	John

===

the rest of The Pile (a partial mailing list archive)

doom@kzsu.stanford.edu