Detailed explanation of ext2edext2 file system editing program commands in CentOS

Source: Internet
Author: User
Ext2ed (ext2filesystemeditor) function description: ext2 file system editing program. Syntax: ext2ed supplement: ext2ed can directly process data on hard disk partitions. This command is only available in RedHatLinux. Parameter: the general command setdevice [Device Name] specifies the device to process. Disablewrite sets ext2ed to read-only. Enablewrite sets ext2ed to read/write status. H

Ext2ed (ext2 file system editor)
Function description: ext2 file system editing program.

Syntax: ext2ed

Note: ext2ed can directly process data in hard disk partitions. This command is only available in Red Hat Linux.

Parameters:
General Commands
Setdevice [Device Name] specifies the device to process.
Disablewrite sets ext2ed to read-only.
Enablewrite sets ext2ed to read/write status.
Help [command] displays the help of some commands.
Next is moved to the next unit. the unit varies according to the current mode.
The prev is moved to the previous unit. the unit varies according to the current mode.
Move pgup to the next page.
Move pgdn to the previous page.
Set modifies the current data. the parameters vary according to the current mode.
After executing this command, writedata will actually modify the data in the partition.

Ext2 commands in three modes
Super enters the main superblock mode, that is, Superblock mode.
Group <编号> Enter the specified group, that is, the Group mode.
Cd <目录或文件> In inode mode, enter the specified directory or file, that is, Inode mode.

Superblock mode
Gocopy <备份编号> Go to the specified superblock backup.
Setactivecopy copies the current superblock to the main superblock.

Group mode
Blockbitmap shows the current block map of groupo.
Inode enters the first inode of the current group.
Inodebitmap displays the inode binary code of the current group.

Inode mode
Dir enters the directory mode.
File enters the file mode.


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.