Results 1 to 5 of 5

Thread: Can't boot to Ubuntu after running Boot Repair...

  1. #1
    Join Date
    Oct 2018
    Beans
    10

    Can't boot to Ubuntu after running Boot Repair...

    Hi guys, it's my first post here and, as usual with newcomers, I am completely lost. I am not completely new to Ubuntu but I am dealing with an error I simply don't know how to solve.

    I don't know where to start.


    I accidentaly deleted some commands in /bin, so my Ubuntu bionic wouldn't work properly. Firefox wouldn't open, the left bar with programs was not appearing, etc. When I was trying to apt-get update, this message was showing:


    update-initramfs: Generating /boot/initrd.img-4.15.0-38-generic
    WARNING: no ldd around - install libc-bin
    update-initramfs: failed for /boot/initrd.img-4.15.0-38-generic with 1.
    run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
    dpkg: error processing package linux-image-4.15.0-38-generic (--configure):
    installed linux-image-4.15.0-38-generic package post-installation script subprocess returned error exit status 1
    Errors were encountered while processing:
    linux-image-4.15.0-38-generic
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    I've executed sudo apt-get install --reinstall debianutils and sudo apt-get install --reinstall grub-common.


    This made me not able to boot at all. A message showed "Kernel Panic":


    kernel panic-not syncing: VFS: unable to mount root

    I've restarted the computer then, and Grub was showing only Ubuntu (not designation for dev/sdX, only the name Ubuntu). When I've tried to enter it, only a blank screen was showing... Not able to boot at all.


    Then I've tried to enter from a Live USB. I executed Boot Repair. It exited with an error message and only made things worse. There was an message that said I should save this URL:

    https://paste.ubuntu.com/p/V2cXD2QQBG

    I rebooted and now grub shows Windows (was on dev/sda1 only) in other partition as well (/dev/sda2). I dont understand what is happening. Has it overwritten my Ubuntu partition? Is there a way I can still access my old Ubuntu partition?

    Maybe reinstalling the whole stuff would be easier, but I have stuff on the Ubuntu partition I have to access...

    I don't know what I am doing at this point and would really appreciate help here.


    Thanks!
    Last edited by hashs; October 31st, 2018 at 02:14 PM.

  2. #2
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Can't boot to Ubuntu after running Boot Repair...

    If you delete something or change permissions on something essential in / (root) which is just about everything other than log files, it probably is easier to reinstall.
    You should have good backups anyway, so you do not have to worry about system issues, hard drive failure or operator error.
    Also if you have /home in separate partition, it is easier. But still a few files in / that you may want to backup.

    Over install without formatting to reuse same home data. "Dirty Install"
    System settings or anything in / may be overwritten with defaults. Good backups still important
    https://help.ubuntu.com/community/UbuntuReinstallation
    http://ubuntuforums.org/showthread.php?t=1941872

    discussion of alternatives/strategy backups
    https://ubuntuforums.org/showthread....4#post13677224
    https://help.ubuntu.com/community/BackupYourSystem
    https://help.ubuntu.com/community/Ca...BackupRecovery

    Oldfred's list of stuff to backup May 2011 (still mostly current, see added links below):
    http://ubuntuforums.org/showthread.php?t=1748541
    Adding extra commands to rsync
    http://ubuntuforums.org/showthread.php?t=2260658
    More detail on /etc files and others to backup - post #3:
    http://ubuntuforums.org/showthread.php?t=1500559
    Some files(temp, cache etc) to exclude from /home backup - post #8 by Paddy Landau
    http://ubuntuforums.org/showthread.php?t=1883834
    http://askubuntu.com/questions/54565...seless-folders
    http://askubuntu.com/questions/40992...ry/40997#40997
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  3. #3
    Join Date
    Oct 2018
    Beans
    10

    Re: Can't boot to Ubuntu after running Boot Repair...

    Thanks Oldfred! I guess I will reinstall the whole thing. But I have one question:

    Would it be possible to access info I had on the old Ubuntu before I reinstall it? Such as info stored on Firefox, preferences etc? Actually is the only thing I would like to save.

  4. #4
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Can't boot to Ubuntu after running Boot Repair...

    If file system is ok, you can normally mount a Linux partition and copy any data you want.
    Firefox & Thunderbird are in /home in . folders (hidden), so you have to unhide them. You should copy entire profile.

    Firefox
    https://support.mozilla.org/en-US/products/firefox
    http://support.mozillamessaging.com/en-US/kb/Profiles
    https://support.mozilla.org/en-US/kb...refox-profiles
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  5. #5
    Join Date
    Oct 2018
    Beans
    10

    Re: Can't boot to Ubuntu after running Boot Repair...

    Really appreciate your time answering this. Gonna try it out.

    Thank you! I'll be back here to say if its solved or not.

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
  •