I can do one better! I created a series of entries based on the
ones in this thread along with the "offset" support that allows
cpmtools to access multiple filesystems on the same image or device.
These first two definitions are for single partitions or filesystems:
diskdef rc2014boot
seclen 512
tracks 512
sectrk 32
blocksize 4096
maxdir 512
boottrk 1
os 2.2
end
diskdef rc2014noboot
seclen 512
tracks 512
sectrk 32
blocksize 4096
maxdir 512
boottrk 0
os 2.2
end
The next sixteen are for each of the partitions on a 128MB CF card.
Each type's name contains the drive letter for ease of reference when
using the -f flag, e.g. "-f rc2014a" for drive A:, "-f rc2014d" for
drive D:, et cetera:
diskdef rc2014a
seclen 512
tracks 512
sectrk 32
blocksize 4096
maxdir 512
boottrk 1
os 2.2
end
diskdef rc2014b
seclen 512
tracks 512
sectrk 32
blocksize 4096
maxdir 512
boottrk 0
# Offset of next partition
offset 512t
os 2.2
end
diskdef rc2014c
seclen 512
tracks 512
sectrk 32
blocksize 4096
maxdir 512
boottrk 0
# Offset of next partition
offset 1024t
os 2.2
end
diskdef rc2014d
seclen 512
tracks 512
sectrk 32
blocksize 4096
maxdir 512
boottrk 0
# Offset of next partition
offset 1536t
os 2.2
end
diskdef rc2014e
seclen 512
tracks 512
sectrk 32
blocksize 4096
maxdir 512
boottrk 0
# Offset of next partition
offset 2048t
os 2.2
end
diskdef rc2014f
seclen 512
tracks 512
sectrk 32
blocksize 4096
maxdir 512
boottrk 0
# Offset of next partition
offset 2560t
os 2.2
end
diskdef rc2014g
seclen 512
tracks 512
sectrk 32
blocksize 4096
maxdir 512
boottrk 0
# Offset of next partition
offset 3072t
os 2.2
end
diskdef rc2014h
seclen 512
tracks 512
sectrk 32
blocksize 4096
maxdir 512
boottrk 0
# Offset of next partition
offset 3584t
os 2.2
end
diskdef rc2014i
seclen 512
tracks 512
sectrk 32
blocksize 4096
maxdir 512
boottrk 0
# Offset of next partition
offset 4096t
os 2.2
end
diskdef rc2014j
seclen 512
tracks 512
sectrk 32
blocksize 4096
maxdir 512
boottrk 0
# Offset of next partition
offset 4608t
os 2.2
end
diskdef rc2014k
seclen 512
tracks 512
sectrk 32
blocksize 4096
maxdir 512
boottrk 0
# Offset of next partition
offset 5120t
os 2.2
end
diskdef rc2014l
seclen 512
tracks 512
sectrk 32
blocksize 4096
maxdir 512
boottrk 0
# Offset of next partition
offset 5632t
os 2.2
end
diskdef rc2014m
seclen 512
tracks 512
sectrk 32
blocksize 4096
maxdir 512
boottrk 0
# Offset of next partition
offset 6144t
os 2.2
end
diskdef rc2014n
seclen 512
tracks 512
sectrk 32
blocksize 4096
maxdir 512
boottrk 0
# Offset of next partition
offset 6656t
os 2.2
end
diskdef rc2014o
seclen 512
tracks 512
sectrk 32
blocksize 4096
maxdir 512
boottrk 0
# Offset of next partition
offset 7168t
os 2.2
end
diskdef rc2014p
seclen 512
tracks 128
sectrk 32
blocksize 4096
maxdir 512
boottrk 0
# Offset of next partition
offset 7680t
os 2.2
end
I tested these mainly by accessing my CF card directly when it was connected to an
Ubuntu machine on my bench (which happened to be a VM on an ESXi hypervisor box).
Here is the environment I used:
--Ubuntu Linux 17.04 ("Zesty Zapus")
--cpmtools 2.20 (apt-get install cpmtools)
This build does not contain libdsk, but you really don't need it here. This should
work fine under whatever environment under which you run cpmtools.
I hope this helps everyone!
--IJ.