Forum: EasyBoot
Topic: image file of .img.gz
started by: allgames71

Posted by allgames71 on Nov. 11 2011,10:39
hello balder ,

I've forgot how do with the image file "dos.img.gz" in my usb-hdd which is in the image folder.

I know how to extract the .img.gz file (with winrar) , but after I add something in it. I forgot how the compress it back to "dos.img.gz"

My menu.lst is :

title  DOS Big Floppy Disc
map --mem /IMAGES/dos.img.gz (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
boot

Thanks

Posted by balder on Nov. 11 2011,11:46
@allgames71

Hi again @allgames71 :;):

Quote: "but after I add something in it. I forgot how the compress it back to "dos.img.gz""

Hmmm... Interesting question @allgames71 ???  

First of all - you actually don't need to use gz-compressed floppy image-file.
You can run it as it is ***.img or ***.ima

In fact you can launch floppy image using:  run ***.img  
But if you decide to compress floppy image to gz-format you are bound to use grub and "--mem" command to launch compressed image from RAM (which is exactly what you show).

However request was about how to easily get image back to the gz-format ???  

I use TotalCommander and UltraIso to manipulate gz-compressed floppy images (TotalCommander has built-in support to directly open gz-compressed images)
I simply open gz-compressed floppy image in one of the two windows in TotalCommander and "drags" (extracting) image to the other window.
I of course use UltraIso to open extracted floppy image in that other window and using UltraIso I 'drag' (extract) file(s) from floppy image and also 'injecting' back (drag) extracted file(s) back to floppy image.
I save changes to floppy image followed by 'drag' saved floppy image back into the window that still holds my opened gz-image.
I save changes when asked to ez-compressed image and that's it :)

However you can also use my script "easyboot-cab.script" and push on button "G-ZIP"
Script ask for location of file to run g-zip to and that's it :cool:

regards balder



Posted by allgames71 on Nov. 12 2011,11:56
hello balder,

According to your instruction , Total Commander is the best for making .gz file. Thanks a lot.

But my "dos.img.gz" is not in my dvd , if it's in dvd , it's easy and I managed it already. But I really forget how I put this "dos.img.gz" in my usb-hdd with the menu.lst like this :

title  DOS Big Floppy Disc
map --mem /IMAGES/dos.img.gz (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
boot

I forgot how to make this big floppy image (25.7 MB) like this in .gz way. Anyway thanks for you instruction. Thanks

Posted by balder on Nov. 12 2011,12:15
@allgames71

Eeee... is your problem solved - or.... ???

I suggest you always put in the 'autosearch'-command 'find --set-root' :O
Below is the recommended lines to use in your case :;):
Note: 'boot' in the end is actually not needed - so I skipped that line :cool:


title  DOS Big Floppy Disc
find --set-root /IMAGES/dos.img.gz
map --mem /IMAGES/dos.img.gz (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)

regards balder

Posted by allgames71 on Nov. 13 2011,02:15
hello balder ,

Thanks for the instruction. I've solve my problem already. Thanks