• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Under dual systems Boot from not default partition

    Scheduled Pinned Locked Moved
    Feature Request
    3
    4
    493
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      Fernando Gietz Developer
      last edited by

      Hi,

      Here my Christmast wish 🙂

      We have in a lot of IT rooms with dual systems, Windows and Ubuntu. By default, we run windows but sometimes is necessary that FOG boots from the Ubuntu partition. For example, we have some IT rooms to do scitific calculation at nights, but during the day the students use Windows.

      In our old FOG server, FOG 0.30, we developed a tasks to do this. The tasks wakes up the client, changes the grub order and reboot the machine, in the next boot, the system boot from Ubuntu.

      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by

        @Fernando-Gietz I have done this in my old working place a couple of times. It does work but it’s not easy to include that as a general thing in FOG. It depends on the system you have (legacy BIOS or UEFI) and boot loader you have installed on disk.

        Fell free to make suggestions on how we should implement that in FOG.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        1 Reply Last reply Reply Quote 0
        • F
          Fernando Gietz Developer
          last edited by

          You are right. We developed it for legacy systems. In UEFI … 😞

          george1421G 1 Reply Last reply Reply Quote 0
          • george1421G
            george1421 Moderator @Fernando Gietz
            last edited by george1421

            @Fernando-Gietz So lets think about it a bit. in a way you want to tell the pxe booting client (in iPXE) don’t boot of the normal boot loader, but boot from a different partition (lets use /dev/sda6 for discussion). By default sanboot will boot from the first hard drive, and uefi will boot via refind.

            Grub can boot uefi. I don’t know if grub distributed with FOG can boot uefi.

            If you set the exit mode for a host to Grub first hard drive the iPXE menu is created this way:
            chain -ar ${boot-url}/service/ipxe/grub.exe --config-file="rootnoverify (hd0);chainloader +1" || goto MENU

            I’m wondering if someone could repurpose the setting rootnoverify (hd0);chainloader +1 to actually load /dev/sda6?

            The other challenge is that grub.exe is probably a bios mode application where we would want to use grub.efi for uefi.

            Again this is just me thinking out loud about the issue.

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

            1 Reply Last reply Reply Quote 1
            • 1 / 1
            • First post
              Last post

            239

            Online

            12.0k

            Users

            17.3k

            Topics

            155.2k

            Posts
            Copyright © 2012-2024 FOG Project