Linux Mint Türkiye
Linux Mint Destek => Açılış, Kapanış ve Oturum Açma => Konuyu başlatan: minter42 - 31 Ağustos 2019, 22:57:31
-
Merhaba. Windows 10'un yanına Mint'i kurdum her şey tamam hiç bir sıkıntı yok. Fakat açılışta grub menüsü gelmiyor. Açmak için F9'a basıp boot menüsünden seçmem gerekiyor.
Grub menüsünü nasıl yükleyebilirim ?
Boot-Repair programıyla onarmayı denedim. Ama değişen bi şey olmadı.
Grub dosyası şu şekilde;
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT="0"
GRUB_TIMEOUT_STYLE="hidden"
GRUB_TIMEOUT="10"
GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian`"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL="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="640x480"
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID="true"
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
export GRUB_COLOR_NORMAL="light-gray/black"
export GRUB_COLOR_HIGHLIGHT="magenta/black"
GRUB_THEME="/boot/grub/themes/Vimix/theme.txt"
#GRUB_HIDDEN_TIMEOUT="0"
Düzenleme: Konu başlığı
-
Aşağıdaki komutların çıktılarını da paylaşınız.
sudo update-grub
cat /etc/fstab
[ -d /sys/firmware/efi ] && echo "EFI" || echo "Klasik"
lsblk -o NAME,SIZE,TYPE,FSTYPE,MOUNTPOINT,UUID
F9 ile açılış yapacak sistemi seçiyorsunuz, Windows ya da Linux doğru mu? Yani bu tuş ile Grub menüsüne ulaşmış olmuyorsunuz.
-
Evet doğrudur. F9 ile menüden seçiyorum açmak istediğim sistemi.
update-grub çıktısı:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Generating grub configuration file ...
Found theme: /boot/grub/themes/Vimix/theme.txt
Found linux image: /boot/vmlinuz-4.15.0-54-generic
Found initrd image: /boot/initrd.img-4.15.0-54-generic
Adding boot menu entry for EFI firmware configuration
done
cat /etc/fstab çıktısı:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda5 during installation
UUID=324b2e00-e007-45c0-a31d-93b2c5dae93a / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda2 during installation
UUID=58F6-6990 /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0
[ -d /sys/firmware/efi ] && echo "EFI" || echo "Klasik" çıktısı:
EFI
lsblk -o NAME,SIZE,TYPE,FSTYPE,MOUNTPOINT,UUID
NAME SIZE TYPE FSTYPE MOUNTPOINT UUID
sda 111,8G disk
├─sda1 529M part ntfs 46FEF200FEF1E7D7
├─sda2 100M part vfat /boot/efi 58F6-6990
├─sda3 16M part
├─sda4 71,5G part ntfs 5E12FE1512FDF23F
└─sda5 39,7G part ext4 / 324b2e00-e007-45c0-a31d-93b2c5dae93a
sr0 1024M rom
-
Açılışta Grub menüsünün görünmemesi, Windows'un Grub önyükleyicisi tarafından algılanmaması ile lakalı, yukarıdaki çıktılar bunu gösteriyor. Bu durumda sistem sadece Linux Mint kurulu olduğunu varsayıyor ve bu sebeple Grub menüsünü gizliyor. Tek işletim sistemi kurulu olduğunda bu normal bir durum.
Şimdi yapılması gereken, Windows'u Grub önyükleyicisine eklemek, daha doğrusu yapılandırmasına. Bunun için aşağıdaki komutu uçbirimde çalıştırınız. Bu komut Windows hızlı açma/kapama ile ilgili NTFS dosya sistemindeki hibernite dosyaları sorununu çözüyor.
sudo ntfsfix /dev/sda4
Ardından sistemi yeniden başlatınız, ama Windows'u açmadan doğrudan Linux Mint'i başlatın. Sistem yeniden başlayınca aşağıdaki komutla Windows'u Grub önyükleyicisi yapılandırmasına yeniden eklemeyi deneyebilirsiniz.
sudo update-grub
Sorun bu şekilde çözülmezse, farklı bir öneri sunulabilir.
-
Malesef bu şekilde de olmadı. Direk Windows 10 açılıyor.
-
F9 ile Grub yani Linux seçeneğini seçmeniz gerekiyor. Doğrudan Windows açılıyorsa, zaten Grub önyükleyici seçili değildir. Bir de aşağıdaki komutun çıktısını paylaşınız. Buna göre yönlendirme yapalım.
sudo parted -l
-
sudo gparted -l çıktısı:
Model: ATA SanDisk SSD PLUS (scsi)
Disk /dev/sda: 120GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 556MB 555MB ntfs Basic data partition hidden, diag
2 556MB 661MB 105MB fat32 EFI system partition boot, esp
3 661MB 677MB 16,8MB Microsoft reserved partition msftres
4 677MB 77,5GB 76,8GB ntfs Basic data partition msftdata
5 77,5GB 120GB 42,6GB ext4
-
Windows için elle bir girdi eklemeyi deneyelim, bunun için aşağıdaki komutu uçbirimde çalıştırınız.
sudo xed /etc/grub.d/40_custom
Açılan dosyanın altına, aşağıdaki satırları ekleyip dosyayı kaydediniz. Satırlardaki girintilere özen gösteriniz ve dosyanın başındaki girdileri silmeden aşağıdaki satırları dosyanın sonuna eklemeye dikkat ediniz.
menuentry "Windows 10" --class windows --class os {
insmod part_gpt
insmod fat
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 58F6-6990
else
search --no-floppy --fs-uuid --set=root 58F6-6990
fi
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
Dosyayı kaydettikten sonra, aşağıdaki komutu uçbirimde çalıştırınız.
sudo update-grub
-
Ekledikten sonra yeniden başlatıp denedim. Malesef yine Windows açıldı.
-
İyi de F9 ile Grub olan EFI girdisini seçemezseniz ya da bunu varsayılan yapmazsanız bu normal. Biz sadece Grub'a Windows girdisi ekliyoruz, sizin açılış seçeneğini değiştirmeniz de gerekiyor.
-
Grub da Windows seçeneği var. Fakat daha öncelerinde ubuntu olsun mint olsun yüklediğimde windows boot loader veya grub 2.0 menüsünden hangi sistemin açılacağını seçebiliyordum. Şimdi yapmak istediğim ise windows açılmadan hangi sistemin açılacağını seçmek. Açılış seçeneğini değiştirmeye çalıştım. Boot-customizer kullanarak düzeltmeye çalıştım olmadı. Boot-repair den herhangi bir sonuç alamadım.
-
F9 ile açtığınz seçim alanını kasdediyrsanız, bu Grub menüsü değil. Bu BIOS'un sunduğu bir seçenektir. Burada listelenenler, EFI girdisindeki önyükleyiciler. Buradan Linux seçeneğini seçtiğinizde, Grub önyükleyici ile sistemi açarsınız, Windows seçeneğini seçtiğinizde Windows önyükleyici ile Windows'u açarsınız. Yapmaya çalıştığımız ise, Grub önyükleyiciye Windows girdisi eklemek. Bunları emin olmak için yazıyorum
Demek istediğiniz "Grub menüsüne Windows eklendi, ama açılışta Grub menüsü görünmüyor" ise bunu sağlayabiliriz. Ama ilk baştaki, update-grub komutunun çıktısında, Windows'un algılanmadığı görünüyordu.
Şimdi aşağıdaki komutların çıktısını paylaşınız.
sudo update-grub
cat /boot/grub/grub.cfg | nc termbin.com 9999
-
Yapmak istediğim şeyi benden daha iyi açıklamışsınız. Önce ki yorumlarınız da Grub menüsüne Windows eklemiştik. Şimdi ben Grub menüsünün görünür olmasını ve açılacak sistemi oradan seçmek istiyorum. 2 gündür görünür yapmak için uğraşıyorum. Sorunu tam olarak açıklayamadım herhalde kusura bakmayın.
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Generating grub configuration file ...
Found theme: /boot/grub/themes/Vimix/theme.txt
Found linux image: /boot/vmlinuz-4.15.0-54-generic
Found initrd image: /boot/initrd.img-4.15.0-54-generic
Adding boot menu entry for EFI firmware configuration
done
termbin.com'dan geri cevap alamadım. O yüzden gedit'den kopyala yapıştır yapıyorum.
#
# 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 ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
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 recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; 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_gpt
insmod ext2
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 324b2e00-e007-45c0-a31d-93b2c5dae93a
else
search --no-floppy --fs-uuid --set=root 324b2e00-e007-45c0-a31d-93b2c5dae93a
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=tr_TR
insmod gettext
fi
terminal_output gfxterm
insmod part_gpt
insmod ext2
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 324b2e00-e007-45c0-a31d-93b2c5dae93a
else
search --no-floppy --fs-uuid --set=root 324b2e00-e007-45c0-a31d-93b2c5dae93a
fi
insmod gfxmenu
loadfont ($root)/boot/grub/themes/Vimix/unifont-regular-16.pf2
insmod jpeg
insmod png
set theme=($root)/boot/grub/themes/Vimix/theme.txt
export theme
if [ "${recordfail}" = 1 ] ; then
set timeout=30
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=hidden
set timeout=10
# Fallback hidden-timeout code in case the timeout_style feature is
# unavailable.
elif sleep --interruptible 10 ; then
set timeout=0
fi
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=1
else
set vt_handoff=
fi
}
if [ "${recordfail}" != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-324b2e00-e007-45c0-a31d-93b2c5dae93a' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 324b2e00-e007-45c0-a31d-93b2c5dae93a
else
search --no-floppy --fs-uuid --set=root 324b2e00-e007-45c0-a31d-93b2c5dae93a
fi
linux /boot/vmlinuz-4.15.0-54-generic root=UUID=324b2e00-e007-45c0-a31d-93b2c5dae93a ro quiet splash $vt_handoff
initrd /boot/initrd.img-4.15.0-54-generic
}
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-324b2e00-e007-45c0-a31d-93b2c5dae93a' {
menuentry 'Ubuntu, with Linux 4.15.0-54-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-54-generic-advanced-324b2e00-e007-45c0-a31d-93b2c5dae93a' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 324b2e00-e007-45c0-a31d-93b2c5dae93a
else
search --no-floppy --fs-uuid --set=root 324b2e00-e007-45c0-a31d-93b2c5dae93a
fi
echo 'Loading Linux 4.15.0-54-generic ...'
linux /boot/vmlinuz-4.15.0-54-generic root=UUID=324b2e00-e007-45c0-a31d-93b2c5dae93a ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.15.0-54-generic
}
menuentry 'Ubuntu, with Linux 4.15.0-54-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-54-generic-recovery-324b2e00-e007-45c0-a31d-93b2c5dae93a' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 324b2e00-e007-45c0-a31d-93b2c5dae93a
else
search --no-floppy --fs-uuid --set=root 324b2e00-e007-45c0-a31d-93b2c5dae93a
fi
echo 'Loading Linux 4.15.0-54-generic ...'
linux /boot/vmlinuz-4.15.0-54-generic root=UUID=324b2e00-e007-45c0-a31d-93b2c5dae93a ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.15.0-54-generic
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry 'System setup' $menuentry_id_option 'uefi-firmware' {
fwsetup
}
### 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.
menuentry "Windows 10" --class windows --class os {
insmod part_gpt
insmod fat
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 58F6-6990
else
search --no-floppy --fs-uuid --set=root 58F6-6990
fi
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
### 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 ###
-
Aşağıdaki komutla grub varsayılan dosyasını açınız.
sudo xed /etc/default/grub
Açılan dosyada aşağıdaki satırı bulup,
GRUB_TIMEOUT_STYLE="hidden"
"hidden" değişkenini "menu" olarak, aşağıdaki şekilde değiştirip dosyayı kaydediniz.
GRUB_TIMEOUT_STYLE="menu"
Ardından aşağıdaki komutu uçbirimde çalıştırıp, Grub yapılandırma dosyasını güncelleyiniz.
sudo update-grub
-
Yine windows açıldı. Menu gorunmuyor.
-
Daha önce de belirttiğim üzere, doğrudan Windows'un açılması, Windows önyükleyicisinin etkin olduğunu gösteriyor. BIOS/EFI ayarlarında, önyükleme sıralamasını değiştiriniz. Aşağıdaki resimlere benzer bir seçenek olmalı, her sistemde farklı bir yerde olabilir.
(https://i.postimg.cc/cvFx6g38/change-Boot-Order.jpg) (https://postimg.cc/cvFx6g38)
(https://i.postimg.cc/xkq0mfGp/RylpH.jpg) (https://postimg.cc/xkq0mfGp)
-
Yardımlarınız için teşekkür ederim. Grub-Customizer dan bir kaç değişiklikle beraber sizin önerilerinizi yapınca sorun çözüldü.
-
Rica ederiz.
[member=6184]minter42[/member] başlığı etiketlerseniz, konuyu kilitleyebiliriz.
[warning]Çözülen başlıkların etiketlenmesi hakkında. (https://forum.linuxmint.net.tr/index.php?topic=2058.0)[/warning]