Talk:Tips and Tricks

From tehowiki
Revision as of 13:24, 14 October 2021 by imported>Gfis (boot-repair 20121/10/14 15>23)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

boot-repair-4ppa130 [20211014_1318]

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

User choice:

Is sdd (ATA Samsung SSD 860) a removable disk? no


Default settings: ______________________________________________________________

The default repair of the Boot-Repair utility would reinstall the grub2 of sdd1 into the MBRs of all disks (except live-disks and removable disks without OS). Additional repair would be performed: unhide-bootmenu-10s

Final advice in case of suggested repair: ______________________________________


Please do not forget to make your BIOS boot on sdd (ATA Samsung SSD 860) disk!

User settings: _________________________________________________________________

Warning: Unable to open /dev/sr0 read-write (Read-only file system). /dev/sr0 has been opened read-only. The settings chosen by the user will restore the [(generic mbr)] MBR in sdd, and make it boot on sdd1. Additional repair will be performed: unhide-bootmenu-10s


======================== Restore MBR of sdd ========================

dd if=/usr/lib/syslinux/mbr/mbr.bin of=/dev/sdd

Boot successfully repaired.

You can now reboot your computer.


====================== Boot Info After Repair ======================
=> Syslinux MBR (5.00 and higher) is installed in the MBR of /dev/sdd.
=> Grub2 (v2.00) is installed in the MBR of /dev/sde and looks at sector 1 of 
   the same hard drive for core.img. core.img is at this location and looks 
   for /boot/grub. It also embeds following components:
   
   modules
   ---------------------------------------------------------------------------
   fshelp ext2 part_msdos biosdisk search_fs_uuid
   ---------------------------------------------------------------------------
   
   config script
   ---------------------------------------------------------------------------
   search.fs_uuid 206a8a35-32ea-44f1-bd10-6ad5b1faeeb8 root hd3,msdos1 
   set prefix=($root)'/boot/grub'
   
   ---------------------------------------------------------------------------

sdd1: __________________________________________________________________________

   File system:       ext4
   Boot sector type:  -
   Boot sector info: 
   Operating System:  Ubuntu 18.04.5 LTS
   Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub 
                      /boot/grub/i386-pc/core.img

sde1: __________________________________________________________________________

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

sde2: __________________________________________________________________________

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

sde3: __________________________________________________________________________

   File system:       ntfs
   Boot sector type:  Windows 7/2008: NTFS
   Boot sector info:  No errors found in the Boot Parameter Block.
   Operating System:  
   Boot files:        

sde4: __________________________________________________________________________

   File system:       ntfs
   Boot sector type:  Windows 7/2008: NTFS
   Boot sector info:  No errors found in the Boot Parameter Block.
   Operating System:  
   Boot files:        /bootmgr /boot/bcd


========================== 3 OS detected ===========================

OS#1: Ubuntu 18.04.5 LTS on sdd1 OS#2: Windows 10 (boot) on sde1 OS#3: Windows Recovery Environment (boot) on sde4

====================== Architecture/Host Info ======================

CPU architecture: 64-bit Live-session OS is Ubuntu 64-bit (Boot-Repair-Disk 64bit 20200604, bionic, x86_64)


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

This live-session is not in EFI-mode. This session has been detected as 'live' because /proc/cmdline contains (boot=casper) This session has been detected as 'live' because df -Th / contains overlay


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

Disks info: ____________________________________________________________________

sdd : notGPT, no-BIOSboot, has-noESP, not-usb, not-mmc, has-os, 2048 sectors * 512 bytes sde : notGPT, no-BIOSboot, has-noESP, not-usb, not-mmc, has-os, 2048 sectors * 512 bytes

Partitions info (1/3): _________________________________________________________

sdd1 : is-os, 64, apt-get, grub-pc , grub2, grub-install, grubenv-ok, update-grub, farbios sde1 : is-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, not-far sde2 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios sde3 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios sde4 : is-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios

Partitions info (2/3): _________________________________________________________

sdd1 : isnotESP, fstab-without-efi, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot sde1 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, bootmgr, is-winboot sde2 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot sde3 : isnotESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot sde4 : isnotESP, part-has-no-fstab, no-nt, no-winload, recovery-or-hidden, bootmgr, is-winboot

Partitions info (3/3): _________________________________________________________

sdd1 : not-sepboot, with-boot, fstab-without-boot, not-sep-usr, with--usr, fstab-without-usr, std-grub.d, sdd sde1 : not-sepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sde sde2 : not-sepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sde sde3 : not-sepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sde sde4 : not-sepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, sde

fdisk -l (filtered): ___________________________________________________________

Disk sdd: 465.8 GiB, 500107862016 bytes, 976773168 sectors Disk identifier: 0x373585a2

     Boot Start       End   Sectors   Size Id Type

sdd1 * 2048 976771071 976769024 465.8G 83 Linux Disk sde: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors Disk identifier: 0x17aa74b7

     Boot      Start        End    Sectors   Size Id Type

sde1 * 2048 206847 204800 100M 7 HPFS/NTFS/exFAT sde2 206848 1846566911 1846360064 880.4G 7 HPFS/NTFS/exFAT sde3 1846566912 1951424511 104857600 50G 7 HPFS/NTFS/exFAT sde4 1951424512 1953523119 2098608 1G 12 Compaq diagnostics Disk zram0: 1.2 GiB, 1235136512 bytes, 301547 sectors Disk zram1: 1.2 GiB, 1235136512 bytes, 301547 sectors Disk zram2: 1.2 GiB, 1235136512 bytes, 301547 sectors Disk zram3: 1.2 GiB, 1235136512 bytes, 301547 sectors

parted -lm (filtered): _________________________________________________________

sdd:500GB:scsi:512:512:msdos:ATA Samsung SSD 860:; 1:1049kB:500GB:500GB:ext4::boot; sde:1000GB:scsi:512:4096:msdos:ATA ST1000DM003-9YN1:; 1:1049kB:106MB:105MB:ntfs::boot; 2:106MB:945GB:945GB:ntfs::; 3:945GB:999GB:53.7GB:ntfs::; 4:999GB:1000GB:1074MB:ntfs::diag; zram3:1235MB:unknown:4096:4096:loop:Unknown:; 1:0.00B:1235MB:1235MB:linux-swap(v1)::; zram1:1235MB:unknown:4096:4096:loop:Unknown:; 1:0.00B:1235MB:1235MB:linux-swap(v1)::; sr0:923MB:scsi:2048:2048:msdos:TSSTcorp CDDVDW SH-216BB:; 2:1974kB:12.1MB:10.1MB:::esp; zram2:1235MB:unknown:4096:4096:loop:Unknown:; 1:0.00B:1235MB:1235MB:linux-swap(v1)::; zram0:1235MB:unknown:4096:4096:loop:Unknown:; 1:0.00B:1235MB:1235MB:linux-swap(v1)::;

blkid (filtered): ______________________________________________________________

NAME FSTYPE UUID PARTUUID LABEL PARTLABEL sdd └─sdd1 ext4 206a8a35-32ea-44f1-bd10-6ad5b1faeeb8 373585a2-01 sde ├─sde1 ntfs 9886EB9E86EB7AE0 17aa74b7-01 ├─sde2 ntfs FC204C79204C3CC0 17aa74b7-02 Boot ├─sde3 ntfs EE704D7E704D4E91 17aa74b7-03 Recover └─sde4 ntfs 8812729912728BC6 17aa74b7-04 zram0 zram1 zram2 zram3

df (filtered): _________________________________________________________________

      Avail Use% Mounted on

sdd1 82.6G 77% /mnt/boot-sav/sdd1 sde1 68.4M 32% /media/lubuntu/9886EB9E86EB7AE0 sde2 55.1G 94% /media/lubuntu/Boot sde3 23.9G 52% /media/lubuntu/Recover sde4 807.3M 21% /mnt/boot-sav/sde4

Mount options: __________________________________________________________________

sdd1 rw,relatime sde1 rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096 sde2 ro,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096 sde3 rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096 sde4 rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096

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

Ubuntu 206a8a35-32ea-44f1-bd10-6ad5b1faeeb8 Ubuntu, with Linux 4.15.0-159-generic 206a8a35-32ea-44f1-bd10-6ad5b1faeeb8 Ubuntu, with Linux 4.15.0-158-generic 206a8a35-32ea-44f1-bd10-6ad5b1faeeb8 Windows 10 (on sde1) 9886EB9E86EB7AE0 Windows Recovery Environment (on sde4) 8812729912728BC6

      1. END /etc/grub.d/30_os-prober ###
      2. END /etc/grub.d/30_uefi-firmware ###
==================== sdd1/etc/fstab (filtered) =====================
  1. <file system> <mount point> <type> <options> <dump> <pass>
  2. / was on /dev/sda1 during installation

UUID=206a8a35-32ea-44f1-bd10-6ad5b1faeeb8 / ext4 errors=remount-ro 0 1 /swapfile none swap sw 0 0

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

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=""

============== sdd1: Location of files loaded by Grub ==============
          GiB - GB             File                                 Fragment(s)
314.136848450 = 337.301872640  boot/grub/grub.cfg                             1
319.632961273 = 343.203278848  boot/grub/i386-pc/core.img                     1
213.219783783 = 228.942999552  boot/vmlinuz-4.15.0-158-generic                2
217.258846283 = 233.279909888  boot/vmlinuz-4.15.0-159-generic                1
217.258846283 = 233.279909888  vmlinuz                                        1
213.219783783 = 228.942999552  vmlinuz.old                                    2
214.040134430 = 229.823844352  boot/initrd.img-4.15.0-158-generic             3
217.508762360 = 233.548255232  boot/initrd.img-4.15.0-159-generic             3
217.508762360 = 233.548255232  initrd.img                                     3
214.040134430 = 229.823844352  initrd.img.old                                 3
=============== sdd1: ls -l /etc/grub.d/ (filtered) ================

-rwxr-xr-x 1 root root 12808 Aug 24 2020 10_linux -rwxr-xr-x 1 root root 11298 Jul 17 2018 20_linux_xen -rwxr-xr-x 1 root root 12059 Jul 17 2018 30_os-prober -rwxr-xr-x 1 root root 1418 Jul 17 2018 30_uefi-firmware -rwxr-xr-x 1 root root 214 Jul 17 2018 40_custom -rwxr-xr-x 1 root root 216 Jul 17 2018 41_custom


=== Devices which don't seem to have a corresponding hard drive ====

sda sdb sdc

========================= StdErr Messages ==========================

File descriptor 63 (pipe:[44014]) leaked on lvs invocation. Parent PID 4209: /bin/bash