Computer MBR/BIOS - Deleted Partition, Allowed Boot Debian
The user has encountered an issue where a partition was deleted, but the computer's BIOS still allows booting Debian. After installing GRUB2 alongside Windows 10, the user is now able to boot into Debian. However, they need help configuring a new entry for Windows 10.
Detailed Context Topic
This article will cover the key concepts surrounding the user's issue, including the context, subtitles, paragraphs, code blocks, and content inside code blocks properly formatted according to the programming language. The article will exclude the H1 tag title provided separately.
Subtitles
- Problem Description
- Identifying the Issue
- Solution: Installing GRUB2
- Configuring GRUB2 for Windows 10
Problem Description
The user has reported that a partition was deleted on their computer, but the BIOS still allows booting Debian. The user has installed GRUB2 alongside Windows 10, but they need help configuring a new entry for Windows 10.
Identifying the Issue
To identify the issue, the user should check their BIOS settings to ensure that the deleted partition is no longer listed as a boot option. They should also verify that GRUB2 is installed correctly and that the Debian operating system is booting properly.
Solution: Installing GRUB2
To solve the problem, the user should install GRUB2 alongside Windows 10. This can be done using a live CD or USB of a Debian-based Linux distribution, such as Ubuntu. Once the live environment is booted, the user should run the following command to install GRUB2:
sudo grub-install /dev/sda
Configuring GRUB2 for Windows 10
After installing GRUB2, the user should edit the GRUB2 configuration file to add an entry for Windows 10. This can be done using the following command:
sudo nano /etc/grub.d/40_custom
In the 40_custom file, the user should add the following lines:
menuentry 'Windows 10' {
set root='(hd0,msdos1)'
chainloader +1
}
The user should replace '(hd0,msdos1)' with the appropriate partition where Windows 10 is installed. After saving the file, the user should run the following command to update the GRUB2 configuration:
sudo update-grub
Summary References
- Book: "Linux System Administration Handbook" by Evi Nemeth, Garth Snyder, and Trent R. Hein
- Article: "How to Install GRUB2 on Windows 10" by TechRepublic
- Online Resource: "GRUB2 Documentation" by Debian Project