Portál AbcLinuxu, 10. května 2025 06:36
c
. Tak se se dostanete do interniho shellu grubu. Ted napiste root (hdX,X)
za hdX,X napiste partition na ktere je system, ktery chcete nabootovat pripadne rootnoverify (hdX,X)
pokud system neni GNU/linux. Ted, pokud se jedna o linux: kernel /cesta/k/jadru potrebne_parametry_jako_treba root=
a nakonec boot
pro boot systemu. Pokud system neni Linux a ma naistalovany vlastni zavadec tak napiste chainloader +1
(predani rizeni jinemu bootloaderu) a boot
. Vice viz. info grub a neco malo i v man grub.
savedefault --default=N --once
#!/bin/sh -e NAME=grub-reboot VERSION=0.01 if ! test -n "$1" || test "$1" = "-h" || test "$1" = "--help" ; then echo $NAME echo echo "Reboots into the specified OS entry in menu.lst" echo echo "Usage: $0 entry [options to grub]" echo " (where \"entry\" is the entry number in menu.lst)" echo exit fi if test "$1" = "-v" || test "$1" = "--version" ; then echo $NAME $VERSION exit fi if test "`whoami`" != "root" ; then echo "You must be root" exit fi default="$1" ; shift grub --batch $@ <<EOT savedefault --once --default=$default quit EOT echo echo -n "Do you want to reboot now? [y/N] " read REBOOT case $REBOOT in y*|Y*) reboot ;; esacTakže stačí zadat:
/sbin/grub-reboot N
/sbin/lilo -R - set default command line for next reboot
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.