libdskrc(5)
πΎ libdskrc β the manual page, bestie edition πΎ
okay so this is libdskrc(5), from the Emulators section, and it's literally just the custom format definitions for LibDSK programs. buckle up, we're learning disk geometry π
β¨ NAME β¨
libdskrc β custom format definitions for LibDSK programs π
πΈ DESCRIPTION πΈ
so the libdskrc file is where you keep your disk geometry definitions, and the LibDsk utilities dsktrans(1), dskid(1) and dskform(1) will happily read them. it's giving config file, but make it fashion.
the file is made up of one or more sections, and each section describes one disk layout. every section starts with the format name wrapped in square brackets, and it keeps going until the next section shows up. inside each section you've got one or more entries that look like this:
variable = value
anything after a semicolon or a hash character counts as a comment and gets ignored. blank lines? also ignored. we simply do not see them. π
π¦ PARAMETERS π¦
for each geometry, you can include the entries listed below. and no worries if you don't fill in every single one β if some values are missing, LibDsk falls back to the defaults from its "pcw180" format, which is 40 tracks, 9 sectors, single-sided, MFM. periodt.
description = DESCβ the description of the format, aka what shows up when you run stuff likedskform --help. it's the little name tag of your geometry π·οΈsides = TREATMENTβ how a double-sided disk gets handled. pick one:altβ sides alternate. this is what most PC-hosted operating systems do.outbackβ use side 0 tracks 0-79, then side 1 tracks 79-0. this one's for144FEATCP/M disks.outoutβ use side 0 tracks 0-79, then side 1 tracks 0-79. some Acorn formats vibe with this.
if the disk is single-sided, you can literally just leave this parameter out. no stress π
cylinders = COUNTβ sets the number of cylinders. usually40or80.heads = COUNTβ sets the number of heads. usually1or2, for single- or double-sided respectively.sectors = COUNTβ sets the number of sectors per track.secbase = NUMBERβ sets the first sector number on a track. usually1, but some Acorn formats use0(they're quirky like that).secsize = COUNTβ sets the size of a sector in bytes. this one should be a power of 2, no cap.datarate = VALUEβ sets the rate at which the disk should be accessed. pick one:HDβ1.4Mbor1.2MbDDβ360kor720kdisc in1.2MbdriveSDβ360kor720kdisc in1.4Mb,720kor360kdriveEDβ2.8Mb
rwgap = VALUEβ set the read/write gap.fmtgap = VALUEβ set the format gap.fm = Y or Nβ set the recording mode.Yfor FM,Nfor MFM.multitrack = Y or Nβ set multitrack mode. heads up: this only affects attempts to read normal data from tracks containing deleted data (or the other way around, whatever).Yfor yes,Nfor no.skipdeleted = Y or Nβ skip deleted data when you're searching for non-deleted data (or vice versa, bestie).Yfor yes,Nfor no.
π FILES π
$HOME/.libdskrcβ your personal, user-specified format list. this one's yours, main character energy π/usr/local/share/LibDsk/libdskrcβ the system-wide format list. shared with everyone, communal slay π
π₯ SEE ALSO π₯
dsktrans(1), dskform(1), dskid(1) β go read those next, iykyk π
π AUTHOR π
John Elliott <seasip.webmaster@gmail.com>. icon behavior, honestly. π
and that's a wrap on the libdskrc saga besties!! this was Version 1.2.1, dated 20 January 2006, and yes she is vintage and we love her for it π¦β¨π
π¦ where this page comes from
- fedora 43: libdsk-tools 1.5.22-1.fc43 Β· LGPL-2.0-or-later
- fedora 44: libdsk-tools 1.5.22-2.fc44 Β· LGPL-2.0-or-later
- nixos 26.05: libdsk 1.5.22
- nixpkgs unstable: libdsk 1.5.22
- Copyright (c) 2005 Darren Salt
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms