LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Bodhi
User Name
Password
Bodhi This forum is for the discussion of Bodhi Linux.

Notices


Reply
  Search this Thread
Old 05-18-2020, 05:49 PM   #1
Peperina
LQ Newbie
 
Registered: May 2020
Posts: 25

Rep: Reputation: 14
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.
 
Old 05-18-2020, 06:42 PM   #2
cordx
Member
 
Registered: Oct 2018
Location: texas
Distribution: bodhi 5.1.0
Posts: 797

Rep: Reputation: 184Reputation: 184
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.

Last edited by cordx; 05-19-2020 at 05:50 AM. Reason: for clarity and missed the typo!
 
Old 05-18-2020, 07:23 PM   #3
Peperina
LQ Newbie
 
Registered: May 2020
Posts: 25

Original Poster
Rep: Reputation: 14
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?).
 
Old 05-18-2020, 08:26 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,145

Rep: Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124
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.
 
1 members found this post helpful.
Old 05-18-2020, 09:04 PM   #5
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,371

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
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.
 
1 members found this post helpful.
Old 05-19-2020, 05:52 AM   #6
cordx
Member
 
Registered: Oct 2018
Location: texas
Distribution: bodhi 5.1.0
Posts: 797

Rep: Reputation: 184Reputation: 184
Quote:
Originally Posted by syg00 View Post
note the typo above
replaced deb with dev in the original post. thanks for catching that

Last edited by cordx; 05-19-2020 at 05:54 AM.
 
Old 05-19-2020, 06:32 AM   #7
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,547

Rep: Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498
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.

Last edited by yancek; 05-21-2020 at 05:01 PM.
 
1 members found this post helpful.
Old 05-19-2020, 08:43 AM   #8
Peperina
LQ Newbie
 
Registered: May 2020
Posts: 25

Original Poster
Rep: Reputation: 14
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.
 
1 members found this post helpful.
Old 05-21-2020, 01:31 PM   #9
Peperina
LQ Newbie
 
Registered: May 2020
Posts: 25

Original Poster
Rep: Reputation: 14
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.
 
1 members found this post helpful.
Old 05-21-2020, 03:23 PM   #10
Peperina
LQ Newbie
 
Registered: May 2020
Posts: 25

Original Poster
Rep: Reputation: 14
Managed to run the script, so I'm attaching the results.txt file

Thanks for any help! Regards,
Peperina
Attached Files
File Type: txt RESULTS.txt (16.6 KB, 22 views)
 
1 members found this post helpful.
Old 05-21-2020, 05:08 PM   #11
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,547

Rep: Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498
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.
 
2 members found this post helpful.
Old 05-21-2020, 05:13 PM   #12
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,371

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
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
 
1 members found this post helpful.
Old 05-21-2020, 05:35 PM   #13
Peperina
LQ Newbie
 
Registered: May 2020
Posts: 25

Original Poster
Rep: Reputation: 14
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.
 
1 members found this post helpful.
Old 05-21-2020, 06:12 PM   #14
cordx
Member
 
Registered: Oct 2018
Location: texas
Distribution: bodhi 5.1.0
Posts: 797

Rep: Reputation: 184Reputation: 184
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".
 
1 members found this post helpful.
Old 05-21-2020, 07:29 PM   #15
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,145

Rep: Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124Reputation: 4124
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.
 
2 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
LXer: Google I/O Android News: Location, Location, Location (Plus Cloud Messaging and Bluetooth) LXer Syndicated Linux News 0 06-05-2013 01:00 PM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 12:55 PM
apache: location in location eantoranz Linux - Networking 2 08-08-2005 09:37 PM
location, location, location! mermxx LQ Suggestions & Feedback 9 09-25-2004 03:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Bodhi

All times are GMT -5. The time now is 08:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration