SGD liveswap

From Super Grub Disk Wiki
Jump to navigationJump to search

The liveswap command

Purpose

This command can be used to change the boot order of hard drives programatically without manually changing the BIOS settings.

Usage

liveswap

Example

Assume a system with the following hard drives:

  • hd0 partition 0: Windows
  • hd0 partition 3: Linux
  • hd1 partition 0: Linux


The commands

map (hd0) (hd1)
map (hd1) (hd0)
liveswap

converts your system (in a temporal way to):

  • hd0 partition 0: Linux
  • hd1 partition 0: Windows
  • hd1 partition 3: Linux

Problems that can be solved with this option

The liveswap command in conjunction with the map command can be used to adjust the BIOS boot order programatically at runtime.

See Samples of custom Boot Scripts for a working example.