linux-centos7-disk partitioning system grub common fault row

Source: Internet
Author: User
Tags uuid

Grub Troubleshooting General Troubleshooting
MBR446 byte overwrite cannot start

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M00/8F/13/wKioL1jTNZHD0aU8AAAnzbkBHpg948.png "title=" Picture 1.png "alt=" Wkiol1jtnzhd0au8aaanzbkbhpg948.png "/>

The above command is equivalent to corrupting the MBR446 byte dd overlay
disc boot required after reboot
Select First Aid mode
You only need to enter
GRUB2-INSTALL/DEV/SDA
Reboot is OK.
Example 2:grub.cfg kernel configuration file corruption removal
Delete all files directly under/boot/grub2/
rm-rf/boot/grub2/*
or CD-ROM boot , into rescue mode
The workaround is to reinstall the kernel files , because Linux is basically completely open source, so the basic any file problems can be fixed,
RPM-IVH/**/kernel-*** kernel file--force
must be forced to overwrite , because the original has installed the kernel package, do not force the installation can not continue, using Yum need to uninstall after installation, no RPM convenient
---------------------------------------------------------------------------------------------Disk Partitions

MBR format up to 4 primary partitions, and then establish logical partitions, each with a maximum on-line 2T MBR with only 64 partition tables, each partition needs 16 bytes to represent so 4 partitions
GPT format up to 128 partitions, partition size varies by system, maximum support 18EB[1EB=1024PB 1PB=1024TB] Partition table has redundancy .
fdisk is common and normal. The most common partitioning method
Gdisk can partition GPT format partition usage is basically the same as Fdisk
parted is more flexible than before, free to set MBR GPT format
mklabel msdos[mbr format] gpt[gpt format]
Primary primary partition extended extended partition logical logical partition
 Set number flag State is used to set the purpose of the partition,Flag:Boot,LVM,raid. SThe Tate:on/off means to turn on or off.

parted tool does not need to be saved after sorting out the area, enterQyou can exit.
Vim/etc/fstab automatic mount partition normal partition way with UUID hanging most suitable
xfs_admin-u viewing UUID
-----------------------------------------------------------------Swap extension
Create swap blocks in the space you need
DD If=/dev/zero of=/swapfile bs=1m count=2048
Creating Blocks
mkswap/swapfile format is swap
chmod 600/swapfile Permissions
swapon/swapfile Start
Cat/proc/swaps to see if the swap was successfully added
-------------------------------------------------------LVM Volumes
pvcreate/dev/sdb[123 ABC] multi-select multi-match multiple creation of the supporting PV
Pvscan View PV
vgcreate name/dev/sdb[123 ABC] is already a group of PV added cities
Vgscan Group View
lvcreate-l size [100M]-n name Group name create partition
Lvscan View the partition.
mkfs-t XFS Device name partition formatted partition
mounts to use the !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


This article is from the "11627223" blog, please be sure to keep this source http://11637223.blog.51cto.com/11627223/1909504

linux-centos7-disk partitioning system grub common fault row

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.