Problem booting. I get to the grub prompt after using boot-repair and gbparted

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
iegarcia
Level 1
Level 1
Posts: 33
Joined: Thu Apr 12, 2018 11:10 pm

Re: Problem booting. I get to the grub prompt after using boot-repair and gbparted

Post by iegarcia » Thu Apr 19, 2018 10:15 pm

Code: Select all

mint / # echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin

User avatar
WharfRat
Level 20
Level 20
Posts: 11428
Joined: Thu Apr 07, 2011 8:15 pm

Re: Problem booting. I get to the grub prompt after using boot-repair and gbparted

Post by WharfRat » Thu Apr 19, 2018 10:22 pm

The path is correct - I don't see a reason for that complaint.

Reboot to the live session and run sudo fsck -fvCy /dev/sda1

Paste back the results
ImageImage

iegarcia
Level 1
Level 1
Posts: 33
Joined: Thu Apr 12, 2018 11:10 pm

Re: Problem booting. I get to the grub prompt after using boot-repair and gbparted

Post by iegarcia » Thu Apr 19, 2018 10:35 pm

Code: Select all

mint@mint ~ $ sudo fsck -fvCy /dev/sda1
fsck from util-linux 2.27.1
e2fsck 1.42.13 (17-May-2015)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure                                           
Pass 3: Checking directory connectivity                                        
Pass 4: Checking reference counts
Pass 5: Checking group summary information                                     
                                                                               
      424383 inodes used (2.21%, out of 19218432)
        5952 non-contiguous files (1.4%)
         398 non-contiguous directories (0.1%)
             # of inodes with ind/dind/tind blocks: 0/0/0
             Extent depth histogram: 392971/360
    48245870 blocks used (62.76%, out of 76871424)
           0 bad blocks
           2 large files

      354332 regular files
       37484 directories
          57 character device files
          25 block device files
           0 fifos
         173 links
       32355 symbolic links (30841 fast symbolic links)
         121 sockets
------------
      424547 files

User avatar
WharfRat
Level 20
Level 20
Posts: 11428
Joined: Thu Apr 07, 2011 8:15 pm

Re: Problem booting. I get to the grub prompt after using boot-repair and gbparted

Post by WharfRat » Thu Apr 19, 2018 10:37 pm

Do you have this file

Code: Select all

sudo -i
mount /dev/sda1 /mnt
ls -lh  /mnt/sbin/ldconfig.real
ImageImage

iegarcia
Level 1
Level 1
Posts: 33
Joined: Thu Apr 12, 2018 11:10 pm

Re: Problem booting. I get to the grub prompt after using boot-repair and gbparted

Post by iegarcia » Thu Apr 19, 2018 10:49 pm

Nop

Code: Select all

mint@mint ~ $ sudo -i
mint ~ # mount /dev/sda1 /mnt
mint ~ # ls -lh  /mnt/sbin/ldconfig.real
ls: cannot access '/mnt/sbin/ldconfig.real': No such file or directory

User avatar
WharfRat
Level 20
Level 20
Posts: 11428
Joined: Thu Apr 07, 2011 8:15 pm

Re: Problem booting. I get to the grub prompt after using boot-repair and gbparted

Post by WharfRat » Thu Apr 19, 2018 10:57 pm

It seems that package was removed or something :?

A Hail Mary try:

Code: Select all

mkdir junk
cd junk
apt-get download libc-bin
dpkg-deb -x libc-bin_2.23-0ubuntu10_amd64.deb .
cd sbin
cp -ai * /mnt/sbin
In the junk folder you'll see other folders e.g., user and etc.

Check if those files are missing e.g,, /mnt/etc/ld.so.conf and if they are copy them to their proper place using cp -ai.

UPDATE: You can stay in the junk folder and just cp -ai etc /mnt/etc and the same with the others
ImageImage

iegarcia
Level 1
Level 1
Posts: 33
Joined: Thu Apr 12, 2018 11:10 pm

Re: Problem booting. I get to the grub prompt after using boot-repair and gbparted

Post by iegarcia » Thu Apr 19, 2018 11:43 pm

Hey, I decided to stop here, just to get your feedback if I'm doing something wrong:

Code: Select all

mint ~ # mkdir junk
mint ~ # cd junk
mint junk # apt-get download libc-bin
E: Can't find a source to download version '2.23-0ubuntu9' of 'libc-bin:amd64'
mint junk # ls

User avatar
WharfRat
Level 20
Level 20
Posts: 11428
Joined: Thu Apr 07, 2011 8:15 pm

Re: Problem booting. I get to the grub prompt after using boot-repair and gbparted

Post by WharfRat » Fri Apr 20, 2018 12:00 am

Works here :?

Code: Select all

[bill@lv] ~/junk $ apt-get download libc-bin
Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libc-bin amd64 2.23-0ubuntu10 [641 kB]
Fetched 641 kB in 1s (558 kB/s)    
[bill@lv] ~/junk $ 
What does apt policy libc-bin show
ImageImage

iegarcia
Level 1
Level 1
Posts: 33
Joined: Thu Apr 12, 2018 11:10 pm

Re: Problem booting. I get to the grub prompt after using boot-repair and gbparted

Post by iegarcia » Fri Apr 20, 2018 12:09 am

Code: Select all

mint junk # apt policy libc-bin
libc-bin:
  Installed: 2.23-0ubuntu9
  Candidate: 2.23-0ubuntu9
  Version table:
 *** 2.23-0ubuntu9 100
        100 /var/lib/dpkg/status
     2.23-0ubuntu3 500
        500 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages

User avatar
WharfRat
Level 20
Level 20
Posts: 11428
Joined: Thu Apr 07, 2011 8:15 pm

Re: Problem booting. I get to the grub prompt after using boot-repair and gbparted

Post by WharfRat » Fri Apr 20, 2018 12:17 am

I have to confess that I have no clue what's causing the Can't find a source to download stuff.

I had the same situation here and could not resolve it.

I don't know what can be done to try to revive your system if a package can't be downloaded :?

The only chance is if you have the package in the archive folder

ls -lh /mnt/var/cache/apt/archives/libc-bin_2.23-0ubuntu10_amd64.deb

If it's there copy it to the junk folder and continue with dpkg-deb
ImageImage

asinoro
Level 4
Level 4
Posts: 246
Joined: Mon Feb 12, 2018 11:43 am

Re: Problem booting. I get to the grub prompt after using boot-repair and gbparted

Post by asinoro » Fri Apr 20, 2018 12:20 am

asinoro wrote:
Thu Apr 19, 2018 10:00 am
The live medium that you try to fix your operating system has to be Linux Mint 17 Qiana the same like your installed OS.

iegarcia
Level 1
Level 1
Posts: 33
Joined: Thu Apr 12, 2018 11:10 pm

Re: Problem booting. I get to the grub prompt after using boot-repair and gbparted

Post by iegarcia » Fri Apr 20, 2018 12:37 am

Nope, not there. These ones are though:

Code: Select all

libc-bin_2.19-0ubuntu6.10_amd64.deb
libc-bin_2.19-0ubuntu6.11_amd64.deb
libc-bin_2.19-0ubuntu6.13_amd64.deb
libc-bin_2.19-0ubuntu6.14_amd64.deb
libc-bin_2.19-0ubuntu6.3_amd64.deb
libc-bin_2.19-0ubuntu6.4_amd64.deb
libc-bin_2.19-0ubuntu6.5_amd64.deb
libc-bin_2.19-0ubuntu6.6_amd64.deb
libc-bin_2.19-0ubuntu6.7_amd64.deb
libc-bin_2.19-0ubuntu6.8_amd64.deb
libc-bin_2.19-0ubuntu6.9_amd64.deb

User avatar
WharfRat
Level 20
Level 20
Posts: 11428
Joined: Thu Apr 07, 2011 8:15 pm

Re: Problem booting. I get to the grub prompt after using boot-repair and gbparted

Post by WharfRat » Fri Apr 20, 2018 12:47 am

Try using the one with the latest date - you must be at version 2.19.

Do you have or can you get the Mint 17 live media version that matches your installation :?:

We'll have to pick this up tomorrow as it's real late here (or should I say early)

Having the same version live media would be a big help here.

Also while you're mounted you might want to backup/copy anything you can't survive without to an external source.
ImageImage

iegarcia
Level 1
Level 1
Posts: 33
Joined: Thu Apr 12, 2018 11:10 pm

Re: Problem booting. I get to the grub prompt after using boot-repair and gbparted

Post by iegarcia » Fri Apr 20, 2018 2:30 am

asinoro wrote:
Fri Apr 20, 2018 12:20 am
asinoro wrote:
Thu Apr 19, 2018 10:00 am
The live medium that you try to fix your operating system has to be Linux Mint 17 Qiana the same like your installed OS.
Yep, starting using the original installation CD now, Mint 17.

This now works, but gets the 2.19 version
WharfRat wrote:
Fri Apr 20, 2018 12:00 am
Works here :?

Code: Select all

[bill@lv] ~/junk $ apt-get download libc-bin
Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libc-bin amd64 2.23-0ubuntu10 [641 kB]
Fetched 641 kB in 1s (558 kB/s)    
[bill@lv] ~/junk $ 
With the 2.19 version I then completed this successfully.
WharfRat wrote:
Thu Apr 19, 2018 10:57 pm
It seems that package was removed or something :?

A Hail Mary try:

Code: Select all

mkdir junk
cd junk
apt-get download libc-bin
dpkg-deb -x libc-bin_2.23-0ubuntu10_amd64.deb .
cd sbin
cp -ai * /mnt/sbin
In the junk folder you'll see other folders e.g., user and etc.

Check if those files are missing e.g,, /mnt/etc/ld.so.conf and if they are copy them to their proper place using cp -ai.

UPDATE: You can stay in the junk folder and just cp -ai etc /mnt/etc and the same with the others
Now I was able to execute this:
asinoro wrote: ⤴
Fri Apr 13, 2018 2:48 am
Follow this tutorial.
viewtopic.php?f=42&t=265557
When you enter your system run.

Code: Select all

sudo su

Code: Select all

grub-install /dev/sda

Code: Select all

update-grub

Code: Select all

update-initramfs -uk all

I modified the last command follow them again and from grub-install /dev/sda post the results of each command, to see the outcome. When it is finished reboot.
And then this:
After following the tutorial to get in your system from the live medium, try this.
https://community.linuxmint.com/tutorial/view/1783
If kernel panic appears again, when it boots keep down Shift or Esc key to load the grub advanced options and to choose to boot from other kernel.
Without encountering the missing ldconfig file error, but still with the same result (kernel panic)

I'm backing up my last few files, but have almost everything important backed up.

Let me know what else I could try and thank you both very much for your support.

asinoro
Level 4
Level 4
Posts: 246
Joined: Mon Feb 12, 2018 11:43 am

Re: Problem booting. I get to the grub prompt after using boot-repair and gbparted

Post by asinoro » Fri Apr 20, 2018 3:47 am

With the live Mint 17 get to your system following the tutorial and install this kernel. If it is the same problem you have to re install again Mint, I don't see other option.
http://www.teejeetech.in/p/ukuu-kernel- ... ility.html

iegarcia
Level 1
Level 1
Posts: 33
Joined: Thu Apr 12, 2018 11:10 pm

Re: Problem booting. I get to the grub prompt after using boot-repair and gbparted

Post by iegarcia » Fri Apr 20, 2018 9:31 am

This is new :(

Code: Select all

mint mint # mount --bind /dev /mnt/dev && mount --bind /sys /mnt/sys && mount --bind /proc /mnt/proc && chroot /mnt
Bus error

asinoro
Level 4
Level 4
Posts: 246
Joined: Mon Feb 12, 2018 11:43 am

Re: Problem booting. I get to the grub prompt after using boot-repair and gbparted

Post by asinoro » Fri Apr 20, 2018 9:40 am

iegarcia wrote:
Fri Apr 20, 2018 9:31 am
This is new :(

Code: Select all

mint mint # mount --bind /dev /mnt/dev && mount --bind /sys /mnt/sys && mount --bind /proc /mnt/proc && chroot /mnt
Bus error
Check again and try one by one the commands like mount --bind /dev /mnt/dev

iegarcia
Level 1
Level 1
Posts: 33
Joined: Thu Apr 12, 2018 11:10 pm

Re: Problem booting. I get to the grub prompt after using boot-repair and gbparted

Post by iegarcia » Fri Apr 20, 2018 9:54 am

Code: Select all

mint mint # mount /dev/sda1 /mnt
mint mint # mount --bind /dev /mnt/dev
mint mint # mount --bind /sys /mnt/sys
mint mint # mount --bind /proc /mnt/proc
mint mint # chroot /mnt
Bus error
mint mint # 

User avatar
WharfRat
Level 20
Level 20
Posts: 11428
Joined: Thu Apr 07, 2011 8:15 pm

Re: Problem booting. I get to the grub prompt after using boot-repair and gbparted

Post by WharfRat » Fri Apr 20, 2018 10:42 am

iegarcia,

Try rebooting and using this one line at a time

Code: Select all

sudo -i
mount /dev/sda1 /mnt 
mount -t proc none /mnt/proc
mount --rbind /sys /mnt/sys
mount --rbind /dev /mnt/dev
/usr/sbin/chroot /mnt /bin/bash
source /etc/profile
echo "nameserver 8.8.8.8" >> /etc/resolv.conf
ImageImage

User avatar
administrollaattori
Level 14
Level 14
Posts: 5007
Joined: Tue Sep 03, 2013 4:51 am
Location: Finland
Contact:

Re: Problem booting. I get to the grub prompt after using boot-repair and gbparted

Post by administrollaattori » Fri Apr 20, 2018 12:59 pm

iegarcia wrote:
Fri Apr 20, 2018 9:54 am

Code: Select all

Bus error
If you have any symbolic links in the /boot directory, delete them.

Post Reply

Return to “Installation & Boot”