A disk editor is a
computer program that allows its user to read, edit, and write raw data (at
character or
hexadecimal
In mathematics and computing, the hexadecimal (also base-16 or simply hex) numeral system is a positional numeral system that represents numbers using a radix (base) of 16. Unlike the decimal system representing numbers using 10 symbols, hexa ...
,
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 platters coated with magnet ...
s,
USB flash disk
A USB flash drive (also called a thumb drive) is a data storage device that includes flash memory with an integrated USB interface. It is typically removable, rewritable and much smaller than an optical disc. Most weigh less than . Since first ...
s or
removable media such as a
floppy disk
A floppy disk or floppy diskette (casually referred to as a floppy, or a diskette) is an obsolescent 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 w ...
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 (usually 512 bytes). Many disk editors can also be used to edit the contents of a running computer's
memory or a
disk image.
Unlike ''
hex editors,'' which are used to edit
files
File or filing may refer to:
Mechanical tools and processes
* File (tool), a tool used to ''remove'' fine amounts of material from a workpiece
**Filing (metalworking), a material removal process in manufacturing
** Nail file, a tool used to gent ...
, a disk editor allows access to the underlying disk structures, such as the
master boot record
A master boot record (MBR) is a special type of boot sector at the very beginning of partitioned computer mass storage devices like fixed disks or removable drives intended for use with IBM PC-compatible systems and beyond. The concept of MBR ...
(MBR) or
GUID Partition Table (GPT),
file system
In computing, file system or filesystem (often abbreviated to fs) is a method and data structure that the operating system uses to control how data is stored and retrieved. Without a file system, data placed in a storage medium would be one larg ...
, and
directories. On some operating systems (like
Unix or
Unix-like) most hex editors can act as disk editors just opening
block devices
In Unix-like operating systems, a device file or special file is an interface to a device driver that appears in a file system as if it were an ordinary file. There are also special files in DOS, OS/2, and Windows. These special files allow ...
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 computers 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 disk editors strive to be better than
DEBUG
In computer programming and software development, debugging is the process of finding and resolving '' bugs'' (defects or problems that prevent correct operation) within computer programs, software, or systems.
Debugging tactics can involve int ...
contained in all
DOS versions.
DEBUG
can 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 platters coated with magnet ...
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 firmware used to provide runtime services for operating systems and programs and to perform hardware initialization during the ...
. This permits simple disk editing tasks such as saving and restoring the
master boot record
A master boot record (MBR) is a special type of boot sector at the very beginning of partitioned computer mass storage devices like fixed disks or removable drives intended for use with IBM PC-compatible systems and beyond. The concept of MBR ...
and other critical sectors, or even changing the active (= boot) partition in the MBR. In an
NTVDM under
Windows NT DEBUG
cannot access the physical drive with the
MBR
MBR may refer to:
Computing
* Master boot record, the first sector of a partitioned data storage device, used for booting
* Memory buffer register
* Minimum bounding rectangle
* Minimum bit rate
Publications
* ''The Malaysia Book of Records''
* ...
of the operating system and is in essence useless as disk editor for the system drive. The
Resource Kit Resource Kit is a term used by Microsoft for a set of software resources and documentation released for their software products, but which is not part of that product. Resource kits offer supplementary resources such as technical guidance, compatib ...
and the support tools for some Windows NT versions contain
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 designed to view, create, modify or delete
disk partitions. 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
*
Comparison of hex editors
References
{{reflist
Utility software types