Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- **********************************************
- Found invalid GPT and valid MBR; converting MBR to GPT format
- in memory.
- ***************************************************************
- Disk /dev/sda: 625076912 sectors, 298.1 GiB
- Logical sector size: 512 bytes
- Disk identifier (GUID): C59CE4D8-20CB-4228-9624-84358CE612F9
- Partition table holds up to 128 entries
- First usable sector is 34, last usable sector is 625076878
- Partitions will be aligned on 2048-sector boundaries
- Total free space is 8841837 sectors (4.2 GiB)
- Number Start (sector) End (sector) Size Code Name
- 1 1050624 617285631 293.8 GiB 8300 Linux filesystem
- root@ubuntu:/media/ubuntu# mount /dev/sda1 /mnt
- root@ubuntu:/media/ubuntu# for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
- root@ubuntu:/media/ubuntu# chroot /mnt
- root@ubuntu:/# grub-install --recheck /dev/sda
- grub-install: error: /usr/lib/grub/i386-pc/modinfo.sh doesn't exist. Please specify --target or --directory.
- root@ubuntu:/# ls /boot
- abi-3.19.0-25-generic efi memtest86+.elf vmlinuz-3.19.0-28-generic
- abi-3.19.0-28-generic grub memtest86+_multiboot.bin vmlinuz-3.19.0-28-generic.efi.signed
- 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
- 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
- config-3.19.0-28-generic initrd.img-3.19.0-58-generic System.map-3.19.0-58-generic
- config-3.19.0-58-generic memtest86+.bin vmlinuz-3.19.0-25-generic
- root@ubuntu:/# ls /boot |pastebinit
- http://paste.ubuntu.com/16187470/
- root@ubuntu:/# dpkg -l | grep grub | nc termbin.com 9999
- http://termbin.com/ghg9
- root@ubuntu:/# parted -l | nc termbin.com 9999
- http://termbin.com/70cz
- root@ubuntu:/# cat /etc/fstab | nc termbin.com 9999
- http://termbin.com/ii1c
- root@ubuntu:/# blkid | nc termbin.com 9999
- http://termbin.com/pjbb
- root@ubuntu:/# cgdisk /dev/sda
- root@ubuntu:/# partprobe
- 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?
- Error: Both the primary and backup GPT tables are corrupt. Try making a fresh table, and using Parted's rescue feature to recover partitions.
- root@ubuntu:/# gdisk -l /dev/sda
- GPT fdisk (gdisk) version 0.8.8
- Partition table scan:
- MBR: protective
- BSD: not present
- APM: not present
- GPT: present
- Found valid GPT with protective MBR; using GPT.
- Disk /dev/sda: 625076912 sectors, 298.1 GiB
- Logical sector size: 512 bytes
- Disk identifier (GUID): CEB309BF-3648-4FD2-856E-F3B203166BC1
- Partition table holds up to 128 entries
- First usable sector is 34, last usable sector is 625076878
- Partitions will be aligned on 2048-sector boundaries
- Total free space is 7793261 sectors (3.7 GiB)
- Number Start (sector) End (sector) Size Code Name
- 1 1050624 617285631 293.8 GiB 8300 Linux filesystem
- 2 2048 1050623 512.0 MiB EF00 die
- root@ubuntu:/# gdisk -l /dev/sda | nc termbin.com 9999
- http://termbin.com/8cb8
- root@ubuntu:/# blkid /dev/sda2
- /dev/sda2: UUID="0920-6243" TYPE="vfat"
- root@ubuntu:/# mount -a
- mount: special device UUID=56948039-22f2-47f1-b0b9-be84f0d271f7 does not exist
- root@ubuntu:/# ls /boot
- abi-3.19.0-25-generic efi memtest86+.elf vmlinuz-3.19.0-28-generic
- abi-3.19.0-28-generic grub memtest86+_multiboot.bin vmlinuz-3.19.0-28-generic.efi.signed
- 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
- 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
- config-3.19.0-28-generic initrd.img-3.19.0-58-generic System.map-3.19.0-58-generic
- config-3.19.0-58-generic memtest86+.bin vmlinuz-3.19.0-25-generic
- root@ubuntu:/# ls /boot/efi
- EFI
- root@ubuntu:/# ls /boot/efi/efi
- ubuntu
- root@ubuntu:/# ls /boot/efi/efi/ubuntu/
- grub.cfg grubx64.efi MokManager.efi shimx64.efi
- root@ubuntu:/# dpkg -l | awk '$2 ~ /grub/ {print $2}' | xargs apt-get install --reinstall
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- The following packages were automatically installed and are no longer required:
- libgsoap4 libp11-kit-gnome-keyring:i386 linux-image-3.19.0-25-generic
- linux-image-extra-3.19.0-25-generic owncloud-3rdparty owncloud-app-activity
- owncloud-app-encryption owncloud-app-external owncloud-app-files
- owncloud-app-files-external owncloud-app-files-locking
- owncloud-app-files-pdfviewer owncloud-app-files-sharing
- owncloud-app-files-texteditor owncloud-app-files-trashbin
- owncloud-app-files-versions owncloud-app-files-videoviewer
- owncloud-app-firstrunwizard owncloud-app-gallery
- owncloud-app-provisioning-api owncloud-app-templateeditor
- owncloud-app-user-external owncloud-app-user-ldap
- owncloud-app-user-webdavauth wine-gecko2.21 wine-gecko2.21:i386
- wine-mono0.0.8
- Use 'apt-get autoremove' to remove them.
- 0 upgraded, 0 newly installed, 5 reinstalled, 0 to remove and 79 not upgraded.
- Need to get 0 B/3,118 kB of archives.
- After this operation, 0 B of additional disk space will be used.
- Preconfiguring packages ...
- (Reading database ... 296498 files and directories currently installed.)
- Preparing to unpack .../grub-common_2.02~beta2-9ubuntu1.7_amd64.deb ...
- Unpacking grub-common (2.02~beta2-9ubuntu1.7) over (2.02~beta2-9ubuntu1.7) ...
- Preparing to unpack .../grub-efi-amd64-signed_1.34.8+2.02~beta2-9ubuntu1.7_amd64.deb ...
- Unpacking grub-efi-amd64-signed (1.34.8+2.02~beta2-9ubuntu1.7) over (1.34.8+2.02~beta2-9ubuntu1.7) ...
- Preparing to unpack .../grub2-common_2.02~beta2-9ubuntu1.7_amd64.deb ...
- Unpacking grub2-common (2.02~beta2-9ubuntu1.7) over (2.02~beta2-9ubuntu1.7) ...
- Preparing to unpack .../grub-efi-amd64_2.02~beta2-9ubuntu1.7_amd64.deb ...
- Unpacking grub-efi-amd64 (2.02~beta2-9ubuntu1.7) over (2.02~beta2-9ubuntu1.7) ...
- Preparing to unpack .../grub-efi-amd64-bin_2.02~beta2-9ubuntu1.7_amd64.deb ...
- Unpacking grub-efi-amd64-bin (2.02~beta2-9ubuntu1.7) over (2.02~beta2-9ubuntu1.7) ...
- Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
- Processing triggers for ureadahead (0.100.0-16) ...
- ureadahead will be reprofiled on next reboot
- Processing triggers for install-info (5.2.0.dfsg.1-2) ...
- Setting up grub-common (2.02~beta2-9ubuntu1.7) ...
- Setting up grub2-common (2.02~beta2-9ubuntu1.7) ...
- Setting up grub-efi-amd64-bin (2.02~beta2-9ubuntu1.7) ...
- Setting up grub-efi-amd64 (2.02~beta2-9ubuntu1.7) ...
- Installing for x86_64-efi platform.
- Fatal: Couldn't open either sysfs or procfs directories for accessing EFI variables.
- Try 'modprobe efivars' as root.
- Fatal: Couldn't open either sysfs or procfs directories for accessing EFI variables.
- Try 'modprobe efivars' as root.
- Installation finished. No error reported.
- Generating grub configuration file ...
- Found linux image: /boot/vmlinuz-3.19.0-58-generic
- Found initrd image: /boot/initrd.img-3.19.0-58-generic
- Found linux image: /boot/vmlinuz-3.19.0-28-generic
- Found initrd image: /boot/initrd.img-3.19.0-28-generic
- Found linux image: /boot/vmlinuz-3.19.0-25-generic
- Found initrd image: /boot/initrd.img-3.19.0-25-generic
- Found memtest86+ image: /boot/memtest86+.elf
- Found memtest86+ image: /boot/memtest86+.bin
- grub-probe: error: cannot find a GRUB drive for /dev/sdb1. Check your device.map.
- done
- Setting up grub-efi-amd64-signed (1.34.8+2.02~beta2-9ubuntu1.7) ...
- grub-install: error: /usr/lib/grub/i386-pc/modinfo.sh doesn't exist. Please specify --target or --directory.
- E: Sub-process /usr/bin/dpkg returned an error code (1)
- root@ubuntu:/#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement