The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
* [TUHS] DEC RL01/RL02 RX01/RX02 Disk Image Creator
@ 2020-06-01 10:18 Paul Riley
  2020-06-01 13:01 ` Ronald Natalie
  2020-06-01 13:04 ` Clem Cole
  0 siblings, 2 replies; 19+ messages in thread
From: Paul Riley @ 2020-06-01 10:18 UTC (permalink / raw)
  To: tuhs

[-- Attachment #1: Type: text/plain, Size: 195 bytes --]

Team Unix,

Is there a Windows or Linux utility to create a disk image in any of the
above formats, from a local folder tree?

Paul

*Paul Riley*

Mo: +86 186 8227 8332
Email: paul@rileyriot.com

[-- Attachment #2: Type: text/html, Size: 681 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread
* [TUHS] DEC RL01/RL02 RX01/RX02 Disk Image Creator
@ 2020-06-01 15:04 Paul Ruizendaal
  2020-06-01 22:54 ` Paul Riley
  0 siblings, 1 reply; 19+ messages in thread
From: Paul Ruizendaal @ 2020-06-01 15:04 UTC (permalink / raw)
  To: paul, TUHS main list

> Team Unix, Is there a Windows or Linux utility to create a disk image in any of the above formats, from a local folder tree? Paul *Paul Riley*

It seems you are asking for two tools in the BK-UNIX toolbox, fsutil and dskutil
https://github.com/sergev/bkunix/tree/master/fsutil
https://github.com/sergev/bkunix/tree/master/diskutil

The first generates a Unix 6th edition file system from a local directory tree. The result is a binary file with the 512 byte disk blocks stored in sequence. Maybe this is what SIMH needs, I’m not into the details of SIMH.

The second appears to be a tool to take the a file generated by the fsutil tool and split that into sectors and tracks. I’m not familiar with this tool, but it looks like you might need something similar (I assume that you have some way to hook up a 8” drive to your PC?). Sector interleaving may be an issue to look out for.

When preparing a LSX system disk, you will need to think carefully about the layout:

Presumably the disk works with 128 byte sectors and 4 sectors are grouped together to create a 512 byte unix block. Check out the disk driver code for details:
https://www.tuhs.org/cgi-bin/utree.pl?file=LSX/sys/decfd.c

Block 0 contains bootstrap code which is loaded/called from the monitor rom (or from a short code sequence keyed in on a “blinkenpanel” console).

The filesystem itself starts at block 1 and runs up to a block N (you need to tell fsutil how big the filesystem needs to be).

After block N up to the end of the disk is space to contain 2 swapped out programs plus 1 block for the return code of the third (default LSX has a maximum of 3 processes). You have to figure out how many 512 blocks are on your floppy and subtract out the swap space to arrive at a figure for N.

In the LSX source code ’N’ is known as the define SWPLO, see param.h for details:
https://www.tuhs.org/cgi-bin/utree.pl?file=LSX/sys/param.h

In this file, 99 blocks are reserved for swap, corresponding to processes with 24KB memory; total disk size is defined as 500 blocks, 250KB - note that this slightly exceeds the 241KB offered by the standard IBM 77 track 26 sector formatting for 8” disks. Probably you will need to tweak the values in param.h

Be careful with size units in the source code. Often sizes are expressed in words (2 bytes). Where memory is concerned it is often expressed in ‘clicks’, 64 bytes.





^ permalink raw reply	[flat|nested] 19+ messages in thread
* [TUHS] DEC RL01/RL02 RX01/RX02 Disk Image Creator
@ 2020-06-01 15:18 Paul Ruizendaal
  0 siblings, 0 replies; 19+ messages in thread
From: Paul Ruizendaal @ 2020-06-01 15:18 UTC (permalink / raw)
  To: paul, TUHS main list

> 
> In this file, 99 blocks are reserved for swap, corresponding to processes with 24KB memory; total disk size is defined as 500 blocks, 250KB - note that this slightly exceeds the 241KB offered by the standard IBM 77 track 26 sector formatting for 8” disks. Probably you will need to tweak the values in param.h

Oops: 77 tracks by 26 sectors of 128 bytes, makes 250.25KB, so it should work as configured.






^ permalink raw reply	[flat|nested] 19+ messages in thread
* Re: [TUHS] DEC RL01/RL02 RX01/RX02 Disk Image Creator
@ 2020-06-02  0:14 Noel Chiappa
  2020-06-02  1:26 ` Ronald Natalie
  0 siblings, 1 reply; 19+ messages in thread
From: Noel Chiappa @ 2020-06-02  0:14 UTC (permalink / raw)
  To: tuhs; +Cc: jnc

    > From: Ronald Natalie

    > The V6 file system was limited to 2^24 blocks

No, 2^16; from filsys.h:

        int     s_fsize;        /* size in blocks of entire volume */

and of course on an -11 an int is 16 bits.

Maybe you're thinking of the file size, which was 2^24 bytes (max).

      Noel

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2020-06-02 19:08 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-01 10:18 [TUHS] DEC RL01/RL02 RX01/RX02 Disk Image Creator Paul Riley
2020-06-01 13:01 ` Ronald Natalie
2020-06-01 22:35   ` Paul Riley
2020-06-01 13:04 ` Clem Cole
2020-06-01 22:45   ` Paul Riley
2020-06-01 23:59     ` Ronald Natalie
2020-06-02  4:57       ` Paul Riley
2020-06-02 13:31     ` Clem Cole
2020-06-02 13:52     ` Clem Cole
2020-06-02 15:44       ` Ronald Natalie
2020-06-02 16:26         ` Warner Losh
2020-06-02 18:08         ` Clem Cole
2020-06-02 18:59         ` Paul Winalski
2020-06-02 19:08           ` Adam Thornton
2020-06-01 15:04 Paul Ruizendaal
2020-06-01 22:54 ` Paul Riley
2020-06-01 15:18 Paul Ruizendaal
2020-06-02  0:14 Noel Chiappa
2020-06-02  1:26 ` Ronald Natalie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).