mirror of
https://pagure.io/fedora-docs/quick-docs.git
synced 2024-11-24 21:35:17 +00:00
Edit typos
This commit is contained in:
parent
886b12ffd2
commit
c4630d42db
2 changed files with 5 additions and 15 deletions
|
@ -17,15 +17,13 @@ insmod lvm
|
||||||
grub2> ls
|
grub2> ls
|
||||||
----
|
----
|
||||||
|
|
||||||
. Study the output for the partition table of the `/dev/sda` device. It may look similar to the following example on a dos partition table with three partitons.
|
. Examine the output to understand the partition table of the `/dev/sda` device. The following example shows a DOS partition table with three partitions:
|
||||||
will look something like this:
|
|
||||||
+
|
+
|
||||||
----
|
----
|
||||||
(hd0) (hd0,msdos3) (hd0,msdos2) (hd0,msdos1)
|
(hd0) (hd0,msdos3) (hd0,msdos2) (hd0,msdos1)
|
||||||
----
|
----
|
||||||
+
|
+
|
||||||
or similar to this output on a gpt partition table of the `/dev/sda` device with four
|
A GPT partition table of the `/dev/sda` device with four partitions could look like this:
|
||||||
partitions.
|
|
||||||
+
|
+
|
||||||
----
|
----
|
||||||
(hd0) (hd0,gpt4) (hd0,gpt3) (hd0,gpt2) (hd0,gpt1)
|
(hd0) (hd0,gpt4) (hd0,gpt3) (hd0,gpt2) (hd0,gpt1)
|
||||||
|
@ -37,13 +35,15 @@ partitions.
|
||||||
ls (hd0,1)/
|
ls (hd0,1)/
|
||||||
----
|
----
|
||||||
+
|
+
|
||||||
The outcome of the previous command will list the files on `/dev/sda1`. If this partition contains the `/boot` directory, it will show the full name of `vmlinuz` and `initramfs`.
|
The outcome of the previous command will list the files on `/dev/sda1`. The partition that contains the `/boot` directory is the correct one. There you will search for the full names of the `vmlinuz` and `initramfs` files.
|
||||||
|
|
||||||
. Set the root partition.
|
. Set the root partition.
|
||||||
+
|
+
|
||||||
----
|
----
|
||||||
grub> set root=(hd0,3)
|
grub> set root=(hd0,3)
|
||||||
----
|
----
|
||||||
|
+
|
||||||
|
This command tells the bootloader, that the root partition is the third partition on the first drive. This would correspond to the `/dev/sda3` device.
|
||||||
|
|
||||||
. Set the desired kernel.
|
. Set the desired kernel.
|
||||||
+
|
+
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
|
|
||||||
. Regenerate the *GRUB2* configuration file and reinstall the bootloader into the MBR, as described in xref:adding-other-operating-systems-grub2[Adding other operating systems to the *GRUB2* menu].
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue