LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to extract .img file to create a "DUD" on a floppy diskette (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-extract-img-file-to-create-a-dud-on-a-floppy-diskette-447225/)

dojiep 05-21-2006 11:04 PM

how to extract .img file to create a "DUD" on a floppy diskette
 
Hi!

I need your help!

I just wanna know how to extract .img file to my floppy using any Redhat distros.

Thanks in advance!

Dojie

nitinatindore 05-21-2006 11:32 PM

dd if=whateevr.img of=/dev/fd0 bs=512

dojiep 05-22-2006 12:28 AM

Actually the .img file is the driver for Intel RAID Controller. I need that to transfer to a floppy disk so that i can load and install the RHEL 3. But my problem is, the file is larger than the floppy disk. How can i transfer it to a diskette?

dojiep 05-22-2006 09:15 PM

Good day!

just to elaborate my problem...

the contents of the image file includes Redhat AS 2.1, RHEL 3, and RHEL 4. That specific file has the capacity of 1,474KB which is larger than the capacity of a diskette. I just want only driver for RHEL 3. How can i extract the said file to get only driver for RHEL 3 so that it can be copied to a diskette.

Thanks!

Dojie

nitinatindore 05-23-2006 08:31 AM

A normal floppy can easily hold data upto approx 1.728 MB, for e.g. take tomsrtbt floppy. None the less if you want to view that particular file and copy selective contents, you can try the following.

mount imagefile.img /mnt/whatevr_mount_point -o ro,loop
then you can see image contents in the directory /mnt/whatevr_mount_point. Copy whatever you like, as you do from a normal directory.

If mount complains try out:
#mount imagefile.img /mnt/whatevr_mount_point -o ro,loop=/dev/loop0
OR
#mount -t filesystemtype imagefile.img /mnt/whatevr_mount_point -o ro,loop=/dev/loop0


All times are GMT -5. The time now is 06:04 AM.