Probe Current sda Disk and Install GRUB. Debian 12. Part.1.
user1272047
1 min read
Probe Current sda Disk and Install GRUB. Debian 12. Part.1.
Probe every OS in sda:
lsblk
sda 8:0 0 476.9G 0 disk
├─sda1 8:1 0 100M 0 part /media/DISK1
├─sda2 8:2 0 16M 0 part
├─sda3 8:3 0 219.4G 0 part /media/disk3
├─sda4 8:4 0 5.9G 0 part /media/disk4
├─sda5 8:5 0 644M 0 part /media/disk5
├─sda6 8:6 0 19.1G 0 part /media/disk6
├─sda7 8:7 0 93.1G 0 part /media/disk7
│ /
├─sda8 8:8 0 135G 0 part /media/disk8
└─sda9 8:9 0 3.7G 0 part
Instructions to Install GRUB
To probe all operating systems on sda
, install GRUB, and make it recognize every OS on sda
, follow these steps:
Step 1: Install GRUB
sudo apt update
sudo apt install -y grub-pc
Step 2: Install GRUB to sda
sudo grub-install /dev/sda
Step 3: Probe for Operating Systems and Update GRUB
This command will detect all operating systems and generate the GRUB configuration file with entries for each detected OS.
sudo update-grub
After running these commands, GRUB will recognize every OS on sda
and update the boot menu accordingly. You can verify the changes by rebooting and checking the GRUB menu.
0
Subscribe to my newsletter
Read articles from user1272047 directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by