4 Mart 2019 Pazartesi

Grand United Bootloader - grub

Giriş
Açıklaması şöyle. BIOS tarafından tetiklenir.
Basically, GRUB bootloader is the software that loads the Linux kernel. (It has other uses as well). It is the first software that starts at a system boot.

When the computer starts, BIOS first run a Power-on self-test (POST) to check hardware like memory, disk drives and that it works properly.

Then BIOS checks the Master Boot Record (MBR), which is a 512 byte section located first on the Hard Drive. It looks for a bootloader (like GRUB).
Grub Nerededir
Açıklaması şöyle.
On most modern systems, bootloader can be either on Master Boot Record part of the disk - the first 512 B - or it can be on separate device
NTFS İle Benzerliği
Açıklaması şöyle
ntfs.sys is the NTFS driver for the Windows operating system. However, Windows does not start itself. It relies on the Windows Boot Manager. Windows Boot Manager and winload have built-in NTFS support. It is likely not as full-featured as ntfs.sys.

Windows Boot Manager (or rather winload) is responsible for loading all early drivers. These also include disk controller drivers (AHCI, NVMe, …)—otherwise, Windows could not continue booting.

This situation is somewhat comparable with Linux: GRUB, a popular Linux boot manager, includes support for many filesystems, including the ext family (ext2/3/4).
Grub /boot Altındaki Dosyaları Yükler
Şöyle yaparız.
grub> set root=(hd0,1)
grub> linux /boot/vmlinuz-3.13.0-29-generic root=/dev/sda1
grub> initrd /boot/initrd.img-3.13.0-29-generic
grub> boot
Shift Tuşu
Grub menüsüne girmek için açılışta shift tuşuna basılır.
/etc/default/grub Dosyası yazısına bakabilirsiniz.

grub-set-default komutu
Örnek ver

update-grub komutu
Grub dosyasında değişiklik yaptıktan sonra çağrılır. Şöyle yaparız.
sudo update-grub
Bu komut ile /etc/default/grub dosyası okunur ve
/boot/grub/grub.cfg
dosyası oluşturulur.

Hiç yorum yok:

Yorum Gönder