Netboot Mailing List (by thread)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tip for mtools and DOS NBIs



The offset option of mtools can be used to skip the header and first
segment of a DOS NBI, e.g. in ~/.mtoolsrc, put

drive t: file="/tftpboot/dos.nb" offset=4096

Then you can do mdir t:

 Volume in drive T has no label
 Volume Serial Number is 1DE9-302A
Directory for T:/

COMMAND  COM     66663 12-19-1997   7:02 
telbin   exe    181776 08-30-1998  22:48  telbin.exe
ne1000   com      8751 08-29-1998  23:47  ne1000.com
autoexec bat        32 09-01-1998  21:07  autoexec.bat
        4 files             257 222 bytes
                              2 048 bytes free

mtype t:autoexec.bat, etc.

4096 is the value for the version mknbi-dos I used, being 512 for the
header + 3584 for the startup segment. It may be different for other
versions of mknbi-dos.

I think modify access won't work reliably, because the declared size of
the "disk" in the header will not be changed by mtools.
===========================================================================
This Mail was sent to netboot mailing list by:
Ken Yap <ken@nlc.net.au>
To get help about this list, send a mail with 'help' as the only string in
it's body to majordomo@baghira.han.de. If you have problems with this list,
send a mail to netboot-owner@baghira.han.de.



For requests or suggestions regarding this mailing list archive please write to netboot@gkminix.han.de.