1. Como adicionar a entrada do windows ao grub do Arch Linux
novatterrausa Arch Linux
Post recolhido
Enviado em 25/06/2021 - 02:29h
ja tenteni reinstalar o grub bárias vzs mas sempre recebo este erro:
GRUB_DISABLE_OS_PROBER
eu uso um computador com Bios, então estou tomando cuidado pra usar os comandos corretos, o arch linux instala o grub direitinho, mas nao adiciona a entrada do windows,
será que não tem um jeito de adicionar manualmente? se for o caso eu não sei a Sintaxe correta.
vcs poderiam por favor me ajudar?
2. Re: Como adicionar a entrada do windows ao grub do Arch Linux
Pebisusa Debian
Post recolhido
Enviado em 25/06/2021 - 07:57h
Instala o os-prober no arch
3. Re: Como adicionar a entrada do windows ao grub do Arch Linux
Pebisusa Debian
Post recolhido
Enviado em 25/06/2021 - 07:59h
Caso não dê certo somente instalando o os-prober, tem essa informação no wiki
Detecting other operating systems
To have grub-mkconfig search for other installed systems and automatically add them to the menu, install the os-prober package and mount the partitions from which the other systems boot. Then re-run grub-mkconfig. If you get the following output: Warning: os-prober will not be executed to detect other bootable partitions then edit /etc/default/grub and add/uncomment:
GRUB_DISABLE_OS_PROBER=false
Then try again.
Note: Remember to mount the partitions each time you run grub-mkconfig in order to include the other operating systems every time.
4. Re: Como adicionar a entrada do windows ao grub do Arch Linux
5. Re: Como adicionar a entrada do windows ao grub do Arch Linux
novatterrausa Arch Linux
Post recolhido
Enviado em 25/06/2021 - 13:19h
Detecting other operating systems
To have grub-mkconfig search for other installed systems and automatically add them to the menu, install the os-prober package and mount the partitions from which the other systems boot. Then re-run grub-mkconfig. If you get the following output: Warning: os-prober will not be executed to detect other bootable partitions then edit /etc/default/grub and add/uncomment:
GRUB_DISABLE_OS_PROBER=false
Then try again.
Note: Remember to mount the partitions each time you run grub-mkconfig in order to include the other operating systems every time.
Tentei essa opção mas ainda não deu certo, só me resta editar manualmente
==================================================
Inteligência é a habilidade de evitar fazer o trabalho, e mesmo assim conseguir ter o trabalho realizado. (Linus Torvalds)
6. Re: Como adicionar a entrada do windows ao grub do Arch Linux
novatterrausa Arch Linux
Post recolhido
Enviado em 25/06/2021 - 16:33h
Pessoal deu certo, editei manualmente o grub.cfg seguindo a dica do Leandro, porém antes de bootar o Windows aparece esse erro bobo na tela:
erro: no such device: set=root.
Setting partition type to 0x7
Pressione qualquer tecla para continuar...
Eu acho que deve ser por causa do uuid, pq eu copiei a entrada do windows do artigo que o Leandro me indicou exatamente como estava lá, sei lá, posso tá falando bobagem tbm, mas vou colocar meu boot.cfg aqui pra vcs verem onde eu errei, por favor.
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_msdos
insmod reiserfs
set root='hd0,msdos4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4 df5af3d5-5280-4a35-8ea5-0ad23ef0e6cc
else
search --no-floppy --fs-uuid --set=root df5af3d5-5280-4a35-8ea5-0ad23ef0e6cc
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=pt_BR
insmod gettext
fi
terminal_input console
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=5
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-df5af3d5-5280-4a35-8ea5-0ad23ef0e6cc' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod reiserfs
set root='hd0,msdos4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4 df5af3d5-5280-4a35-8ea5-0ad23ef0e6cc
else
search --no-floppy --fs-uuid --set=root df5af3d5-5280-4a35-8ea5-0ad23ef0e6cc
fi
echo 'Carregando o Linux linux...'
linux /boot/vmlinuz-linux root=UUID=df5af3d5-5280-4a35-8ea5-0ad23ef0e6cc rw loglevel=3 quiet
echo 'Carregando o ramdisk inicial...'
initrd /boot/initramfs-linux.img
}
submenu 'Opções avançadas para Arch Linux' $menuentry_id_option 'gnulinux-advanced-df5af3d5-5280-4a35-8ea5-0ad23ef0e6cc' {
menuentry 'Arch Linux, com o Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-df5af3d5-5280-4a35-8ea5-0ad23ef0e6cc' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod reiserfs
set root='hd0,msdos4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4 df5af3d5-5280-4a35-8ea5-0ad23ef0e6cc
else
search --no-floppy --fs-uuid --set=root df5af3d5-5280-4a35-8ea5-0ad23ef0e6cc
fi
echo 'Carregando o Linux linux...'
linux /boot/vmlinuz-linux root=UUID=df5af3d5-5280-4a35-8ea5-0ad23ef0e6cc rw loglevel=3 quiet
echo 'Carregando o ramdisk inicial...'
initrd /boot/initramfs-linux.img
}
menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-df5af3d5-5280-4a35-8ea5-0ad23ef0e6cc' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod reiserfs
set root='hd0,msdos4'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos4 --hint-efi=hd0,msdos4 --hint-baremetal=ahci0,msdos4 df5af3d5-5280-4a35-8ea5-0ad23ef0e6cc
else
search --no-floppy --fs-uuid --set=root df5af3d5-5280-4a35-8ea5-0ad23ef0e6cc
fi
echo 'Carregando o Linux linux...'
linux /boot/vmlinuz-linux root=UUID=df5af3d5-5280-4a35-8ea5-0ad23ef0e6cc rw loglevel=3 quiet
echo 'Carregando o ramdisk inicial...'
initrd /boot/initramfs-linux-fallback.img
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows 8' --class windows --class os $menuentry_id_option 'osprober-chain-3C889EA9889E6166' {
insmod part_msdos
insmod ntfs
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 3C889EA9889E6166
else
search --no-floppy --fs-uuid set=root 3C889EA988E6166
fi
parttool ${root} hidden-
drivemap -s (hd0) ${root}
chainloader +1
}
set set timeout_style=menu
if [ "${timeout}" = 0 ]; then
set timeout=10
fi
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###
### BEGIN /etc/grub.d/40_custom ###
# 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.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg
fi
### END /etc/grub.d/41_custom ###
Mas tá bootando normal, só ficou aquele errinho bobo, coloquei em negrito a parte que eu acrescentei.
==================================================
Inteligência é a habilidade de evitar fazer o trabalho, e mesmo assim conseguir ter o trabalho realizado. (Linus Torvalds)
7. Re: Como adicionar a entrada do windows ao grub do Arch Linux
leandropscarduausa Ubuntu
Post recolhido
Enviado em 25/06/2021 - 23:20h
Segundo o artigo vc só precisa rodar os-probe e update-grub, isso já seria o suficiente pq o os-probe cria o arquivo 30-os-probe em /etc/grub.d, q vai gerar o /boot/grub.cfg (mais ou menos aí) com o update-grub. Mas vi na listagem quatro letras q me deixam em dúvida: a, r, c, h
8. Re: não consigo adicionar a entrada do windows ao grub
Grinderusa Slackware
Post recolhido
Enviado em 25/06/2021 - 23:29h
Não sei o que houve, não tive tempo de ir atrás, mas aqui no Slackware Current aconteceu a mesma coisa, simplesmente o GRUB parou de detectar e incluir SO terceiros (windows), ele inclui a entrada da BIOS para vc selecionar a entrada do boot que tu quer, mas retirou da lista do grub...
9. Re: Como adicionar a entrada do windows ao grub do Arch Linux
niquelnauseausa Arch Linux
Post recolhido
Enviado em 26/06/2021 - 01:58h
posta o conteúdo do teu /etc/default/grub , a principio basta o pacote os-prober e a opção "GRUB_DISABLE_OS_PROBER=false" que a entada para o windows será criada, mas talvez seja necessário os pacotes ntfs-3g e efibootmgr.
a partir da versão 2.06 o grub não procura mais por outros sistemas e cria automaticamente as entradas, é necessário setar a opção. pode usar o refind ou systemd-boot como alternativa.
10. Re: Como adicionar a entrada do windows ao grub do Arch Linux
novatterrausa Arch Linux
Post recolhido
Enviado em 26/06/2021 - 14:34h
leandropscardua escreveu:
Segundo o artigo vc só precisa rodar os-probe e update-grub, isso já seria o suficiente pq o os-probe cria o arquivo 30-os-probe em /etc/grub.d, q vai gerar o /boot/grub.cfg (mais ou menos aí) com o update-grub. Mas vi na listagem quatro letras q me deixam em dúvida: a, r, c, h
eu até fiz isso, mas não rezolveu, mas o artigo que você me indicou resolveu, já consigo bootar meu Windows 8 aqui numa boa, minha preocupação é esssa msg boba antes do boot
==================================================
Inteligência é a habilidade de evitar fazer o trabalho, e mesmo assim conseguir ter o trabalho realizado. (Linus Torvalds)
11. Re: Como adicionar a entrada do windows ao grub do Arch Linux
novatterrausa Arch Linux
Post recolhido
Enviado em 26/06/2021 - 14:39h
niquelnausea escreveu:
posta o conteúdo do teu /etc/default/grub , a principio basta o pacote os-prober e a opção "GRUB_DISABLE_OS_PROBER=false" que a entada para o windows será criada, mas talvez seja necessário os pacotes ntfs-3g e efibootmgr.
a partir da versão 2.06 o grub não procura mais por outros sistemas e cria automaticamente as entradas, é necessário setar a opção. pode usar o refind ou systemd-boot como alternativa.
eu instalei o ntfs-3g, montei a partição windows e rodei o os-prober, mas nem assim o grub enxergou o windows, esse segundo pacote q vc citou (efibootmgr) eu não instalei pq uso BIOS, mas como eu disse, meu windows 8 ta bootando normal, só essa msg boba que ta incomodando, mas aqui vai meu /etc/default/grub
# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"
# Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK=y
# Set to 'countdown' or 'hidden' to change timeout behavior,
# press ESC key to display menu.
GRUB_TIMEOUT_STYLE=menu
# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console
# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=auto
# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep
# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true
# Uncomment and set to the desired menu colors. Used by normal and wallpaper
# modes only. Entries specified as foreground/background.
#GRUB_COLOR_NORMAL="light-blue/black"
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"
# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
#GRUB_THEME="/path/to/gfxtheme"
# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"
# Uncomment to make GRUB remember the last selection. This requires
# setting 'GRUB_DEFAULT=saved' above.
#GRUB_SAVEDEFAULT=true
# Uncomment to disable submenus in boot menu
#GRUB_DISABLE_SUBMENU=y
obrigado pela atenção pessoal
==================================================
Inteligência é a habilidade de evitar fazer o trabalho, e mesmo assim conseguir ter o trabalho realizado. (Linus Torvalds)
12. Re: Como adicionar a entrada do windows ao grub do Arch Linux
niquelnauseausa Arch Linux
Post recolhido
Enviado em 26/06/2021 - 16:12h
a vantagem de tudo estar rodando corretamente, é que esta mensagem não iria aparecer, e não seria necessário editar manualmente nenhum arquivo para adicionar a opção do w8.
se quiser fazer um deste, retira o comentário da linha #GRUB_DISABLE_SUBMENU=y e adiciona a linha GRUB_DISABLE_OS_PROBER=false depois atualiza com o grub-mkconfig -o /boot/grub/grub.cfg para podermos ver qual o erro que vai ter.
Usamos cookies essenciais para manter o site funcionando e Google Analytics para métricas de audiência. Cookies de anúncios só serão carregados se você permitir.