Siege Lion on the Way (iii) Linux (23)---Linux Disk parameter modification (device code, device name)

Source: Internet
Author: User

First, Mknod: Set the device code

In Linux, all devices are represented by files, and the files are judged by major and minor values.

Major is the main device code, minor is the device code (need to query), the example is as follows:

/dev/hda---------major:3------minor:0~63

/DEV/HDB----------major:3------minor:64~127

/DEV/SDA----------major:8------minor:0~15

...

Command format: Mknod device name [BCP] [major] [minor]

Parameter description:

B: External storage devices, such as hard drives.

C: External input device, such as mouse, keyboard.

P:fifo file.

Example: MKNOD/DEV/HDC10 B 22 10

Second, E2label: Modify the device name

Command format: E2label device name new device name

Example: E2label/dev/hdc6 "My_test"

Third, TUNE2FS: The main function is to convert the Ext2 file system to the Ext3 file system

Command format: TUNE2FS [-JLL] Device code

Parameter description:

-L: Read the data from Super block

-j: Converting the Ext2 file system to a ext3 file system

-L: Similar to E2label

Four, Hdparm:

Set the IDE interface of the hard disk advanced parameters, no effect on SATA, temporarily do not understand.

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.