Super Grub Disk Main Webpage. Página principal de Super Grub Disk.

Support Free Software. Donate to Super Grub Disk. Apoya al Software Libre. Dona a Super Grub Disk.

You are visiting Super Grub Disk wiki. Most of these webpages suppose that you have a Super Grub Disk and that you know how to boot SGD. If you have a boot problem and you are lost do not hesitate to visit Boot problems page. After that you can visit: Super Grub Disk site where you can find the SGD forum and the SGD mailing list among other resources.

SGD liveswap

From Super Grub Disk Wiki

Jump to: navigation, search

The liveswap command

Contents

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.

Personal tools