Grub2 manual boot ubuntu

Source: Internet
Author: User

Grub2 manual boot ubuntu

Testing Machine OS: ubuntu 14.04.1 LTS x86_64

Disk Partitions:

Filesystem 1K-blocks Used Available Use % Mounted on
/Dev/sda1 19736236 3676896 15033756 20%/
None 4 0 4 0%/sys/fs/cgroup
Udev 369132 4 369128 1%/dev
Tmpfs 75984 840 75144 2%/run
None 5120 0 5120 0%/run/lock
None 379908 0 379908 0%/run/shm
None 102400 0 102400 0%/run/user

Perform the following operations on the grub2 command line (enter c on the boot page:

Set root = (hd0, msdos1)

Hd0 is the disk where the root directory is located, the IDE Hard Disk starts with hd, And the SCSI hard disk starts with sd. Floppy Disk starts with fd. The name is not the same as that of linux. Is counted from 0.

Enter hd and press the tab key. Msdos1 is the partition of the root directory. Enter msdos and press the tab key to view the partition.

Linux/boot/vmlinuz * ro root =/dev/sda1

* Indicates the kernel version. Enter/boot/vmlinuz and press the tab key to perform Automatic completion. Sda1 is the partition of the root directory.

If the boot directory is a separate partition, the same as linux/vm... if the boot directory is not a separate partition, enter linux/boot/vm...

Initrd/initrd. img

Boot

Finally, the logon page is displayed.


Related Article

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.