USB flash drive To install Linux system, unplug the USB drive system cannot boot

Source: Internet
Author: User

USB flash drive to install Linux system, unplug the USB drive system cannot boot

Problem Description:

Use a USB stick to install the Linux operating system, excluding the USB stick, unable to boot the system normally, you must insert a USB stick to enter the system.

Cause Analysis:

Grub full. Called. Grand Unified boot Loader, is the Linux operator. The boot manager that is the main system. The primary role is to start and load the Linux operating system. Once the BIOS self-test is completed during system boot, GRUB will be loaded immediately. The grub contains code that can load the operating system and pass the operating system boot right to other boot manager. Grub allows the user to choose to use different kernel to boot the system, or to set different startup parameters during system startup.

Customers in the installation of the Linux operating system, the use of the installation of a USB flash drive, boot grub information is installed by default in the MBR of the U disk, the boot process cannot read the corresponding Boot Manager code information, resulting in the system cannot start.

Workaround:

Reinstall the system's grub information to the local hard disk MBR, and modify the/boot/grub/grub.conf file. The procedure is as follows:

1, insert the installation system using the USB flash drive, normal boot Linux system.

2. View hard disk partition information

3, operate under the terminal:

[Email protected] ~]grub

Grub>root (hd0,0) # # (hd0,0) represents the first partition installed on the first hard drive recognized by the system.

Grub>setup (hd0)

Grub>quit

or use the Grub-install command:

When the system contains a separate/boot partition, use the

[[Email protected] ~]grub-install/dev/hda (if it is a SCSI or SAS hard drive, the device name may be different, please use the fdisk-l command to query.) )

If only/, there is no separate build/boot partition, use Grub-install--root-directory=/boot/dev/hda

3, after the completion of GRUB information installation, you also need to modify the/boot/grub/grub.conf, the files in the boot information is also changed (hd0,0). If this file is not modified, the system boot to the menu item, the target partition can not be found failure, at this time by pressing the E key for temporary modification, normal access to the system and then edit the file.


USB flash drive To install Linux system, unplug the USB drive system cannot boot

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.