How to troubleshoot Linux partition errors?

Source: Internet
Author: User

Give me the phone, I was decisive first let him put the system partition, the data disk partition first part, and so into the system after I remotely look at the problem. Then he does not divide the data disk after the normal installation of the system with me remotely I found the problem.

Very long string for the real RAID card recognized disk, the actual two disk is/dev/sda/dev/sdb can not mount operation. Come on, I'll try to partition him first, and I'll give you an error:

Warning:re-reading the partition table failed with error 22: invalid parameter.
The kernel still uses the old table.

After Google found:

Run ' kpartx-a ' after the ' completed is ' to ' Add all partition ' mappings on the newly-created multipath
--device E:

The command is then executed with the KPARTX-A parameter:

Kpartx-a  /dev/mapper/ddf1_4c53492020202020808627c3000000004711471100001450

Then execute the ls/dev/mapper/
I finally found out.

/dev/mapper/ddf1_4c53492020202020808627c3000000004711471100001450p7

Partition of the data disk that you just separated.

Then format:

MKFS.EXT3  /DEV/MAPPER/DDF1_4C53492020202020808627C3000000004711471100001450P7

Create LABEL:

MKDIR/DATA0
e2label/dev/mapper/ddf1_4c53492020202020808627c3000000004711471100001450p7  /data0

Modify the/etc/fstab implementation to mount automatically, add:

LABEL=/DATA0              /data0                    ext3    defaults        1 2

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.