LinuxQuestions.org
Help answer threads with 0 replies.
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-21-2020, 08:32 PM   #16
Peperina
LQ Newbie
 
Registered: May 2020
Posts: 25

Original Poster
Rep: Reputation: 14

Doing some baby steps progress here:

1- I ran sequence of commands as per post #13
2- Reboot PC and modified BIOS to boot from (HDD1/sdb)
3- Got a screen with a "GNU GRUB 2.02" header, a statement like "Minimal BASH-like editing..." and the "grub>" prompt.
4- Researched a bit on how to move on from there and found this article https://www.linux.com/training-tutor...-grub-2-linux/
5- Followed some indications there
6- When grub> ls, I got (hd0) (hd0,msdos5) (hd0,msdos1) (hd1) (hd1,msdos1)
7- Then grub> ls (hd0,1)/ and got lost+found swapfile etc/ media/
8- Then grub> ls (hd0,5) and got a similar display as previous step, plus the expected boot, initrd.img and vmlinuz stuff.
9- Seems grub "inverts" labels; like HDD1/sdb comes to be hdd0 and HDD0/sda comes to be hdd1, right?

So now the question is if I should run:

grub> set root=(hd0,5)
grub> linux /boot/vmlinuz-xxx-yyy root=/dev/sdb5
grub> initrd /boot/initrd.img-www-zzz
grub> boot

Would it be safe to run this last sequence? Thanks a lot!
Peperina.
 
1 members found this post helpful.
Old 05-21-2020, 09:30 PM   #17
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
Yes that should work, however there should be a vmlinuz and initrd in the root directory so this should work also and is simpler to remember.

Code:
grub> set root=(hd0,5)
grub> linux /vmlinuz root=/dev/sdb5
grub> initrd /initrd.img
grub> boot
Then you can attempt to rerun grub-install again to see if that fixes grub.

Last edited by colorpurple21859; 05-21-2020 at 09:31 PM.
 
2 members found this post helpful.
Old 05-22-2020, 06:05 AM   #18
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,502

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Quote:
Seems grub "inverts" labels; like HDD1/sdb comes to be hdd0 and HDD0/sda comes to be hdd1, right?
This is often the case when booting from an external drive and/or a flash drive. In the latter, my experience is that the flash will see itself as the first drive in most cases (/dev/sda) so that is always something to watch for.
 
2 members found this post helpful.
Old 05-22-2020, 09:45 AM   #19
enigma9o7
Senior Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,388

Rep: Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560
The thing you're doing different from most people is your step #2. Most people leave their PC booting from first hard drive,and let grub go on there. Grub gives you the choice to boot OS on 2nd hard drive.

Seems you're trying to use your BIOS to switch between windows and bodhi, instead of just letting grub do its normal thing.

Switching your disk order in bios is why changing sda vs sdb.
 
1 members found this post helpful.
Old 05-22-2020, 11:48 AM   #20
Peperina
LQ Newbie
 
Registered: May 2020
Posts: 25

Original Poster
Rep: Reputation: 14
Hi! Stuck (it seems) in some silly file location issue today, but unable to solve it myself so far...

1- When running grub> linux /boot/vmlinuz root=/dev/sdb5 I get error:file '/boot/vmlinuz' not found.
2- Same when I run grub> linux /vmlinuz root=/dev/sdb5

When in the live-session console, I was able to see the vmlinuz file under /.
Not sure what's going on. Thanks for any help!
Peperina.
 
1 members found this post helpful.
Old 05-22-2020, 01:37 PM   #21
cordx
Member
 
Registered: Oct 2018
Location: texas
Distribution: bodhi 5.1.0
Posts: 797

Rep: Reputation: 184Reputation: 184
you should be able to ls that partition to make sure those files exist with
Code:
grub> ls (hd0,5)/
if that continues to give you problems, you could try going back to your original suggestion of using the ones in /boot.
 
1 members found this post helpful.
Old 05-22-2020, 02:50 PM   #22
Peperina
LQ Newbie
 
Registered: May 2020
Posts: 25

Original Poster
Rep: Reputation: 14
Thanks cordx!

No success. When I ls, I do see "vmlinuz".
I did try build the command through TAB autocompletion, and eventually got again to grub> linux /vmlinuz root=dev/sdb5 and still "file not found".
As previously stated, using the /boot directories also failed.
Best regards,
Peperina.
 
1 members found this post helpful.
Old 05-22-2020, 04:11 PM   #23
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
That is odd that you have no /vmlinuz, then you will have to do what you suggested in post 16.
Code:
grub> ls (hd0,5)/boot
will show you what kernels are in /boot
Another thought did you run
Code:
linux /vmlinuz root=/dev/sda5
initrd /initrd.img
or
Code:
linux (hd0,5)/vmlinuz root=/dev/sda5
initrd (hd0,5)/initrd.img

Last edited by colorpurple21859; 05-22-2020 at 04:16 PM.
 
1 members found this post helpful.
Old 05-22-2020, 04:58 PM   #24
Peperina
LQ Newbie
 
Registered: May 2020
Posts: 25

Original Poster
Rep: Reputation: 14
Hi colorpurple!

Code:
grub> ls (hd0,5)/boot
yields:

System.map-4.9.0-6-686 config-4.9.0-6-686 initrd.img-4.9.0-6-686 grub/

I tried to run again both options you described but still get "file not found" (it is actually sdb5).

Thanks,
Peperina.

Last edited by Peperina; 05-22-2020 at 04:59 PM.
 
1 members found this post helpful.
Old 05-22-2020, 05:22 PM   #25
cordx
Member
 
Registered: Oct 2018
Location: texas
Distribution: bodhi 5.1.0
Posts: 797

Rep: Reputation: 184Reputation: 184
that would be why
Code:
linux /vmlinuz root=/dev/sda5
yields "file not found". /vmlinuz should be a symlink to /boot/vmlinuz-4.9.0-6-686 which you don't have.
 
Old 05-22-2020, 06:21 PM   #26
Peperina
LQ Newbie
 
Registered: May 2020
Posts: 25

Original Poster
Rep: Reputation: 14
Quote:
Originally Posted by cordx View Post
that would be why
Code:
linux /vmlinuz root=/dev/sda5
yields "file not found". /vmlinuz should be a symlink to /boot/vmlinuz-4.9.0-6-686 which you don't have.
When I ls -l, I can see:

.
..
lrwxrwxrwx 1 root root 24 .... vmlinuz -> boot/vmlinuz-4.9.0-6-686 and also
.
.
lrwxrwxrwx 1 root root 27 .... initrd.img -> boot/initrd.img-4.9.0-6-686

Isn't this expected? Thanks,
Peperirna.
 
1 members found this post helpful.
Old 05-22-2020, 06:23 PM   #27
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
Quote:
grub> ls (hd0,5)/boot

yields:

System.map-4.9.0-6-686 config-4.9.0-6-686 initrd.img-4.9.0-6-686 grub/
It appears that you are missing the kernel. Maybe it is located somewherer else. You didn't happen to create a boot partition at anytime?

Lets search with grub ls to see if there is a vmlinuz somewhere.
Code:
ls (hd0,1)/
ls (hd0,1)/boot
ls (hd0.5)/
ls (hd1,1)/
ls (hd1,1)/boot
ls (hd1,5)/
ls (hd1,5)/boot
ls (hd2,1)/
ls (hd2,1)/boot 
ls (hd2,5)/
ls (hd2,5)/boot
ls (hd3,1)/
ls (hd3,1)/boot 
ls (hd3,5)/
ls (hd3,5)/boot
If you don't find a vmlinuz or a vmlinuz-xxx-yyy somewhere the would suggest re-partition and start over.
 
1 members found this post helpful.
Old 05-22-2020, 07:00 PM   #28
Peperina
LQ Newbie
 
Registered: May 2020
Posts: 25

Original Poster
Rep: Reputation: 14
As always "vmlinuz" exists under ls (hd0,5)/

Thanks,
Peperina.
 
Old 05-22-2020, 07:27 PM   #29
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
If you have no other vmlinuz files on any of the partitions, you need to start over again. The /vmlinuz is linked to /boot/vmlinuz-4.9.0-6-686 which doesn't exist and the /initrd.img linked to /boot/initrd.img-4.9.0-6-686.
It doesn't make sense that you have a initrd.img-4.9.0-6-686 but no kernel to go with it.

Quote:
Would you suggest a complete re-install of Bodhi
from your first post, that would be yes, and a redo
of your partitioning. The sdc was the live usb but you never did say what the 2gb sdd1 was.

Last edited by colorpurple21859; 05-22-2020 at 07:33 PM.
 
1 members found this post helpful.
Old 05-22-2020, 08:20 PM   #30
Peperina
LQ Newbie
 
Registered: May 2020
Posts: 25

Original Poster
Rep: Reputation: 14
Thanks colorpurple!
At one moment I had two thumb drives attached. One with the Bodhi image and the second one temporarily hosting the bootinfoscript.
Regarding the vmlinuz symlink, what about what I posted before:

ls -l
.
.
lrwxrwxrwx 1 root root 24 .... vmlinuz -> boot/vmlinuz-4.9.0-6-686
.
.

Does it mean the file is there but it's broken? Thanks,
Peperina.
 
1 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 12:20 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