Sometimes we use a USB flash drive to install centos, and accidentally install grub to the USB flash drive. As a result, the boot needs to be inserted into the USB flash drive to start the server, or grub is damaged. In this case, we need to re-install grub to the hard disk. The following describes several repair or installation methods:
Install
Purpose:Create a grub interface that can run on other computers.Pure entertainment.
Principle:According to the Linux system startup process, we only know that grub is used to guide the operating system, so we can completely, create a grub page and run it on other computers.
General process introduction:A dual-Hard Disk Linux system is required. Install a
GNU GRUB (Grand Unified bootloader "Grub") is a multiple operating system startup program from the GNU Project. Grub is an implementation of the multiple-boot specification, which allows users to have multiple operating systems in the computer at the same time, and select the operating system that they want to run when the computer starts.
1. Use the grub-md5-crypt to generate the md5 password of GRUB;Through the grub-md5-crypt to add the password GRUB Password calculation, for example, we want to set the grub Password is 123456, so we first use md5 to encrypt the password 123456
[Root @ linux01 beina
(The red part is the description)Grub. cfg is read-only by default. It must be set to writable before modification.Sudo chmod + w/boot/GRUB/grub. cfg
Set default = 0# The default value is 0.Insmod JPEG# Add JPG support. To use a PNG or TGA file as the background, add insmod PNG or insmod TGA.Insmod ext2# In addition to partitions used for startup, other partition
Because Windows 7 (Vista is the same) is activated by touching the Slic information of your OEM through grub, so the Master Boot partition MBR is occupied by this grub to activate Windows 7.
However, if you want to install Linux in other partitions at the same time, a problem occurs: grub cannot be added to MBR; otherwise, Windows 7 activation will be damaged.
Th
1. Install CentOS first, then Ubuntu.2, and start it with the CentOS installation disk, run linuxrescue in shell to run chroot/mnt/sysimagegrub-install/dev/sda to fix grub of CentOS when the startup option appears, then reboot3. mount/dev/sda6/mediavi/media/boot/grub/gru to the Ubuntu partition mounted to CentOS.
1. Install CentOS first and then Ubuntu.2. Use CentOS to install the disk and use linux rescue
Grub is the management setting for Linux * users to open the machine. In ubuntu, these resources are placed under/boot/GRUB/object.
It is often seen on the Internet that grub crashes (it should be said that MBR crashes) and cannot be opened, sometimes it is caused by installing windows after ubuntu. How can I fix this phenomenon?
MBR crash (if you do not know
Ubuntu fixed the grub command. A problem occurred while backing up grub. cfg today, leading to the accidental deletion of grub. cfg. What's worse is that I didn't realize this yet. After restarting, I only saw the grub command line interface with black and white characters. A line of
WINDOWS10 Update has a certain chance of destroying grub so that the grub boot file cannot be found, so we want it to find the boot file.
When prompted on the screen: Grub resume>.
1, the set command to see which disk the current grub boot is pointing to.
Grub Resume> Set
Di
GRUB encryption is a common task in LINUX. But today I checked this on the internet and found that many people wrote it very easily, and the methods were outdated. Therefore, here I update GRUB encryption. Share with you. GRUB is to configure the/boot/grub. conf file. First, let's talk about the benefits of
What is grub, Baidu? It's mainly about starting the encryption system and entering the password
I use CentOS here.
First download grub: wget ftp://ftp.gnu.org/gnu/grub/grub-2.00.tar.gz
Decompress the downloaded package.
Tar zvxf grub-2.00.tar.gz
After decompression, find
1. Hack Grub1. first to set the password for grub, here are two ways to set up, one is plaintext encryption, the other is ciphertext encryption. First in plaintext encryption, to change the configuration file, in the /etc/grub.conf.2. Open the/etc/grub.conf file with VI or vim .add a line after Hiddenmenu, enter:password 123 (123 is the password you want to set). and then save. 3. This is to set plaintext encryption to
In general, we will install GRUB boot records on MBR when installing Linux. After windows is re-installed, the MBR is overwritten and grub cannot be used for boot. There are a lot of information on how to reload Linux, such as grub4dos and Windows OS loader. In my opinion, the easiest way is to use Linux Live CD to reinstall grub. Next we will take Ubuntu live CD
GRUB encryption is a common task in LINUX. But today I checked this on the internet and found that many people wrote it very easily, and the methods were outdated. Therefore, here I update GRUB encryption. Share with you.
GRUB is to configure the/boot/grub. conf file.
First, let's talk about the benefits of
GRUB encryption is a common task in LINUX. But today I checked this on the internet and found that many people wrote it very easily, and the methods were outdated. So here I will update the GRUB encryption knowledge. Share with you.
GRUB is to configure the/boot/grub. conf file.
First, let's talk about the benefits o
To display a background image in grub, the following restrictions apply:
1. The image size is limited to 640x480.2. The remaining colors are limited to 14 colors.3. Files in XPM format that need to be compressed to GZ by Gzip4. Set the path of the background file in/boot/menu. lst. The format that grub can read, such as (hd0, 6)/boot/grup/bg.xpm.gz
Production Process~ $ Convert-colors 14 xxx.jpg BG. X
Yesterday we talked about the system startup process, and it was important to talk about grub. Then a colleague has been asked this grub, after class A few students to remove grub, after the system can not start, into rescue mode rescue, the result is still unsuccessful, today also see Chen classmate specially wrote a article also elaborated this question. But he
Jostree Reprint Please specify the source http://www.cnblogs.com/jostree/p/4167644.html(1)Use the LS command first to locate the Ubuntu installation partition: Under Grub rescue>, enter the following command:Grub rescue>lsAll the disk partition information is listed:(HD0,MSDOS1), (Hd0,msdos2), (HD0,MSDOS3) or (hd0,1), (hd0,3), (hd0,2)(2) then call the following command: x indicates each partition numberIf/boot does not have a separate partition, use t
The Acer bought a notebook, with the original Win7 family version of the system, later installed Win7 flagship version, and then play Ubuntu, notebook to bring 3 systems. In order to expand the flagship version of the system disk space, the original system Acer disk to the grid, merged into the flagship version of the system disk. Not thinking too much, direct formatting. Who knows, after reboot, appear Error:unknown filesystem, also have grub rescue,
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.