Skip to content

Instantly share code, notes, and snippets.

@MinmoTech
Created May 1, 2021 14:53
Show Gist options
  • Save MinmoTech/0ebd1ee4bf4c9270c399b83062f6762e to your computer and use it in GitHub Desktop.
Save MinmoTech/0ebd1ee4bf4c9270c399b83062f6762e to your computer and use it in GitHub Desktop.
grub menu
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "Boot from second disk and see it as first disk" {
set root=(hd1)
drivemap -s hd0 hd1
chainloader +1
}
menuentry "Boot from third disk and see it as first disk" {
set root=(hd2)
drivemap -s hd0 hd2
chainloader +1
}
menuentry "Boot from fourth disk and see it as first disk" {
set root=(hd3)
drivemap -s hd0 hd3
chainloader +1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment