The error “/dev/sda5: Inodes that were part of a corrupted orphan linked list found” indicates filesystem corruption on the /dev/sda5 partition, which often occurs due to improper shutdowns, crashes, or disk errors. To resolve this issue, you can use fsck (file system check). Here’s how:


Steps to Fix the Issue:

  1. Boot into Recovery Mode or Live USB
    • If Ubuntu cannot boot:
      • Restart your computer and hold Shift or press Esc repeatedly to access the GRUB menu.
      • Select Advanced options for Ubuntu and then Recovery Mode.
    • If GRUB is inaccessible, boot into a Live USB/DVD environment and select “Try Ubuntu”.
  2. Identify the Partition
    • Open a terminal and run:
      bash
      sudo fdisk -l
    • Look for /dev/sda5 or the partition in question.
  3. Run fsck to Repair
    • If booting into Recovery Mode:
      • Select Drop to root shell prompt.
      • Run:
        bash
        fsck /dev/sda5
      • You will be prompted to fix errors. Press Y for each or use:
        bash
        fsck -y /dev/sda5
    • If using a Live USB, first mount the partition read-only to verify:
      bash
      sudo mount -o ro /dev/sda5 /mnt

      Then unmount it:

      bash
      sudo umount /mnt

      Run fsck afterward.

  4. Check for Success
    • Once fsck completes, reboot the system:
      bash
      sudo reboot

Notes:

  • If the issue persists, the disk may have physical damage. Use tools like smartctl or gnome-disks to check disk health:
    bash
    sudo apt install smartmontools
    sudo smartctl -a /dev/sda
  • Backup important data before proceeding with any repair actions, especially if errors continue.

Let me know if you need further clarification!