[opensuse] grub2 question
Hello: grub legacy has "grub" command which runs a grub shell. It can be run even in a running linux system (in a terminal window). Does grub2 has similar command? I could not find it in grub2 documentation. I would like to experiment with / learn grub2 shell commands in my running linux system. Thanks, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* Istvan Gabor <suseuser04@gmail.hu> [07-26-17 11:32]:
Hello:
grub legacy has "grub" command which runs a grub shell. It can be run even in a running linux system (in a terminal window). Does grub2 has similar command? I could not find it in grub2 documentation. I would like to experiment with / learn grub2 shell commands in my running linux system.
# rpm -ql grub2 |grep bin /usr/bin/grub2-editenv /usr/bin/grub2-emu /usr/bin/grub2-emu-lite /usr/bin/grub2-file /usr/bin/grub2-fstest /usr/bin/grub2-glue-efi /usr/bin/grub2-kbdcomp /usr/bin/grub2-menulst2cfg /usr/bin/grub2-mkfont /usr/bin/grub2-mkimage /usr/bin/grub2-mklayout /usr/bin/grub2-mknetdir /usr/bin/grub2-mkpasswd-pbkdf2 /usr/bin/grub2-mkrelpath /usr/bin/grub2-mkrescue /usr/bin/grub2-mkstandalone /usr/bin/grub2-mount /usr/bin/grub2-render-label /usr/bin/grub2-script-check /usr/bin/grub2-syslinux2cfg /usr/sbin/grub2-bios-setup /usr/sbin/grub2-install /usr/sbin/grub2-macbless /usr/sbin/grub2-mkconfig /usr/sbin/grub2-ofpathname /usr/sbin/grub2-once /usr/sbin/grub2-probe /usr/sbin/grub2-reboot /usr/sbin/grub2-set-default /usr/sbin/grub2-sparc64-setup # apropos grub2 Bootloader::Core::GRUB2 (3pm) - library for blank configuration Bootloader::Core::GRUB2EFI (3pm) - library for blank configuration grub2-bios-setup (8) - set up a device to boot using GRUB grub2-editenv (1) - edit GRUB environment block grub2-emu (1) - GRUB emulator grub2-file (1) - check file type grub2-fstest (1) - debug tool for GRUB filesystem drivers grub2-glue-efi (1) - generate a fat binary for EFI grub2-install (8) - install GRUB to a device grub2-kbdcomp (1) - generate a GRUB keyboard layout file grub2-macbless (8) - bless a mac file/directory grub2-menulst2cfg (1) - transform legacy menu.lst into grub.cfg grub2-mkconfig (8) - generate a GRUB configuration file grub2-mkfont (1) - make GRUB font files grub2-mkimage (1) - make a bootable image of GRUB grub2-mklayout (1) - generate a GRUB keyboard layout file grub2-mknetdir (1) - prepare a GRUB netboot directory. grub2-mkpasswd-pbkdf2 (1) - generate hashed password for GRUB grub2-mkrelpath (1) - make a system path relative to its root grub2-mkrescue (1) - make a GRUB rescue image grub2-mkstandalone (1) - make a memdisk-based GRUB image grub2-mount (1) - export GRUB filesystem with FUSE grub2-ofpathname (8) - find OpenBOOT path for a device grub2-probe (8) - probe device information for GRUB grub2-reboot (8) - set the default boot entry for GRUB, for the next boot only grub2-render-label (1) - generate a .disk_label for Apple Macs. grub2-script-check (1) - check grub.cfg for syntax errors grub2-set-default (8) - set the saved default boot entry for GRUB grub2-sparc64-setup (8) - set up a device to boot using GRUB grub2-syslinux2cfg (1) - transform syslinux config into grub.cfg -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Registered Linux User #207535 @ http://linuxcounter.net Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Wed, 26 Jul 2017 11:42:41 -0400, Patrick Shanahan wrote:
* Istvan Gabor <suseuser04@gmail.hu> [07-26-17 11:32]:
Hello:
grub legacy has "grub" command which runs a grub shell. It can be run even in a running linux system (in a terminal window). Does grub2 has similar command? I could not find it in grub2 documentation. I would like to experiment with / learn grub2 shell commands in my running linux system.
# rpm -ql grub2 |grep bin /usr/bin/grub2-editenv /usr/bin/grub2-emu /usr/bin/grub2-emu-lite /usr/bin/grub2-file /usr/bin/grub2-fstest /usr/bin/grub2-glue-efi /usr/bin/grub2-kbdcomp /usr/bin/grub2-menulst2cfg /usr/bin/grub2-mkfont /usr/bin/grub2-mkimage /usr/bin/grub2-mklayout /usr/bin/grub2-mknetdir /usr/bin/grub2-mkpasswd-pbkdf2 /usr/bin/grub2-mkrelpath /usr/bin/grub2-mkrescue /usr/bin/grub2-mkstandalone /usr/bin/grub2-mount /usr/bin/grub2-render-label /usr/bin/grub2-script-check /usr/bin/grub2-syslinux2cfg /usr/sbin/grub2-bios-setup /usr/sbin/grub2-install /usr/sbin/grub2-macbless /usr/sbin/grub2-mkconfig /usr/sbin/grub2-ofpathname /usr/sbin/grub2-once /usr/sbin/grub2-probe /usr/sbin/grub2-reboot /usr/sbin/grub2-set-default /usr/sbin/grub2-sparc64-setup
# apropos grub2 Bootloader::Core::GRUB2 (3pm) - library for blank configuration Bootloader::Core::GRUB2EFI (3pm) - library for blank configuration grub2-bios-setup (8) - set up a device to boot using GRUB grub2-editenv (1) - edit GRUB environment block grub2-emu (1) - GRUB emulator grub2-file (1) - check file type grub2-fstest (1) - debug tool for GRUB filesystem drivers grub2-glue-efi (1) - generate a fat binary for EFI grub2-install (8) - install GRUB to a device grub2-kbdcomp (1) - generate a GRUB keyboard layout file grub2-macbless (8) - bless a mac file/directory grub2-menulst2cfg (1) - transform legacy menu.lst into grub.cfg grub2-mkconfig (8) - generate a GRUB configuration file grub2-mkfont (1) - make GRUB font files grub2-mkimage (1) - make a bootable image of GRUB grub2-mklayout (1) - generate a GRUB keyboard layout file grub2-mknetdir (1) - prepare a GRUB netboot directory. grub2-mkpasswd-pbkdf2 (1) - generate hashed password for GRUB grub2-mkrelpath (1) - make a system path relative to its root grub2-mkrescue (1) - make a GRUB rescue image grub2-mkstandalone (1) - make a memdisk-based GRUB image grub2-mount (1) - export GRUB filesystem with FUSE grub2-ofpathname (8) - find OpenBOOT path for a device grub2-probe (8) - probe device information for GRUB grub2-reboot (8) - set the default boot entry for GRUB, for the next boot only grub2-render-label (1) - generate a .disk_label for Apple Macs. grub2-script-check (1) - check grub.cfg for syntax errors grub2-set-default (8) - set the saved default boot entry for GRUB grub2-sparc64-setup (8) - set up a device to boot using GRUB grub2-syslinux2cfg (1) - transform syslinux config into grub.cfg
Thank you Patrick. I used man -k grub2 to find grub2 related programs. grub-emu, which might be what I need is not on the list in my openSUSE 13.1 and 13.2 installs:
man -k grub2 Bootloader::Core::GRUB2 (3pm) - library for blank configuration Bootloader::Core::GRUB2EFI (3pm) - library for blank configuration grub2-bios-setup (8) - set up a device to boot using GRUB grub2-editenv (1) - edit GRUB environment block grub2-fstest (1) - debug tool for GRUB filesystem drivers grub2-glue-efi (1) - generate a fat binary for EFI grub2-install (8) - install GRUB to a device grub2-kbdcomp (1) - generate a GRUB keyboard layout file grub2-menulst2cfg (1) - transform legacy menu.lst into grub.cfg grub2-mkconfig (8) - generate a GRUB configuration file grub2-mkfont (1) - make GRUB font files grub2-mkimage (1) - make a bootable image of GRUB grub2-mklayout (1) - generate a GRUB keyboard layout file grub2-mknetdir (1) - prepare a GRUB netboot directory. grub2-mkpasswd-pbkdf2 (1) - generate hashed password for GRUB grub2-mkrelpath (1) - make a system path relative to its root grub2-mkrescue (1) - make a GRUB rescue image grub2-mkstandalone (1) - make a memdisk-based GRUB image grub2-mount (1) - export GRUB filesystem with FUSE grub2-ofpathname (8) - find OpenBOOT path for a device grub2-probe (8) - probe device information for GRUB grub2-reboot (8) - set the default boot entry for GRUB, for the next boot only grub2-render-label (1) - generate a .disk_label for Apple Macs. grub2-script-check (1) - check grub.cfg for syntax errors grub2-set-default (8) - set the saved default boot entry for GRUB grub2-sparc64-setup (8) - set up a device to boot using GRUB
Leap 42.2 has it. OK, running grub2-emu indeed opens a grub shell. It's not clear whether it's only an emulator which can't change grub2 configuration or it can be used to make real changes. The man pages doesn't explain it. Thanks again, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
26.07.2017 20:15, Istvan Gabor пишет:
Leap 42.2 has it. OK, running grub2-emu indeed opens a grub shell.
It's not clear whether it's only an emulator which can't change grub2 configuration or it can be used to make real changes.
It is fully functional grub shell that has drivers only for host filesystem. So you can use all command line features but you will not be able to load any hardware-specific driver nor use commands that are provided only for specific platforms (like partmap, lsefi to name few). The only real changes you can make are overwriting file (which works only for simple filesystem on physical device) and probably editing partition table. The former probably works (I have never tried it). The latter not. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (3)
-
Andrei Borzenkov
-
Istvan Gabor
-
Patrick Shanahan