View previous topic :: View next topic |
Author |
Message |
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9697 Location: almost Mile High in the USA
|
Posted: Tue Apr 09, 2019 5:00 am Post subject: sys-boot/grub:0 ... we miss you! |
|
|
I figured it would happen eventually, but *sniff* bye grub:0 :(
I don't think I will be able to upgrade the bootloader on one of my remotely administrated machines because there's too much risk in causing a no-boot situation...
Sigh.
Oh well. _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54405 Location: 56N 3W
|
Posted: Tue Apr 09, 2019 7:53 am Post subject: |
|
|
eccerr0r,
A boot loader is like firmware. Mine was installed in April 2009 and still works today.
Why upgrade? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Tue Apr 09, 2019 8:53 am Post subject: |
|
|
NeddySeagoon wrote: | eccerr0r,
A boot loader is like firmware. Mine was installed in April 2009 and still works today.
Why upgrade? |
my grub:0 still works, the problem is that its the disk that start failing, could replace the disk, but grub |
|
Back to top |
|
|
Irre Guru
Joined: 09 Nov 2013 Posts: 434 Location: Stockholm
|
Posted: Tue Apr 09, 2019 12:28 pm Post subject: |
|
|
I think the "lilo" boot loader often is useful. |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Tue Apr 09, 2019 12:57 pm Post subject: |
|
|
krinn,
all you need is the boot code in very beginning of the drive. Not sure about stage 1.5, don't remember well, but if you back up everything before first partition you should have it. The legacy partition table will be incorrect, but you can overwrite it with fdisk or equivalent. _________________ My Gentoo installation notes.
Please learn how to denote units correctly! |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6103 Location: Dallas area
|
Posted: Tue Apr 09, 2019 1:03 pm Post subject: |
|
|
krinn wrote: | NeddySeagoon wrote: | eccerr0r,
A boot loader is like firmware. Mine was installed in April 2009 and still works today.
Why upgrade? |
my grub:0 still works, the problem is that its the disk that start failing, could replace the disk, but grub |
So, replace the disk and run grub-install. I've done that a few times, the last time was when I replaced the regular disk w/an ssd.
All the stuff to reinstall is under /lib/grub.
Plus even if grub-0 isn't in the portage tree, make it local and keep it around. That's what I've done with grub-static. I have no desire to mess with grub-2.
When I have to update it will be to go full uefi but that's in the future. _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9697 Location: almost Mile High in the USA
|
Posted: Tue Apr 09, 2019 2:50 pm Post subject: |
|
|
Yeah, it should keep working. Probably will need to leave a copy in an overlay so I don't have to just delete grub from world to keep portage happy. _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Tue Apr 09, 2019 3:52 pm Post subject: |
|
|
Anon-E-moose wrote: | Plus even if grub-0 isn't in the portage tree, make it local and keep it around. That's what I've done with grub-static. I have no desire to mess with grub-2. |
i didn't even have grub-static package
i have just migrate to 64bits with the same disks and the same grub that was from the 32bits installation.
i'll go save it to an overlay now.
lilo has always be a pain for me, you need to run it always after kernel change (while my grub is set to boot vmlinuz and a vmlinuz.old as backup), and if anything goes wrong, grub save you with the "e" key.
where did you get the infos about grub:0 removal btw? |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6103 Location: Dallas area
|
Posted: Tue Apr 09, 2019 4:13 pm Post subject: |
|
|
krinn wrote: | where did you get the infos about grub:0 removal btw? |
There was talk of it a few months ago. Devs talking, reached end of life... blah, blah, blah.
Right now, I only have a grub directory (grub-static already removed) and it only has grub-2.02-r3.ebuild and grub-9999.ebuild in it.
Don't know when they cleaned it up.
I keep all my distfiles and portage backed up on a mirrored usb backup system.
I have both grub-0.97 and grub-static-0.97 saved.
ETA: Looks like grub-static was scrubbed sometime during Jan and grub-0.97 sometime during Feb.
grub/grub-static ebuilds and files (for grub) are archived https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-boot/ _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9697 Location: almost Mile High in the USA
|
Posted: Tue Apr 09, 2019 4:41 pm Post subject: |
|
|
I probably should just migrate everything to grub2 anyway, but what works...works. If the machine's locked in a room and 2000 miles away, not much you can do to exploit it if there are bugs...
I just have a mixture of grub:0 an grub:2 machines. I don't mind grub:2 at all, just that it's downtime if I get the config wrong. Question is when I test it. Do I test now and take the downtime now, or do I wait until power goes out and it doesn't come up then... _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6103 Location: Dallas area
|
Posted: Tue Apr 09, 2019 4:45 pm Post subject: |
|
|
but what works...works.
That's my philosophy _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Tue Apr 09, 2019 5:50 pm Post subject: |
|
|
Anon-E-moose wrote: | I have no desire to mess with grub-2. | FYI, you don't have to use the "automatic" tools. You can do everything manually like before with minor syntax changes to the configuration file.
Code: | timeout=5
default=1
menuentry "Text you want to display" {
set root=<...>
linux <...>
initrd <...>
}
menuentry <...> |
_________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6103 Location: Dallas area
|
Posted: Tue Apr 09, 2019 6:27 pm Post subject: |
|
|
Thanks, pjp, simple enough.
The other thing I want is a completely static binary, similar to busybox, I don't want to depend on any dynamic lib.
I know grub-2 has a static flag, but in looking at it, it doesn't seem to require all things to be statically built in. I need to pull the tarball and look at it in depth. _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 21793
|
Posted: Wed Apr 10, 2019 1:25 am Post subject: |
|
|
For anyone who wants to avoid both Grub and Lilo, I suggest syslinux. It can boot both BIOS and UEFI modes, and has a configuration file to let you configure a list of kernels for the user to choose from. Each entry can have its own command line. |
|
Back to top |
|
|
Fitzcarraldo Advocate
Joined: 30 Aug 2008 Posts: 2038 Location: United Kingdom
|
|
Back to top |
|
|
miket Guru
Joined: 28 Apr 2007 Posts: 488 Location: Gainesville, FL, USA
|
Posted: Fri Apr 19, 2019 9:29 pm Post subject: |
|
|
Hu wrote: | For anyone who wants to avoid both Grub and Lilo, I suggest syslinux. It can boot both BIOS and UEFI modes, and has a configuration file to let you configure a list of kernels for the user to choose from. Each entry can have its own command line. |
I can't agree enough. Syslinux is wonderfully lightweight and easy to configure. I switched to it when Grub 2 came out and haven't looked back. |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Sat Apr 20, 2019 8:21 am Post subject: |
|
|
Hu wrote: | For anyone who wants to avoid both Grub and Lilo |
My value in grub comes from its "e" key power ; i find grub configuration easy to use because i'm use to it, but it's true at first the hd0 (range start at 0) and partition (range start at 1) syntax can mislead everyone.
lilo was easier to handle.
But whatever is the diffulty of the configuration or syntax, i just cannot live without that "edit" functionality ; it has saved me so many times and i'm so lazy to use an usb key/livecd |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9697 Location: almost Mile High in the USA
|
Posted: Sat Apr 20, 2019 2:03 pm Post subject: |
|
|
I also stick with grub because of the CLI that it presents with editing. Sometimes just a small error can be fixed and you get a bootable system once more. Also due to its filesystem drivers, you can choose kernel and initramfs images that were not initially preselected by lilo, even on esoteric filesystems like xfs, jfs, reiserfs, etc. if it were not moved to the right place prior to restart. There's no "ls" functionality but the tab completion effectively will get you file and directory lists from grub directly.
It's saved me many times from reaching for a rescue boot image. And even from rescue images with grub I can get a damaged system to boot on its own with the system's incorrectly positioned kernel or command line options too, not required to use a rescue image kernel.
Just that grub:0 was still working just fine, even if grub2 works equally as well :( _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
Tony0945 Watchman
Joined: 25 Jul 2006 Posts: 5127 Location: Illinois, USA
|
Posted: Sat Apr 20, 2019 6:55 pm Post subject: |
|
|
Glad it works for you guys. All my computers have a DVD drive. The oldest is IDE! I keep a sysrescuecd CD in them at all times, just removing if I want to play a DVD which is rarely. I don't know if it's legal, but I've ripped some of my DVD's for personal use only. I don't sell or give the mpeg's away. When I've paid money for a DVD (or tape back in the day), I don't want to watch a commercial first. |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9697 Location: almost Mile High in the USA
|
Posted: Sat Apr 20, 2019 7:55 pm Post subject: |
|
|
I guess some of my machines don't have media other than hard drives, mostly because their cases don't have space for an optical drive. But sometimes grub isn't enough still when grub gets corrupted (oh no why can't I emerge grub:0 again?), alas, time to connect a USB optical drive.
My offtopic 2 cents: ripping DVD/CD should be legal as long as:
1. You don't give away or sell the mpeg/mp3. No anonymous/public viewing, etc. Only for personal use.
2. You don't give away or sell the original CD/DVD. Have them ready for re-extraction if someone asks. Don't put them offsite, at most keep in attic or basement. I notice a lot of people donating their DVD/CDs, I would think when donating the rights to view/listen to the media are donated as well - whatever was ripped and kept is now illegal. _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
Tony0945 Watchman
Joined: 25 Jul 2006 Posts: 5127 Location: Illinois, USA
|
Posted: Sat Apr 20, 2019 8:49 pm Post subject: |
|
|
Without encouraging more off-topic, I concur. |
|
Back to top |
|
|
miket Guru
Joined: 28 Apr 2007 Posts: 488 Location: Gainesville, FL, USA
|
Posted: Sat Apr 20, 2019 10:30 pm Post subject: |
|
|
Tony0945 wrote: | Without encouraging more off-topic, I concur. |
Back to the topic:
krinn wrote: | My value in grub comes from its "e" key power |
I'm here to tell you that syslinux does have command-line editing. The keystroke to start editing a command line is not 'e', as in grub, but <tab>. Once in editing mode, <enter> boots with the edited command line while <esc> cancels input and returns to the boot menu.
I'm not just telling you that from memory or from a simple trusting of the documentation--I tried it just now. |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Sun Apr 21, 2019 10:23 am Post subject: |
|
|
miket wrote: | I'm here to tell you that syslinux does have command-line editing. |
And it's true argument in favor of syslinux for me, thank you for the info miket, i'll keep that in mind, and will sure gives it a try. |
|
Back to top |
|
|
Spanik l33t
Joined: 12 Dec 2003 Posts: 963 Location: Belgium
|
Posted: Tue Apr 23, 2019 6:38 pm Post subject: |
|
|
Where can I find more about syslinux? I went lilo because I couldn't find Grub when installing this new pc. Just because I always have issues because this silly thing always lists the HD's in a different order when starting from the minimal install dvd or when starting from the fresh install. With the command line at least I could try a few things until it started and then edit it in. But lilo is soo slow to boot... takes minutes. _________________ Expert in non-working solutions |
|
Back to top |
|
|
|