Grub lost after windows 8.1 update

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
aless80
Level 2
Level 2
Posts: 83
Joined: Wed Nov 28, 2012 5:20 am

Grub lost after windows 8.1 update

Post by aless80 »

Hi,
i am trying to recover the grub on my computer having a dual partition with Windows 8/Linux Mint. I hope I did not screwed windows up as well cause the last time it did not run. I had Refind allowing me to choose between Windows and LinuxMint. I tried many methods:
boot-repair under Linux Mint live usb gave me some commands to run which failed,, and eventually said that something went wrong. The last link I have is paste2.org/D3NVvEtx. Rescatux (ie super-grub usb) did not word either. The "chroot" method is also not working:

Code: Select all

sudo mount /dev/sda5 /mnt
sudo mount --bind /dev /mnt/dev
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
mint / # grub-install /dev/sda
Searching for GRUB installation directory ... found: /boot/grub
The file /boot/grub/stage1 not read correctly.
mint / # grub-install --recheck  /dev/sda
Probing devices to guess BIOS drives. This may take a long time.
Searching for GRUB installation directory ... found: /boot/grub
The file /boot/grub/stage1 not read correctly.
  
The file /boot/grub/stage1 not read correctly.
My linux mint partition is on /dev/sda5: ext4 915 Gb with flag msftdata, whereas Windows is on /dev/sda2 fat32 with 925Gb and flag boot.

I hope you can help, and please be clear if you do.
Thanks in advance

Code: Select all

sudo fdisk -l
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xd0fdbe8a

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1  3907029167  1953514583+  ee  GPT
Partition 1 does not start on physical sector boundary.

WARNING: GPT (GUID Partition Table) detected on '/dev/sdf'! The util fdisk doesn't support GPT. Use GNU Parted.

Disk /dev/sdf: 7803 MB, 7803174912 bytes
255 heads, 63 sectors/track, 948 cylinders, total 15240576 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 identifier: 0x5e6605dc

   Device Boot      Start         End      Blocks   Id  System
/dev/sdf1   *           0     2445599     1222800    0  Empty
/dev/sdf2           83444       87987        2272   ef  EFI (FAT-12/16/32)

WARNING: GPT (GUID Partition Table) detected on '/dev/sdf1'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdf1: 1252 MB, 1252147200 bytes
255 heads, 63 sectors/track, 152 cylinders, total 2445600 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 identifier: 0x5e6605dc

     Device Boot      Start         End      Blocks   Id  System
/dev/sdf1p1   *           0     2445599     1222800    0  Empty
/dev/sdf1p2           83444       87987        2272   ef  EFI (FAT-12/16/32)

Code: Select all

sudo mount /dev/sda5 /mnt
ls /mnt/boot
abi-3.8.0-19-generic         initrd.img-3.8.0-35-generic
abi-3.8.0-27-generic         memtest86+.bin
abi-3.8.0-35-generic         memtest86+_multiboot.bin
config-3.8.0-19-generic      refind_linux.conf
config-3.8.0-27-generic      System.map-3.8.0-19-generic
config-3.8.0-35-generic      System.map-3.8.0-27-generic
efi                          System.map-3.8.0-35-generic
grub                         vmlinuz-3.8.0-19-generic   #vmlinuz must be leftovers from a previous ubuntu installation..
grub.bak                     vmlinuz-3.8.0-27-generic
initrd.img-3.8.0-19-generic  vmlinuz-3.8.0-35-generic
initrd.img-3.8.0-27-generic  vmlinuz-3.8.0-35-generic.efi.signed
[b]mint@mint ~ $ ls /mnt/boot/grub[/b]
default        fat_stage1_5  grubenv       minix_stage1_5     stage2
device.map     fonts         jfs_stage1_5  reiserfs_stage1_5  x86_64-efi
e2fs_stage1_5  grub.cfg      locale        stage1             xfs_stage1_5
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
kukamuumuka

Re: Grub lost after windows 8.1 update

Post by kukamuumuka »

Microsoft tries to prevent to use linux .. :wink:
http://www.muktware.com/2014/03/windows ... ader/24521
A Linux and Windows 8 user has reported on Reddit that one of the updates performed by Microsoft’s OS Windows 8 deleted the GRUB boot loader and set UEFI to secure boot. It was not Windows 8 to Windows 8.1 upgrade, but regular Windows 8 system update.
Grub4Dos boot-CD may helps for booting linux?
aless80
Level 2
Level 2
Posts: 83
Joined: Wed Nov 28, 2012 5:20 am

Re: Grub lost after windows 8.1 update

Post by aless80 »

I cannot run .exe files in grub4dos, I lost my windows boot as well. Sorry in case I am misunderstanding your suggestion.
If it helps, see this:

Code: Select all

                  Boot Info Script 0.61      [1 April 2012]


============================= Boot Info Summary: ===============================

 => Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 
    2369448024 of the same hard drive for core.img. core.img is at this 
    location and looks in partition 94 for .
 => No known boot loader is installed in the MBR of /dev/sdf.

sda1: __________________________________________________________________________

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

sda2: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  Unknown
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /efi/Boot/bootx64.efi /efi/linuxmint/grubx64.efi 
                       /efi/linuxmint/shimx64.efi /efi/refind/refind_x64.efi

sda3: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows Vista/7: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /NST/menu.lst /bootmgr /Boot/BCD 
                       /Windows/System32/winload.exe

sda4: __________________________________________________________________________

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

sda5: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Linux Mint 15 Olivia
    Boot files:        /etc/fstab

sda6: __________________________________________________________________________

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

sda7: __________________________________________________________________________

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

sdf1: __________________________________________________________________________

    File system:       iso9660
    Boot sector type:  Unknown
    Boot sector info: 
    Mounting failed:   mount: /dev/sdf1 already mounted or sdf1 busy

sdf2: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  FAT16
    Boot sector info:  According to the info in the boot sector, sdf2 starts 
                       at sector 0. But according to the info from fdisk, 
                       sdf2 starts at sector 83444. According to the info in 
                       the boot sector, sdf2 has 0 sectors.
    Mounting failed:   mount: /dev/sdf1 already mounted or sdf1 busy
mount: /dev/sdf2 already mounted or sdf2 busy

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

Drive: sda _____________________________________________________________________

Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1                   1 3,907,029,167 3,907,029,167  ee GPT


GUID Partition Table detected.

Partition    Start Sector    End Sector  # of Sectors System
/dev/sda1           2,048     2,097,151     2,095,104 Windows Recovery Environment (Windows)
/dev/sda2       2,097,152     2,834,431       737,280 EFI System partition
/dev/sda3       3,096,576 1,943,726,079 1,940,629,504 Data partition (Windows/Linux)
/dev/sda4   1,943,726,080 1,944,647,679       921,600 Windows Recovery Environment (Windows)
/dev/sda5   1,944,647,680 3,864,186,879 1,919,539,200 Data partition (Windows/Linux)
/dev/sda6   3,864,186,880 3,883,894,783    19,707,904 Swap partition (Linux)
/dev/sda7   3,883,894,784 3,907,028,991    23,134,208 Data partition (Windows/Linux)

Drive: sdf _____________________________________________________________________

Disk /dev/sdf: 7803 MB, 7803174912 bytes
255 heads, 63 sectors/track, 948 cylinders, total 15240576 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sdf1    *              0     2,445,599     2,445,600   0 Empty
/dev/sdf2              83,444        87,987         4,544  ef EFI (FAT-12/16/32)

/dev/sdf1 overlaps with /dev/sdf2

GUID Partition Table detected, but does not seem to be used.

Partition    Start Sector    End Sector  # of Sectors System
/dev/sdf1               0     2,445,543     2,445,544 Data partition (Windows/Linux)
/dev/sdf2          83,444        87,987         4,544 Data partition (Windows/Linux)

"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/loop0                                              squashfs   
/dev/sda1        0A822F24822F13AB                       ntfs       Windows RE tools
/dev/sda2        D87B-12F1                              vfat       SYSTEM
/dev/sda3        4AFEDBBFFEDBA20D                       ntfs       OS
/dev/sda4        968C9ADF8C9AB8E7                       ntfs       
/dev/sda5        aa85599f-23c3-4a38-b9c5-ae5ed611eb2a   ext4       
/dev/sda6        3c0b1cc9-b8a7-4681-9293-f4edec8f9ac4   swap       
/dev/sda7        B02C82C52C828656                       ntfs       Recovery Image
/dev/sdf1                                               iso9660    Linux Mint 16 Cinnamon 64-bit
/dev/sdf2        0D6C-F933                              vfat       

================================ Mount points: =================================

Device           Mount_Point              Type       Options

/dev/loop0       /rofs                    squashfs   (ro,noatime)
/dev/sdf         /cdrom                   iso9660    (ro,noatime)


============================== sda3/NST/menu.lst: ==============================

--------------------------------------------------------------------------------
# NeoSmart NeoGrub Bootloader Configuration File
#
# This is the NeoGrub configuration file, and should be located at C:\NST\menu.lst
# Please see the EasyBCD Documentation for information on how to create/modify entries:
# http://neosmart.net/wiki/display/EBCD/

--------------------------------------------------------------------------------

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

           GiB - GB             File                                 Fragment(s)


=============================== sda5/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda3 during installation
UUID=aa85599f-23c3-4a38-b9c5-ae5ed611eb2a /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda2 during installation
#UUID=D87B-12F1  /boot/efi       vfat    defaults        0       1
# swap was on /dev/sda5 during installation
UUID=3c0b1cc9-b8a7-4681-9293-f4edec8f9ac4 none            swap    sw              0       0
# ale: mount Windows partition, so that I have music. Sometimes windows hybernates, so reboot windows (not a simple shut down!)
UUID=4AFEDBBFFEDBA20D /media/kinkyboy/OS/ ntfs    ro 0       1
#/dev/sda4 /media/kinkyboy/OS/ ntfs    errors=remount-ro 0       1
#UUID=4AFEDBBFFEDBA20D /media/kinkyboy/OS/ ntfs errors=remount-ro 0

UUID=D87B-12F1	/boot/efi	vfat	defaults	0	1
--------------------------------------------------------------------------------

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

           GiB - GB             File                                 Fragment(s)


======================== Unknown MBRs/Boot Sectors/etc: ========================

Unknown MBR on /dev/sdf

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  f1 06 b4 42 eb 15 eb 00  |...t.f.....B....|
00000070  5a 51 b4 08 cd 13 83 e1  3f 5b 51 0f b6 c6 40 50  |ZQ......?[Q...@P|
00000080  f7 e1 53 52 50 bb 00 7c  b9 04 00 66 a1 b0 07 e8  |..SRP..|...f....|
00000090  44 00 0f 82 80 00 66 40  80 c7 02 e2 f2 66 81 3e  |D.....f@.....f.>|
000000a0  40 7c fb c0 78 70 75 09  fa bc ec 7b ea 44 7c 00  |@|..xpu....{.D|.|
000000b0  00 e8 83 00 69 73 6f 6c  69 6e 75 78 2e 62 69 6e  |....isolinux.bin|
000000c0  20 6d 69 73 73 69 6e 67  20 6f 72 20 63 6f 72 72  | missing or corr|
000000d0  75 70 74 2e 0d 0a 66 60  66 31 d2 66 03 06 f8 7b  |upt...f`f1.f...{|
000000e0  66 13 16 fc 7b 66 52 66  50 06 53 6a 01 6a 10 89  |f...{fRfP.Sj.j..|
000000f0  e6 66 f7 36 e8 7b c0 e4  06 88 e1 88 c5 92 f6 36  |.f.6.{.........6|
00000100  ee 7b 88 c6 08 e1 41 b8  01 02 8a 16 f2 7b cd 13  |.{....A......{..|
00000110  8d 64 10 66 61 c3 e8 1e  00 4f 70 65 72 61 74 69  |.d.fa....Operati|
00000120  6e 67 20 73 79 73 74 65  6d 20 6c 6f 61 64 20 65  |ng system load e|
00000130  72 72 6f 72 2e 0d 0a 5e  ac b4 0e 8a 3e 62 04 b3  |rror...^....>b..|
00000140  07 cd 10 3c 0a 75 f1 cd  18 f4 eb fd 00 00 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  e4 40 01 00 00 00 00 00  dc 05 66 5e 00 00 80 00  |.@........f^....|
000001c0  01 00 00 4a e0 fa 00 00  00 00 20 51 25 00 00 fe  |...J...... Q%...|
000001d0  ff ff ef fe ff ff f4 45  01 00 c0 11 00 00 00 00  |.......E........|
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

Unknown BootLoader on sda2

00000000  eb 58 90 4d 53 57 49 4e  34 2e 31 00 02 08 28 00  |.X.MSWIN4.1...(.|
00000010  02 00 00 00 00 f8 00 00  3f 00 ff 00 00 00 20 00  |........?..... .|
00000020  00 40 0b 00 d0 02 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 00 29 f1 12 7b d8 4e  4f 20 4e 41 4d 45 20 20  |..)..{.NO NAME  |
00000050  20 20 46 41 54 33 32 20  20 20 33 c9 8e d1 bc f4  |  FAT32   3.....|
00000060  7b 8e c1 8e d9 bd 00 7c  88 56 40 88 4e 02 8a 56  |{......|.V@.N..V|
00000070  40 b4 41 bb aa 55 cd 13  72 10 81 fb 55 aa 75 0a  |@.A..U..r...U.u.|
00000080  f6 c1 01 74 05 fe 46 02  eb 2d 8a 56 40 b4 08 cd  |...t..F..-.V@...|
00000090  13 73 05 b9 ff ff 8a f1  66 0f b6 c6 40 66 0f b6  |.s......f...@f..|
000000a0  d1 80 e2 3f f7 e2 86 cd  c0 ed 06 41 66 0f b7 c9  |...?.......Af...|
000000b0  66 f7 e1 66 89 46 f8 83  7e 16 00 75 39 83 7e 2a  |f..f.F..~..u9.~*|
000000c0  00 77 33 66 8b 46 1c 66  83 c0 0c bb 00 80 b9 01  |.w3f.F.f........|
000000d0  00 e8 2c 00 e9 a8 03 a1  f8 7d 80 c4 7c 8b f0 ac  |..,......}..|...|
000000e0  84 c0 74 17 3c ff 74 09  b4 0e bb 07 00 cd 10 eb  |..t.<.t.........|
000000f0  ee a1 fa 7d eb e4 a1 7d  80 eb df 98 cd 16 cd 19  |...}...}........|
00000100  66 60 80 7e 02 00 0f 84  20 00 66 6a 00 66 50 06  |f`.~.... .fj.fP.|
00000110  53 66 68 10 00 01 00 b4  42 8a 56 40 8b f4 cd 13  |Sfh.....B.V@....|
00000120  66 58 66 58 66 58 66 58  eb 33 66 3b 46 f8 72 03  |fXfXfXfX.3f;F.r.|
00000130  f9 eb 2a 66 33 d2 66 0f  b7 4e 18 66 f7 f1 fe c2  |..*f3.f..N.f....|
00000140  8a ca 66 8b d0 66 c1 ea  10 f7 76 1a 86 d6 8a 56  |..f..f....v....V|
00000150  40 8a e8 c0 e4 06 0a cc  b8 01 02 cd 13 66 61 0f  |@............fa.|
00000160  82 74 ff 81 c3 00 02 66  40 49 75 94 c3 42 4f 4f  |.t.....f@Iu..BOO|
00000170  54 4d 47 52 20 20 20 20  00 00 00 00 00 00 00 00  |TMGR    ........|
00000180  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 0d 0a 44 69  |..............Di|
000001b0  73 6b 20 65 72 72 6f 72  ff 0d 0a 50 72 65 73 73  |sk error...Press|
000001c0  20 61 6e 79 20 6b 65 79  20 74 6f 20 72 65 73 74  | any key to rest|
000001d0  61 72 74 0d 0a 00 00 00  00 00 00 00 00 00 00 00  |art.............|
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  ac 01 b9 01 00 00 55 aa  |..............U.|
00000200

Unknown BootLoader on sdf1

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  f1 06 b4 42 eb 15 eb 00  |...t.f.....B....|
00000070  5a 51 b4 08 cd 13 83 e1  3f 5b 51 0f b6 c6 40 50  |ZQ......?[Q...@P|
00000080  f7 e1 53 52 50 bb 00 7c  b9 04 00 66 a1 b0 07 e8  |..SRP..|...f....|
00000090  44 00 0f 82 80 00 66 40  80 c7 02 e2 f2 66 81 3e  |D.....f@.....f.>|
000000a0  40 7c fb c0 78 70 75 09  fa bc ec 7b ea 44 7c 00  |@|..xpu....{.D|.|
000000b0  00 e8 83 00 69 73 6f 6c  69 6e 75 78 2e 62 69 6e  |....isolinux.bin|
000000c0  20 6d 69 73 73 69 6e 67  20 6f 72 20 63 6f 72 72  | missing or corr|
000000d0  75 70 74 2e 0d 0a 66 60  66 31 d2 66 03 06 f8 7b  |upt...f`f1.f...{|
000000e0  66 13 16 fc 7b 66 52 66  50 06 53 6a 01 6a 10 89  |f...{fRfP.Sj.j..|
000000f0  e6 66 f7 36 e8 7b c0 e4  06 88 e1 88 c5 92 f6 36  |.f.6.{.........6|
00000100  ee 7b 88 c6 08 e1 41 b8  01 02 8a 16 f2 7b cd 13  |.{....A......{..|
00000110  8d 64 10 66 61 c3 e8 1e  00 4f 70 65 72 61 74 69  |.d.fa....Operati|
00000120  6e 67 20 73 79 73 74 65  6d 20 6c 6f 61 64 20 65  |ng system load e|
00000130  72 72 6f 72 2e 0d 0a 5e  ac b4 0e 8a 3e 62 04 b3  |rror...^....>b..|
00000140  07 cd 10 3c 0a 75 f1 cd  18 f4 eb fd 00 00 00 00  |...<.u..........|
00000150  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000001b0  e4 40 01 00 00 00 00 00  dc 05 66 5e 00 00 80 00  |.@........f^....|
000001c0  01 00 00 4a e0 fa 00 00  00 00 20 51 25 00 00 fe  |...J...... Q%...|
000001d0  ff ff ef fe ff ff f4 45  01 00 c0 11 00 00 00 00  |.......E........|
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


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

sdb sdc sdd sde 

=============================== StdErr Messages: ===============================

cat: /tmp/BootInfo-PZ5aBFMf/Tmp_Log: No such file or directory
cat: /tmp/BootInfo-PZ5aBFMf/Tmp_Log: No such file or directory
  No volume groups found

See also this error from Live USB:

Code: Select all

sudo mount /dev/sda5 /mnt
sudo grub-install --root-directory=/mnt /dev/sda
grub-probe: error: failed to get canonical path of /cow.
Probing devices to guess BIOS drives. This may take a long time.
The file /mnt/boot/grub/stage1 not read correctly.
kukamuumuka

Re: Grub lost after windows 8.1 update

Post by kukamuumuka »

aless80 wrote:I cannot run .exe files in grub4dos, I lost my windows boot as well. Sorry in case I am misunderstanding your suggestion.
I do not know what grub4dos you have used, but on the boot CD has no any exe. -files.
Mute Ant

Re: Grub lost after windows 8.1 update

Post by Mute Ant »

GRUB4DOS includes...
  • BOOTLACE.COM for making a legacy BIOS MBR that looks for...
    GRLDR in any partition on the system
    GRUB.EXE for starting kernels from a DOS prompt.
But it's for DOS; real-mode 512KiB DOS.
srs5694
Level 6
Level 6
Posts: 1386
Joined: Mon Feb 27, 2012 1:42 pm

Re: Grub lost after windows 8.1 update

Post by srs5694 »

GRUB4DOS will be useless on aless80's EFI-based computer.

Aless80, since you say you were using rEFInd before, my recommendation is that you simply re-install it. If necessary, you can use the rEFInd CD-R or USB flash drive to get booted initially.
kukamuumuka

Re: Grub lost after windows 8.1 update

Post by kukamuumuka »

Mute Ant wrote:GRUB4DOS includes...
  • BOOTLACE.COM for making a legacy BIOS MBR that looks for...
    GRLDR in any partition on the system
    GRUB.EXE for starting kernels from a DOS prompt.
But it's for DOS; real-mode 512KiB DOS.
Grub4Dos boot-CD is a different thing that Grub4Dos .. :wink:
srs5694
Level 6
Level 6
Posts: 1386
Joined: Mon Feb 27, 2012 1:42 pm

Re: Grub lost after windows 8.1 update

Post by srs5694 »

administrollaattori wrote:Grub4Dos boot-CD is a different thing that Grub4Dos .. :wink:
You haven't provided any links to this "different thing," and my attempts to find it have been unsuccessful. This makes it rather difficult to evaluate the software to which you're referring. That said, the last I heard, GRUB4DOS was a BIOS-mode boot loader, which will be useless on a computer that's set to boot in EFI mode. Unless this version is radically different, it will be of no use whatsoever to aless80, who clearly has an EFI-mode Windows installation. (Unless aless80 decides to convert from EFI-mode to BIOS-mode booting, which will be a major hassle.)
kukamuumuka

Re: Grub lost after windows 8.1 update

Post by kukamuumuka »

srs5694 wrote:
administrollaattori wrote:Grub4Dos boot-CD is a different thing that Grub4Dos .. :wink:
You haven't provided any links to this "different thing," and my attempts to find it have been unsuccessful. This makes it rather difficult to evaluate the software to which you're referring. That said, the last I heard, GRUB4DOS was a BIOS-mode boot loader, which will be useless on a computer that's set to boot in EFI mode. Unless this version is radically different, it will be of no use whatsoever to aless80, who clearly has an EFI-mode Windows installation. (Unless aless80 decides to convert from EFI-mode to BIOS-mode booting, which will be a major hassle.)
You are right. My bad .. :oops:
The link
aless80
Level 2
Level 2
Posts: 83
Joined: Wed Nov 28, 2012 5:20 am

Re: Grub lost after windows 8.1 update

Post by aless80 »

Hi,
I was trying to use grub4dos from this link http://www.themudcrab.com/acronis_grub4dos.php and did I made a USB. I still have to grasp what they want me to do with the Acronis ISO etc, I think they want me to download that from another site..

In the mean time I am using rEFInd, which I better understand. I made a rEFInd CD and I see the following icons:

Code: Select all

Boot Microsoft EFI boot from SYSTEM
Boot EFI\refind\refind_x64.efi from SYSTEM
Boot EFI\refind\grubx64.efi from SYSTEM   
Boot from vmlinux.. #some leftovers from Ubuntu
The first allows me to boot to Windows! I am very happy because I was afraid I had lost it. I am going to make a recovery disk with it.
The second says:

Code: Select all

Starting refind_x64.efi
Using load options ''
Error: Volume Corrupt while loading refind_x64.efi
The third has the icon of Linux Mint and used to boot to that OS, but now it sends me to the Grub. I guess those .efi files are a mess.

I am going to see if I manage to install rEFInd from Windows or from live Linux Mint. Another viable option is to reinstall linux Mint on its partition. If you have suggestions on the next steps please let me know and thanks for your help so far
aless80
Level 2
Level 2
Posts: 83
Joined: Wed Nov 28, 2012 5:20 am

Re: Grub lost after windows 8.1 update

Post by aless80 »

I am trying to install refind from Windows following the instructions in the site of rEFInd:

Command Prompt as Administrator:

Code: Select all

mountvol S: /S 
xcopy /E refind S:\EFI\refind\ 
S:
cd EFI\refind
del refind_ia32.efi
rd /s drivers_ia32
rename refind.conf-sample refind.conf
bcdedit /set {bootmgr} path \EFI\refind\refind_x64.efi 
I get this error:

Code: Select all

bcdedit /set {bootmgr} path \EFI\refind\refind_x64.efi 
The parameter is incorrect
but when I reboot rEFInd is there and can boot in Windows. Now I would like to recover the Linux Mint partition, if possible.
srs5694
Level 6
Level 6
Posts: 1386
Joined: Mon Feb 27, 2012 1:42 pm

Re: Grub lost after windows 8.1 update

Post by srs5694 »

administrollaattori wrote:You are right. My bad .. :oops:
The link
Thanks for the link.
aless80 wrote:I was trying to use grub4dos from this link http://www.themudcrab.com/acronis_grub4dos.php and did I made a USB. I still have to grasp what they want me to do with the Acronis ISO etc, I think they want me to download that from another site..
As I expected, the Grub4Dos CD to which administrollaattori linked will be useless to you.
In the mean time I am using rEFInd, which I better understand. I made a rEFInd CD and I see the following icons:

Code: Select all

Boot Microsoft EFI boot from SYSTEM
Boot EFI\refind\refind_x64.efi from SYSTEM
Boot EFI\refind\grubx64.efi from SYSTEM   
Boot from vmlinux.. #some leftovers from Ubuntu
The first allows me to boot to Windows! I am very happy because I was afraid I had lost it. I am going to make a recovery disk with it.
That's good news. Are you able to boot to Mint (either directly or via GRUB)?
The second says:

Code: Select all

Starting refind_x64.efi
Using load options ''
Error: Volume Corrupt while loading refind_x64.efi
This suggests filesystem damage. Before doing anything else, I recommend backing it up. (A file-level backup, via tar, cp, or whatever, should be adequate.) Once that's done, unmount the ESP and run dosfsck on it, as in:

Code: Select all

sudo umount /dev/sda2
sudo dosfsck -a /dev/sda2
This type of problem can occur for several reasons. One of them is a failure to deactivate Fast Startup in Windows, as described here, among other places. (Note that the Windows Fast Startup feature is different from similarly-named features in the firmware. The Windows feature must be disabled in order to safely dual-boot. The firmware feature is less of a problem, although many people recommend disabling it, either because of confusion or because the firmware feature can cause problems on some computers.) If you haven't already done so, you should disable that feature.
The third has the icon of Linux Mint and used to boot to that OS, but now it sends me to the Grub. I guess those .efi files are a mess.
This is the EFI\refind\grubx64.efi entry? You might find rEFInd under that name if you installed rEFInd with Secure Boot active (since the Shim boot loader chainloads to something of that name). Perhaps you ran Boot Repair and it swapped it out; or maybe something else happened to accidentally put GRUB in the rEFInd directory.
I am trying to install refind from Windows following the instructions in the site of rEFInd:

Command Prompt as Administrator:

Code: Select all

mountvol S: /S
xcopy /E refind S:\EFI\refind\
S:
cd EFI\refind
del refind_ia32.efi
rd /s drivers_ia32
rename refind.conf-sample refind.conf
bcdedit /set {bootmgr} path \EFI\refind\refind_x64.efi
I get this error:

Code: Select all

bcdedit /set {bootmgr} path \EFI\refind\refind_x64.efi
The parameter is incorrect
but when I reboot rEFInd is there and can boot in Windows.
It's odd that you got an error, but at least it worked....
Now I would like to recover the Linux Mint partition, if possible.
You do have Linux kernels on your /dev/sda5. If you've installed an EFI filesystem driver for whatever filesystem you used there (ext4fs by default), you should see them in the rEFInd menu. They might show up with Ubuntu or Linux penguin icons, though. (The tricks rEFInd uses to identify the Linux distribution aren't 100% reliable, and in particular Mint usually shows up as Ubuntu.)
aless80
Level 2
Level 2
Posts: 83
Joined: Wed Nov 28, 2012 5:20 am

Re: Grub lost after windows 8.1 update

Post by aless80 »

Hi,
thank you for your post. No, I am not able to log in to Mint. When I go through the icon in rEFInd it goes to the grub. Fast boot and secure boot: the ones I can access from UEFI are off. I will double check in Windows following the instructions from your link.

About dosfsck, I did it for all partitions in Mint live:

Code: Select all

mint@mint ~ $ sudo dosfsck /dev/sda1
dosfsck 3.0.16, 01 Mar 2013, FAT32, LFN
Currently, only 1 or 2 FATs are supported, not 0.

mint@mint ~ $ sudo dosfsck /dev/sda2
dosfsck 3.0.16, 01 Mar 2013, FAT32, LFN
Reclaimed 343 unused clusters (1404928 bytes).
Free cluster summary wrong (62109 vs. really 62789)
1) Correct
2) Don't correct
? 1
Leaving file system unchanged.
/dev/sda2: 313 files, 29186/91975 clusters
mint@mint ~ $ sudo dosfsck /dev/sda3
dosfsck 3.0.16, 01 Mar 2013, FAT32, LFN
Currently, only 1 or 2 FATs are supported, not 0.

mint@mint ~ $ sudo dosfsck /dev/sda4
dosfsck 3.0.16, 01 Mar 2013, FAT32, LFN
Currently, only 1 or 2 FATs are supported, not 0.

mint@mint ~ $ sudo dosfsck /dev/sda5
dosfsck 3.0.16, 01 Mar 2013, FAT32, LFN
Logical sector size is zero.
mint@mint ~ $ sudo dosfsck /dev/sda6
dosfsck 3.0.16, 01 Mar 2013, FAT32, LFN
Logical sector size is zero.
mint@mint ~ $ sudo dosfsck /dev/sda7
dosfsck 3.0.16, 01 Mar 2013, FAT32, LFN
Currently, only 1 or 2 FATs are supported, not 0.
I tried the chroot method again:

Code: Select all

mint@mint ~ $ sudo mount /dev/sda5 /mnt
mint@mint ~ $ sudo mount --bind /dev /mnt/dev/
mint@mint ~ $ sudo mount --bind /sys /mnt/sys
mint@mint ~ $ sudo mount --bind /proc /mnt/proc
mint@mint ~ $ sudo chroot /mntmint / 
# sudo grub-install /dev/sda
sudo: unable to resolve host mint
Searching for GRUB installation directory ... found: /boot/grub
The file /boot/grub/stage1 not read correctly.
mint / # sudo update-grub2
sudo: unable to resolve host mint
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.8.0-35-generic
Found initrd image: /boot/initrd.img-3.8.0-35-generic
Found linux image: /boot/vmlinuz-3.8.0-27-generic
Found initrd image: /boot/initrd.img-3.8.0-27-generic
Found linux image: /boot/vmlinuz-3.8.0-19-generic
Found initrd image: /boot/initrd.img-3.8.0-19-generic
  No volume groups found
grub-probe: error: cannot find a GRUB drive for /dev/sdf1.  Check your device.map.
Found Windows Recovery Environment (loader) on /dev/sda7
Adding boot menu entry for EFI firmware configuration
done
Those vmlinuz files come from a previous Ubuntu installation

Now I post this (I am in live session) and try to reboot..
aless80
Level 2
Level 2
Posts: 83
Joined: Wed Nov 28, 2012 5:20 am

Re: Grub lost after windows 8.1 update

Post by aless80 »

I run the recommended repair of boot-repair in linux live and got the errors below. When I reboot and press Esc/F9 I see a new "linuxmint" booting option which does not work, and rEFInd does not work anymore. LUckily I can boot to windows with rEFInd cd. I am going to repeat the steps in the command prompt as done above.

Code: Select all

mint@mint ~ $ sudo chroot "/mnt/boot-sav/sda5" dpkg --configure -a
Setting up samba4 (4.0.0+dfsg1-1ubuntu1) ...
ERROR(<type 'exceptions.ValueError'>): uncaught exception - unable to parse dn string
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 175, in _run
    return self.run(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/dbcheck.py", line 108, in run
    fix=fix, yes=yes, quiet=quiet, in_transaction=started_transaction)
  File "/usr/lib/python2.7/dist-packages/samba/dbchecker.py", line 56, in __init__
    self.infrastructure_dn = ldb.Dn(samdb, "CN=Infrastructure," + samdb.domain_dn())
dpkg: error processing samba4 (--configure):
 subprocess installed post-installation script returned error exit status 255
Errors were encountered while processing:
 samba4
mint@mint ~ $ sudo chroot "/mnt/boot-sav/sda5" apt-get install -fy
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libgoocanvas-common libgoocanvas3 libmlt++3 libmlt-data libmlt5 libwebcam0
  linux-headers-3.8.0-27 linux-headers-3.8.0-27-generic
  linux-image-3.8.0-27-generic linux-image-extra-3.8.0-27-generic melt
  openshot-doc python-mlt5 python-pygoocanvas uvcdynctrl uvcdynctrl-data
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up samba4 (4.0.0+dfsg1-1ubuntu1) ...
ERROR(<type 'exceptions.ValueError'>): uncaught exception - unable to parse dn string
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 175, in _run
    return self.run(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/dbcheck.py", line 108, in run
    fix=fix, yes=yes, quiet=quiet, in_transaction=started_transaction)
  File "/usr/lib/python2.7/dist-packages/samba/dbchecker.py", line 56, in __init__
    self.infrastructure_dn = ldb.Dn(samdb, "CN=Infrastructure," + samdb.domain_dn())
dpkg: error processing samba4 (--configure):
 subprocess installed post-installation script returned error exit status 255
Errors were encountered while processing:
 samba4
E: Sub-process /usr/bin/dpkg returned an error code (1)
mint@mint ~ $ sudo chroot "/mnt/boot-sav/sda5" apt-get purge -y --force-yes grub* shim-signed linux-signed*
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'grub-legacy-ec2' for regex 'grub*'
Note, selecting 'grub-legacy-doc' for regex 'grub*'
Note, selecting 'grub-efi-amd64' for regex 'grub*'
Note, selecting 'libgruff-ruby-doc' for regex 'grub*'
Note, selecting 'grub-ieee1275' for regex 'grub*'
Note, selecting 'grub-imageboot' for regex 'grub*'
Note, selecting 'ruby-gruff' for regex 'grub*'
Note, selecting 'grub-yeeloong' for regex 'grub*'
Note, selecting 'grub2' for regex 'grub*'
Note, selecting 'grub-invaders' for regex 'grub*'
Note, selecting 'grub-coreboot' for regex 'grub*'
Note, selecting 'grub-disk' for regex 'grub*'
Note, selecting 'fgrun' for regex 'grub*'
Note, selecting 'libgruff-ruby1.8' for regex 'grub*'
Note, selecting 'grub-coreboot-bin' for regex 'grub*'
Note, selecting 'grub-coreboot-dbg' for regex 'grub*'
Note, selecting 'grub-theme-starfield' for regex 'grub*'
Note, selecting 'grub-pc' for regex 'grub*'
Note, selecting 'grub-splashimages' for regex 'grub*'
Note, selecting 'libgruff-ruby' for regex 'grub*'
Note, selecting 'kde-config-grub2' for regex 'grub*'
Note, selecting 'grub-gfxpayload-lists' for regex 'grub*'
Note, selecting 'grub-ieee1275-bin' for regex 'grub*'
Note, selecting 'grub-linuxbios' for regex 'grub*'
Note, selecting 'grub-ieee1275-dbg' for regex 'grub*'
Note, selecting 'grub-ipxe' for regex 'grub*'
Note, selecting 'grub-efi-ia32' for regex 'grub*'
Note, selecting 'grub-rescue-pc' for regex 'grub*'
Note, selecting 'grub-efi-ia64' for regex 'grub*'
Note, selecting 'wmlongrun' for regex 'grub*'
Note, selecting 'grub-emu-dbg' for regex 'grub*'
Note, selecting 'grub-pc-bin' for regex 'grub*'
Note, selecting 'grub-pc-dbg' for regex 'grub*'
Note, selecting 'libgruel3.6.1' for regex 'grub*'
Note, selecting 'grub-legacy' for regex 'grub*'
Note, selecting 'congruity' for regex 'grub*'
Note, selecting 'grub-efi-amd64-bin' for regex 'grub*'
Note, selecting 'sabily-grub-artwork' for regex 'grub*'
Note, selecting 'grub-efi-amd64-dbg' for regex 'grub*'
Note, selecting 'grub' for regex 'grub*'
Note, selecting 'grun' for regex 'grub*'
Note, selecting 'grub-efi' for regex 'grub*'
Note, selecting 'grub-doc' for regex 'grub*'
Note, selecting 'grub-emu' for regex 'grub*'
Note, selecting 'espresso-grub' for regex 'grub*'
Note, selecting 'grub-common' for regex 'grub*'
Note, selecting 'grub-efi-ia32-bin' for regex 'grub*'
Note, selecting 'grub2-common' for regex 'grub*'
Note, selecting 'grub-efi-ia32-dbg' for regex 'grub*'
Note, selecting 'grub-firmware-qemu' for regex 'grub*'
Note, selecting 'grub2-theme-mint' for regex 'grub*'
Note, selecting 'grub-efi-amd64-signed' for regex 'grub*'
Note, selecting 'grub2-splashimages' for regex 'grub*'
Package 'grub-legacy' is not installed, so not removed
Package 'espresso-grub' is not installed, so not removed
Package 'grub-efi-ia64' is not installed, so not removed
Package 'grub-yeeloong' is not installed, so not removed
Note, selecting 'linux-signed-image-3.8.0-23-generic' for regex 'linux-signed*'
Note, selecting 'linux-signed-image-3.8.0-31-generic' for regex 'linux-signed*'
Note, selecting 'linux-signed-image-3.8.0-26-generic' for regex 'linux-signed*'
Note, selecting 'linux-signed-image-3.8.0-34-generic' for regex 'linux-signed*'
Note, selecting 'linux-signed-image-3.8.0-29-generic' for regex 'linux-signed*'
Note, selecting 'linux-signed-image-3.8.0-21-generic' for regex 'linux-signed*'
Note, selecting 'linux-signed-generic' for regex 'linux-signed*'
Note, selecting 'linux-signed-image-3.8.0-19-generic' for regex 'linux-signed*'
Note, selecting 'linux-signed-image-3.8.0-32-generic' for regex 'linux-signed*'
Note, selecting 'linux-signed-image-3.8.0-27-generic' for regex 'linux-signed*'
Note, selecting 'linux-signed-image-3.8.0-35-generic' for regex 'linux-signed*'
Note, selecting 'linux-signed-image-3.8.0-22-generic' for regex 'linux-signed*'
Note, selecting 'efilinux-signed' for regex 'linux-signed*'
Note, selecting 'linux-signed-image-3.8.0-30-generic' for regex 'linux-signed*'
Note, selecting 'linux-signed-image-3.8.0-25-generic' for regex 'linux-signed*'
Note, selecting 'linux-signed-image-generic' for regex 'linux-signed*'
Note, selecting 'linux-signed-image-3.8.0-33-generic' for regex 'linux-signed*'
Package 'grub-efi' is not installed, so not removed
Package 'grub-efi-amd64-signed' is not installed, so not removed
Package 'grub-doc' is not installed, so not removed
Package 'grub-efi-amd64-dbg' is not installed, so not removed
Package 'grub-efi-ia32' is not installed, so not removed
Package 'grub-efi-ia32-bin' is not installed, so not removed
Package 'grub-efi-ia32-dbg' is not installed, so not removed
Package 'grub-gfxpayload-lists' is not installed, so not removed
Package 'grub-legacy-doc' is not installed, so not removed
Package 'grub-pc' is not installed, so not removed
Package 'grub-pc-bin' is not installed, so not removed
Package 'grub-pc-dbg' is not installed, so not removed
Package 'congruity' is not installed, so not removed
Package 'efilinux-signed' is not installed, so not removed
Package 'fgrun' is not installed, so not removed
Package 'grub-coreboot' is not installed, so not removed
Package 'grub-coreboot-bin' is not installed, so not removed
Package 'grub-coreboot-dbg' is not installed, so not removed
Package 'grub-disk' is not installed, so not removed
Package 'grub-emu' is not installed, so not removed
Package 'grub-emu-dbg' is not installed, so not removed
Package 'grub-firmware-qemu' is not installed, so not removed
Package 'grub-ieee1275' is not installed, so not removed
Package 'grub-ieee1275-bin' is not installed, so not removed
Package 'grub-ieee1275-dbg' is not installed, so not removed
Package 'grub-imageboot' is not installed, so not removed
Package 'grub-invaders' is not installed, so not removed
Package 'grub-ipxe' is not installed, so not removed
Package 'grub-linuxbios' is not installed, so not removed
Package 'grub-rescue-pc' is not installed, so not removed
Package 'grub-splashimages' is not installed, so not removed
Package 'grub-theme-starfield' is not installed, so not removed
Package 'grub2' is not installed, so not removed
Package 'grub2-splashimages' is not installed, so not removed
Package 'grun' is not installed, so not removed
Package 'kde-config-grub2' is not installed, so not removed
Package 'libgruel3.6.1' is not installed, so not removed
Package 'libgruff-ruby' is not installed, so not removed
Package 'libgruff-ruby-doc' is not installed, so not removed
Package 'libgruff-ruby1.8' is not installed, so not removed
Package 'ruby-gruff' is not installed, so not removed
Package 'sabily-grub-artwork' is not installed, so not removed
Package 'wmlongrun' is not installed, so not removed
Package 'grub-legacy-ec2' is not installed, so not removed
Package 'linux-signed-generic' is not installed, so not removed
Package 'linux-signed-image-3.8.0-19-generic' is not installed, so not removed
Package 'linux-signed-image-3.8.0-21-generic' is not installed, so not removed
Package 'linux-signed-image-3.8.0-22-generic' is not installed, so not removed
Package 'linux-signed-image-3.8.0-23-generic' is not installed, so not removed
Package 'linux-signed-image-3.8.0-25-generic' is not installed, so not removed
Package 'linux-signed-image-3.8.0-26-generic' is not installed, so not removed
Package 'linux-signed-image-3.8.0-27-generic' is not installed, so not removed
Package 'linux-signed-image-3.8.0-29-generic' is not installed, so not removed
Package 'linux-signed-image-3.8.0-30-generic' is not installed, so not removed
Package 'linux-signed-image-3.8.0-31-generic' is not installed, so not removed
Package 'linux-signed-image-3.8.0-32-generic' is not installed, so not removed
Package 'linux-signed-image-3.8.0-33-generic' is not installed, so not removed
Package 'linux-signed-image-3.8.0-34-generic' is not installed, so not removed
Package 'linux-signed-image-3.8.0-35-generic' is not installed, so not removed
Package 'linux-signed-image-generic' is not installed, so not removed
Package 'shim-signed' is not installed, so not removed
The following packages were automatically installed and are no longer required:
  libgoocanvas-common libgoocanvas3 libmlt++3 libmlt-data libmlt5 libwebcam0
  linux-headers-3.8.0-27 linux-headers-3.8.0-27-generic
  linux-image-3.8.0-27-generic linux-image-extra-3.8.0-27-generic melt
  openshot-doc python-mlt5 python-pygoocanvas uvcdynctrl uvcdynctrl-data
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  grub* grub-common* grub-efi-amd64* grub-efi-amd64-bin* grub2-common*
  grub2-theme-mint* mint-meta-core*
0 upgraded, 0 newly installed, 7 to remove and 3 not upgraded.
1 not fully installed or removed.
After this operation, 8,108 kB disk space will be freed.
(Reading database ... 376455 files and directories currently installed.)
Removing grub ...
Purging configuration files for grub ...
Removing grub2-common ...
Removing grub-efi-amd64-bin ...
Removing grub-common ...
Purging configuration files for grub-common ...
Removing grub-efi-amd64 ...
Purging configuration files for grub-efi-amd64 ...
Removing mint-meta-core ...
Removing grub2-theme-mint ...
Purging configuration files for grub2-theme-mint ...
dpkg: warning: while removing grub2-theme-mint, directory '/boot/grub' not empty so not removed
Processing triggers for man-db ...
Processing triggers for install-info ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Setting up samba4 (4.0.0+dfsg1-1ubuntu1) ...
ERROR(<type 'exceptions.ValueError'>): uncaught exception - unable to parse dn string
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 175, in _run
    return self.run(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/dbcheck.py", line 108, in run
    fix=fix, yes=yes, quiet=quiet, in_transaction=started_transaction)
  File "/usr/lib/python2.7/dist-packages/samba/dbchecker.py", line 56, in __init__
    self.infrastructure_dn = ldb.Dn(samdb, "CN=Infrastructure," + samdb.domain_dn())
dpkg: error processing samba4 (--configure):
 subprocess installed post-installation script returned error exit status 255
Errors were encountered while processing:
 samba4
E: Sub-process /usr/bin/dpkg returned an error code (1)
mint@mint ~ $ sudo chroot "/mnt/boot-sav/sda5" apt-get install -y --force-yes grub-efi-amd64-signed shim-signed linux-signed-generic
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libgoocanvas-common libgoocanvas3 libmlt++3 libmlt-data libmlt5 libwebcam0
  linux-headers-3.8.0-27 linux-headers-3.8.0-27-generic
  linux-image-3.8.0-27-generic linux-image-extra-3.8.0-27-generic melt
  openshot-doc python-mlt5 python-pygoocanvas uvcdynctrl uvcdynctrl-data
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  grub-common grub-efi-amd64 grub-efi-amd64-bin grub2-common
  linux-signed-image-3.8.0-35-generic linux-signed-image-generic
Suggested packages:
  multiboot-doc grub-emu xorriso desktop-base
The following NEW packages will be installed:
  grub-common grub-efi-amd64 grub-efi-amd64-bin grub-efi-amd64-signed
  grub2-common linux-signed-generic linux-signed-image-3.8.0-35-generic
  linux-signed-image-generic shim-signed
0 upgraded, 9 newly installed, 0 to remove and 3 not upgraded.
1 not fully installed or removed.
Need to get 0 B/2,979 kB of archives.
After this operation, 11.6 MB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously unselected package grub-common.
(Reading database ... 376135 files and directories currently installed.)
Unpacking grub-common (from .../grub-common_2.00-13ubuntu3_amd64.deb) ...
Selecting previously unselected package grub2-common.
Unpacking grub2-common (from .../grub2-common_2.00-13ubuntu3_amd64.deb) ...
Selecting previously unselected package grub-efi-amd64-bin.
Unpacking grub-efi-amd64-bin (from .../grub-efi-amd64-bin_2.00-13ubuntu3_amd64.deb) ...
Selecting previously unselected package grub-efi-amd64.
Unpacking grub-efi-amd64 (from .../grub-efi-amd64_2.00-13ubuntu3_amd64.deb) ...
Selecting previously unselected package grub-efi-amd64-signed.
Unpacking grub-efi-amd64-signed (from .../grub-efi-amd64-signed_1.11+2.00-12ubuntu1_amd64.deb) ...
Selecting previously unselected package linux-signed-image-3.8.0-35-generic.
Unpacking linux-signed-image-3.8.0-35-generic (from .../linux-signed-image-3.8.0-35-generic_3.8.0-35.50_amd64.deb) ...
Selecting previously unselected package linux-signed-image-generic.
Unpacking linux-signed-image-generic (from .../linux-signed-image-generic_3.8.0.35.53_amd64.deb) ...
Selecting previously unselected package linux-signed-generic.
Unpacking linux-signed-generic (from .../linux-signed-generic_3.8.0.35.53_amd64.deb) ...
Selecting previously unselected package shim-signed.
Unpacking shim-signed (from .../shim-signed_1.5~13.04.1+0.4-0ubuntu4_amd64.deb) ...
Processing triggers for ureadahead ...
Processing triggers for man-db ...
Processing triggers for install-info ...
Setting up samba4 (4.0.0+dfsg1-1ubuntu1) ...
ERROR(<type 'exceptions.ValueError'>): uncaught exception - unable to parse dn string
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 175, in _run
    return self.run(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/dbcheck.py", line 108, in run
    fix=fix, yes=yes, quiet=quiet, in_transaction=started_transaction)
  File "/usr/lib/python2.7/dist-packages/samba/dbchecker.py", line 56, in __init__
    self.infrastructure_dn = ldb.Dn(samdb, "CN=Infrastructure," + samdb.domain_dn())
dpkg: error processing samba4 (--configure):
 subprocess installed post-installation script returned error exit status 255
Setting up grub-common (2.00-13ubuntu3) ...
Setting up linux-signed-image-3.8.0-35-generic (3.8.0-35.50) ...
warning: file-aligned section .text extends beyond end of file
warning: checksum areas are greater than image size. Invalid section table?
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.8.0-35-generic
Found initrd image: /boot/initrd.img-3.8.0-35-generic
Found linux image: /boot/vmlinuz-3.8.0-27-generic
Found initrd image: /boot/initrd.img-3.8.0-27-generic
Found linux image: /boot/vmlinuz-3.8.0-19-generic
Found initrd image: /boot/initrd.img-3.8.0-19-generic
  No volume groups found
grub-probe: error: cannot find a GRUB drive for /dev/sdf1.  Check your device.map.
Adding boot menu entry for EFI firmware configuration
done
Setting up linux-signed-image-generic (3.8.0.35.53) ...
Setting up linux-signed-generic (3.8.0.35.53) ...
Processing triggers for ureadahead ...
Setting up grub-efi-amd64-bin (2.00-13ubuntu3) ...
Setting up shim-signed (1.5~13.04.1+0.4-0ubuntu4) ...
Setting up grub2-common (2.00-13ubuntu3) ...
Setting up grub-efi-amd64 (2.00-13ubuntu3) ...

Creating config file /etc/default/grub with new version
BootCurrent: 0004
Timeout: 0 seconds
BootOrder: 0003,0008,0004,0002,0001,0009,0006,0007,0000,0005
Boot0000  ubuntu
Boot0001* USB Floppy/CD
Boot0002* USB Hard Drive
Boot0004* rEFInd Boot Manager
Boot0005* 'rEFInd
Boot0006* USB Floppy/CD
Boot0007* Hard Drive
Boot0008* ATAPI CD-ROM Drive
Boot0009* CD/DVD Drive 
Boot0003* linuxmint
Installation finished. No error reported.
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.8.0-35-generic
Found initrd image: /boot/initrd.img-3.8.0-35-generic
Found linux image: /boot/vmlinuz-3.8.0-27-generic
Found initrd image: /boot/initrd.img-3.8.0-27-generic
Found linux image: /boot/vmlinuz-3.8.0-19-generic
Found initrd image: /boot/initrd.img-3.8.0-19-generic
  No volume groups found
grub-probe: error: cannot find a GRUB drive for /dev/sdf1.  Check your device.map.
Adding boot menu entry for EFI firmware configuration
done
Setting up grub-efi-amd64-signed (1.11+2.00-12ubuntu1) ...
BootCurrent: 0004
Timeout: 0 seconds
BootOrder: 0008,0004,0002,0001,0009,0006,0007,0000,0005
Boot0000  ubuntu
Boot0001* USB Floppy/CD
Boot0002* USB Hard Drive
Boot0004* rEFInd Boot Manager
Boot0005* 'rEFInd
Boot0006* USB Floppy/CD
Boot0007* Hard Drive
Boot0008* ATAPI CD-ROM Drive
Boot0009* CD/DVD Drive 
BootCurrent: 0004
Timeout: 0 seconds
BootOrder: 0003,0008,0004,0002,0001,0009,0006,0007,0000,0005
Boot0000  ubuntu
Boot0001* USB Floppy/CD
Boot0002* USB Hard Drive
Boot0004* rEFInd Boot Manager
Boot0005* 'rEFInd
Boot0006* USB Floppy/CD
Boot0007* Hard Drive
Boot0008* ATAPI CD-ROM Drive
Boot0009* CD/DVD Drive 
Boot0003* linuxmint
Installation finished. No error reported.
Errors were encountered while processing:
 samba4
E: Sub-process /usr/bin/dpkg returned an error code (1)
mint@mint ~ $ 

Code: Select all

An error occurred during the repair.

Please write on a paper the following URL:
http://paste2.org/ALtXtmIy

In case you still experience boot problem, indicate this URL to:
boot.repair@gmail.com 

You can now reboot your computer.
Please do not forget to make your BIOS boot on sda2/EFI/linuxmint/shimx64.efi file!

You may want to retry after activating the [Backup and rename Windows EFI files] option.
srs5694
Level 6
Level 6
Posts: 1386
Joined: Mon Feb 27, 2012 1:42 pm

Re: Grub lost after windows 8.1 update

Post by srs5694 »

First, when running dosfsck in Linux, you should include the "-a" option. (You omitted it from your command.)

Second, if you want to continue using rEFInd as your boot manager, installing GRUB is probably not what you should be doing. Note also that Boot Repair installs GRUB, and may do so quite aggressively, replacing the Windows boot loader with another copy of GRUB.

I recommend you concentrate on figuring out why rEFInd is not presenting your Mint kernels. Can you find those kernels from the emergency disc that you're presumably using? If so, where are they? On what type of filesystem (ext4fs, Btrfs, etc.)? Do you have rEFInd drivers for that filesystem? Can you launch an EFI shell from rEFInd, and if so, can you find your kernels using it? Have you uncommented the "scan_all_linux" option in refind.conf? Some of these possible problems will affect GRUB, too, and automated tools won't be able to fix them, so figuring out what's going on yourself may be necessary no matter what type of solution you adopt.
aless80
Level 2
Level 2
Posts: 83
Joined: Wed Nov 28, 2012 5:20 am

Re: Grub lost after windows 8.1 update

Post by aless80 »

Hi,
Now I understand why boot-repair messes up my dual boot.
I decided to re-install Linux Mint over the old one, so now I have a clean dual boot. Thanks to everybody.
Regards
Locked

Return to “Installation & Boot”