{
    "content": [
        {
            "type": "text",
            "text": "# tk_scsiformat (man)\n\n## NAME\n\ntkscsiformat - low level format an scsi disk device with a nice user interface\n\n## SYNOPSIS\n\ntkscsiformat [device]\n\n## DESCRIPTION\n\nLow level formats the SCSI device identified by the scsi disk or generic scsi device node de‐\nvice.  You must be root to perform this operation. When you do not specify a device, tkscsi‐‐\nformat gives you a list to select a disk device from.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **BUGS**\n- **FILES**\n- **SEE ALSO**\n- **AUTHOR**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "tk_scsiformat",
        "section": "",
        "mode": "man",
        "summary": "tkscsiformat - low level format an scsi disk device with a nice user interface",
        "synopsis": "tkscsiformat [device]",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [
            {
                "name": "scsiformat",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/scsiformat/8/json"
            },
            {
                "name": "scsiinfo",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/scsiinfo/8/json"
            },
            {
                "name": "scsi-config",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/scsi-config/8/json"
            },
            {
                "name": "fdisk",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/fdisk/8/json"
            },
            {
                "name": "sd",
                "section": "4",
                "url": "https://www.chedong.com/phpMan.php/man/sd/4/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 28,
                "subsections": []
            },
            {
                "name": "BUGS",
                "lines": 13,
                "subsections": []
            },
            {
                "name": "FILES",
                "lines": 7,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 5,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "tkscsiformat - low level format an scsi disk device with a nice user interface\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "tkscsiformat [device]\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "Low level formats the SCSI device identified by the scsi disk or generic scsi device node de‐\nvice.  You must be root to perform this operation. When you do not specify a device, tkscsi‐‐\nformat gives you a list to select a disk device from.\n\ntkscsiformat is a Tcl/Tk user interface to scsiformat(8).\n\nYou should read that manual page for the general operation of scsiformat.  All common X11 and\nTcl/Tk options apply.\n\nBy the nature of graphical user interfaces, there should not be much to explain here. All en‐\ntry fields refer directly to scsiformat(8) options.\n\nIn  addition  to  those, you are able to save your selections to be used as defaults for this\ndevice next time in a file /usr/lib/scsi/scsiformat.defs.*  by pressing the  <Save  Defaults>\nbutton.  This  is  intended and very handy for formatting of removable medias. Note, however,\nthat tkscsiformat is not as clever as scsiformat(8) (or even tries to be) to find if  multi‐\nple ways to refer to the same scsi device (disk device, generic device).\n\nFurthermore,  you  can select (or enter freely) a command to automatically make a file system\non the newly formatted disk.\n\nWhile formatting a nice completion bar is drawn. Alas, I could not really implement  querying\nprogress from a target device yet.\n\nThe  /usr/lib/scsi/tworands binary is used to calculate two random integers which is not sup‐\nported by plain Tcl/Tk.\n\n",
                "subsections": []
            },
            "BUGS": {
                "content": "When not specifying a device to format, tkscsiformat will prepare a list of disk devices  to\nchoose  from.  Alas,  if a blocking format operation is running on one of them, tkscsiformat\nwill block in a non interruptible disk wait sleep.\n\nOld status files in /tmp will confuse tkscsiformat.  However,  they  are  removed  after  48\nhours.\n\nRestrictions of the SCSIIOCTLSENDCOMMAND ioctl(2) call for the sd(4) device make it impos‐\nsible to issue a FORMATUNIT command with more than 4096 bytes of arguments.  This  could  be\navoided  by  using the proper generic scsi device /dev/sg* instead, at least where the kernel\nis compiled to support it. Most of the time this is not needed though and thus I'm myself  to\nlazy to do it.\n",
                "subsections": []
            },
            "FILES": {
                "content": "/usr/lib/scsi/tworands\n/usr/lib/scsi/scsiformat.defs.*\n/tmp/scsiformat.xx:xx:xx:xx:xxxxxxxx\n/dev/sd*\n/dev/sg*\n\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "scsiformat(8), scsiinfo(8), scsi-config(8), fdisk(8), sd(4).\n\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Michael Weller <eowmob@exp-math.uni-essen.de>\n\n\n\nscsiinfo 1.7                               23 August 1997                           tkscsiformat(8)",
                "subsections": []
            }
        }
    }
}