Azure vm why in grub, why it shows twice of each item.

Jimmy 0 Reputation points
2025-01-09T21:43:36.5033333+00:00

Azure vm why in grub, why it shows twice of each item.

grub>glss>

(hd0) (hd0) (hd0,msdos4) (hd0,msdos4) (hd0,msdos3) (hd0,msdos3) (hd0,msdos2) (hd0,msdos2) (hd0,msdos1) (hd0,msdos1)

grub>grub>

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,218 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sai Krishna Katakam 1,680 Reputation points Microsoft Vendor
    2025-01-10T03:49:22.2866667+00:00

    Hi Jimmy,

    Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.

    The duplicate entries in GRUB on your Azure VM may be caused by multiple partitions or an outdated GRUB configuration. You can resolve this by following these steps:

    Regenerate the GRUB configuration to reflect the current system state.

    For Ubuntu/Debian-based systems:

    sudo update-grub
    

    For Red Hat/CentOS-based systems:

    sudo grub2-mkconfig -o /boot/grub2/grub.cfg
    

    Use the following commands to inspect your partitions and ensure there are no unexpected duplicates:

    sudo fdisk -l  
    sudo lsblk 
    

    Verify that the VM is booting in the correct mode (UEFI or legacy) to avoid bootloader conflicts.

    For more details, please refer to the below documentation:
    Linux virtual machine boots to GRUB rescue

    If an answer has been helpful, please consider accept the "Answer" and "Upvote" to help increase visibility of this question for other members of the Microsoft Q&A community. 

    User's image

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.