You are not logged in.

#1 2014-01-19 14:33:52

hsz
Member
Registered: 2009-09-25
Posts: 30

[SOLVED] Reboot into specified mode with syslinux

I have standard syslinux entries:

LABEL arch
    MENU LABEL Arch Linux
    LINUX ../vmlinuz-linux
    APPEND root=/dev/sda2 rw vga=864
    INITRD ../initramfs-linux.img

LABEL windows
    MENU LABEL Windows
    COM32 chain.c32
    APPEND hd0 3

And set default to:

DEFAULT arch

Is it possible from Linux to reboot into windows just one time without select menu ? For example, something like:

reboot --label=windows

Last edited by hsz (2014-01-19 19:52:27)

Offline

#2 2014-01-19 14:51:40

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED] Reboot into specified mode with syslinux

You can only do something similar, and that too with grub2 only AFAIK.

Last edited by x33a (2014-01-19 14:52:43)

Offline

#3 2014-01-19 14:58:06

djgera
Developer
From: Buenos Aires - Argentina
Registered: 2008-12-24
Posts: 723
Website

Re: [SOLVED] Reboot into specified mode with syslinux

Use --once= option of syslinux/extlinux

Offline

#4 2014-01-19 19:52:08

hsz
Member
Registered: 2009-09-25
Posts: 30

Re: [SOLVED] Reboot into specified mode with syslinux

@djgera Thanks !

Solution:

sudo extlinux -o windows /boot/syslinux/ && sudo reboot

Offline

#5 2014-01-20 06:09:05

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED] Reboot into specified mode with syslinux

@ djgera

Nice, I didn't know this feature existed in syslinux.

Offline

Board footer

Powered by FluxBB