Grub or Windows boot manager

Discussion in 'Other Operating Systems' started by miicah, Mar 2, 2021.

  1. miicah

    miicah Member

    Joined:
    Jun 3, 2010
    Messages:
    7,184
    Location:
    Mount Cotton, QLD
    So I just bought a 500gb external SSD and I'm trying to have it set up so I can boot whatever I need.

    Basically what I want to know is should I create the Windows boot manager EFI partition and add a grub entry, or should I make a grub partition and add a windows boot manager option to grub?

    Basically when I'm done I'll be booting:
    • WinPE
    • DaRT
    • Any other boot.wim I need
    For Linux:
    • Ubuntu live environment
    • gparted
    • clonezilla
    • dban
    • Any other linux live distro
    I won't have any permanent Windows or Linux installs on the drive.
     
  2. HyRax1

    HyRax1 ¡Viva la Resolutión!

    Joined:
    Jun 28, 2001
    Messages:
    7,931
    Location:
    At a desk
    Grub should be fine for all of that.

    Edit: Here's my GRUB menu entries for my external boot SSD with live Ubuntu and Clonezilla (with second partition containing images mounted automatically - I also don't use WinPE, but that shouldn't be difficult to add):

    Code:
    menuentry "Ubuntu" {
        set gfxpayload=keep
        linux    /casper/vmlinuz  file=/cdrom/preseed/ubuntu.seed maybe-ubiquity quiet splash ---
        initrd    /casper/initrd
    }
    menuentry "Ubuntu (safe graphics)" {
        set gfxpayload=keep
        linux    /casper/vmlinuz  file=/cdrom/preseed/ubuntu.seed maybe-ubiquity quiet splash nomodeset ---
        initrd    /casper/initrd
    }
    menuentry "OEM install (for manufacturers)" {
        set gfxpayload=keep
        linux    /casper/vmlinuz  file=/cdrom/preseed/ubuntu.seed only-ubiquity quiet splash oem-config/enable=true ---
        initrd    /casper/initrd
    }
    
    
    
    menuentry "Clonezilla - WRITE an image from this USB device" {
        set gfxpayload=keep
        linux    /soe-tools/clonezilla/groovy/amd64/live/vmlinuz hostname=groovy boot=live union=overlay username=user config components noswap noeject noprompt vga=791 live-media-path=/soe-tools/clonezilla/groovy/amd64/live toram=filesystem.squashfs nomodeset noapic noapm keyboard-layouts="NONE" locales=en_US.UTF8 net.ifnames=0 edd=on ocs_live_batch="yes" ocs_prerun="sudo mount --uuid 3FA122F22EE78739 /mnt" ocs_prerun1="sudo mount --bind /mnt/IMAGES /home/partimag" ocs_live_run="screen ocs-sr -g auto -e1 auto -e2 --batch -c -r -icds -j2 -scr -p reboot restoredisk ask_user ask_user" i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1
        initrd    /soe-tools/clonezilla/groovy/amd64/live/initrd.img
    }
    menuentry "Clonezilla - CREATE an image to this USB device" {
        set gfxpayload=keep
        linux    /soe-tools/clonezilla/groovy/amd64/live/vmlinuz hostname=groovy boot=live union=overlay username=user config components noswap noeject noprompt vga=791 live-media-path=/soe-tools/clonezilla/groovy/amd64/live toram=filesystem.squashfs nomodeset noapic noapm keyboard-layouts="NONE" locales=en_US.UTF8 net.ifnames=0 edd=on ocs_live_batch="yes" ocs_prerun="sudo mount --uuid 3FA122F22EE78739 /mnt" ocs_prerun1="sudo mount --bind /mnt/IMAGES /home/partimag" ocs_live_run="screen ocs-sr -q2 -c -j2 -rm-win-swap-hib -gm -gs -z6p -i 3000 -p true savedisk ask_user ask_user" i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1
        initrd    /soe-tools/clonezilla/groovy/amd64/live/initrd.img
    }
    menuentry "Clonezilla - Manual Mode" {
        set gfxpayload=keep
        linux    /soe-tools/clonezilla/groovy/amd64/live/vmlinuz boot=live union=overlay username=user hostname=groovy config components noswap live-media-path=/soe-tools/clonezilla/groovy/amd64/live toram=filesystem.squashfs edd=on nomodeset enforcing=0 noeject locales= keyboard-layouts= ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_batch="no" ip= net.ifnames=0  splash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1
        initrd    /soe-tools/clonezilla/groovy/amd64/live/initrd.img
    }
    
    
    grub_platform
    if [ "$grub_platform" = "efi" ]; then
    menuentry 'Boot from next volume' {
        exit
    }
    menuentry 'UEFI Firmware Settings' {
        fwsetup
    }
    fi
    
     
    Last edited: Mar 2, 2021
  3. GumbyNoTalent

    GumbyNoTalent Member

    Joined:
    Jan 8, 2003
    Messages:
    9,707
    Location:
    Briz Vegas
  4. OP
    OP
    miicah

    miicah Member

    Joined:
    Jun 3, 2010
    Messages:
    7,184
    Location:
    Mount Cotton, QLD
    But is it better to let grub manage everything (because of linux compatibility) or add (I think they call it a chain boot?) from windows boot manager to grub?

    Or does it not matter at all.
     
  5. HyRax1

    HyRax1 ¡Viva la Resolutión!

    Joined:
    Jun 28, 2001
    Messages:
    7,931
    Location:
    At a desk
    You're not actually running a Windows installation, so GRUB should be able to deal with all of it really.

    I used to run WinPE has a compressed hard-drive image file that I would copy into RAM, decompress and execute from there. Used to use it just for CHKDSK and drive formatting duties mostly in the WinXP/7 days. It was loaded through GRUB only with two lines - one to fire up memdisk and the initrd pointing to the WinPE image file. Obviously I would need to update the image for more network drivers etc if I needed them, but otherwise it worked a treat for what I needed it for.
     
  6. kogi

    kogi Member

    Joined:
    Jan 23, 2003
    Messages:
    4,910
    Location:
    2031
    Dilbery, miicah, ocdcsv and 2 others like this.
  7. OP
    OP
    miicah

    miicah Member

    Joined:
    Jun 3, 2010
    Messages:
    7,184
    Location:
    Mount Cotton, QLD

Share This Page

Advertisement: