[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
howtos:misc:lilo_to_grub_bios_mbr [2023/11/30 14:52 (UTC)] – added section about /etc/default/grub zeebra | howtos:misc:lilo_to_grub_bios_mbr [2023/12/17 11:05 (UTC)] – [Edit custom config] zeebra | ||
---|---|---|---|
Line 4: | Line 4: | ||
===== Introduction ===== | ===== Introduction ===== | ||
- | If you use UEFI and/or GPT, then don't use this. If you still want to use it, you can probably set your UEFI to BIOS legacy mode and deactivate GPT. This is meant to be simple. | + | If you use UEFI and/or GPT, then don't use this. If you still want to use it, you can probably set your UEFI to BIOS legacy mode and deactivate GPT. This is meant to be simple. |
**Summary: | **Summary: | ||
Line 24: | Line 24: | ||
===== Generating a useful template (optional) ===== | ===== Generating a useful template (optional) ===== | ||
- | Grub2 is not very intuitive to write a config entries for, so you can modify a good example to your need instead. | + | Grub2 is not very intuitive to write config entries for, so you can modify a good example to your need instead. |
Pipe some examples to a file: | Pipe some examples to a file: | ||
< | < | ||
- | Copy one of the examples | + | Edit the file to only include |
Then append the example in the file to the custom grub entry file: (You need to append the info into the file, as you need to preserve the uncommented info already there, lest it should not work.) | Then append the example in the file to the custom grub entry file: (You need to append the info into the file, as you need to preserve the uncommented info already there, lest it should not work.) | ||
Line 42: | Line 42: | ||
If you run into an unbootable system, boot from Slackware USB/DVD and follow | If you run into an unbootable system, boot from Slackware USB/DVD and follow | ||
the instructions there to boot with the USB/DVD Kernel into your root file | the instructions there to boot with the USB/DVD Kernel into your root file | ||
- | system. Like: < | + | system. Like: < |
\\ | \\ | ||
===== Config ===== | ===== Config ===== | ||
Line 61: | Line 61: | ||
You can do these steps when you install and set up Slackware with a CD or USB, by dropping into a shell after the installation. Simply " | You can do these steps when you install and set up Slackware with a CD or USB, by dropping into a shell after the installation. Simply " | ||
The Slackware installation has already mounted your root filesystem and any other partitions you used during the installation into /mnt. You can also do that manually if you reboot and boot into the cd/usb again, or if something is not right. | The Slackware installation has already mounted your root filesystem and any other partitions you used during the installation into /mnt. You can also do that manually if you reboot and boot into the cd/usb again, or if something is not right. | ||
- | < | + | < |
- | + | mount -o bind /dev/ /mnt/dev/ | |
- | Once that is done, all you need to do is set up a proper working environment by mounting /dev, /proc and /sys into the root filesystem on /mnt, before chrooting into it. | + | |
- | < | + | |
mount -o bind /proc/ /mnt/proc/ | mount -o bind /proc/ /mnt/proc/ | ||
mount -o bind /sys/ / | mount -o bind /sys/ / | ||
Line 75: | Line 73: | ||
===== Configuring other Grub2 default options ===== | ===== Configuring other Grub2 default options ===== | ||
- | Grub2 contains some other options you can easily change or add too. These are kind of default and global options for Grub2, and should be used in combination with grub-install. These options can be found in / | + | Grub2 contains some other options you can easily change or add too. These are kind of default and global options for Grub2, and in some few cases you have to not only use grub-mkconfig, |
< | < | ||
Line 87: | Line 85: | ||
<!-- Please do not modify anything below, except adding new tags.--> | <!-- Please do not modify anything below, except adding new tags.--> | ||
<!-- You must remove the tag-word " | <!-- You must remove the tag-word " | ||
- | {{tag> | + | {{tag> |