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
User avatar
WharfRat
Level 20
Level 20
Posts: 11464
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 » Wed Apr 18, 2018 9:24 pm

OK, good - unmount and fsck - sudo umount /mnt

Then sudo fsck -fvCy /dev/sda1

Paste back the return messages of fsck
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 » Wed Apr 18, 2018 9:28 pm

Code: Select all

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                                     
                                                                               
      423923 inodes used (2.21%, out of 19218432)
        5951 non-contiguous files (1.4%)
         397 non-contiguous directories (0.1%)
             # of inodes with ind/dind/tind blocks: 0/0/0
             Extent depth histogram: 392511/360
    48243830 blocks used (62.76%, out of 76871424)
           0 bad blocks
           2 large files

      353920 regular files
       37436 directories
          57 character device files
          25 block device files
           0 fifos
          15 links
       32355 symbolic links (30841 fast symbolic links)
         121 sockets
------------
      423929 files

User avatar
WharfRat
Level 20
Level 20
Posts: 11464
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 » Wed Apr 18, 2018 9:34 pm

OK, looks good.

Mount the partition again and try reinstalling grub.

First sudo mount -v /dev/sda1 /mnt then sudo grub-install --boot-directory=/mnt /dev/sda --force

You can reboot normally when done.

Hopefully this will fix it.
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 12:45 am

It didn't go too well:

Code: Select all

sudo grub-install --boot-directory=/mnt /dev/sda --force
grub-probe: error: failed to get canonical path of 'aufs'.
Installing for i386-pc platform.
Installation finished. No error reported.
Then rebooted and it landed on the grub prompt:

Code: Select all

GNU GRUB version 2.02~beta2-36ubuntu3.14+linuxmint1
Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists possible device or file completions.

grub>

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 » Thu Apr 19, 2018 2:34 am

asinoro wrote:
Fri Apr 13, 2018 5: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.

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 8:51 am

Output for that set of instructions:

Code: Select all

sudo su
mint mint # lsblk -f
NAME   FSTYPE  LABEL             UUID                                 MOUNTPOINT
sdb    iso9660 Linux Mint 18.3 Cinnamon 64-bit
│                                2017-11-24-13-25-42-00               /cdrom
├─sdb2 vfat    Linux Mint 18.3 Cinnamon 64-bit
│                                C8A5-5244                            
└─sdb1 iso9660 Linux Mint 18.3 Cinnamon 64-bit
                                 2017-11-24-13-25-42-00               
sr0                                                                   
loop0  squashf                                                        /rofs
sda                                                                   
├─sda2                                                                
├─sda5 swap                      7e227f7b-176c-4f05-ae39-98287fddc3ab [SWAP]
├─sda3 ext4    Boto              5afe0d1f-ed5a-412c-a5cd-ab569a4cdfbf 
└─sda1 ext4                      3a307547-199b-412d-b058-7d46353faeb8 
mint mint # mount /dev/sda1 /mnt
mint mint # mount --bind /dev /mnt/dev && mount --bind /sys /mnt/sys && mount --bind /proc /mnt/proc && chroot /mnt
mint / # lsb_release -a
No LSB modules are available.
Distributor ID:	LinuxMint
Description:	Linux Mint 17 Qiana
Release:	17
Codename:	qiana
mint / # sudo su
sudo: unable to resolve host mint
mint / # grub-install /dev/sda
Installing for i386-pc platform.
Installation finished. No error reported.
mint / # update-grub
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.16.0-28-generic
Found initrd image: /boot/initrd.img-3.16.0-28-generic
Found linux image: /boot/vmlinuz-3.13.0-37-generic
Found initrd image: /boot/initrd.img-3.13.0-37-generic
Found linux image: /boot/vmlinuz-3.13.0-24-generic
Found initrd image: /boot/initrd.img-3.13.0-24-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
  No volume groups found
grub-probe: error: cannot find a GRUB drive for /dev/sdb1.  Check your device.map.
done
mint / # update-initramfs -uk all
update-initramfs: Generating /boot/initrd.img-3.16.0-28-generic
Warning: No support for locale: en_AU.utf8
/usr/sbin/mkinitramfs: 338: /usr/sbin/mkinitramfs: ldconfig: not found
update-initramfs: Generating /boot/initrd.img-3.13.0-37-generic
cp: error reading ‘/lib/modules/3.13.0-37-generic/kernel/drivers/acpi/video.ko’: Input/output error
cp: failed to extend ‘/tmp/mkinitramfs_RfJNAc//lib/modules/3.13.0-37-generic/kernel/drivers/acpi/video.ko’: Input/output error
Bus error (core dumped)
Warning: No support for locale: en_AU.utf8
depmod: ERROR: failed to load symbols from /tmp/mkinitramfs_RfJNAc/lib/modules/3.13.0-37-generic/kernel/drivers/acpi/video.ko: Invalid argument
/usr/sbin/mkinitramfs: 338: /usr/sbin/mkinitramfs: ldconfig: not found
update-initramfs: Generating /boot/initrd.img-3.13.0-24-generic
Warning: No support for locale: en_AU.utf8
/usr/sbin/mkinitramfs: 338: /usr/sbin/mkinitramfs: ldconfig: not found
mint / # 
I'll reboot now and see how it goes.

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 8:57 am

Kernel panic again, very similar if not the same output as one of the earlier ones.

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 » Thu Apr 19, 2018 9:46 am

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.

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 9:53 am

Looks all right, I'll try rebooting now.

Code: Select all

sudo su
mint mint # lsblk -f
NAME   FSTYPE  LABEL             UUID                                 MOUNTPOINT
sdb    iso9660 Linux Mint 18.3 Cinnamon 64-bit
│                                2017-11-24-13-25-42-00               /cdrom
├─sdb2 vfat    Linux Mint 18.3 Cinnamon 64-bit
│                                C8A5-5244                            
└─sdb1 iso9660 Linux Mint 18.3 Cinnamon 64-bit
                                 2017-11-24-13-25-42-00               
sr0                                                                   
loop0  squashf                                                        /rofs
sda                                                                   
├─sda2                                                                
├─sda5 swap                      7e227f7b-176c-4f05-ae39-98287fddc3ab [SWAP]
├─sda3 ext4    Boto              5afe0d1f-ed5a-412c-a5cd-ab569a4cdfbf 
└─sda1 ext4                      3a307547-199b-412d-b058-7d46353faeb8 
mint mint # mount /dev/sda1 /mnt
mint mint # mount --bind /dev /mnt/dev && mount --bind /sys /mnt/sys && mount --bind /proc /mnt/proc && chroot /mnt
mint / # lsb_release -a
No LSB modules are available.
Distributor ID:	LinuxMint
Description:	Linux Mint 17 Qiana
Release:	17
Codename:	qiana
mint / # sudo locale-gen --purge --no-archive
sudo: unable to resolve host mint
Generating locales...
  en_AG.UTF-8... done
  en_AG.UTF-8... done
  en_AU.UTF-8... done
  en_BW.UTF-8... done
  en_CA.UTF-8... done
  en_DK.UTF-8... done
  en_GB.UTF-8... done
  en_HK.UTF-8... done
  en_IE.UTF-8... done
  en_IN.UTF-8... done
  en_IN.UTF-8... done
  en_NG.UTF-8... done
  en_NG.UTF-8... done
  en_NZ.UTF-8... done
  en_PH.UTF-8... done
  en_SG.UTF-8... done
  en_US.UTF-8... done
  en_ZA.UTF-8... done
  en_ZM.UTF-8... done
  en_ZM.UTF-8... done
  en_ZW.UTF-8... done
  zh_CN.UTF-8... done
Generation complete.
mint / # update-initramfs -u -t
update-initramfs: Generating /boot/initrd.img-3.16.0-28-generic
/usr/sbin/mkinitramfs: 338: /usr/sbin/mkinitramfs: ldconfig: not found
mint / # 

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 9:59 am

No luck. All 3 kernels go to kernel panic.

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 » 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.

User avatar
WharfRat
Level 20
Level 20
Posts: 11464
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:19 am

iegarcia,

You're getting this message /usr/sbin/mkinitramfs: 338: /usr/sbin/mkinitramfs: ldconfig: not found so this is another problem.
Mount the partition from the live media sudo mount -v /dev/sda1 /mnt and check if ls -lh /mnt/sbin/ldconfig exists.
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 9:40 pm

Code: Select all

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

User avatar
WharfRat
Level 20
Level 20
Posts: 11464
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 9:47 pm

Do you have anything in /mnt/sbin - I have a count of 296 files ls -lh /mnt/sbin|wc -l
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 9:47 pm

Code: Select all

ls -lh /mnt/sbin|wc -l
253

User avatar
WharfRat
Level 20
Level 20
Posts: 11464
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 9:57 pm

From where you are now enter the following one line at a time to install libc-bin

Code: Select all

sudo -i
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
apt install libc-bin
Paste back what happened with the installation
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:00 pm

Code: Select all

sudo -i
mint ~ # mount -t proc none /mnt/proc
mint ~ # mount --rbind /sys /mnt/sys
mint ~ # mount --rbind /dev /mnt/dev
mint ~ # /usr/sbin/chroot /mnt /bin/bash
mint / # source /etc/profile
mint / # echo "nameserver 8.8.8.8" >> /etc/resolv.conf
mint / # apt install libc-bin
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libc-bin is already the newest version.
The following packages were automatically installed and are no longer required:
  kid3-core libctemplate2 libgtkmm-2.4-1c2a liblua5.1-0 libmysqlcppconn7
  libodbc1 libqscintilla2-11 libqscintilla2-l10n libtinyxml2.6.2 libvsqlitepp3
  mysql-workbench-data python-mysql.connector python-pyodbc python-pysqlite2
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 101 not upgraded.

User avatar
WharfRat
Level 20
Level 20
Posts: 11464
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:09 pm

Try apt-get install --reinstall libc-bin
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:10 pm

Code: Select all

mint / # apt-get install --reinstall libc-bin
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  kid3-core libctemplate2 libgtkmm-2.4-1c2a liblua5.1-0 libmysqlcppconn7
  libodbc1 libqscintilla2-11 libqscintilla2-l10n libtinyxml2.6.2 libvsqlitepp3
  mysql-workbench-data python-mysql.connector python-pyodbc python-pysqlite2
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 101 not upgraded.
Need to get 0 B/1,166 kB of archives.
After this operation, 0 B of additional disk space will be used.
dpkg: warning: 'ldconfig' not found in PATH or not executable
dpkg: error: 1 expected program not found in PATH or not executable
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
E: Sub-process /usr/bin/dpkg returned an error code (2)

User avatar
WharfRat
Level 20
Level 20
Posts: 11464
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:14 pm

What's in echo $PATH
ImageImage

Post Reply

Return to “Installation & Boot”