Advertisement
Guest User

Untitled

a guest
May 2nd, 2016
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.99 KB | None | 0 0
  1. **********************************************
  2. Found invalid GPT and valid MBR; converting MBR to GPT format
  3. in memory.
  4. ***************************************************************
  5.  
  6. Disk /dev/sda: 625076912 sectors, 298.1 GiB
  7. Logical sector size: 512 bytes
  8. Disk identifier (GUID): C59CE4D8-20CB-4228-9624-84358CE612F9
  9. Partition table holds up to 128 entries
  10. First usable sector is 34, last usable sector is 625076878
  11. Partitions will be aligned on 2048-sector boundaries
  12. Total free space is 8841837 sectors (4.2 GiB)
  13.  
  14. Number Start (sector) End (sector) Size Code Name
  15. 1 1050624 617285631 293.8 GiB 8300 Linux filesystem
  16. root@ubuntu:/media/ubuntu# mount /dev/sda1 /mnt
  17. root@ubuntu:/media/ubuntu# for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
  18. root@ubuntu:/media/ubuntu# chroot /mnt
  19. root@ubuntu:/# grub-install --recheck /dev/sda
  20. grub-install: error: /usr/lib/grub/i386-pc/modinfo.sh doesn't exist. Please specify --target or --directory.
  21. root@ubuntu:/# ls /boot
  22. abi-3.19.0-25-generic efi memtest86+.elf vmlinuz-3.19.0-28-generic
  23. abi-3.19.0-28-generic grub memtest86+_multiboot.bin vmlinuz-3.19.0-28-generic.efi.signed
  24. abi-3.19.0-58-generic initrd.img-3.19.0-25-generic System.map-3.19.0-25-generic vmlinuz-3.19.0-58-generic
  25. config-3.19.0-25-generic initrd.img-3.19.0-28-generic System.map-3.19.0-28-generic vmlinuz-3.19.0-58-generic.efi.signed
  26. config-3.19.0-28-generic initrd.img-3.19.0-58-generic System.map-3.19.0-58-generic
  27. config-3.19.0-58-generic memtest86+.bin vmlinuz-3.19.0-25-generic
  28. root@ubuntu:/# ls /boot |pastebinit
  29. http://paste.ubuntu.com/16187470/
  30. root@ubuntu:/# dpkg -l | grep grub | nc termbin.com 9999
  31. http://termbin.com/ghg9
  32. root@ubuntu:/# parted -l | nc termbin.com 9999
  33. http://termbin.com/70cz
  34. root@ubuntu:/# cat /etc/fstab | nc termbin.com 9999
  35. http://termbin.com/ii1c
  36. root@ubuntu:/# blkid | nc termbin.com 9999
  37. http://termbin.com/pjbb
  38. root@ubuntu:/# cgdisk /dev/sda
  39. root@ubuntu:/# partprobe
  40. Warning: /dev/sdb contains GPT signatures, indicating that it has a GPT table. However, it does not have a valid fake msdos partition table, as it should. Perhaps it was corrupted -- possibly by a program that doesn't understand GPT partition tables. Or perhaps you deleted the GPT table, and are now using an msdos partition table. Is this a GPT partition table?
  41. Error: Both the primary and backup GPT tables are corrupt. Try making a fresh table, and using Parted's rescue feature to recover partitions.
  42. root@ubuntu:/# gdisk -l /dev/sda
  43. GPT fdisk (gdisk) version 0.8.8
  44.  
  45. Partition table scan:
  46. MBR: protective
  47. BSD: not present
  48. APM: not present
  49. GPT: present
  50.  
  51. Found valid GPT with protective MBR; using GPT.
  52. Disk /dev/sda: 625076912 sectors, 298.1 GiB
  53. Logical sector size: 512 bytes
  54. Disk identifier (GUID): CEB309BF-3648-4FD2-856E-F3B203166BC1
  55. Partition table holds up to 128 entries
  56. First usable sector is 34, last usable sector is 625076878
  57. Partitions will be aligned on 2048-sector boundaries
  58. Total free space is 7793261 sectors (3.7 GiB)
  59.  
  60. Number Start (sector) End (sector) Size Code Name
  61. 1 1050624 617285631 293.8 GiB 8300 Linux filesystem
  62. 2 2048 1050623 512.0 MiB EF00 die
  63. root@ubuntu:/# gdisk -l /dev/sda | nc termbin.com 9999
  64. http://termbin.com/8cb8
  65. root@ubuntu:/# blkid /dev/sda2
  66. /dev/sda2: UUID="0920-6243" TYPE="vfat"
  67. root@ubuntu:/# mount -a
  68. mount: special device UUID=56948039-22f2-47f1-b0b9-be84f0d271f7 does not exist
  69. root@ubuntu:/# ls /boot
  70. abi-3.19.0-25-generic efi memtest86+.elf vmlinuz-3.19.0-28-generic
  71. abi-3.19.0-28-generic grub memtest86+_multiboot.bin vmlinuz-3.19.0-28-generic.efi.signed
  72. abi-3.19.0-58-generic initrd.img-3.19.0-25-generic System.map-3.19.0-25-generic vmlinuz-3.19.0-58-generic
  73. config-3.19.0-25-generic initrd.img-3.19.0-28-generic System.map-3.19.0-28-generic vmlinuz-3.19.0-58-generic.efi.signed
  74. config-3.19.0-28-generic initrd.img-3.19.0-58-generic System.map-3.19.0-58-generic
  75. config-3.19.0-58-generic memtest86+.bin vmlinuz-3.19.0-25-generic
  76. root@ubuntu:/# ls /boot/efi
  77. EFI
  78. root@ubuntu:/# ls /boot/efi/efi
  79. ubuntu
  80. root@ubuntu:/# ls /boot/efi/efi/ubuntu/
  81. grub.cfg grubx64.efi MokManager.efi shimx64.efi
  82. root@ubuntu:/# dpkg -l | awk '$2 ~ /grub/ {print $2}' | xargs apt-get install --reinstall
  83. Reading package lists... Done
  84. Building dependency tree
  85. Reading state information... Done
  86. The following packages were automatically installed and are no longer required:
  87. libgsoap4 libp11-kit-gnome-keyring:i386 linux-image-3.19.0-25-generic
  88. linux-image-extra-3.19.0-25-generic owncloud-3rdparty owncloud-app-activity
  89. owncloud-app-encryption owncloud-app-external owncloud-app-files
  90. owncloud-app-files-external owncloud-app-files-locking
  91. owncloud-app-files-pdfviewer owncloud-app-files-sharing
  92. owncloud-app-files-texteditor owncloud-app-files-trashbin
  93. owncloud-app-files-versions owncloud-app-files-videoviewer
  94. owncloud-app-firstrunwizard owncloud-app-gallery
  95. owncloud-app-provisioning-api owncloud-app-templateeditor
  96. owncloud-app-user-external owncloud-app-user-ldap
  97. owncloud-app-user-webdavauth wine-gecko2.21 wine-gecko2.21:i386
  98. wine-mono0.0.8
  99. Use 'apt-get autoremove' to remove them.
  100. 0 upgraded, 0 newly installed, 5 reinstalled, 0 to remove and 79 not upgraded.
  101. Need to get 0 B/3,118 kB of archives.
  102. After this operation, 0 B of additional disk space will be used.
  103. Preconfiguring packages ...
  104. (Reading database ... 296498 files and directories currently installed.)
  105. Preparing to unpack .../grub-common_2.02~beta2-9ubuntu1.7_amd64.deb ...
  106. Unpacking grub-common (2.02~beta2-9ubuntu1.7) over (2.02~beta2-9ubuntu1.7) ...
  107. Preparing to unpack .../grub-efi-amd64-signed_1.34.8+2.02~beta2-9ubuntu1.7_amd64.deb ...
  108. Unpacking grub-efi-amd64-signed (1.34.8+2.02~beta2-9ubuntu1.7) over (1.34.8+2.02~beta2-9ubuntu1.7) ...
  109. Preparing to unpack .../grub2-common_2.02~beta2-9ubuntu1.7_amd64.deb ...
  110. Unpacking grub2-common (2.02~beta2-9ubuntu1.7) over (2.02~beta2-9ubuntu1.7) ...
  111. Preparing to unpack .../grub-efi-amd64_2.02~beta2-9ubuntu1.7_amd64.deb ...
  112. Unpacking grub-efi-amd64 (2.02~beta2-9ubuntu1.7) over (2.02~beta2-9ubuntu1.7) ...
  113. Preparing to unpack .../grub-efi-amd64-bin_2.02~beta2-9ubuntu1.7_amd64.deb ...
  114. Unpacking grub-efi-amd64-bin (2.02~beta2-9ubuntu1.7) over (2.02~beta2-9ubuntu1.7) ...
  115. Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
  116. Processing triggers for ureadahead (0.100.0-16) ...
  117. ureadahead will be reprofiled on next reboot
  118. Processing triggers for install-info (5.2.0.dfsg.1-2) ...
  119. Setting up grub-common (2.02~beta2-9ubuntu1.7) ...
  120. Setting up grub2-common (2.02~beta2-9ubuntu1.7) ...
  121. Setting up grub-efi-amd64-bin (2.02~beta2-9ubuntu1.7) ...
  122. Setting up grub-efi-amd64 (2.02~beta2-9ubuntu1.7) ...
  123. Installing for x86_64-efi platform.
  124. Fatal: Couldn't open either sysfs or procfs directories for accessing EFI variables.
  125. Try 'modprobe efivars' as root.
  126. Fatal: Couldn't open either sysfs or procfs directories for accessing EFI variables.
  127. Try 'modprobe efivars' as root.
  128. Installation finished. No error reported.
  129. Generating grub configuration file ...
  130. Found linux image: /boot/vmlinuz-3.19.0-58-generic
  131. Found initrd image: /boot/initrd.img-3.19.0-58-generic
  132. Found linux image: /boot/vmlinuz-3.19.0-28-generic
  133. Found initrd image: /boot/initrd.img-3.19.0-28-generic
  134. Found linux image: /boot/vmlinuz-3.19.0-25-generic
  135. Found initrd image: /boot/initrd.img-3.19.0-25-generic
  136. Found memtest86+ image: /boot/memtest86+.elf
  137. Found memtest86+ image: /boot/memtest86+.bin
  138. grub-probe: error: cannot find a GRUB drive for /dev/sdb1. Check your device.map.
  139. done
  140. Setting up grub-efi-amd64-signed (1.34.8+2.02~beta2-9ubuntu1.7) ...
  141. grub-install: error: /usr/lib/grub/i386-pc/modinfo.sh doesn't exist. Please specify --target or --directory.
  142. E: Sub-process /usr/bin/dpkg returned an error code (1)
  143. root@ubuntu:/#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement