DaemonForums  

Go Back   DaemonForums > Miscellaneous > General software and network

General software and network General OS-independent software and network questions, X11, MTA, routing, etc.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 30th March 2015
DaBSD DaBSD is offline
Shell Scout
 
Join Date: Jan 2013
Location: Russia/Iceland
Posts: 93
Default Keeping GRUB custom records

I've goot a multiboot system on my laptop, which is booted via GRUB (version 1.99-21ubuntu3.17). My main system is Ubuntu Linux, but I also have a custom record for booting NetBSD that I made manually. My problem is, when Ubuntu does an update involving a kernel change, boot.cfg gets automatically re-written. And while it does provide entries for all OSes presented on my HD (also Windows and Hackintosh), the NetBSD entry gets skipped, so I need to write it in each time manually. How can I work it around, to let GRUB remember all previous records, not only the ones it feels like?
Reply With Quote
  #2   (View Single Post)  
Old 31st March 2015
bsd-keith bsd-keith is offline
Real Name: Keith
Open Source Software user
 
Join Date: Jun 2014
Location: Surrey/Hants Border, England
Posts: 136
Default

May be you are chainloading NetBSD, & directly loading the others(?).
__________________
Linux since 1999, & now an OpenBSD user.
Reply With Quote
  #3   (View Single Post)  
Old 31st March 2015
roarde's Avatar
roarde roarde is offline
Real Name: Robert
New User
 
Join Date: Dec 2010
Location: Georgia, US
Posts: 7
Default

Since you have a working, presumably static, entry you may be able to add it "automatically" each conf rebuild by editing /etc/grub.d/40_custom

Looking at a Slack-based system here; your 40_custom may be in a different location, but there usually is one.
Reply With Quote
  #4   (View Single Post)  
Old 4th April 2015
roarde's Avatar
roarde roarde is offline
Real Name: Robert
New User
 
Join Date: Dec 2010
Location: Georgia, US
Posts: 7
Default

The above was written without having tried it. In the meantime, found what a Ubuntu user had to say about it. Same thing, but explained at least. That method loads the netbsd kernel directly. Read further down about chainloading the partition so that your BSD bootloader and its settings are used for loading.

Tried the direct kernel method using /etc/grub.d/40_custom, and it works here on this Slackish for NetBSD 7.0 BETA. No doubt chainloading would work the same way.

Side issues:
grub-probe can find the BSD's. grub-mount can mount at least the ones using "ufs2" read-write, though I won't vouch for the safety of that. The holdup to auto-detection by grub-mkconfig is that the grub maintainers haven't published their own scripts for OS detection, but for the present rely on os-prober, which obviously can't handle the job. The Gnu folks list this in grub-mkconfig's "Bugs" section.

Last edited by roarde; 4th April 2015 at 01:39 AM. Reason: clarification
Reply With Quote
  #5   (View Single Post)  
Old 4th April 2015
DaBSD DaBSD is offline
Shell Scout
 
Join Date: Jan 2013
Location: Russia/Iceland
Posts: 93
Default

Thank you Roarde! I'm ashamed to admit having read that Ubuntu help page when I was searching for instructions on how to boot NetBSD from GRUB, but the "/etc/grub.d/40_custom" thing somehow escaped my mind. You never stop learning...

BSD_keith, I appreciate your point, I thought of using the NetBSD bootloader too, but for a number of reasons I'd like to keep GRUB. Would love to play with the NetBSD loader too though..
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Keeping your /var/log/pflog file clean and managable J65nko Guides 3 8th February 2014 11:07 PM
Security Hackers leak '1 MILLION records' on Apple fanbois from FEDS J65nko News 4 11th September 2012 08:08 AM
Nagios fork Icinga 1.6 records SLA information J65nko News 0 7th December 2011 06:24 AM
Keeping /var/log/pflog clean from NetBIOS and SSID junk J65nko General software and network 1 26th April 2010 02:12 PM
Keeping ports in multiple jails up to date cajunman4life FreeBSD Installation and Upgrading 1 9th May 2008 11:51 PM


All times are GMT. The time now is 04:31 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick