Jump to content











Photo
- - - - -

Access to iso files


  • Please log in to reply
5 replies to this topic

#1 tylercfd

tylercfd
  • Members
  • 3 posts
  •  
    France

Posted 01 February 2011 - 05:35 PM

Hello,

first of all, sorry for my bad English ;)

I'm trying to boot a personnal .iso ( boot freedos "balder10.img" ) file placed on a USB key using GRUB4DOS. No problem, it works fine but i can't access the .iso content.

Here is the Grub commands :

title bootiso

find --set-root /myiso.iso

map /myiso.iso (0xff)

map --hook

root (0xff)

chainloader (0xff)

boot


I read this post ( and many other ) before posting :
http://reboot.pro/13115/
but it don't really answer my questions...

I made the .iso file with mkisofs with the following command line :
mkisofs -r -J -l -v -T -iso-level 3 -b balder10.img -c boot.cat -V "freedos" -o myiso.iso mkiso

I'm using the balder10.img floppy disk image because i need freedos ( or dos boot ) to use several dos applications that are copied into the .iso.
I also modified the balder10.img following these instructions :
http://diddy.boot-la...es/map.htm#hd32
Here is the full content of the 2 files i edited "fdconfig.sys" and "autoexec.bat" ( i added the "eltorito.sys" file in the balder10.img of course ).

fdconfig.sys :
shell=command.com command.com /P

device=eltorito.sys /D:freedos



!lastdrive=z

!buffers=20

!files=40


autoexec.bat :

@ECHO OFF

SET NLSPATH=A:\

SET HELPPATH=A:\

SET TEMP=A:\

SET TMP=A:\

SET WATTCP.CFG=A:\

SET PATH=A:\

SET PROMPT=$P$G

SET DIRCMD=/OGN

SET LANG=EN

SET BLASTER=A220 I5 D1 H5 P330

if "%config%"=="" goto end

if "%1"=="" goto mouse



MSCDEX /D:freedos /L:D



:mouse

if exist ctmouse.exe CTMOUSE

IF "%CONFIG%" == "6" CALL .\LOADCD.BAT

goto end

:end


I also tried to change the line :
MSCDEX /D:freedos /L:D
by :
SHSUCDX /D:SHSU001

Eltorito returns :
Drive FF returns 0800h bytes per sector
Device name : FREEDOS
Driver installed

So it seems that Eltorito found the drive but the result still the same, the boot files of the .iso are fully accessible ( under drive A: ) but NOT the .iso content.
Drive D: is invalid !

I spend a lot of time to resolve this problem without success, i tried a lot of things in vain...
I just want to access my .iso content under dos...is it really possible ?

Thanks for help.
Ty.

#2 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 13745 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 01 February 2011 - 06:23 PM

You may want to re-read the mentioned thread:
http://reboot.pro/13115/
with particular regard to this post:
http://reboot.pro/13115/page__st__5

You are going into completely UNneeded trouble only because you are focused on booting from a .iso image.
That is probably NOT your goal, your goal should be boot *something* mapped by grub4dos, residing on a USB stick, capable of running DOS (or FreeDos).

If you replace the *something* with ".iso" (image of a CDFS) it is complex
If you replace the *something* ".img" (image of a hard disk or of a super-floppy) it is easy

Make your choice, but choose wisely. ;)
http://www.imdb.com/...uotes?qt0357926

Grail Knight: But choose wisely, for while the true Grail will bring you life, the false Grail will take it from you.


Guess WHAT the OP in that thread chose? ;)
http://reboot.pro/13115/page__st__47

http://reboot.pro/13171/

;)
Wonko

#3 tylercfd

tylercfd
  • Members
  • 3 posts
  •  
    France

Posted 01 February 2011 - 07:41 PM

Hi Wonko,

you're probably right ( and Grail Knight too ), i just want to boot something mapped by grub4dos...but able to store a lot of things ( that's why i choose the .iso format ).

The "freedos floppy into HDD..." sounds good ! I'm gone try it ( it will take 5 min at least...^^ ). I saw this post but you're right i focused too much on the .iso format. And, to be honest if i knew how to create my own .img file with the size i want i did it. But i'm not, so i choose the .iso.
Still a question about that : What is the difference between .img and .raw ( as specified in sambul61's tut ). Is it easier to create an .img file ?


I'm gone working on sambul61's tut and i'll post back the result.

Thanks a lot !

#4 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 13745 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 01 February 2011 - 07:55 PM

What is the difference between .img and .raw ( as specified in sambul61's tut ). Is it easier to create an .img file ?

If you have a keyboard without the keys R, A or W, yes, of course. ;)

Try checking here ;):
http://reboot.pro/13624/

;)
Wonko

#5 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12688 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 01 February 2011 - 08:28 PM


title bootiso

find --set-root /myiso.iso

map /myiso.iso (0xff)

map --hook

root (0xff)

chainloader (0xff)

boot

That's theoretically correct and starts the ISO.
But some (or better said: most) of known ISOs have a "small" issue: They search for some files.
E.g.: Avira Rescue CD needs the folder "antivir" , and it searches for it in all known devices. In this case the user must provide the "antivir" folder in the ISO's root.

Sorry, that is a step which has to be supplied by the Winbuilder script, and cannot be generated automatically.

#6 tylercfd

tylercfd
  • Members
  • 3 posts
  •  
    France

Posted 02 February 2011 - 07:27 PM

I finally stop my first idea to use an .iso file, as i said previously booting was not a problem but accessing .iso content...a LITTLE bit harder :/

Following the "Converting a FreeDOS Floppy into a Hard Drive image" tutorial was a good solution, i made easily and rapidly a raw image ( that is the same as .img and .ima, it's always good to learn something :happy_dance: ) which contains eveythings i need :
- A DOS ( FreeDos balder10 in my case ) boot
- A big or small storage capacity depends on my needs
- Easy to boot with Grub4dos

@pscEx :
It works fine to boot several iso files like Memtest86+ Pre-compiled iso or FreeDos fdbasecd.iso

Thanks for help !




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users