LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-17-2024, 02:58 PM   #16
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,350

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590

Quote:
For some reason the 40_custom file is not read so the menu cannot be updated.
That usually means there is something wrong in the file. Did you leave off the tailing } at the end of the menuentry?

Quote:
According to fdisk the OpenBSD root partition is at sdb4, so the set root line should be (hd1,4).
You're not chainloading the root partition, you're chainloading the drive (hd1)

Last edited by colorpurple21859; 03-17-2024 at 03:02 PM.
 
Old 03-18-2024, 07:34 AM   #17
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,510

Rep: Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491
Haven't used the BSD systems myself but the page at the link below gives several different suggestions that work, at least on FreeBSD, whatever difference that makes.

https://forums.freebsd.org/threads/h...sd-11-1.65992/
 
Old 03-18-2024, 11:36 AM   #18
cahlucas
Member
 
Registered: Dec 2019
Posts: 41

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
One problem fixed.
Post the contents of /etc/grub.d/40_custom
menuentry "OpenBSD" {
set root=(hd1,4)
chainloader +1
}
 
Old 03-18-2024, 11:39 AM   #19
cahlucas
Member
 
Registered: Dec 2019
Posts: 41

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
You're not chainloading the root partition, you're chainloading the drive (hd1)
What is the difference, and how should I make the correct setting?
 
Old 03-18-2024, 12:11 PM   #20
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,350

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
Did you put that after what was already in /etc/grub.d/40_custom?
Did you run update-grub after the editing 40_custom, and does your menuentry work? As Yancek mentioned earlier you can press c at the grub menu, and enter the following at the grub> prompt to see if it will work:
Code:
set root=(hd1,4)
chainloader +1
boot
 
Old 03-18-2024, 01:29 PM   #21
cahlucas
Member
 
Registered: Dec 2019
Posts: 41

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
Did you put that after what was already in /etc/grub.d/40_custom?
Did you run update-grub after the editing 40_custom, and does your menuentry work? As Yancek mentioned earlier you can press c at the grub menu, and enter the following at the grub> prompt to see if it will work:
Code:
set root=(hd1,4)
chainloader +1
boot
I passed on the complete contents of 40_custom earlier today. With that content I ran the update-grub command, and that had no effect. Pressing 'c' while the menu is visible does not bring up a command line, so it is not possible to execute commands.
 
Old 03-18-2024, 05:22 PM   #22
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,350

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
I don't know what you did, the /etc/grub.d/40_custom file should be like this after adding the bsd menuentry:

Code:
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.

menuentry "OpenBSD" {
set root=(hd1,4)
chainloader +1
}
Another way to do this is create a /boot/grub/custom.cfg file with just this in it:
Code:
menuentry "OpenBSD" {
set root=(hd1,4)
chainloader +1
}

Last edited by colorpurple21859; 03-18-2024 at 05:45 PM.
 
Old 03-18-2024, 07:09 PM   #23
cahlucas
Member
 
Registered: Dec 2019
Posts: 41

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
Another way to do this is create a /boot/grub/custom.cfg file with just this in it:
Code:
menuentry "OpenBSD" {
set root=(hd1,4)
chainloader +1
}
This gives me a menu entry with OpenBSD, and I can boot that too. The problem is that I can't use the arrow keys. I have to press 'c' first, after which the menu bar jumps to OpenBSD, but the arrow keys remain inactive. What can be done about this?
 
Old 03-18-2024, 07:18 PM   #24
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,350

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
I don't know the answer to that one. Maybe opening a new thread, someone else may know the answer.
 
  


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
Dual boot Dual hdds, Download of ubuntu 10.1, no vista or dual boot jim d Linux - Newbie 4 11-25-2010 04:18 PM
I want to change from a dual boot system to a single boot system learstar Linux - Newbie 14 07-31-2010 07:40 AM
Dual partition, dual OS, but not dual boot. mikalee Linux - General 7 12-20-2009 10:42 AM
Ubuntu 8.03a3 New Install: GRUB Error 21 after new dual-HDD, dual-boot install tvdxer Ubuntu 1 01-29-2008 01:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:51 AM.

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