ErrorFixDB Logo
← Back to Database

How to Fix No such partition

Topic: Linux Ubuntu Boot Errors | Status: Updated

What is this error?

The "No such partition" error in Linux Ubuntu typically occurs during the boot process when the system cannot find the specified partition where the operating system is installed. This can happen due to a misconfiguration in the bootloader or if the partition has been deleted or is corrupted.

How to Fix It

  1. Boot into Live CD/USB: Insert your Ubuntu Live CD or USB drive and boot your computer from it.
  2. Open Terminal: Once the live environment loads, open a terminal by searching for "Terminal" in the applications menu.
  3. Identify Disk Partitions: Use the command sudo fdisk -l or lsblk to list all available disk partitions and locate your root partition (e.g., /dev/sda1).
  4. Mount the Root Partition: Create a mount point and mount the root partition with the following commands:
    sudo mkdir /mnt/root
    sudo mount /dev/sda1 /mnt/root
  5. Reinstall GRUB: Execute the command sudo grub-install --boot-directory=/mnt/root/boot /dev/sda to reinstall the GRUB bootloader.
  6. Update GRUB Configuration: Run sudo chroot /mnt/root to change the root directory, then execute update-grub to regenerate the GRUB configuration file.
  7. Exit and Unmount: Type exit to exit the chroot environment, then unmount the partition with sudo umount /mnt/root.
  8. Reboot the System: Restart your computer by removing the Live CD/USB and boot into your installed Ubuntu system.
Disclaimer: This is an educational guide. We are not responsible for data loss. Always backup your system.