LMDE 201403 install problem with Grub

Archived topics about LMDE 1
Forum rules
elphick
Level 1
Level 1
Posts: 4
Joined: Wed Apr 09, 2014 1:06 pm

LMDE 201403 install problem with Grub

Postby elphick » Wed Apr 09, 2014 1:27 pm

I'm trying to install LMDE 201403. When it gets to installing Grub, it fails and tells me that I will have to install Grub manually. It then terminates the install.

This manual command works OK (I hope it is correct):

grub-install --boot-directory=/target/boot/grub /dev/sda

On one of the terminal screens I see this message which I think is from the installer:

systemd-logind[4182]: Failed to issue method call: Launch helper exited with unknown return code 1

Any ideas, please?
Last edited by xenopeek on Wed Apr 09, 2014 2:26 pm, edited 1 time in total.
Reason: Moved to LMDE forum.

elphick
Level 1
Level 1
Posts: 4
Joined: Wed Apr 09, 2014 1:06 pm

Re: LMDE 201403 install problem with Grub

Postby elphick » Wed Apr 09, 2014 4:50 pm

Further information:

I ran live-installer from a terminal window and got this trace:

--> Configuring Grub
--> Running grub-install
chroot /target/ /bin/sh -c "grub-install --force /dev/sda"
/bin/sh: 1: grub-install: not found
--> Running grub-mkconfig
chroot /target/ /bin/sh -c "grub-mkconfig -o /boot/grub/grub.cfg"
/bin/sh: 1: grub-mkconfig: not found
--> Checking Grub configuration
!No /target/boot/grub/grub.cfg file found!

# ls /boot/grub/grub.cfg
ls: cannot access /boot/grub/grub.cfg: No such file or directory

elphick
Level 1
Level 1
Posts: 4
Joined: Wed Apr 09, 2014 1:06 pm

Re: LMDE 201403 install problem with Grub

Postby elphick » Wed Apr 09, 2014 4:53 pm

That last was looking at the wrong partition.

# ls /target/boot/grub
grub

# ls /target/boot/grub/grub/grub.cfg
ls: cannot access /target/boot/grub/grub/grub.cfg: No such file or directory

elphick
Level 1
Level 1
Posts: 4
Joined: Wed Apr 09, 2014 1:06 pm

Re: LMDE 201403 install problem with Grub

Postby elphick » Wed Apr 09, 2014 5:05 pm

# chroot /target/
bash: /usr/share/bash-completion/bash_completion: No such file or directory
bash: /usr/bin/mint-fortune: No such file or directory
[127]root@mint / # grub-install
bash: grub-install: command not found
[127]root@mint / # /usr/sbin/grub-install
bash: /usr/sbin/grub-install: No such file or directory
[127]root@mint / # ls /
bin dev home lib lost+found mnt proc run srv tmp var
boot etc initrd.img lib64 media opt root sbin sys usr vmlinuz
root@mint / # ls /usr

So the problem is, that the installer is chrooting to /target and running grub-install, which does not yet exist in /target, because the grub package has not yet been installed.

Temporary solution: don't ask the installer to install grub ?

User avatar
Flemur
Level 9
Level 9
Posts: 2825
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: LMDE 201403 install problem with Grub

Postby Flemur » Thu Apr 10, 2014 11:17 am

Temporary solution: don't ask the installer to install grub ?

I told the LMDE installer not to install grub and it worked OK.*

However, I had another OS installed already booting w/grub, so it's just a matter of adding 4 or 5 lines to menu.lst (or grub.cfg) to add a new distro.
(grub2's "update-grub" has screwed up several times, getting partitions all confused; I think it needs "--recheck")

*the grub package *should* be installed, just not the bootloader and the files it creates, and you should be able to do the chroot thing, or something like:
$ grub-install --boot-directory=/mnt/boot /dev/sda
then
$ update-grub
then see if you get the grub.cfg file.
Mint 18 Mate/fluxbox/pulse-less - Xubuntu 16.04/fluxbox/pulse-less
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?


Return to “Archive”

Who is online

Users browsing this forum: No registered users and 0 guests