Linux ext2ed Command
The Linux ext2ed command is an ext2 file system editor.
ext2ed can directly manipulate data on hard disk partitions, and this command is only provided by Red Hat Linux.
Syntax
ext2ed
General Commands:
setdevice[device name] Specifies the device to be processed.
disablewrite Sets ext2ed to read-only mode.
enablewrite Sets ext2ed to read-write mode.
help[command] Displays help for individual commands.
next Moves to the next unit, which varies depending on the current mode.
prev Moves to the previous unit, which varies depending on the current mode.
pgup Moves to the next page.
pgdn Moves to the previous page.
set Modifies the current data, with parameters varying depending on the current mode.
writedata Actually modifies the data on the partition after executing this command.
Commands to enter 3 modes in ext2
super Enters the main superblock, i.e., Superblock mode.
group<number> Enters the specified group, i.e., Group mode.
cd<directory or file> In inode mode, enters the specified directory or file, i.e., Inode mode.
Superblock Mode
gocopy<backup number> Enters the specified superblock backup.
setactivecopy Copies the current superblock to the main superblock.
Group Mode
blockbitmap Displays the block map of the current group.
inode Enters the first inode of the current group.
inodebitmap Displays the inode binary code of the current group.
Inode Mode
dir Enters directory mode.
file Enters file mode.