Showing posts with label MBR. Show all posts
Showing posts with label MBR. Show all posts

Saturday, January 30, 2016

Windows 10 MBR recovery

Well, after dual boot with GRUB, if the corresponding Linux partition is deleted, the windows MBR must be recovered in order to boot up.


1. get Microsoft media creation tool
2. create a installation USB
3. boot from USB UEFI
4. choose recovery / advanced option
5. In the cmd, type "bootsect /nt60 <drive_letter>: /mbr
6. exit cmd
7. reboot


Thursday, December 3, 2015

grub.cfg windows entry

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows 8 (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-A8A8863CA88608D0' {
 insmod part_msdos
 insmod ntfs
 set root='hd0,msdos1'
 if [ x$feature_platform_search_hint = xy ]; then
   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  A8A8863CA88608D0
 else
   search --no-floppy --fs-uuid --set=root A8A8863CA88608D0
 fi
 parttool ${root} hidden-
 drivemap -s (hd0) ${root}
 chainloader +1
}
menuentry 'Windows Recovery Environment (loader) (on /dev/sdb3)' --class windows --class os $menuentry_id_option 'osprober-chain-1ACA-FBDA' {
 insmod part_gpt
 insmod fat
 set root='hd1,gpt3'
 if [ x$feature_platform_search_hint = xy ]; then
   search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt3 --hint-efi=hd1,gpt3 --hint-baremetal=ahci1,gpt3  1ACA-FBDA
 else
   search --no-floppy --fs-uuid --set=root 1ACA-FBDA
 fi
 drivemap -s (hd0) ${root}
 chainloader +1
}
menuentry 'Windows 8 (loader) (on /dev/sdb5)' --class windows --class os $menuentry_id_option 'osprober-chain-6A18CDFA18CDC573' {
 insmod part_gpt
 insmod ntfs
 set root='hd1,gpt5'
 if [ x$feature_platform_search_hint = xy ]; then
   search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt5 --hint-efi=hd1,gpt5 --hint-baremetal=ahci1,gpt5  6A18CDFA18CDC573
 else
   search --no-floppy --fs-uuid --set=root 6A18CDFA18CDC573
 fi
 drivemap -s (hd0) ${root}
 chainloader +1
}