[LPIC 101] How to specify the disk partition number in the GRUB configuration file

Introduction

While studying LPIC 101, the problem of "how to specify the disk partition number when specifying the root partition in the GRUB configuration file" came up, but since the counting method was different between GRUB 1 and 2, it was confusing, so a personal memo I will leave it as.

GRUB1 In GRUB Legacy (GRUB1), both the disk number and partition number are counted from 0. To specify the root partition, specify as "root (hd disk number, partition number)". Example)

1st partition of 1st disk → root (hd0,0) The second partition of the first disk → root (hd0,1) The second partition of the second disk → root (hd1,1)

GRUB2 In GRUB2, the disk number starts from 0 and the partition number starts from 1. To specify the root partition, specify as "set root = (hd disk number, partition number)". Example) 1st partition of 1st disk → set root = (hd0,1) The second partition of the first disk → set root = (hd0,2) The second partition of the second disk → set root = (hd1,2)

reference ping-t https://ping-t.com/mondai3/kakumon_histories/view/59

Linux Textbook LPIC Level 1 Speed Master Questions https://www.amazon.co.jp/dp/B01701BLCC/ref=dp-kindle-redirect?_encoding=UTF8&btkr=1

Recommended Posts

[LPIC 101] How to specify the disk partition number in the GRUB configuration file
How to specify a .ui file in the dialog / widget GUI in PySide
How to get the number of digits in Python
How to find the optimal number of clusters in k-means
How to switch the configuration file to be read by Python
How to specify an infinite number of tolerances in the numeric argument validation check of argparse
How to make a command to read the configuration file with pyramid
How to specify a .py file to load at startup in IPython 0.13
[Beginner memo] How to specify the library reading path in Python
How to specify non-check target in Flake8
How to put a line number at the beginning of a CSV file
How to use the C library in Python
How to specify the launch browser for JupyterLab 3.0.0
How to specify the NIC to scan with amazon-dash
How to create a JSON file in Python
How to count the number of elements in Django and output to a template
How to specify TLS version in python requests
How to get the files in the [Python] folder
How to read a serial number file in a loop, process it, and graph it
How to identify the system call number ausyscall
I want to get the file name, line number, and function name in Python 3.4
How to read a file in a different directory
How to display the modification date of a file in C language up to nanoseconds
How to identify the element with the smallest number of characters in a Python list?
How to count the number of occurrences of each element in the list in Python with weight
How to specify a schema in Django's database settings
How to retrieve the nth largest value in Python
How to know the port number of the xinetd service
How to get the variable name itself in python
How to run the Ansible module added in Ansible Tower
How to know the current directory in Python in Blender
[Python] How to specify the download location with youtube-dl
How to use template engine in pyramid 1 file application
How to use the exists clause in Django's queryset
[Python] Summary of how to specify the color of the figure
[Work efficiency] How to change file names in Python
How to use the model learned in Lobe in Python
[Python] How to output the list values in order
[Selenium] How to specify the relative path of chromedriver?
How to write custom validations in the Django REST Framework
[python] How to check if the Key exists in the dictionary
[python] Change the image file name to a serial number
How to debug the Python standard library in Visual Studio
A story about how to specify a relative path in python.
How to use the __call__ method in a Python class
Change the standard output destination to a file in Python
How to check ORM behavior in one file with django
Linux: How to recover if'grub_file_filters' not found in grub rescue
How to import a file anywhere you like in Python
Main configuration files introduced in the LPIC202 exam (personal memo)
How to set the html class attribute in Django's forms.py
How to manipulate the DOM in an iframe with Selenium
How to log in automatically like 1Password from the CLI
How to specify Cache-Control for blob storage in Azure Storage in Python
How to generate a query using the IN operator in Django
How to increase the number of machine learning dataset images
How to get the last (last) value in a list in Python
How to specify command line arguments when debugging in PyCharm
How to get all the keys and values in the dictionary
How to see the contents of the Jupyter notebook ipynb file
In omegaconf, let's pass the direct parameter file to the function