Boot Info Script 8f991e4 + Boot-Repair extra info [Boot-Info 25oct2017]
============================= Boot Info Summary: ===============================
=> No known boot loader is installed in the MBR of /dev/sda.
sda1: __________________________________________________________________________
File system: iso9660
Boot sector type: Unknown
Boot sector info:
Mounting failed: mount: /mnt/BootInfo/sda1: /dev/sda1 already mounted or mount point busy.
sda2: __________________________________________________________________________
File system: vfat
Boot sector type: FAT16
Boot sector info: According to the info in the boot sector, sda2 starts
at sector 0. But according to the info from fdisk,
sda2 starts at sector 2711152. According to the info
in the boot sector, sda2 has 0 sectors.
Mounting failed: mount: /mnt/BootInfo/sda1: /dev/sda1 already mounted or mount point busy.
mount: /mnt/BootInfo/sda2: /dev/sda2 already mounted or mount point busy.
============================ Drive/Partition Info: =============================
Drive: sda _____________________________________________________________________
Disk /dev/sda: 7.5 GiB, 8019509248 bytes, 15663104 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sda1 * 0 2,787,775 2,787,776 0 Empty
/dev/sda2 2,711,152 2,715,823 4,672 ef EFI (FAT-12/16/32)
/dev/sda1 overlaps with /dev/sda2
GUID Partition Table detected, but does not seem to be used.
Partition Attrs Start Sector End Sector # of Sectors System
/dev/sda1 + R 0 2,787,719 2,787,720 Data partition (Windows/Linux)
/dev/sda2 + R 2,711,152 2,715,823 4,672 Data partition (Windows/Linux)
Attributes: R=Required, N=No Block IO, B=Legacy BIOS Bootable, +=More bits set
"blkid" output: ________________________________________________________________
Device UUID TYPE LABEL
/dev/loop0 squashfs
/dev/mmcblk1
/dev/mmcblk1p1 AB33-C271 vfat
/dev/mmcblk1p2 dbdea0a3-fc77-4e44-b888-d606b662f15b ext4
/dev/mmcblk1p3 25f8cf24-7b3a-4ec0-89b9-d0e44b8aebc0 swap
/dev/sda1 2018-04-26-18-40-26-00 iso9660 Xubuntu 18.04 LTS amd64
/dev/sda2 044E-AC17 vfat
========================= "ls -l /dev/disk/by-id" output: ======================
total 0
lrwxrwxrwx 1 root root 13 Jun 20 12:13 mmc-SDW32G_0xb2424268 -> ../../mmcblk1
lrwxrwxrwx 1 root root 15 Jun 20 12:13 mmc-SDW32G_0xb2424268-part1 -> ../../mmcblk1p1
lrwxrwxrwx 1 root root 15 Jun 20 12:13 mmc-SDW32G_0xb2424268-part2 -> ../../mmcblk1p2
lrwxrwxrwx 1 root root 15 Jun 20 12:13 mmc-SDW32G_0xb2424268-part3 -> ../../mmcblk1p3
lrwxrwxrwx 1 root root 9 Jun 20 12:13 usb-USB_Flash_Disk_FBI1308161012746-0:0 -> ../../sda
lrwxrwxrwx 1 root root 10 Jun 20 12:13 usb-USB_Flash_Disk_FBI1308161012746-0:0-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jun 20 12:13 usb-USB_Flash_Disk_FBI1308161012746-0:0-part2 -> ../../sda2
================================ Mount points: =================================
Device Mount_Point Type Options
/dev/loop0 /rofs squashfs (ro,noatime)
/dev/mmcblk1p2 /media/xubuntu/dbdea0a3-fc77-4e44-b888-d606b662f15b ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2)
/dev/sda /cdrom iso9660 (ro,noatime,nojoliet,check=s,map=n,blocksize=2048)
======================== Unknown MBRs/Boot Sectors/etc: ========================
Unknown MBR on /dev/sda
00000000 45 52 08 00 00 00 90 90 00 00 00 00 00 00 00 00 |ER..............|
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000020 33 ed fa 8e d5 bc 00 7c fb fc 66 31 db 66 31 c9 |3......|..f1.f1.|
00000030 66 53 66 51 06 57 8e dd 8e c5 52 be 00 7c bf 00 |fSfQ.W....R..|..|
00000040 06 b9 00 01 f3 a5 ea 4b 06 00 00 52 b4 41 bb aa |.......K...R.A..|
00000050 55 31 c9 30 f6 f9 cd 13 72 16 81 fb 55 aa 75 10 |U1.0....r...U.u.|
00000060 83 e1 01 74 0b 66 c7 06 f3 06 b4 42 eb 15 eb 02 |...t.f.....B....|
00000070 31 c9 5a 51 b4 08 cd 13 5b 0f b6 c6 40 50 83 e1 |1.ZQ....[...@P..|
00000080 3f 51 f7 e1 53 52 50 bb 00 7c b9 04 00 66 a1 b0 |?Q..SRP..|...f..|
00000090 07 e8 44 00 0f 82 80 00 66 40 80 c7 02 e2 f2 66 |..D.....f@.....f|
000000a0 81 3e 40 7c fb c0 78 70 75 09 fa bc ec 7b ea 44 |.>@|..xpu....{.D|
000000b0 7c 00 00 e8 83 00 69 73 6f 6c 69 6e 75 78 2e 62 ||.....isolinux.b|
000000c0 69 6e 20 6d 69 73 73 69 6e 67 20 6f 72 20 63 6f |in missing or co|
000000d0 72 72 75 70 74 2e 0d 0a 66 60 66 31 d2 66 03 06 |rrupt...f`f1.f..|
000000e0 f8 7b 66 13 16 fc 7b 66 52 66 50 06 53 6a 01 6a |.{f...{fRfP.Sj.j|
000000f0 10 89 e6 66 f7 36 e8 7b c0 e4 06 88 e1 88 c5 92 |...f.6.{........|
00000100 f6 36 ee 7b 88 c6 08 e1 41 b8 01 02 8a 16 f2 7b |.6.{....A......{|
00000110 cd 13 8d 64 10 66 61 c3 e8 1e 00 4f 70 65 72 61 |...d.fa....Opera|
00000120 74 69 6e 67 20 73 79 73 74 65 6d 20 6c 6f 61 64 |ting system load|
00000130 20 65 72 72 6f 72 2e 0d 0a 5e ac b4 0e 8a 3e 62 | error...^....>b|
00000140 04 b3 07 cd 10 3c 0a 75 f1 cd 18 f4 eb fd 00 00 |.....<.u........|
00000150 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000160 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000170 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000180 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000190 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001b0 f8 44 29 00 00 00 00 00 7a 86 a7 55 00 00 80 00 |.D).....z..U....|
000001c0 01 00 00 55 e0 f4 00 00 00 00 c0 89 2a 00 00 fe |...U........*...|
000001d0 ff ff ef fe ff ff 70 5e 29 00 40 12 00 00 00 00 |......p^).@.....|
000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200
/dev/sda1: unknown GPT attributes
1000000000000001
/dev/sda2: unknown GPT attributes
1000000000000001
Unknown BootLoader on sda1
00000000 45 52 08 00 00 00 90 90 00 00 00 00 00 00 00 00 |ER..............|
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000020 33 ed fa 8e d5 bc 00 7c fb fc 66 31 db 66 31 c9 |3......|..f1.f1.|
00000030 66 53 66 51 06 57 8e dd 8e c5 52 be 00 7c bf 00 |fSfQ.W....R..|..|
00000040 06 b9 00 01 f3 a5 ea 4b 06 00 00 52 b4 41 bb aa |.......K...R.A..|
00000050 55 31 c9 30 f6 f9 cd 13 72 16 81 fb 55 aa 75 10 |U1.0....r...U.u.|
00000060 83 e1 01 74 0b 66 c7 06 f3 06 b4 42 eb 15 eb 02 |...t.f.....B....|
00000070 31 c9 5a 51 b4 08 cd 13 5b 0f b6 c6 40 50 83 e1 |1.ZQ....[...@P..|
00000080 3f 51 f7 e1 53 52 50 bb 00 7c b9 04 00 66 a1 b0 |?Q..SRP..|...f..|
00000090 07 e8 44 00 0f 82 80 00 66 40 80 c7 02 e2 f2 66 |..D.....f@.....f|
000000a0 81 3e 40 7c fb c0 78 70 75 09 fa bc ec 7b ea 44 |.>@|..xpu....{.D|
000000b0 7c 00 00 e8 83 00 69 73 6f 6c 69 6e 75 78 2e 62 ||.....isolinux.b|
000000c0 69 6e 20 6d 69 73 73 69 6e 67 20 6f 72 20 63 6f |in missing or co|
000000d0 72 72 75 70 74 2e 0d 0a 66 60 66 31 d2 66 03 06 |rrupt...f`f1.f..|
000000e0 f8 7b 66 13 16 fc 7b 66 52 66 50 06 53 6a 01 6a |.{f...{fRfP.Sj.j|
000000f0 10 89 e6 66 f7 36 e8 7b c0 e4 06 88 e1 88 c5 92 |...f.6.{........|
00000100 f6 36 ee 7b 88 c6 08 e1 41 b8 01 02 8a 16 f2 7b |.6.{....A......{|
00000110 cd 13 8d 64 10 66 61 c3 e8 1e 00 4f 70 65 72 61 |...d.fa....Opera|
00000120 74 69 6e 67 20 73 79 73 74 65 6d 20 6c 6f 61 64 |ting system load|
00000130 20 65 72 72 6f 72 2e 0d 0a 5e ac b4 0e 8a 3e 62 | error...^....>b|
00000140 04 b3 07 cd 10 3c 0a 75 f1 cd 18 f4 eb fd 00 00 |.....<.u........|
00000150 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001b0 f8 44 29 00 00 00 00 00 7a 86 a7 55 00 00 80 00 |.D).....z..U....|
000001c0 01 00 00 55 e0 f4 00 00 00 00 c0 89 2a 00 00 fe |...U........*...|
000001d0 ff ff ef fe ff ff 70 5e 29 00 40 12 00 00 00 00 |......p^).@.....|
000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200
=============================== StdErr Messages: ===============================
File descriptor 9 (/proc/21249/mountinfo) leaked on lvs invocation. Parent PID 3141: bash
File descriptor 63 (pipe:[87636]) leaked on lvs invocation. Parent PID 3141: bash
ADDITIONAL INFORMATION :
=================== log of boot-repair 20180620_1213 ===================
boot-repair version : 4ppa65
boot-sav version : 4ppa65
boot-sav-extra version : 4ppa65
glade2script version : 3.2.3~ppa4
grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
Warning: The driver descriptor says the physical block size is 2048 bytes, but Linux says it is 512 bytes.
Error: /dev/mmcblk1boot0: unrecognised disk label
Error: /dev/mmcblk1boot1: unrecognised disk label
boot-repair is executed in live-session (Ubuntu 18.04 LTS, bionic, Ubuntu, x86_64)
CPU op-mode(s): 32-bit, 64-bit
BOOT_IMAGE=/casper/vmlinuz file=/cdrom/preseed/xubuntu.seed boot=casper quiet splash ---
ls: cannot access '/home/usr/.config': No such file or directory
mmcblk1 (sda) has unknown type. Please report this message to
boot.repair@gmail.com
cat: /sys/block/mmcblk1/mmcblk1boot0/start: No such file or directory
cat: /sys/block/mmcblk1/mmcblk1boot1/start: No such file or directory
=================== os-prober:
/dev/mmcblk1p2:Kali GNU/Linux Rolling (kali-rolling):Kali:linux
=================== blkid:
/dev/mmcblk1p1: UUID="AB33-C271" TYPE="vfat" PARTUUID="4f913209-1e78-41b3-877b-4d4afa0f9834"
/dev/mmcblk1p2: UUID="dbdea0a3-fc77-4e44-b888-d606b662f15b" TYPE="ext4" PTTYPE="dos" PARTUUID="d644df6f-c202-4a83-8448-79144db611b6"
/dev/loop0: TYPE="squashfs"
/dev/mmcblk1p3: UUID="25f8cf24-7b3a-4ec0-89b9-d0e44b8aebc0" TYPE="swap" PARTUUID="5f4da127-928a-401b-b743-0f0df29bb128"
/dev/sda1: UUID="2018-04-26-18-40-26-00" LABEL="Xubuntu 18.04 LTS amd64" TYPE="iso9660" PTUUID="55a7867a" PTTYPE="dos" PARTUUID="55a7867a-01"
/dev/sda2: SEC_TYPE="msdos" UUID="044E-AC17" TYPE="vfat" PARTUUID="55a7867a-02"
/dev/mmcblk1: PTUUID="e81ff1b9-7754-451d-8053-059298177c1b" PTTYPE="gpt"
1 disks with OS, 1 OS : 1 Linux, 0 MacOS, 0 Windows, 0 unknown type OS.
Presence of EFI/Boot file detected: /mnt/boot-sav/mmcblk1p1/EFI/Boot/bootx64.efi
=================== /media/xubuntu/dbdea0a3-fc77-4e44-b888-d606b662f15b/etc/grub.d/ :
drwxr-xr-x 2 root root 4096 Jun 20 12:00 grub.d
total 76
-rwxr-xr-x 1 root root 9783 Apr 1 09:49 00_header
-rwxr-xr-x 1 root root 6258 Mar 16 11:56 05_debian_theme
-rwxr-xr-x 1 root root 12442 Apr 1 09:49 10_linux
-rwxr-xr-x 1 root root 11298 Apr 1 09:49 20_linux_xen
-rwxr-xr-x 1 root root 12059 Apr 1 09:49 30_os-prober
-rwxr-xr-x 1 root root 1418 Apr 1 09:49 30_uefi-firmware
-rwxr-xr-x 1 root root 214 Apr 1 09:49 40_custom
-rwxr-xr-x 1 root root 216 Apr 1 09:49 41_custom
-rw-r--r-- 1 root root 483 Apr 1 09:49 README
=================== /media/xubuntu/dbdea0a3-fc77-4e44-b888-d606b662f15b/etc/default/grub :
# 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=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
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"
/boot/efi detected in the fstab of mmcblk1p2: UUID=AB33-C271 (mmcblk1p1)
/usr/share/boot-sav/bs-cmd_terminal.sh: line 179: warning: command substitution: ignored null byte in input
=================== efibootmgr -v
BootCurrent: 0002
Timeout: 2 seconds
BootOrder: 0000,0001,0002,0003,0004,0005
Boot0001* UEFI: USB Flash Disk 1100 PciRoot(0x0)/Pci(0x14,0x0)/USB(2,0)/USB(1,0)/HD(1,MBR,0x55a7867a,0x295e70,0x1240)..BO
Boot0002* UEFI: Generic Flash Disk 8.00 PciRoot(0x0)/Pci(0x14,0x0)/USB(2,0)/USB(2,0)/HD(2,GPT,06bc6ebb-32ba-456c-9033-cde8f419f20e,0x168,0x1680)..BO
Boot0003* UEFI:CD/DVD Drive BBS(129,,0x0)
Boot0004* UEFI:Removable Device BBS(130,,0x0)
Boot0005* UEFI:Network Device BBS(131,,0x0)
=================== UEFI/Legacy mode:
BIOS is EFI-compatible, and is setup in EFI-mode for this live-session.
SecureBoot disabled. (maybe sec-boot, Please report this message to
boot.repair@gmail.com)
=================== PARTITIONS & DISKS:
mmcblk1p1 : mmcblk1, not-sepboot, no-grubenv nogrub, no-docgrub, no-update-grub, 32, no-boot, no-os, is-correct-EFI, part-has-no-fstab, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot, nopakmgr, nogrubinstall, no---usr, part-has-no-fstab, not-sep-usr, standard, not-far, notbiosboot, /mnt/boot-sav/mmcblk1p1.
mmcblk1p2 : mmcblk1, not-sepboot, grubenv-ok grub2, grub-efi , update-grub, 64, with-boot, is-os, not--efi--part, fstab-without-boot, fstab-has-goodEFI, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot, apt-get, grub-install, with--usr, fstab-without-usr, not-sep-usr, standard, not-far, notbiosboot, /media/xubuntu/dbdea0a3-fc77-4e44-b888-d606b662f15b.
mmcblk1 : GPT, no-BIOS_boot, has-correctEFI, not-usb, mmc-disk, has-os, 1 sectors * 512 bytes
=================== parted -lm:
BYT;
/dev/sda:8020MB:scsi:512:512:unknown:USB Flash Disk:;
BYT;
/dev/mmcblk1boot0:4194kB:sd/mmc:512:512:unknown:Generic SD/MMC Storage Card:;
BYT;
/dev/mmcblk1:31.3GB:sd/mmc:512:512:gpt:MMC SDW32G:;
1:1049kB:538MB:537MB:fat32::boot, esp;
2:538MB:29.2GB:28.7GB:ext4::;
3:29.2GB:31.3GB:2072MB:linux-swap(v1)::;
BYT;
/dev/mmcblk1boot1:4194kB:sd/mmc:512:512:unknown:Generic SD/MMC Storage Card:;
=================== lsblk:
KNAME TYPE FSTYPE SIZE LABEL
loop0 loop squashfs 1.3G
sda disk iso9660 7.5G Xubuntu 18.04 LTS amd64
sda1 part iso9660 1.3G Xubuntu 18.04 LTS amd64
sda2 part vfat 2.3M Xubuntu 18.04 LTS amd64
mmcblk1 disk 29.1G
mmcblk1p1 part vfat 512M
mmcblk1p2 part ext4 26.7G
mmcblk1p3 part swap 2G
mmcblk1boot0 disk 4M
mmcblk1boot1 disk 4M
KNAME ROTA RO RM STATE MOUNTPOINT
loop0 1 1 0 /rofs
sda 1 0 1 running /cdrom
sda1 1 0 1
sda2 1 0 1
mmcblk1 0 0 0
mmcblk1p1 0 0 0 /mnt/boot-sav/mmcblk1p1
mmcblk1p2 0 0 0 /media/xubuntu/dbdea0a3-fc77-4e44-b888-d606b662f15b
mmcblk1p3 0 0 0
mmcblk1boot0 0 1 0
mmcblk1boot1 0 1 0
=================== mount:
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=962792k,nr_inodes=240698,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=196836k,mode=755)
/dev/sda on /cdrom type iso9660 (ro,noatime,nojoliet,check=s,map=n,blocksize=2048)
/dev/loop0 on /rofs type squashfs (ro,noatime)
/cow on / type overlay (rw,relatime,lowerdir=//filesystem.squashfs,upperdir=/cow/upper,workdir=/cow/work)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=31,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=15394)
mqueue on /dev/mqueue type mqueue (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime)
tmpfs on /run/user/999 type tmpfs (rw,nosuid,nodev,relatime,size=196832k,mode=700,uid=999,gid=999)
gvfsd-fuse on /run/user/999/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=999,group_id=999)
/dev/mmcblk1p2 on /media/xubuntu/dbdea0a3-fc77-4e44-b888-d606b662f15b type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2)
/dev/mmcblk1p1 on /mnt/boot-sav/mmcblk1p1 type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
=================== ls:
/sys/block/mmcblk1 (filtered): alignment_offset bdi capability dev device discard_alignment ext_range force_ro hidden holders inflight integrity mmcblk1boot0 mmcblk1boot1 mmcblk1p1 mmcblk1p2 mmcblk1p3 power queue range removable ro size slaves stat subsystem trace uevent
/sys/block/mmcblk1boot0 (filtered): alignment_offset bdi capability dev device discard_alignment ext_range force_ro hidden holders inflight integrity power queue range removable ro ro_lock_until_next_power_on size slaves stat subsystem trace uevent
/sys/block/mmcblk1boot1 (filtered): alignment_offset bdi capability dev device discard_alignment ext_range force_ro hidden holders inflight integrity power queue range removable ro ro_lock_until_next_power_on size slaves stat subsystem trace uevent
/sys/block/sda (filtered): alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range hidden holders inflight integrity power queue range removable ro sda1 sda2 size slaves stat subsystem trace uevent
/dev (filtered): acpi_thermal_rel autofs block bsg btrfs-control bus char console core cpu cpu_dma_latency cuse disk dri drm_dp_aux0 drm_dp_aux1 ecryptfs fb0 fd full fuse gpiochip0 gpiochip1 gpiochip2 hidraw0 hpet hugepages hwrng i2c-0 i2c-1 i2c-10 i2c-11 i2c-12 i2c-2 i2c-3 i2c-4 i2c-5 i2c-6 i2c-7 i2c-8 i2c-9 initctl input kmsg kvm lightnvm log mapper mcelog media0 mei0 mem memory_bandwidth mmcblk1 mmcblk1boot0 mmcblk1boot1 mmcblk1p1 mmcblk1p2 mmcblk1p3 mmcblk1rpmb mqueue net network_latency network_throughput null port ppp psaux ptmx pts random rfkill rtc rtc0 sda sda1 sda2 sg0 shm snapshot snd stderr stdin stdout tpm0 tpmrm0 uhid uinput urandom userio v4l vfio vga_arbiter vhci vhost-net vhost-vsock video0 zero
ls /dev/mapper: control
=================== hexdump -n512 -C /dev/mmcblk1p1
00000000 eb 58 90 6d 6b 66 73 2e 66 61 74 00 02 08 20 00 |.X.mkfs.fat... .|
00000010 02 00 00 00 00 f8 00 00 10 00 04 00 00 08 00 00 |................|
00000020 00 00 10 00 00 04 00 00 00 00 00 00 02 00 00 00 |................|
00000030 01 00 06 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000040 80 01 29 71 c2 33 ab 4e 4f 20 4e 41 4d 45 20 20 |..)q.3.NO NAME |
00000050 20 20 46 41 54 33 32 20 20 20 0e 1f be 77 7c ac | FAT32 ...w|.|
00000060 22 c0 74 0b 56 b4 0e bb 07 00 cd 10 5e eb f0 32 |".t.V.......^..2|
00000070 e4 cd 16 cd 19 eb fe 54 68 69 73 20 69 73 20 6e |.......This is n|
00000080 6f 74 20 61 20 62 6f 6f 74 61 62 6c 65 20 64 69 |ot a bootable di|
00000090 73 6b 2e 20 20 50 6c 65 61 73 65 20 69 6e 73 65 |sk. Please inse|
000000a0 72 74 20 61 20 62 6f 6f 74 61 62 6c 65 20 66 6c |rt a bootable fl|
000000b0 6f 70 70 79 20 61 6e 64 0d 0a 70 72 65 73 73 20 |oppy and..press |
000000c0 61 6e 79 20 6b 65 79 20 74 6f 20 74 72 79 20 61 |any key to try a|
000000d0 67 61 69 6e 20 2e 2e 2e 20 0d 0a 00 00 00 00 00 |gain ... .......|
000000e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200
=================== df -Th:
Filesystem Type Size Used Avail Use% Mounted on
udev devtmpfs 941M 0 941M 0% /dev
tmpfs tmpfs 193M 1.5M 191M 1% /run
/dev/sda iso9660 1.4G 1.4G 0 100% /cdrom
/dev/loop0 squashfs 1.3G 1.3G 0 100% /rofs
/cow overlay 962M 270M 692M 29% /
tmpfs tmpfs 962M 8.7M 953M 1% /dev/shm
tmpfs tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs tmpfs 962M 0 962M 0% /sys/fs/cgroup
tmpfs tmpfs 962M 736K 961M 1% /tmp
tmpfs tmpfs 193M 20K 193M 1% /run/user/999
/dev/mmcblk1p2 ext4 27G 9.5G 16G 39% /media/xubuntu/dbdea0a3-fc77-4e44-b888-d606b662f15b
/dev/mmcblk1p1 vfat 511M 256K 511M 1% /mnt/boot-sav/mmcblk1p1
=================== fdisk -l:
Disk /dev/loop0: 1.3 GiB, 1338576896 bytes, 2614408 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mmcblk1: 29.1 GiB, 31268536320 bytes, 61071360 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: E81FF1B9-7754-451D-8053-059298177C1B
Device Start End Sectors Size Type
/dev/mmcblk1p1 2048 1050623 1048576 512M EFI System
/dev/mmcblk1p2 1050624 57022463 55971840 26.7G Linux filesystem
/dev/mmcblk1p3 57022464 61069311 4046848 2G Linux swap
Disk /dev/mmcblk1boot1: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mmcblk1boot0: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/sda: 7.5 GiB, 8019509248 bytes, 15663104 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x55a7867a
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 0 2787775 2787776 1.3G 0 Empty
/dev/sda2 2711152 2715823 4672 2.3M ef EFI (FAT-12/16/32)
=================== Recommended repair
The default repair of the Boot-Repair utility will purge (in order to sign-grub) and reinstall the grub-efi-amd64-signed of mmcblk1p2, using the following options: mmcblk1p1/boot/efi,
Additional repair will be performed: unhide-bootmenu-10s use-standard-efi-file
rm /mnt/boot-sav/mmcblk1p1/efi/Boot/bootx64.efi /mnt/boot-sav/mmcblk1p1/efi/Boot/bootx64.efi.grb
Mount mmcblk1p1 on /media/xubuntu/dbdea0a3-fc77-4e44-b888-d606b662f15b/boot/efi
efi files in mmcblk1p1/efi: /kali/grubx64.efi
No mmcblk1p2/boot/efi/efi/ ubuntu/mint folder
chroot /media/xubuntu/dbdea0a3-fc77-4e44-b888-d606b662f15b apt-get -y update
Purge the GRUB of mmcblk1p2
grub-efi-amd64-signed NOT available (apt-cache policy problem)
grub-efi available
GRUBPACKAGE becomes grub-efi
The following packages were automatically installed and are no longer required:
gnome-themes-standard libfile-copy-recursive-perl libgdata-common libgdata22
libgee-0.8-2 libgexiv2-2 libgoa-1.0-0b libgoa-1.0-common liboauth0 libraw16
python-unicodecsv python3-configargparse python3-flask python3-itsdangerous
python3-jsbeautifier python3-pyinotify python3-simplejson python3-werkzeug
shotwell-common
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 355 not upgraded.
DEBCHECK debOK, grub-efi
DEBCHECK debOK
shim-signed available
Please type: sudo chroot "/media/xubuntu/dbdea0a3-fc77-4e44-b888-d606b662f15b" dpkg --configure -ansudo chroot "/media/xubuntu/dbdea0a3-fc77-4e44-b888-d606b662f15b" apt-get install -fynsudo chroot "/media/xubuntu/dbdea0a3-fc77-4e44-b888-d606b662f15b" apt-get purge -y grub*-common grub-common:i386 shim-signed
/boot/efi detected in the fstab of mmcblk1p2: UUID=AB33-C271 (mmcblk1p1)
Then type: sudo chroot "/media/xubuntu/dbdea0a3-fc77-4e44-b888-d606b662f15b" apt-get install -y grub-efi
=================== /media/xubuntu/dbdea0a3-fc77-4e44-b888-d606b662f15b/etc/grub.d/ :
drwxr-xr-x 2 root root 4096 Jun 20 12:16 grub.d
total 76
-rwxr-xr-x 1 root root 9783 Apr 1 09:49 00_header
-rwxr-xr-x 1 root root 6258 Mar 16 11:56 05_debian_theme
-rwxr-xr-x 1 root root 12442 Apr 1 09:49 10_linux
-rwxr-xr-x 1 root root 11298 Apr 1 09:49 20_linux_xen
-rwxr-xr-x 1 root root 12059 Apr 1 09:49 30_os-prober
-rwxr-xr-x 1 root root 1418 Apr 1 09:49 30_uefi-firmware
-rwxr-xr-x 1 root root 214 Apr 1 09:49 40_custom
-rwxr-xr-x 1 root root 216 Apr 1 09:49 41_custom
-rw-r--r-- 1 root root 483 Apr 1 09:49 README
=================== /media/xubuntu/dbdea0a3-fc77-4e44-b888-d606b662f15b/etc/default/grub :
# 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=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
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"
/boot/efi detected in the fstab of mmcblk1p2: UUID=AB33-C271 (mmcblk1p1)
Unhide GRUB boot menu in mmcblk1p2/etc/default/grub
=================== /media/xubuntu/dbdea0a3-fc77-4e44-b888-d606b662f15b/etc/grub.d/ :
drwxr-xr-x 2 root root 4096 Jun 20 12:16 grub.d
total 76
-rwxr-xr-x 1 root root 9783 Apr 1 09:49 00_header
-rwxr-xr-x 1 root root 6258 Mar 16 11:56 05_debian_theme
-rwxr-xr-x 1 root root 12442 Apr 1 09:49 10_linux
-rwxr-xr-x 1 root root 11298 Apr 1 09:49 20_linux_xen
-rwxr-xr-x 1 root root 12059 Apr 1 09:49 30_os-prober
-rwxr-xr-x 1 root root 1418 Apr 1 09:49 30_uefi-firmware
-rwxr-xr-x 1 root root 214 Apr 1 09:49 40_custom
-rwxr-xr-x 1 root root 216 Apr 1 09:49 41_custom
-rw-r--r-- 1 root root 483 Apr 1 09:49 README
=================== /media/xubuntu/dbdea0a3-fc77-4e44-b888-d606b662f15b/etc/default/grub :
# 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=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
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"
/boot/efi detected in the fstab of mmcblk1p2: UUID=AB33-C271 (mmcblk1p1)
lspci: Unable to load libkmod resources: error -12
*******lspci -nnk | grep -iA3 vga
00:02.0 VGA compatible controller [0300]: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Graphics & Display [8086:0f31] (rev 0f)
Subsystem: ASUSTeK Computer Inc. Atom Processor Z36xxx/Z37xxx Series Graphics & Display [1043:18cd]
Kernel driver in use: i915
00:14.0 USB controller [0c03]: Intel Corporation Atom Processor Z36xxx/Z37xxx, Celeron N2000 Series USB xHCI [8086:0f35] (rev 0f)
*******
grub-install --version
grub-install (GRUB) 2.02+dfsg1-4,grub-install (GRUB) 2.
chroot /media/xubuntu/dbdea0a3-fc77-4e44-b888-d606b662f15b efibootmgr -v
BootCurrent: 0002
Timeout: 2 seconds
BootOrder: 0000,0001,0002,0003,0004,0005
Boot0000* kali HD(1,GPT,4f913209-1e78-41b3-877b-4d4afa0f9834,0x800,0x100000)/File(EFIkaligrubx64.efi)
Boot0001* UEFI: USB Flash Disk 1100 PciRoot(0x0)/Pci(0x14,0x0)/USB(2,0)/USB(1,0)/HD(1,MBR,0x55a7867a,0x295e70,0x1240)..BO
Boot0002* UEFI: Generic Flash Disk 8.00 PciRoot(0x0)/Pci(0x14,0x0)/USB(2,0)/USB(2,0)/HD(2,GPT,06bc6ebb-32ba-456c-9033-cde8f419f20e,0x168,0x1680)..BO
Boot0003* UEFI:CD/DVD Drive BBS(129,,0x0)
Boot0004* UEFI:Removable Device BBS(130,,0x0)
Boot0005* UEFI:Network Device BBS(131,,0x0)
chroot /media/xubuntu/dbdea0a3-fc77-4e44-b888-d606b662f15b uname -r
Kernel: 4.15.0-20-generic
Reinstall the grub-efi of mmcblk1p2
Installing for x86_64-efi platform.
Installation finished. No error reported.
grub-install --efi-directory=/boot/efi --target=x86_64-efi --no-uefi-secure-boot : exit code of grub-install :0
efi files in mmcblk1p1/efi: /kali/grubx64.efi
df /dev/mmcblk1p1
cp /media/xubuntu/dbdea0a3-fc77-4e44-b888-d606b662f15b/boot/efi/EFI/kali/grubx64.efi /media/xubuntu/dbdea0a3-fc77-4e44-b888-d606b662f15b/boot/efi/EFI/Boot/bootx64.efi (& .grb)
efi files in mmcblk1p1/efi: /kali/grubx64.efi /Boot/bootx64.efi
Add /media/xubuntu/dbdea0a3-fc77-4e44-b888-d606b662f15b/boot/efi efi entries in /media/xubuntu/dbdea0a3-fc77-4e44-b888-d606b662f15b/etc/grub.d/25_custom
chroot /media/xubuntu/dbdea0a3-fc77-4e44-b888-d606b662f15b efibootmgr -v
BootCurrent: 0002
Timeout: 2 seconds
BootOrder: 0000,0001,0002,0003,0004,0005
Boot0000* kali HD(1,GPT,4f913209-1e78-41b3-877b-4d4afa0f9834,0x800,0x100000)/File(EFIkaligrubx64.efi)
Boot0001* UEFI: USB Flash Disk 1100 PciRoot(0x0)/Pci(0x14,0x0)/USB(2,0)/USB(1,0)/HD(1,MBR,0x55a7867a,0x295e70,0x1240)..BO
Boot0002* UEFI: Generic Flash Disk 8.00 PciRoot(0x0)/Pci(0x14,0x0)/USB(2,0)/USB(2,0)/HD(2,GPT,06bc6ebb-32ba-456c-9033-cde8f419f20e,0x168,0x1680)..BO
Boot0003* UEFI:CD/DVD Drive BBS(129,,0x0)
Boot0004* UEFI:Removable Device BBS(130,,0x0)
Boot0005* UEFI:Network Device BBS(131,,0x0)
chroot /media/xubuntu/dbdea0a3-fc77-4e44-b888-d606b662f15b update-grub
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-4.16.13-sound-33
Found initrd image: /boot/initrd.img-4.16.13-sound-33
Found linux image: /boot/vmlinuz-4.16.0-kali2-amd64
Found initrd image: /boot/initrd.img-4.16.0-kali2-amd64
Found linux image: /boot/vmlinuz-4.15.0-kali2-amd64
Found initrd image: /boot/initrd.img-4.15.0-kali2-amd64
File descriptor 9 (/proc/21249/mountinfo) leaked on lvs invocation. Parent PID 32638: /bin/sh
File descriptor 63 (pipe:[87636]) leaked on lvs invocation. Parent PID 32638: /bin/sh
grub-probe: error: cannot find a GRUB drive for /dev/sda1. Check your device.map.
Adding boot menu entry for EFI firmware configuration
Unhide GRUB boot menu in mmcblk1p2/boot/grub/grub.cfg
An error occurred during the repair.
You can now reboot your computer.
Please do not forget to make your BIOS boot on mmcblk1p1/EFI/kali/grubx64.efi file!
Partager