As to why ? No big secret as I have already explained.
As mentioned earlier, a bit of voodoo for myself also. But then if we don't try we won't learn.
Will try the grub configurator, have not seen that yet.
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Novel approach - Is it possible ?
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: Novel approach - Is it possible ?
If you want to learn about GRUB configuration then avoid abstraction tools and do it yourself instead:PlaneAnimal wrote:if we don't try we won't learn.
Will try the grub configurator, have not seen that yet.
https://www.gnu.org/software/grub/manua ... -scripting
A Debian system only requires 5 lines in grub.cfg to boot and one of those is the closing curly bracket
deadbang
-
- Posts: 1939
- Joined: 2006-04-21 11:19
- Location: Sol Sector
- Has thanked: 1 time
- Been thanked: 2 times
Re: Novel approach - Is it possible ?
Here are a couple of links to more info:PlaneAnimal wrote:Hmmm, something to look into GRUB4DOS.
http://www.rmprepusb.com/tutorials/grub4dos
http://reboot.pro/forum/66-grub4dos/
Freespoke is a new search engine that respects user privacy and does not engage in censorship.
-
- Posts: 9
- Joined: 2018-04-11 18:25
Re: Novel approach - Is it possible ?
Thank you, for the links, had a quick look, lots of good reading to digest and see how to use.
Re: Novel approach - Is it possible ?
I installed Debian (so grub2) first, then installed grub4dos ... that as the default option chains to the grub2 boot. I like grub4dos for its simplicity and its what many Puppy Linux boot hints reference. grub4dos doesn't however support chainloading to a OpenBSD bsd.rd file whereas grub2 does (but I can boot directly to my installed OpenBSD directly from grub4dos.
I have three partitions, first and second are both ext3 (as ext3 can be mounted as though it were ext2 from OpenBSD, but mounted as though it were ext4 from Linux). The first is where the grub4dos menu.lst and grub2 are installed, and that also houses Debian and Puppy linux boots. The second partition I treat as data, i.e. I mount that both from Linux and OpenBSD. The third partition is where OpenBSD is installed (and it internally 'partitions' that as part of the default installation).
One of the unofficial Puppy Linux type offerings is a set of 'dogs'. Of which one is a DebianDog. Basically a Debian installation into a compressed squashed filesystem (SFS) i.e. single file. The boot for that sets up a environment in memory and then mounts that filesystem ... so it all runs in ram. At the end (or at intervals) you can save all changes made i.e. that creates a overlay that indicates any changed files between the main SFS and the latest snapshot. Or you can just shutdown without saving.
Yes it is possible to boot from USB and run on HDD, or just run from USD or just from HDD ...etc. Or even boot and run from a mini sandisk. Booting a USB along with using full HDD encryption for instance is a way to keep your data more secure - lose your laptop but still have the USB and the thief wont be able to view your laptop content type security.
I have three partitions, first and second are both ext3 (as ext3 can be mounted as though it were ext2 from OpenBSD, but mounted as though it were ext4 from Linux). The first is where the grub4dos menu.lst and grub2 are installed, and that also houses Debian and Puppy linux boots. The second partition I treat as data, i.e. I mount that both from Linux and OpenBSD. The third partition is where OpenBSD is installed (and it internally 'partitions' that as part of the default installation).
One of the unofficial Puppy Linux type offerings is a set of 'dogs'. Of which one is a DebianDog. Basically a Debian installation into a compressed squashed filesystem (SFS) i.e. single file. The boot for that sets up a environment in memory and then mounts that filesystem ... so it all runs in ram. At the end (or at intervals) you can save all changes made i.e. that creates a overlay that indicates any changed files between the main SFS and the latest snapshot. Or you can just shutdown without saving.
Yes it is possible to boot from USB and run on HDD, or just run from USD or just from HDD ...etc. Or even boot and run from a mini sandisk. Booting a USB along with using full HDD encryption for instance is a way to keep your data more secure - lose your laptop but still have the USB and the thief wont be able to view your laptop content type security.
Re: Novel approach - Is it possible ?
My grub4dos menu.lst boots look like ...
The first is the chainloader to Debian (grub2) boot, the second boots OpenBSD
My grub2 boot includes a entry of ...
That boots a bsd.rd file (OpenBSD install ram disk image) downloaded to the root / folder. grub4dos doesn't support that kopenbsd command. So from within Debian I can ftp to OpenBSD and download a bsd.rd to the / folder and then reboot and follow the chainload from gru4dos to the grub2 boot menu, then select that OpenBSD bsd.rd option, which then puts me into a OpenBSD installation sequence. Takes around 5 minutes to install via http (that bsd.rd file is very small) using a cli installation process that is mostly just a matter of pressing ENTER repeatedly (assuming you already have a partition formatted to type a6).
Code: Select all
title chain grub2
find --set-root /boot/grub/i386-pc/core.img
kernel /boot/grub/i386-pc/core.img
boot
title BSD sda4
root (hd0,3)
makeactive
chainloader +1
boot
My grub2 boot includes a entry of ...
Code: Select all
menuentry 'OpenBSD bsd.rd' {
kopenbsd /bsd.rd
}
-
- Posts: 9
- Joined: 2018-04-11 18:25
Re: Novel approach - Is it possible ?
Thanks ruffwoof, seems like you have already accomplished what I was wondering. You gave some good info which I will try out.
-
- Global Moderator
- Posts: 3049
- Joined: 2017-09-17 07:12
- Has thanked: 5 times
- Been thanked: 132 times
Re: Novel approach - Is it possible ?
This relies on the BIOS firmware exposing the USB drive to GRUB even when not booting from it. Most BIOS firmwares expose all internal drives, but some BIOS firmwares expose a USB drive (as hd0) only when booting from it, and do not expose it when booting from another drive.stevepusser wrote:I Imagine that you could add an boot entry in there using the UUIDs for the USB drive that would only work if it was plugged in
GRUB 2 has its own IDE, AHCI and USB native drivers which bypass the firmware, but using any of them disables all firmware drives and forces to use GRUB native drivers for all drives. This is tricky because as soon as you load a single native driver, all firmware drives are disabled, including the one containing GRUB's modules. So you'd better load the driver for that drive first, or copy all the required modules into a memdisk which does not depend on any drive. In any case you'll have to update the $prefix path.