Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: not booting after sudden power loss

  1. #11
    Join Date
    Jan 2012
    Beans
    8

    Re: not booting after sudden power loss

    Quote Originally Posted by tea for one View Post
    I've just noticed that I had an incorrect instruction in post 2.
    I typed nvme0n1p1 twice by mistake - schoolboy error........
    Can you boot into a live session again and run fsck on both partitions.
    Code:
    sudo fsck /dev/nvme0n1p1
    Code:
    sudo fsck /dev/nvme0n1p2
    No problem. Tried the new instructions. The second partition turned out to be clean. No new errors on the first. Rebooted, still no luck.

  2. #12
    Join Date
    May 2008
    Beans
    4,509
    Distro
    Ubuntu 24.04 Noble Numbat

    Re: not booting after sudden power loss

    Ah, that's a pity - I was very hopeful.
    Boot into live session again, download the boot-repair utility and try the recommended repair.
    All digits crossed for successful outcome

  3. #13
    Join Date
    Jan 2012
    Beans
    8

    Re: not booting after sudden power loss

    Quote Originally Posted by tea for one View Post
    Ah, that's a pity - I was very hopeful.
    Boot into live session again, download the boot-repair utility and try the recommended repair.
    All digits crossed for successful outcome
    I did exactly that. After boot repair, tha computer experienced kernel panic. Apparently, initramfs for the default kernel was missing. Luckily an older kernel booted. I generated initramfs for the latest kernel as described in this post. Then the computer booted as usual.

    Thanks for the help anyway. The dirty bit could have caused further trouble down the road.

  4. #14
    Join Date
    Jun 2014
    Beans
    7,915

    Re: not booting after sudden power loss

    Try running fsck.vfat or dosfsck on the first partition as it is a vfat filesystem and not a Linux filesystem. fsck may detect the filesystem and run either but no harm in trying the commands. The link below is to the manual pages for this software which gives an explanation and various options. Unmount the partition before running fsck.

    https://man7.org/linux/man-pages/man8/fsck.vfat.8.html

  5. #15
    Join Date
    May 2008
    Beans
    4,509
    Distro
    Ubuntu 24.04 Noble Numbat

    Re: not booting after sudden power loss

    Quote Originally Posted by sdayanik View Post
    I did exactly that. After boot repair, tha computer experienced kernel panic. Apparently, initramfs for the default kernel was missing. Luckily an older kernel booted. I generated initramfs for the latest kernel as described in this post. Then the computer booted as usual.
    Thanks for the help anyway. The dirty bit could have caused further trouble down the road.
    Splendid, well done.
    I think that the "dirty bit" would need to have been repaired before the missing initramfs was spotted.
    Anyway, all's well that ends well.
    Worth marking the thread as solved?

  6. #16
    Join Date
    Jun 2014
    Beans
    7,915

    Re: not booting after sudden power loss

    Any time you have a sudden power loss it is likely to damage the filesystem so if you have problems in the future in that situation and booting fails, run a filesystem check on the unmounted partition.

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •