issue217:tutoriel1
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédente | |||
issue217:tutoriel1 [2025/06/02 07:26] – d52fr | issue217:tutoriel1 [2025/06/02 08:45] (Version actuelle) – d52fr | ||
---|---|---|---|
Ligne 6: | Ligne 6: | ||
Now if you are ancient, like me , you may know that there used to be another bootloader, named LiLo, and GRUB wasn’t the only game in town (there was syslinux too, but it is defunct). It was very simple and you did not need to configure anything. GNU GRUB is the GRand Unified Bootloader, lovingly known as just GRUB.** | Now if you are ancient, like me , you may know that there used to be another bootloader, named LiLo, and GRUB wasn’t the only game in town (there was syslinux too, but it is defunct). It was very simple and you did not need to configure anything. GNU GRUB is the GRand Unified Bootloader, lovingly known as just GRUB.** | ||
+ | |||
+ | Comme nous avons omis quelques points en raison de mon chômage et de mes nombreux entretiens, permettez-moi de récapituler rapidement. | ||
+ | |||
+ | Dans le premier article de cette série, nous avons abordé la question de l' | ||
+ | |||
+ | Maintenant que nous abordons le sujet des disques, voyons comment un système démarre, et peut-être même s' | ||
+ | |||
+ | Si vous êtes un ancien, comme moi, vous savez peut-être qu'il existait autrefois un autre chargeur de démarrage, nommé LiLo, et que GRUB n' | ||
+ | |||
**When Ubuntu starts up, GRUB is the first program that runs. It loads the kernel and then the kernel loads the rest of the operating system, including the shell, the desktop environment, | **When Ubuntu starts up, GRUB is the first program that runs. It loads the kernel and then the kernel loads the rest of the operating system, including the shell, the desktop environment, | ||
Ligne 14: | Ligne 23: | ||
Here we can see the output in edit mode. The changes you make when hitting “e” is temporary, only for this next boot (when you press F10 or type boot).** | Here we can see the output in edit mode. The changes you make when hitting “e” is temporary, only for this next boot (when you press F10 or type boot).** | ||
+ | |||
+ | Au démarrage d' | ||
+ | |||
+ | Avez-vous déjà rencontré un écran comme celui-ci ? Ils ne se ressemblent pas tous et la première interaction de la plupart des débutants avec cet écran survient en cas de problème. Je précise qu'ils ne se ressemblent pas tous, car le vôtre peut afficher une liste des noyaux précédents à partir desquels démarrer, contrairement au mien. | ||
+ | |||
+ | Si vous utilisez un double démarrage avec Windows, vous le verrez peut-être aussi ici. Il suffit généralement de sélectionner ce que vous voulez et d' | ||
+ | |||
+ | Voici le résultat en mode édition (image ci-coontre). Les modifications apportées en appuyant sur « e » sont temporaires et ne s' | ||
+ | |||
**Let’s break it down, oomph, oomph, oh, not that way. OK then, the first line, “setparams”, | **Let’s break it down, oomph, oomph, oh, not that way. OK then, the first line, “setparams”, | ||
Ligne 20: | Ligne 38: | ||
If you were to page down on that screen, after the UUID, you will see which kernel is being loaded and where root is, and how to mount it – usually it reads “ro” for read only, and you should not change this unless you are recovering your drive. I usually like removing the “quiet” option on my slow machines, then I get to see the boot messages scroll by. This works only on spinning rust really, as with SSDs it will just flash by and there is no point looking as it will scroll too fast.** | If you were to page down on that screen, after the UUID, you will see which kernel is being loaded and where root is, and how to mount it – usually it reads “ro” for read only, and you should not change this unless you are recovering your drive. I usually like removing the “quiet” option on my slow machines, then I get to see the boot messages scroll by. This works only on spinning rust really, as with SSDs it will just flash by and there is no point looking as it will scroll too fast.** | ||
+ | |||
+ | Décomposons-le, | ||
+ | |||
+ | Si l'on regarde le bloc suivant, jusqu' | ||
+ | |||
+ | Si vous faites défiler l' | ||
+ | |||
**That “initrd” that you see is the initial ram disk, that gets loaded into memory to start your daemons. If you make changes, you need to press CRTL+c to cancel and boot normally, or CTRL+x, to boot with the temporary changes. There is also the option to use the GRUB console, by pressing just “c”. This is a shell, but it is not bash, more like a GRUB-shell. When you type “help”, you will see commands that are not available in bash, and even the commands that you may be familiar with, will not operate in the way you expect. I would encourage you to enter the GRUB-shell and use the “ls” command. If you have never used this shell before, I suggest running the help command followed by the listed command to see what it actually does. If you use logical volumes, I would suggest paying attention, maybe even taking a picture with your phone, before attempting anything. If you roll your own kernel, this would be where you go to boot from it. | **That “initrd” that you see is the initial ram disk, that gets loaded into memory to start your daemons. If you make changes, you need to press CRTL+c to cancel and boot normally, or CTRL+x, to boot with the temporary changes. There is also the option to use the GRUB console, by pressing just “c”. This is a shell, but it is not bash, more like a GRUB-shell. When you type “help”, you will see commands that are not available in bash, and even the commands that you may be familiar with, will not operate in the way you expect. I would encourage you to enter the GRUB-shell and use the “ls” command. If you have never used this shell before, I suggest running the help command followed by the listed command to see what it actually does. If you use logical volumes, I would suggest paying attention, maybe even taking a picture with your phone, before attempting anything. If you roll your own kernel, this would be where you go to boot from it. | ||
As always, misc@fullcirclemagazine.org if there are mistakes.** | As always, misc@fullcirclemagazine.org if there are mistakes.** | ||
+ | |||
+ | L' | ||
+ | |||
+ | Comme toujours, envoyez un mail à misc@fullcirclemagazine.org s'il y a des erreurs. | ||
issue217/tutoriel1.1748841968.txt.gz · Dernière modification : 2025/06/02 07:26 de d52fr