Jump to content











Photo
- - - - -

Mkisofs Dos Grub4dos boot


  • Please log in to reply
17 replies to this topic

#1 betrand

betrand

    Frequent Member

  • Advanced user
  • 467 posts
  •  
    France

Posted 21 February 2013 - 02:09 PM

Hi,

 

I am trying dos port of Mkisofs.

Cdrtools v2.01 by Joerg Schilling.

My work environment is as follows.

Working with a Grub4dos ramdrive, formatted with (Chenall) fat tool.

I create (different small) test isos.

 

grldr boot

isolinux boot

To start the test of the iso,

 I map --mem (fd0)/1.iso (0xff)

map --hook

root (0xff)

ls (0xff)

 

1-

mkisofs -b grldr -boot-load-seg 0x7c0 -J -joliet-long -o 2.iso folder

grub.exe

Chainloader (0xff)

works OK. Grldr is loaded, ls works)

2-

mkisofs -b isolinux -J -joliet-long -o 1.iso folder

Chainloader (0xff)

not working, reboots the computer.

Though chainloading a syslinux.bin works, gives menu, then chainloads grldr OK.

 

3-

The -r (-R) option.

If I add -r (or -R) on the above mkisofs commands,

then do the mapping,

LS gives:

bad file or wrong folder type.

 

Is this a grub4dos problem, not liking the Rockridge of the config

but would work on real hardware?

Is it a dos-mkisofs prob?

Are there options that "enable" stuff?

 

I also tried the mkisofs version supplied in Doscdroast3. (smaller exe)

Same result.

 

Thanks.

 

 

Also, what are the limitations of not having rockridge on a cd (access from xp, Linux,

and the loercase)



#2 betrand

betrand

    Frequent Member

  • Advanced user
  • 467 posts
  •  
    France

Posted 21 February 2013 - 02:32 PM

Ok, reading a readme I dowmnoladed months ago,

will link to it if I find again.

 

 

Implementing the new Rock Ridge (rrip) protocol version 1.12 from 1994.
 Mkisofs before implemented the old rrip version 1.10 from 1993.

- New option -rrip110 to disable the "new" 1994 Rock Ridge version.

 This option may be needed if you know of a system that does not deal with
 RRip V-1.12. Currently no such system is known.

Are there different rockridges and would that be problematic?

 

Ok, going to try:

 

cdrtools-3.00.7z  Google it, no time now to link.

Dunno if it will -r anything, because I might be missing options.. :unsure:

 

Cheers



#3 Wonko the Sane

Wonko the Sane

    The Finder

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

Posted 21 February 2013 - 02:39 PM

You are using (mostly) senseless mkisofs commands.

This has nothing to do with it being the DOS version, though some switches/featires are available only on certain builds.

 

Mkisofs has a particularly complex syntax and each "target" may need a given syntax.

 

As an example Isolinux NEEDS -boot-info-table ;), as specified on it's wiki:

http://www.syslinux....ex.php/ISOLINUX

 

As always, you don't "invent" syntax, you "study" it. :whistling:

 

:cheers:

Wonko



#4 betrand

betrand

    Frequent Member

  • Advanced user
  • 467 posts
  •  
    France

Posted 22 February 2013 - 03:19 PM

Hi,

Thanks for the feedback.

 

For the moment I hadn't really concentrated too much on booting isolinx, though it is fairly straightforward (wiki).

Sum-up of recent experiments:

-Mkisofs .exe is larger on the last given version.

 

The -r still gives grub4dos bad file or folder type.

I tried with options I generally use on a working win32 mkisofs command.

 

I am trying by adding 1 option at a time.

 

When Rockridge is called, Grub4dos still says bad file or folder type.

 

 

though some switches/featires are available only on certain builds.

 

:unsure:

Cheers



#5 betrand

betrand

    Frequent Member

  • Advanced user
  • 467 posts
  •  
    France

Posted 22 February 2013 - 04:06 PM

I could be using an old grub4dos, but probably _not_ 2006 old. :dubbio:

http://freecode.com/...ub4dos/releases

 

29 Aug 2006 01:17

A bug in parsing Rock-Ridge extensions was foxed. No-emulation-mode... bootable CDs can now be chainloaded

I am reading other threads also,

http://reboot.pro/to...g-and-grub4dos/,

amongst others.

 

Sick and tired of people talking to themselves in a library!



#6 cdob

cdob

    Gold Member

  • Expert
  • 1305 posts

Posted 22 February 2013 - 04:07 PM

Is it a dos-mkisofs prob?
Yes, this is a DOS release prob.
This does work at cyggwin and mingw32 versions.

I wonder about reanimatolog's DOS version http://bootcd.narod.ru
 
Also, what are the limitations of not having rockridge on a cd (access from xp, Linux,
and the loercase)
The application may fail or not. There is no general answer.
XP won't read Rockridge anyway.
May fail at some Linux versions, lowercase joliet may be sufficient.
I tried with options I generally use on a working win32 mkisofs command.
Does grub4dos list RockRidge from this ISO files?

#7 betrand

betrand

    Frequent Member

  • Advanced user
  • 467 posts
  •  
    France

Posted 22 February 2013 - 04:19 PM

I wonder about reanimatolog's DOS version http://bootcd.narod.ru

 

The one I started.

 

The application may fail or not. There is no general answer. XP won't read Rockridge anyway.

Thanks. Btw will Linux not read Joliet by the same token?

May fail at some Linux versions, lowercase joliet may be sufficient. betrand said:I tried with options I generally use on a working win32 mkisofs command.

Cdob said:Does grub4dos list RockRidge from this ISO files?

 

No also.

Thanks.



#8 Wonko the Sane

Wonko the Sane

    The Finder

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

Posted 22 February 2013 - 05:41 PM

I could be using an old grub4dos, but probably _not_ 2006 old. :dubbio:

http://freecode.com/...ub4dos/releases

 

Are you JOKING or what? :w00t:

 

You are supposed to use LATEST "featured" build from here:

http://code.google.c.../downloads/list

unless SPECIFICALLY told to use a different, older one.

 

IN ANY CASE do not use any 0.4.3 version nor any 0.4.4 version earlier than 2009-10-16.

 

READ:

http://reboot.pro/topic/14-grub4dos/

 

:cheers:

Wonko



#9 betrand

betrand

    Frequent Member

  • Advanced user
  • 467 posts
  •  
    France

Posted 22 February 2013 - 06:04 PM

Are you JOKING or what?

 

Core blimey! Does one have to spell-out jokes now on Reboot!!

Don't worry!

So, Cdob says, Xp won't read Rockridge, may fail on some Linux versions (paraphrasing).

What is the point of Rockridge?



#10 Wonko the Sane

Wonko the Sane

    The Finder

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

Posted 22 February 2013 - 10:18 PM

 
So, Cdob says, Xp won't read Rockridge, may fail on some Linux versions (paraphrasing).
What is the point of Rockridge?

NO he didn't say that.
At the face of senseless standard for .iso, (the original ISO9660) that allowed ONLY 8.3 names, THREE "proposals" were made:

ALL three aimed to remediate to the limitation.
The latter two were later included in the "next" standard (extension or revision to ISO 9660).
 
MS decided to support ONLY joliet (and ignore RockRidge)
Linux and most non MS OSes decided to support RockRidge (and ignore joliet or at least use primarily RockRidge)
 
cdob said how XP does NOT read Rockridge (see above) while some Linux may not read joliet (again see above).
 
:cheers:
Wonko



#11 cdob

cdob

    Gold Member

  • Expert
  • 1305 posts

Posted 23 February 2013 - 09:06 AM

Btw will Linux not read Joliet by the same token?
There is no general Linux. There are different distributions with different details.
A full installed Linux does read Joliet.
Read different distribution ISO images: which file systems are used?
Most contain Joliet, some not. Booted from this, the OS may read or not Joliet file system.
There is no general answer. Try each distribution.

Each filesystem has benefits and drawbacks. Choose one supporting your needs.
And differ installtion from CD or reading at full installed OS.
E.g. a PE 1 uses long names at some languages, this names are not possible at Joliet.
 
No also.
A current grub4dos does read RockRidge builded at mkisofs win32.
Name used versions grub4dos and mkisofs win32 versions.

#12 betrand

betrand

    Frequent Member

  • Advanced user
  • 467 posts
  •  
    France

Posted 23 February 2013 - 11:38 AM

Thanks for the feedback.

Before I read, I'll just amend something.

I re-read Cdob's Rockridge /joliet Win/Linux , and 'got' it the right way round;

i.e, if not rockridge, Linux may fail..

 

 

Ok.

 

@Wonko, thanks for the 'historical' view.

Linux and most non MS OSes decided to ... use primarily RockRidge)

Yeah, it's what I wanted to clarify.

@Wonko and Cdob,

A full installed Linux does read Joliet.

Yeah, I assumed Linux would have drivers one could start, to do that.

 

@ Cdob, the win32 command I tried works fine on a win32 mkisofs.exe. I just tried it "to see", on dos version.

 

 

Thanks both.



#13 cdob

cdob

    Gold Member

  • Expert
  • 1305 posts

Posted 26 February 2013 - 10:34 PM

I get at FreeDOS 1.1 and reanimatolog's DOS version http://bootcd.narod.ru

mkisofs -b grldr -boot-load-seg 0x7c0 -r -joliet-long -o \or.iso .

grub.exe (0.4.5c 2013-01-13)
map --mem /or.iso (0xff)
map --hook
ls (0xff)/

File name are listed. No error mesage.

#14 betrand

betrand

    Frequent Member

  • Advanced user
  • 467 posts
  •  
    France

Posted 27 February 2013 - 11:18 AM

Oh, wow! Thank you, Cdob!

Now, I wonder where I am doing something not good..

 

You mean this, yeah?

Официальная MS-DOS/DJGPP версия:
cdrtools-2.01-msdos-bin.zip

 

-I always use Grub4dos latest, or at very least, last year.

-Freedos I am sure is 1.1

 

Possibly I do -r -J?

 

Thanks I will try again and check..

:dubbio:



#15 betrand

betrand

    Frequent Member

  • Advanced user
  • 467 posts
  •  
    France

Posted 27 February 2013 - 03:41 PM

File name are listed. No error mesage.

 

Have you tried Cat?

 

(I tried horse in my beef) haha

 

Try cat and tell me if it works.

Thanks



#16 cdob

cdob

    Gold Member

  • Expert
  • 1305 posts

Posted 27 February 2013 - 07:55 PM

Have you tried Cat?

grub> ls (0xff)/skel.txt
skel.txt
grub> cat (0xff)/skel.txt
Error 2: Bad file or directory type

Grub4dos dosn't access file at given rock ridge attributes.


Rock Ridge Interchange Protocol
http://cdrecord.berl...te/RRIP/rrip.ps

"BP 5 to BP 12 - POSIX File Mode" skel.txt changed
from "6D 01 00 00 00 00 01 6D" to "6D 81 00 00 00 00 81 6D"

cat (0xff)/skel.txt lists file contents now.

#17 betrand

betrand

    Frequent Member

  • Advanced user
  • 467 posts
  •  
    France

Posted 27 February 2013 - 08:30 PM

Pfoo! Thanks!

 

Adding to your link,

Wiki

 

 

The Rock Ridge Interchange Protocol (RRIP, IEEE P1282) is an extension to the ISO 9660 volume format, commonly used on CD-ROMand DVD media, which adds POSIX file system semantics. The availability of these extension properties allows for better integration with Unix and Unix-like operating systems.

Cheers



#18 betrand

betrand

    Frequent Member

  • Advanced user
  • 467 posts
  •  
    France

Posted 09 December 2014 - 11:56 AM

Hi Cdob,

A bit late response,

 

But as the CDFS topic is being talked of at the moment,

 

I never asked you how you got the Rockridge working in that environment.

 

Rock Ridge Interchange Protocol
http://cdrecord.berl...te/RRIP/rrip.ps

"BP 5 to BP 12 - POSIX File Mode" skel.txt changed
from "6D 01 00 00 00 00 01 6D" to "6D 81 00 00 00 00 81 6D"

cat (0xff)/skel.txt lists file contents now.

 

Cheers.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users