Arkadaslar. ingilizce karakterler ile yazdigim icin kusura bakmayin, live usb icinden yaziyorum. Windows yanina Ubuntu 18.04 kurdum. Yalniz bilgisayari actigimda grub ekrani acilmiyordu, ubuntu wikideki boot repair adimlarini live usb icinden uyguladim. Sonuc olarak bu sefer de sadece windows tarafi aciliyor. Boot repair araci onarimin basarili oldugunu gosterdigi halde bir hata raporu da gostermisti. Bunu kod araciyla gostereyim daha kolay olacak.

Boot repair'in başlatma ile ilgili sorun olursa tadından gerekenler ile ilgili bir onerisinin gorselini ve şu anki bios boot ayarlarının gorselini de aşağıya ekliyorum.
Bu konuda yardımcı olabilirseniz sevinirim.

Bu arada her iki işletim sistemine de boot ayarlarını değiştirerek girebildiğimi fark ettim ama bilgisayarın daha kullanışlı olması icin başlangıcta hangi işletim sistemini sorması cok iyi olacak. Zira bilgisayar abimin ve 8 yaşında kızı da bu bilgisayarı kullanıyor. İlginize teşekkurler..



[CODE title="Boot info20220330=1205.txt"]boot-repair-4ppa200 [20220330_1205]

============================= Boot Repair Summary ==============================





grub-probe: error: cannot find a GRUB drive for /dev/sdb1. Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sdb1. Check your device.map.

Recommended repair: __________________________________________________ __________

The default repair of the Boot-Repair utility will reinstall the grub-efi of
sda5,
using the following options: sda2/boot/efi
Additional repair will be performed: unhide-bootmenu-10s use-standard-efi-file restore-efi-backups


rm /mnt/boot-sav/sda2/efi/Boot/bootx64.efi
mv /mnt/boot-sav/sda2/efi/Boot/bkpbootx64.efi /mnt/boot-sav/sda2/efi/Boot/bootx64.efi
Mount sda2 on /mnt/boot-sav/sda5/boot/efi

======================== Reinstall the grub-efi of sda5 ========================

chroot /mnt/boot-sav/sda5 grub-install --version
grub-install (GRUB) 2.02-2ubuntu8.23
chroot /mnt/boot-sav/sda5 modprobe efivars

chroot /mnt/boot-sav/sda5 efibootmgr -v before grub install
BootCurrent: 0004
Timeout: 2 seconds
BootOrder: 0007,0004,0001,0002,0003,0000
Boot0000* Network Boot: Atheros Boot Agent BBS(128,ÿ,0x0)........................R...... ........................................
Boot0001* Internal HDD: INTEL SSDSA2BW160G3L BBS(HD,ÿ,0x500)................-...........A...................................... ....
Boot0002* SATA ODD : MATSHITA DVD-RAM UJ8D1 BBS(CDROM,ÿ,0x500)................-...........A......#............................... ....
Boot0003* USB HDD : Generic Flash Disk BBS(HD,ÿ,0x500)..................S.......Q... U........................................
Boot0004* EFI USB Device PciRoot(0x0)/Pci(0x1d,0x0)/USB(0,0)/USB(2,0)/HD(1,MBR,0x4c050c47,0x49db00,0x12c0)RC
Boot0005* EFI USB Device PciRoot(0x0)/Pci(0x1d,0x0)/USB(0,0)/USB(3,0)/HD(1,MBR,0x4c050c47,0x49db00,0x12c0)RC
Boot0006* Internal HDD: INTEL SSDSA2BW160G3L BBS(HD,ÿ,0x500)................-...........A...................................... ....
Boot0007* Windows Boot Manager HD(2,GPT,fea3e64d-5797-4d99-88a7-a73fbf698936,0x109000,0x32000)/File(EFIMicrosoftBootbootmgfw.efi)WINDOWS......... x...B.C.D.O.B.J.E.C.T.=....t................

chroot /mnt/boot-sav/sda5 uname -r
5.4.0-84-generic

chroot /mnt/boot-sav/sda5 grub-install --efi-directory=/boot/efi --target=x86_64-efi
Installing for x86_64-efi platform.
Installation finished. No error reported.
df /dev/sda2
mv /mnt/boot-sav/sda5/boot/efi/EFI/Boot/bootx64.efi /mnt/boot-sav/sda5/boot/efi/EFI/Boot/bkpbootx64.efi
cp /mnt/boot-sav/sda5/boot/efi/efi/ubuntu/grubx64.efi /mnt/boot-sav/sda5/boot/efi/EFI/Boot/bootx64.efi

chroot /mnt/boot-sav/sda5 grub-install --efi-directory=/boot/efi --target=x86_64-efi
Installing for x86_64-efi platform.
Installation finished. No error reported.

chroot /mnt/boot-sav/sda5 efibootmgr -v after grub install
BootCurrent: 0004
Timeout: 2 seconds
BootOrder: 0008,0007,0004,0001,0002,0003,0000
Boot0000* Network Boot: Atheros Boot Agent BBS(128,ÿ,0x0)........................R...... ........................................
Boot0001* Internal HDD: INTEL SSDSA2BW160G3L BBS(HD,ÿ,0x500)................-...........A...................................... ....
Boot0002* SATA ODD : MATSHITA DVD-RAM UJ8D1 BBS(CDROM,ÿ,0x500)................-...........A......#............................... ....
Boot0003* USB HDD : Generic Flash Disk BBS(HD,ÿ,0x500)..................S.......Q... U........................................
Boot0004* EFI USB Device PciRoot(0x0)/Pci(0x1d,0x0)/USB(0,0)/USB(2,0)/HD(1,MBR,0x4c050c47,0x49db00,0x12c0)RC
Boot0005* EFI USB Device PciRoot(0x0)/Pci(0x1d,0x0)/USB(0,0)/USB(3,0)/HD(1,MBR,0x4c050c47,0x49db00,0x12c0)RC
Boot0006* Internal HDD: INTEL SSDSA2BW160G3L BBS(HD,ÿ,0x500)................-...........A...................................... ....
Boot0007* Windows Boot Manager HD(2,GPT,fea3e64d-5797-4d99-88a7-a73fbf698936,0x109000,0x32000)/File(EFIMicrosoftBootbootmgfw.efi)WINDOWS......... x...B.C.D.O.B.J.E.C.T.=....t................
Boot0008* ubuntu HD(2,GPT,fea3e64d-5797-4d99-88a7-a73fbf698936,0x109000,0x32000)/File(EFIubuntushimx64.efi)

chroot /mnt/boot-sav/sda5 update-grub
Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.0-107-generic
Found initrd image: /boot/initrd.img-5.4.0-107-generic
Found linux image: /boot/vmlinuz-5.4.0-84-generic
Found initrd image: /boot/initrd.img-5.4.0-84-generic
grub-probe: error: cannot find a GRUB drive for /dev/sdb1. Check your device.map.
Found Windows Boot Manager on /dev/email protected/EFI/Microsoft/Boot/bootmgfw.efi

Unhide GRUB boot menu in sda5/boot/grub/grub.cfg

Boot successfully repaired.

You can now reboot your computer.
Please do not forget to make your UEFI firmware boot on the Ubuntu 18.04.6 LTS entry (sda2/efi/ubuntu/grubx64.efi file) !
If your computer reboots directly into Windows, try to change the boot order in your UEFI firmware.
If your UEFI firmware does not allow to change the boot order, change the default boot entry of the Windows bootloader.
For example you can boot into Windows, then type the following command in an admin command prompt:
bcdedit /set path EFIubuntugrubx64.efi


============================ Boot Info After Repair ============================

=> No boot loader is installed in the MBR of /dev/sda.

sda1: __________________________________________________ ________________________

File system: ntfs
Boot sector type: Windows 8/10/11/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:

sda2: __________________________________________________ ________________________

File system: vfat
Boot sector type: Windows 8/10/11/2012: FAT32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /efi/Boot/bkpbootx64.efi /efi/Boot/bootx64.efi
/efi/Boot/fbx64.efi /efi/Boot/mmx64.efi
/efi/ubuntu/grubx64.efi /efi/ubuntu/mmx64.efi
/efi/ubuntu/shimx64.efi /efi/ubuntu/grub.cfg
/efi/Microsoft/Boot/bootmgfw.efi
/efi/Microsoft/Boot/bootmgr.efi

sda3: __________________________________________________ ________________________

File system:
Boot sector type: -
Boot sector info:

sda4: __________________________________________________ ________________________

File system: ntfs
Boot sector type: Windows 8/10/11/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 8 or 10
Boot files: /Windows/System32/winload.exe

sda5: __________________________________________________ ________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 18.04.6 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab /etc/default/grub

sdb: __________________________________________________ _________________________

File system: iso9660
Boot sector type: Unknown
Boot sector info:
Operating System:
Boot files: /boot/grub/grub.cfg


================================ 2 OS detected =================================

OS#1: Ubuntu 18.04.6 LTS on sda5
OS#2: Windows 8 or 10 on sda4

================================ Host/Hardware =================================

CPU architecture: 64-bit
Video: GF117M GeForce 610M/710M/810M/820M / GT 620M/625M/630M/720M 3rd Gen Core processor Graphics Controller from NVIDIA Corporation Intel Corporation
Live-session OS is Ubuntu 64-bit (Ubuntu 18.04.6 LTS, bionic, x86_64)

===================================== UEFI =====================================

BIOS/UEFI firmware: 5ECN40WW(V3.06) from LENOVO
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled - SecureBoot disabled
Platform is in Setup Mode - Please report this message to email protected
BootCurrent: 0004
Timeout: 2 seconds
BootOrder: 0008,0007,0004,0001,0002,0003,0000
Boot0000* Network Boot: Atheros Boot Agent BBS(128,ÿ,0x0)........................R...... ........................................
Boot0001* Internal HDD: INTEL SSDSA2BW160G3L BBS(HD,ÿ,0x500)................-...........A...................................... ....
Boot0002* SATA ODD : MATSHITA DVD-RAM UJ8D1 BBS(CDROM,ÿ,0x500)................-...........A......#............................... ....
Boot0003* USB HDD : Generic Flash Disk BBS(HD,ÿ,0x500)..................S.......Q... U........................................
Boot0004* EFI USB Device PciRoot(0x0)/Pci(0x1d,0x0)/USB(0,0)/USB(2,0)/HD(1,MBR,0x4c050c47,0x49db00,0x12c0)RC
Boot0005* EFI USB Device PciRoot(0x0)/Pci(0x1d,0x0)/USB(0,0)/USB(3,0)/HD(1,MBR,0x4c050c47,0x49db00,0x12c0)RC
Boot0006* Internal HDD: INTEL SSDSA2BW160G3L BBS(HD,ÿ,0x500)................-...........A...................................... ....
Boot0007* Windows Boot Manager HD(2,GPT,fea3e64d-5797-4d99-88a7-a73fbf698936,0x109000,0x32000)/File(EFIMicrosoftBootbootmgfw.efi)WINDOWS......... x...B.C.D.O.B.J.E.C.T.=....t................

728124f6ec8e22fbdbe7034812c81b95 sda2/Boot/bkpbootx64.efi
728124f6ec8e22fbdbe7034812c81b95 sda2/Boot/bootx64.efi
5dabe049a4dad758d975dc2e60a7f00e sda2/Boot/fbx64.efi
fdafb5eece6caeccb788c946a28e6872 sda2/Boot/mmx64.efi
621356d82b109cd860ad92cdf241c58b sda2/ubuntu/grubx64.efi
f243a42f3bd3164872e792dbc2610270 sda2/ubuntu/mmx64.efi
728124f6ec8e22fbdbe7034812c81b95 sda2/ubuntu/shimx64.efi
0b9a871f514710bf66f792485b3735a0 sda2/Microsoft/Boot/bootmgfw.efi
4de69f3cf5c6592298220fd89a820a23 sda2/Microsoft/Boot/bootmgr.efi

============================= Drive/Partition Info =============================

Disks info: __________________________________________________ __________________

sda : is-GPT, no-BIOSboot, has---ESP, not-usb, not-mmc, has-os, has-win, 2048 sectors * 512 bytes

Partitions info (1/3): __________________________________________________ _______

sda1 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
sda2 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far
sda4 : is-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
sda5 : is-os, 64, apt-get, signed grub-pc grub-efi , grub2, grub-install, grubenv-ok, update-grub, farbios

Partitions info (2/3): __________________________________________________ _______

sda1 : isnotESP, part-has-no-fstab, no-nt, no-winload, recovery-or-hidden, no-bmgr, notwinboot
sda2 : is---ESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
sda4 : isnotESP, part-has-no-fstab, no-nt, haswinload, no-recov-nor-hid, no-bmgr, notwinboot
sda5 : isnotESP, fstab-has-goodEFI, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot

Partitions info (3/3): __________________________________________________ _______

sda1 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sda
sda2 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sda
sda4 : not--sepboot, no---boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, no--grub.d, sda
sda5 : not--sepboot, with-boot, fstab-without-boot, not-sep-usr, with--usr, fstab-without-usr, std-grub.d, sda

fdisk -l (filtered): __________________________________________________ _________

Disk sda: 149.1 GiB, 160041885696 bytes, 312581808 sectors
Disk identifier: FF8D1011-635E-4A6A-B0FB-093A44A9ED29
Start End Sectors Size Type
sda1 2048 1085439 1083392 529M Windows recovery environment
sda2 1085440 1290239 204800 100M EFI System
sda3 1290240 1323007 32768 16M Microsoft reserved
sda4 1323008 214097815 212774808 101.5G Microsoft basic data
sda5 214097920 312580095 98482176 47G Linux filesystem
Disk sdb: 29.3 GiB, 31457280000 bytes, 61440000 sectors
Disk identifier: 0x4c050c47
Boot Start End Sectors Size Id Type
sdb1 * 0 4910399 4910400 2.3G 0 Empty
sdb2 4840192 4844991 4800 2.4M ef EFI (FAT-12/16/32)

parted -lm (filtered): __________________________________________________ _______

sda:160GB:scsi:512:512:gpt:ATA INTEL SSDSA2BW16:;
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:110GB:109GB:ntfs:Basic data partition:msftdata;
5:110GB:160GB:50.4GB:ext4::;
sdb:31.5GB:scsi:512:512:unknown:Generic Flash Disk:;

blkid (filtered): __________________________________________________ ____________

NAME FSTYPE UUID PARTUUID LABEL PARTLABEL
sda
ÂÂsda1 ntfs A26E19FB6E19C945 3b569285-b3dc-4fe5-b55d-f2d6e4f0758c Kurtarma Basic data partition
ÂÂsda2 vfat B81A-4534 fea3e64d-5797-4d99-88a7-a73fbf698936 EFI system partition
ÂÂsda3 a8778681-61d5-4cf2-9bfc-02b1fe1b6f00 Microsoft reserved partition
ÂÂsda4 ntfs 107C1B697C1B493C 9b5b0a96-4b48-4215-976c-0b39599828f6 Basic data partition
ÂÂsda5 ext4 c7b4d30c-c895-45e1-89fc-75fee15ccdef 7f994e53-603b-42d7-ab07-a2efd0b9e895
sdb iso9660 2021-09-15-20-41-59-00 Ubuntu 18.04.6 LTS amd64
ÂÂsdb1 iso9660 2021-09-15-20-41-59-00 4c050c47-01 Ubuntu 18.04.6 LTS amd64
ÂÂsdb2 vfat 7E74-30B0 4c050c47-02 Ubuntu 18.04.6 LTS amd64

Mount points (filtered): __________________________________________________ _____

Avail Use% Mounted on
/dev/sda1 81.5M 85% /mnt/boot-sav/sda1
/dev/sda2 64.9M 32% /mnt/boot-sav/sda2
/dev/sda4 43.2G 57% /mnt/boot-sav/sda4
/dev/sda5 35.7G 17% /mnt/boot-sav/sda5
/dev/sdb 0 100% /cdrom

Mount options (filtered): __________________________________________________ ____

/dev/sda1 fuseblk rw,relatime,user_id=0,group_id=0,allow_other,blksi ze=4096
/dev/sda2 vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,ioc harset=iso8859-1,shortname=mixed,errors=remount-ro
/dev/sda4 fuseblk rw,relatime,user_id=0,group_id=0,allow_other,blksi ze=4096
/dev/sda5 ext4 rw,relatime
/dev/sdb iso9660 ro,noatime,nojoliet,check=s,map=n,blocksize=2048

===================== sda2/efi/ubuntu/grub.cfg (filtered) ======================

search.fs_uuid c7b4d30c-c895-45e1-89fc-75fee15ccdef root hd0,gpt5
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

====================== sda5/boot/grub/grub.cfg (filtered) ======================

Ubuntu c7b4d30c-c895-45e1-89fc-75fee15ccdef
Ubuntu, with Linux 5.4.0-107-generic c7b4d30c-c895-45e1-89fc-75fee15ccdef
Ubuntu, with Linux 5.4.0-84-generic c7b4d30c-c895-45e1-89fc-75fee15ccdef
Windows Boot Manager (on sda2) osprober-efi-B81A-4534
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###

========================== sda5/etc/fstab (filtered) ===========================

#

# / was on /dev/sda5 during installation
UUID=c7b4d30c-c895-45e1-89fc-75fee15ccdef / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda2 during installation
UUID=B81A-4534 /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0

======================= sda5/etc/default/grub (filtered) =======================

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_DISABLE_OS_PROBER=false

==================== sda5: Location of files loaded by Grub ====================

GiB - GB File Fragment(s)
102.089851379 = 109.618143232 boot/grub/grub.cfg 1
111.490673065 = 119.712198656 boot/vmlinuz-5.4.0-107-generic 1
107.003902435 = 114.894565376 boot/vmlinuz-5.4.0-84-generic 2
107.003902435 = 114.894565376 vmlinuz 2
112.707027435 = 121.018249216 boot/initrd.img-5.4.0-107-generic 4
111.878902435 = 120.129056768 boot/initrd.img-5.4.0-84-generic 4
111.878902435 = 120.129056768 initrd.img 4
111.878902435 = 120.129056768 initrd.img.old 4

===================== sda5: ls -l /etc/grub.d/ (filtered) ======================

-rwxr-xr-x 1 root root 12808 Feb 24 2021 10_linux
-rwxr-xr-x 1 root root 11298 Feb 24 2021 20_linux_xen
-rwxr-xr-x 1 root root 12059 Feb 24 2021 30_os-prober
-rwxr-xr-x 1 root root 1418 Feb 24 2021 30_uefi-firmware
-rwxr-xr-x 1 root root 214 Feb 24 2021 40_custom
-rwxr-xr-x 1 root root 216 Feb 24 2021 41_custom

====================== sdb/boot/grub/grub.cfg (filtered) =======================

Try Ubuntu without installing
Install Ubuntu
OEM install (for manufacturers)
Check disc for defects

==================== sdb: Location of files loaded by Grub =====================

GiB - GB File Fragment(s)
?? = ?? boot/grub/grub.cfg 1
paste.ubuntu.com ko ()
paste.debian.net ko ()/CODE

Dosya Ekleri 20220330_144545.jpg 212,4 KB · Goruntuleme: 24


20220330_152811~2.jpg 255,4 KB · Goruntuleme: 15