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

    Dualboot with two Drives (SSD) and make FOG decide to boot each OS

    Scheduled Pinned Locked Moved
    FOG Problems
    2
    3
    258
    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.
    • T
      thomGee
      last edited by

      Hi there,
      I have installed windows on one drive and Linux on the other.
      In addition i want rEFInd on the Linuxpartition to have the user a nice way to choose the OS.

      Actually, I’d like to have it automatically booting Linux in the evening and Windows at daytime.

      Is it possible to change the FOG-Image in a way, to decide which local Drive to boot from?

      I could make in both OS’s a Autotask to reboot at a specific time. So only FOG has to change the default local bootdevice in its image to change the default OS

      I think there might be 2 Images to be switched on the FOG server
      or to change the iPXE-Setting in FOG via Script. Right?

      But how to change this in the right time (ex. with cron?)

      Any ideas?

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

        @thomgee well if you think about this, you are pxe booting into the ipxe menu, after a timeout ipxe calls refind to boot the computer. So if you have a daytime refind.conf and a nighttime refind.conf file Then you can switch between the two disk partitions without interfering with FOG programming.

        First let me say I haven’t worked with the refind menu, but I know it exists. I think from within refind you can pick a timeout or default boot partition. So I think one could leave your menu selection option in place so the user could pick the other partition, but then change your default boot partition.

        So the next question is how to swap out the refind.conf file, well you already hit on it, setup a bash job that is run by cron to swap out the daytime and night time versions of the refind.conf file. Everything in FOG will work exactly how it did before and updates to FOG will not disrupt your boot order switch.

        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!

        T 1 Reply Last reply Reply Quote 0
        • T
          thomGee @george1421
          last edited by

          @george1421 Thank You for beeing so fast 🙂
          I’ll try that in my Lab-Environment.
          Fortunately, I have a little time until the pool has to be online.
          But than it has to be bulletproof 🙂

          I am also not used to rEFInd yet, but so far i like it.
          I think I even found something to look for HD-Labels.
          With SSD in UEFI this may hopefully work with several PCs

          But further Ideas are welcome 👍

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

          163

          Online

          12.0k

          Users

          17.3k

          Topics

          155.2k

          Posts
          Copyright © 2012-2024 FOG Project