LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Bodhi (https://www.linuxquestions.org/questions/bodhi-92/)
-   -   GRUB files location. (https://www.linuxquestions.org/questions/bodhi-92/grub-files-location-4175675493/)

Peperina 05-18-2020 05:49 PM

GRUB files location.
 
Hi!

Dealing with boot issues, I've been researching a bit on "grub" and seems it didn't get installed in my system (/etc/default and other locations as per Linux forums browsing).
From my live-session file manager I also searched for *grub* and no hints.
Would you suggest a complete re-install of Bodhi or maybe installing grub as a stand alone package?
If the second option is viable, what would be the hi level process? Thanks a lot!
Peperina.

cordx 05-18-2020 06:42 PM

i'm not sure exactly what you mean by "hi level process", but you can install grub from a terminal with the command sudo grub-install /dev/sdX (where X is replaced by the letter of the drive you wish to install grub to). if you need to check which drive letter, you can use lsblk -f.

Peperina 05-18-2020 07:23 PM

Thanks cordx! Target is sdb. Ran that command and got:

grub-install error failed to get canonical path of /cow

Researching what that means (chroot?).

syg00 05-18-2020 08:26 PM

The target of that command should be /dev/sdb in that case - note the typo above (it's a device file).
I haven't dealt with bodhi in years, may get back to it today, but you have to have a boot-loader. We need hard info - go here, download the script and do as it says.

colorpurple21859 05-18-2020 09:04 PM

If your doing this from a live iso, first you have to mount bodhi root partition somewhere, say /mnt and then run grub-install --boot-directory=/mnt/boot /dev/sdb
This is assuming this isn't an efi system and no boot partition. Otherwise do as syg00 suggest run the boot-info script and post the results.

cordx 05-19-2020 05:52 AM

Quote:

Originally Posted by syg00 (Post 6124788)
note the typo above

replaced deb with dev in the original post. thanks for catching that :)

yancek 05-19-2020 06:32 AM

Quote:

grub-install error failed to get canonical path of /cow
That means that whatever ccmmand you ran it was trying to install Grub to the 'live' system, the DVD/USB which you were using which will never work so run the bootinfoscript and post the info if you haven't resolved the problem.

Peperina 05-19-2020 08:43 AM

Thanks everybody for the suggestions! I just did a fast read of "bootinfoscript", so may need to work my self in understanding how to install/run it. Most probably I'll be replying and uploading info tomorrow. Best regards,
Peperina.

Peperina 05-21-2020 01:31 PM

OK, this is where I got:

1- Got /home/bodhi/bootinfoscript-0.78 to host the script, changelog and readme files.
2- Tried sudo ./bootinfoscript but got some "command not found"
3- Tried su - which asked for root password which I don't know and couldn't locate.
4- From previous step, learned that sudo -s might be an option and actually got to root@bodhi:~#
5- Tried to execute ./bootinfoscript and got "bash ./bootinfoscript not such file or directory"

Maybe some silly issue like I'm not executing the command properly? Thanks for any help! Best regards,
Peperina.

Peperina 05-21-2020 03:23 PM

1 Attachment(s)
Managed to run the script, so I'm attaching the results.txt file

Thanks for any help! Regards,
Peperina

yancek 05-21-2020 05:08 PM

There is no sign of Grub in the bootinfoscript output so you do need to install it. Use the command in post 5 above but preface it with sudo. And you do need to mount that partition (/dev/sdb5) first.

colorpurple21859 05-21-2020 05:13 PM

It looks like you have two usbs plugged in. What is the 2GB /dev/sdd1 label bodhi?
Did you install bodhi twice? There are two ext4 file systems, one is /dev/sdb1 and one is /dev/sdb5

Peperina 05-21-2020 05:35 PM

Hi yancek and colorpurple,

Thanks! Back when I started, I attempted to install Bodhi twice. First attempt gave me the option to "install alongside other OS" (failed) and second attempt I chose to do a "clean" install on sdb. Is that causing a problem?

As per the suggested commands sequence would it be something like this:

1- sudo mount /dev/sdb5 /mnt

2- sudo grub-install --boot-directory=/mnt/boot /dev/sdb(*)

(*) would it be "sdb" or "sdb5"?

Thanks a lot!
Peperina.

cordx 05-21-2020 06:12 PM

you will need to install grub to the disk itself (sdb) instead of the partition (sdb5). here's a bit more info if you are interested: https://help.ubuntu.com/community/Grub2/Installing. there is a good explanation down under the heading "via the LiveCD terminal".

syg00 05-21-2020 07:29 PM

Are you planning to change the boot disk in the BIOS ?. If you don't Windows will (always) remain the default boot-loader.

grub-install doesn't install the package grub, but installs the software (from the package) needed to boot the disk. First it might pay to check if it really did get installed at all.
Code:

dpkg '*grub*' | grep ^îi
FWIW I installed bodhi twice yesterday, once as BIOS on MBR and also as EFI on gpt (re-install erased entire disk without asking) - no problems on either, grub was fine.


All times are GMT -5. The time now is 12:31 AM.