Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Unable to boot ubuntu

  1. #1
    Join Date
    Jun 2024
    Beans
    5

    Unable to boot ubuntu

    Hi, I have a dual boot windows(nvme0n1p3)+ Ubuntu(nvme0n1p5) in my ssd. I was trying to increase my Ubuntu partition size (50Gb to 69Gb) using gparted in an usb stick. The process ran for about 5 hours then reported an error. When I exited, I noticed I was only able to access windows. I also noticed that the partition size for Ubuntu has increased to 69Gb, although I’m unable to access it. I was able to peak at the partition through grub and it seems like the directories are ok, but I’m unable to read from it. I’ll leave the pastebin from boot-recovery here for some info.
    If anything else is needed, please let me know.
    Thanks in advance,
    Pedro

    paste.ubuntu.com/p/grvKW3Jkhx/

  2. #2
    currentshaft Guest

    Re: Unable to boot ubuntu

    I would boot to Ubuntu on a USB drive and attempt to mount and "fsck" the volumes in question, as well as check the grub configuration file.

  3. #3
    Join Date
    Mar 2010
    Location
    /home
    Beans
    9,730
    Distro
    Xubuntu

    Re: Unable to boot ubuntu

    I hope you have really good backups of your Ubuntu partition (and Windows).

    It is not recommended to run fsck on mounted volumes or partitions as this could cause further data loss or other unforeseen issues.

    If you had a standard Ubuntu install with an ext4 filesystem it is better to use e2fsck to check the volume:
    Code:
    sudo e2fsck -f -p /dev/nvme0n1p5
    If there are errors, stop and report them here.

    Make sure the volume is unmounted before you start. If you can "see" your files I would first try and save them to an external drive or USB before running the command above.
    Last edited by Rubi1200; June 4th, 2024 at 01:19 PM. Reason: added automatic repair parameter

  4. #4
    Join Date
    Jun 2024
    Beans
    5

    Re: Unable to boot ubuntu

    Ok thanks, to check if my volume is unmounted I can run “lsblk -f” and check if the mountpoint column of the volume (and all its partitions) is empty, right? It seems to be already unmounted from the get-go.
    And another question, does this have a risk of corrupting my windows partition? The contents of the windows partition are way more important than the ones on my inaccessible Ubuntu, so if there’s any risk to that I’d rather just deleting this Ubuntu partition and moving on.
    Last edited by pedrokpaiva; June 4th, 2024 at 01:38 PM.

  5. #5
    Join Date
    Mar 2010
    Location
    /home
    Beans
    9,730
    Distro
    Xubuntu

    Re: Unable to boot ubuntu

    Yes, make sure the Ubuntu partition is unmounted.

    The e2fsck command above will only point at your Ubuntu partition, nothing else. It was written to only check ext filesystem types.

    See here for more:
    https://linux.die.net/man/8/e2fsck

    As I said, if it reports errors let us know what they are and maybe there is a chance to fix them.

    If the check completes without any errors, then reboot and keep your fingers crossed it worked.
    Last edited by Rubi1200; June 4th, 2024 at 01:56 PM.

  6. #6
    Join Date
    Jun 2024
    Beans
    5

    Re: Unable to boot ubuntu

    I just ran it, here is the output it gave me:

    Super block has an invalid journal (inode8).
    Cleared.
    *** journal has been deleted ***

    Super block has_journal flag is clear, but a journal is present.
    Cleared.
    Journal inode is not in use, but contains data. Cleared.
    Inode 262145 has the casefold flag set but is not a directory.

    UNEXPECTED INCONSISTENCY; run fsck manually. (i.e., without -a or -p options)

  7. #7
    Join Date
    Mar 2010
    Location
    /home
    Beans
    9,730
    Distro
    Xubuntu

    Re: Unable to boot ubuntu

    Unfortunately, that does not look good.

    I would give it one more shot and run without any parameters like this:
    Code:
    sudo e2fsck /dev/nvme0n1p5
    Perhaps it will give you some kind of idea what is wrong by giving some other error information.

    But based on the results and your previous pastebin report it does not look so good.

  8. #8
    Join Date
    Jun 2024
    Beans
    5

    Re: Unable to boot ubuntu

    Ok thanks for the help. I will just wipe it then. Deleting the Ubuntu partition through windows’ disk management is ok? Can I delete the swap partition as well?

  9. #9
    Join Date
    Mar 2010
    Location
    /home
    Beans
    9,730
    Distro
    Xubuntu

    Re: Unable to boot ubuntu

    Sorry to have been the bearer of bad news.

    As to your question: I am consulting with another more experienced user called oldfred about that.

    Please wait until one of us replies before doing anything.

  10. #10
    Join Date
    Jun 2024
    Beans
    5

    Re: Unable to boot ubuntu

    No problem. I appreciate the help!
    Ok, I’ll wait for your reply before doing anything.

Page 1 of 2 12 LastLast

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
  •