A disk editor is a
computer program
A computer program is a sequence or set of instructions in a programming language for a computer to Execution (computing), execute. It is one component of software, which also includes software documentation, documentation and other intangibl ...
that allows its user to read, edit, and write raw data (at
character or
hexadecimal
Hexadecimal (also known as base-16 or simply hex) is a Numeral system#Positional systems in detail, positional numeral system that represents numbers using a radix (base) of sixteen. Unlike the decimal system representing numbers using ten symbo ...
,
byte-levels) on disk drives (e.g.,
hard disk
A hard disk drive (HDD), hard disk, hard drive, or fixed disk is an electro-mechanical data storage device that stores and retrieves digital data using magnetic storage with one or more rigid rapidly rotating hard disk drive platter, pla ...
s,
USB flash disks or
removable media
In computing, a removable media is a data storage media that is designed to be readily inserted and removed from a system. Most early removable media, such as floppy disks and optical discs, require a dedicated read/write device (i.e. a drive) ...
such as a
floppy disk
A floppy disk or floppy diskette (casually referred to as a floppy, a diskette, or a disk) is a type of disk storage composed of a thin and flexible disk of a magnetic storage medium in a square or nearly square plastic enclosure lined with a ...
s); as such, they are sometimes called ''sector editors,'' since the read/write routines built into the electronics of most disk drives require to read/write data in chunks of
sectors
Sector may refer to:
Places
* Sector, West Virginia, U.S.
Geometry
* Circular sector, the portion of a disc enclosed by two radii and a circular arc
* Hyperbolic sector, a region enclosed by two radii and a hyperbolic arc
* Spherical sector, a ...
(usually 512 bytes). Many disk editors can also be used to edit the contents of a running computer's
memory
Memory is the faculty of the mind by which data or information is encoded, stored, and retrieved when needed. It is the retention of information over time for the purpose of influencing future action. If past events could not be remembe ...
or a
disk image
A disk image is a snapshot of a storage device's content typically stored in a file on another storage device.
Traditionally, a disk image was relatively large because it was a bit-by-bit copy of every storage location of a device (i.e. every ...
.
Unlike ''
hex editor
A hex editor (or ''binary file editor'' or ''byte editor'') is a computer program that allows for manipulation of the fundamental Binary file, binary data that constitutes a computer file. The name 'hex' comes from 'hexadecimal', a standard numer ...
s,'' which are used to edit
files, a disk editor allows access to the underlying disk structures, such as the
master boot record
A master boot record (MBR) is a type of boot sector in the first block of disk partitioning, partitioned computer mass storage devices like fixed disks or removable drives intended for use with IBM PC-compatible systems and beyond. The concept ...
(MBR) or
GUID Partition Table
The GUID Partition Table (GPT) is a standard for the layout of partition tables of a physical computer storage device, such as a hard disk drive or solid-state drive. It is part of the Unified Extensible Firmware Interface (UEFI) standard.
It ha ...
(GPT),
file system, and
directories. On some operating systems (like
Unix
Unix (, ; trademarked as UNIX) is a family of multitasking, multi-user computer operating systems that derive from the original AT&T Unix, whose development started in 1969 at the Bell Labs research center by Ken Thompson, Dennis Ritchie, a ...
or
Unix-like
A Unix-like (sometimes referred to as UN*X, *nix or *NIX) operating system is one that behaves in a manner similar to a Unix system, although not necessarily conforming to or being certified to any version of the Single UNIX Specification. A Uni ...
) most hex editors can act as disk editors just opening
block devices instead of regular files. Programmers can use disk editors to understand these structures and test whether their implementation (e.g. of a file system) works correctly. Sometimes these structures are edited in order to provide examples for teaching data recovery and forensics, or in an attempt to hide data to achieve privacy or hide data from casual examiners. However, modifying such data structures gives only a weak level of protection and
data encryption is the preferred method to achieve privacy.
Some disk editors include special functions which enable more comfortable ways to edit and fix file systems or other disk specific data structures. Furthermore, some include simple file browsers that can present the disk contents for partially corrupted file systems or file systems unknown to the operating system. These features can be used for example for file recovery.
History
Disk editors for
home computer
Home computers were a class of microcomputers that entered the market in 1977 and became common during the 1980s. They were marketed to consumers as affordable and accessible computers that, for the first time, were intended for the use of a s ...
s of the 1980s were often included as part of utility software packages on floppies or
cartridges. The latter had the advantage of being instantly available at power-on and after resets, instead of having to be loaded or reloaded on the same disk drive that later would hold the floppy to be edited (the majority of home computer users possessed only one floppy disk drive at that time). Having the disk editor on cartridge also helped the user avoid editing/damaging the disk editor application disk by mistake.
All 1980s disk editors strove to be better than
DEBUG
In engineering, debugging is the process of finding the root cause, workarounds, and possible fixes for bugs.
For software, debugging tactics can involve interactive debugging, control flow analysis, log file analysis, monitoring at the ap ...
contained in
DOS.
DEBUG
could load, edit, and write one or more sectors from a
floppy or
hard disk
A hard disk drive (HDD), hard disk, hard drive, or fixed disk is an electro-mechanical data storage device that stores and retrieves digital data using magnetic storage with one or more rigid rapidly rotating hard disk drive platter, pla ...
based on the
BIOS
In computing, BIOS (, ; Basic Input/Output System, also known as the System BIOS, ROM BIOS, BIOS ROM or PC BIOS) is a type of firmware used to provide runtime services for operating systems and programs and to perform hardware initialization d ...
. This permitted simple disk editing tasks such as saving and restoring the
master boot record
A master boot record (MBR) is a type of boot sector in the first block of disk partitioning, partitioned computer mass storage devices like fixed disks or removable drives intended for use with IBM PC-compatible systems and beyond. The concept ...
and other critical sectors, or even changing the active (= boot) partition in the MBR.
In an
NTVDM
Virtual DOS machines (VDM) refer to a technology that allows running 16-bit/32-bit DOS and 16-bit Windows programs when there is already another operating system running and controlling the hardware.
Overview
Virtual DOS machines can operate e ...
under 1993's
Windows NT
Windows NT is a Proprietary software, proprietary Graphical user interface, graphical operating system produced by Microsoft as part of its Windows product line, the first version of which, Windows NT 3.1, was released on July 27, 1993. Original ...
DEBUG
could not access the physical drive with the
MBR of the operating system and so was in essence useless as disk editor for the system drive. The
Resource Kit and the support tools for some Windows NT versions contained
DSKPROBE
as a very simple disk editor supporting the use and modification of the partition table in the MBR and related tasks.
Partition editor

A partition editor (also called partitioning utility) is a kind of
utility software
Utility software is a program specifically designed to help manage and tune system or application software. It is used to support the computer infrastructure - in contrast to application software, which is aimed at directly performing tasks that b ...
designed to view, create, modify or delete
disk partition
Disk partitioning or disk slicing is the creation of one or more regions on Computer data storage#Secondary storage, secondary storage, so that each region can be managed separately. These regions are called partitions. It is typically the first ...
s. A disk partition is a logical segment of the storage space on a storage device. By partitioning a large device into several partitions, it is possible to isolate various types of data from one another, and allow the coexistence of two or more operating systems simultaneously. Features and capabilities of partition editors vary, but generally they can create several partition on a disk, or one contiguous partition on several disks, at the discretion of the user. They can also, shrink a partition to allow more partitions created on a storage device, or delete one and expand an adjacent partition into the available space.
See also
*
Hex editor
A hex editor (or ''binary file editor'' or ''byte editor'') is a computer program that allows for manipulation of the fundamental Binary file, binary data that constitutes a computer file. The name 'hex' comes from 'hexadecimal', a standard numer ...
*
Comparison of hex editors
*
SuperZap
References
{{reflist
Utility software types