How to start a windows partition from the Grub command line
up vote
11
down vote
favorite
I have Windows 10 HOME installed on my system. After I installed Windows 10 HOME, I installed Ubuntu 14.04 LTS on a separate partition so that I could dual boot.
I removed Ubuntu 14.04 LTS by deleting the partition it was installed on. Now I am unable to start my system. At boot, my system stops at the Grub command line.
I want to boot to my Windows 10 installation which I haven't removed from my system.
This is displayed at startup:
GNU GRUB version 2.02 beta2-9ubuntu1.3 <br>
minimal BASH-like editing is supported.for the first word, TAB lists
possible commands completions.anywhere else TAB lists the possible device or file completion.
grub>
How can I boot my Windows partition from this grub command?
linux grub
add a comment |
up vote
11
down vote
favorite
I have Windows 10 HOME installed on my system. After I installed Windows 10 HOME, I installed Ubuntu 14.04 LTS on a separate partition so that I could dual boot.
I removed Ubuntu 14.04 LTS by deleting the partition it was installed on. Now I am unable to start my system. At boot, my system stops at the Grub command line.
I want to boot to my Windows 10 installation which I haven't removed from my system.
This is displayed at startup:
GNU GRUB version 2.02 beta2-9ubuntu1.3 <br>
minimal BASH-like editing is supported.for the first word, TAB lists
possible commands completions.anywhere else TAB lists the possible device or file completion.
grub>
How can I boot my Windows partition from this grub command?
linux grub
add a comment |
up vote
11
down vote
favorite
up vote
11
down vote
favorite
I have Windows 10 HOME installed on my system. After I installed Windows 10 HOME, I installed Ubuntu 14.04 LTS on a separate partition so that I could dual boot.
I removed Ubuntu 14.04 LTS by deleting the partition it was installed on. Now I am unable to start my system. At boot, my system stops at the Grub command line.
I want to boot to my Windows 10 installation which I haven't removed from my system.
This is displayed at startup:
GNU GRUB version 2.02 beta2-9ubuntu1.3 <br>
minimal BASH-like editing is supported.for the first word, TAB lists
possible commands completions.anywhere else TAB lists the possible device or file completion.
grub>
How can I boot my Windows partition from this grub command?
linux grub
I have Windows 10 HOME installed on my system. After I installed Windows 10 HOME, I installed Ubuntu 14.04 LTS on a separate partition so that I could dual boot.
I removed Ubuntu 14.04 LTS by deleting the partition it was installed on. Now I am unable to start my system. At boot, my system stops at the Grub command line.
I want to boot to my Windows 10 installation which I haven't removed from my system.
This is displayed at startup:
GNU GRUB version 2.02 beta2-9ubuntu1.3 <br>
minimal BASH-like editing is supported.for the first word, TAB lists
possible commands completions.anywhere else TAB lists the possible device or file completion.
grub>
How can I boot my Windows partition from this grub command?
linux grub
linux grub
edited Jan 1 at 22:26
roaima
42.4k551116
42.4k551116
asked Feb 1 '16 at 13:01
ANKIT SAINI
56113
56113
add a comment |
add a comment |
10 Answers
10
active
oldest
votes
up vote
13
down vote
Just enter the command 'exit' (without the quotes of course). It should take you to another menu that makes you select the Windows bootloader.
Worked on Lenovo Y50
Worked well on HP i5 7th Gen with Win10 after formatting the Ubuntu partition.
– Elshan
Jan 18 at 18:16
Glad it helped! @Elshan
– adonayresom
Jan 24 at 22:02
Worked in Lenovo ThinkPad, never expected it will work
– Renjith
Apr 29 at 3:53
add a comment |
up vote
5
down vote
To boot to Windows, if Windows is installed on first drive/partition, enter in grub
command line:
insmod chain
insmod ntfs
set root=(hd0,1)
chainloader +1
see https://www.gnu.org/software/grub/manual/html_node/Chain_002dloading.html#Chain_002dloading for more details.
3
This worked for me. For completeness: you need to give the command "boot" after typing the above.
– Tyr
Jan 12 '17 at 10:45
This applies only if the Windows system disk is using MBR partitioning. For the GPT equivalent, see this answer by @79E09796
– telcoM
2 days ago
add a comment |
up vote
5
down vote
The following worked for me with a GPT partitioned disk.
insmod part_gpt
insmod chain
set root=(hd0,gpt1)
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
boot
Note that you can enter a command line from the grub boot menu and just type commands as above to test out different combinations.
You need to enter the id of the EFI boot partition (not the windows partition) for the set root=
command.
In the command line grub mode ls
will list the hard drive partitions, help
lists available commands.
Once you have set the root correctly you can ls /
to view files and directories to find the correct path to the windows boot manager if it is not in the default location.
add a comment |
up vote
3
down vote
Guesing you have an UEFI device, the windows bootloader is still installed. You can select it back in UEFI setup menu under boot, where you will prbably have two options (GRUB and the old default as the second), delete the first one or switch the order.
Thank you. This was the easiest way and saved me a headache.
– Astrobleme
Mar 12 '17 at 22:07
add a comment |
up vote
0
down vote
Boot from DVD win 10
Open command line and type:
diskpart
select disk 0
list volume
check bootsect.exe
For example E
is the DVD
E:
cd boot
dir
if bootsect.exe
exist type the following command :
bootsect /nt60 SYS /mbr
or bootsect /nt60 your-drive-letter: /mbr
example bootsect /nt60 C: /mbr
Reboot
add a comment |
up vote
0
down vote
I recently bumped into the same problem. (i.e. originally have a a separate partition with Ubuntu installed, dual bootable from a grub menu. I then deleted that Ubuntu partition from Windows disk management, and when I rebooted, just the grub command menu).
What I did to get back to my Windows 10:
- Do a
Ctrl
+Alt
+Delete
to reboot. While rebooting, hold down theshift
button. - My PC then give me to option to press
F12
for boot option. I clickedF12
, and it gives me back a menu with Windows boot manager on it. - I selected the Windows boot manager and click enter. I'm now back to Windows 10.
add a comment |
up vote
0
down vote
This worked for me, now I have to find a way to permanently fix the mbr.
I recently bumped into the same problem. (i.e. originally have a a separate partition with Ubuntu installed, dual bootable from a grub menu. I then deleted that Ubuntu partition from Windows disk management, and when I rebooted, just the grub command menu).
What I did to get back to my Windows 10:
Do a Ctrl+Alt+Delete to reboot. While rebooting, hold down the shift button.
My PC then give me to option to press F12 for boot option. I clicked F12, and it gives me back a menu with Windows boot manager on it.
I selected the Windows boot manager and click enter. I'm now back to Windows 10.
add a comment |
up vote
0
down vote
This answer is for those with UEFI who have deleted the Ubuntu partitions before removing grub
You will be doing this from Windows 10. No bootable media required.
Where
bootrec /fixmbr
,bootsect /nt60
and the Ubuntu live with theboot-repair
suggestions have failed, this has worked for me:
(This answer borrowed verbatim from here)
- Run a
cmd.exe
process with administrator privileges
- Run
diskpart
- Type:
list disk
thensel disk X
where X is the drive your boot files reside on
- Type
list vol
to see all partitions (volumes) on the disk
- Select the EFI volume by typing:
sel vol Y
where Y is theSYSTEM
volume (this is almost always the EFI partition)
- For convenience, assign a drive letter by typing:
assign letter=Z:
where Z is a free (unused) drive letter
- Type
exit
to leave disk part
- While still in the
cmd
prompt, type:Z:
and hit enter, where Z was the drive letter you just created.
- Type
dir
to list directories on this mounted EFI partition
- If you are in the right place, you should see a directory called
EFI
- Type
cd EFI
and thendir
to list the child directories insideEFI
- Type
rmdir /S ubuntu
to delete the ubuntu boot directory
Assuming you only ever had two operating systems (Win 10 & Ubuntu) you should now be able to boot directly to Windows without hitting the black grub screen.
Copied from https://askubuntu.com/questions/429610/uninstall-grub-and-use-windows-bootloader
add a comment |
up vote
0
down vote
Just exit the grub by typing exit and go to bios setup and restore to default settings and restart the computer.
New contributor
add a comment |
up vote
-1
down vote
Try this:
rootnoverify (hd0,0)
chainloader +1
makeactive
boot
add a comment |
10 Answers
10
active
oldest
votes
10 Answers
10
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
13
down vote
Just enter the command 'exit' (without the quotes of course). It should take you to another menu that makes you select the Windows bootloader.
Worked on Lenovo Y50
Worked well on HP i5 7th Gen with Win10 after formatting the Ubuntu partition.
– Elshan
Jan 18 at 18:16
Glad it helped! @Elshan
– adonayresom
Jan 24 at 22:02
Worked in Lenovo ThinkPad, never expected it will work
– Renjith
Apr 29 at 3:53
add a comment |
up vote
13
down vote
Just enter the command 'exit' (without the quotes of course). It should take you to another menu that makes you select the Windows bootloader.
Worked on Lenovo Y50
Worked well on HP i5 7th Gen with Win10 after formatting the Ubuntu partition.
– Elshan
Jan 18 at 18:16
Glad it helped! @Elshan
– adonayresom
Jan 24 at 22:02
Worked in Lenovo ThinkPad, never expected it will work
– Renjith
Apr 29 at 3:53
add a comment |
up vote
13
down vote
up vote
13
down vote
Just enter the command 'exit' (without the quotes of course). It should take you to another menu that makes you select the Windows bootloader.
Worked on Lenovo Y50
Just enter the command 'exit' (without the quotes of course). It should take you to another menu that makes you select the Windows bootloader.
Worked on Lenovo Y50
edited Jan 1 at 21:14
answered Nov 7 '17 at 18:44
adonayresom
13115
13115
Worked well on HP i5 7th Gen with Win10 after formatting the Ubuntu partition.
– Elshan
Jan 18 at 18:16
Glad it helped! @Elshan
– adonayresom
Jan 24 at 22:02
Worked in Lenovo ThinkPad, never expected it will work
– Renjith
Apr 29 at 3:53
add a comment |
Worked well on HP i5 7th Gen with Win10 after formatting the Ubuntu partition.
– Elshan
Jan 18 at 18:16
Glad it helped! @Elshan
– adonayresom
Jan 24 at 22:02
Worked in Lenovo ThinkPad, never expected it will work
– Renjith
Apr 29 at 3:53
Worked well on HP i5 7th Gen with Win10 after formatting the Ubuntu partition.
– Elshan
Jan 18 at 18:16
Worked well on HP i5 7th Gen with Win10 after formatting the Ubuntu partition.
– Elshan
Jan 18 at 18:16
Glad it helped! @Elshan
– adonayresom
Jan 24 at 22:02
Glad it helped! @Elshan
– adonayresom
Jan 24 at 22:02
Worked in Lenovo ThinkPad, never expected it will work
– Renjith
Apr 29 at 3:53
Worked in Lenovo ThinkPad, never expected it will work
– Renjith
Apr 29 at 3:53
add a comment |
up vote
5
down vote
To boot to Windows, if Windows is installed on first drive/partition, enter in grub
command line:
insmod chain
insmod ntfs
set root=(hd0,1)
chainloader +1
see https://www.gnu.org/software/grub/manual/html_node/Chain_002dloading.html#Chain_002dloading for more details.
3
This worked for me. For completeness: you need to give the command "boot" after typing the above.
– Tyr
Jan 12 '17 at 10:45
This applies only if the Windows system disk is using MBR partitioning. For the GPT equivalent, see this answer by @79E09796
– telcoM
2 days ago
add a comment |
up vote
5
down vote
To boot to Windows, if Windows is installed on first drive/partition, enter in grub
command line:
insmod chain
insmod ntfs
set root=(hd0,1)
chainloader +1
see https://www.gnu.org/software/grub/manual/html_node/Chain_002dloading.html#Chain_002dloading for more details.
3
This worked for me. For completeness: you need to give the command "boot" after typing the above.
– Tyr
Jan 12 '17 at 10:45
This applies only if the Windows system disk is using MBR partitioning. For the GPT equivalent, see this answer by @79E09796
– telcoM
2 days ago
add a comment |
up vote
5
down vote
up vote
5
down vote
To boot to Windows, if Windows is installed on first drive/partition, enter in grub
command line:
insmod chain
insmod ntfs
set root=(hd0,1)
chainloader +1
see https://www.gnu.org/software/grub/manual/html_node/Chain_002dloading.html#Chain_002dloading for more details.
To boot to Windows, if Windows is installed on first drive/partition, enter in grub
command line:
insmod chain
insmod ntfs
set root=(hd0,1)
chainloader +1
see https://www.gnu.org/software/grub/manual/html_node/Chain_002dloading.html#Chain_002dloading for more details.
answered Feb 1 '16 at 13:21
purplepsycho
1,89311318
1,89311318
3
This worked for me. For completeness: you need to give the command "boot" after typing the above.
– Tyr
Jan 12 '17 at 10:45
This applies only if the Windows system disk is using MBR partitioning. For the GPT equivalent, see this answer by @79E09796
– telcoM
2 days ago
add a comment |
3
This worked for me. For completeness: you need to give the command "boot" after typing the above.
– Tyr
Jan 12 '17 at 10:45
This applies only if the Windows system disk is using MBR partitioning. For the GPT equivalent, see this answer by @79E09796
– telcoM
2 days ago
3
3
This worked for me. For completeness: you need to give the command "boot" after typing the above.
– Tyr
Jan 12 '17 at 10:45
This worked for me. For completeness: you need to give the command "boot" after typing the above.
– Tyr
Jan 12 '17 at 10:45
This applies only if the Windows system disk is using MBR partitioning. For the GPT equivalent, see this answer by @79E09796
– telcoM
2 days ago
This applies only if the Windows system disk is using MBR partitioning. For the GPT equivalent, see this answer by @79E09796
– telcoM
2 days ago
add a comment |
up vote
5
down vote
The following worked for me with a GPT partitioned disk.
insmod part_gpt
insmod chain
set root=(hd0,gpt1)
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
boot
Note that you can enter a command line from the grub boot menu and just type commands as above to test out different combinations.
You need to enter the id of the EFI boot partition (not the windows partition) for the set root=
command.
In the command line grub mode ls
will list the hard drive partitions, help
lists available commands.
Once you have set the root correctly you can ls /
to view files and directories to find the correct path to the windows boot manager if it is not in the default location.
add a comment |
up vote
5
down vote
The following worked for me with a GPT partitioned disk.
insmod part_gpt
insmod chain
set root=(hd0,gpt1)
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
boot
Note that you can enter a command line from the grub boot menu and just type commands as above to test out different combinations.
You need to enter the id of the EFI boot partition (not the windows partition) for the set root=
command.
In the command line grub mode ls
will list the hard drive partitions, help
lists available commands.
Once you have set the root correctly you can ls /
to view files and directories to find the correct path to the windows boot manager if it is not in the default location.
add a comment |
up vote
5
down vote
up vote
5
down vote
The following worked for me with a GPT partitioned disk.
insmod part_gpt
insmod chain
set root=(hd0,gpt1)
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
boot
Note that you can enter a command line from the grub boot menu and just type commands as above to test out different combinations.
You need to enter the id of the EFI boot partition (not the windows partition) for the set root=
command.
In the command line grub mode ls
will list the hard drive partitions, help
lists available commands.
Once you have set the root correctly you can ls /
to view files and directories to find the correct path to the windows boot manager if it is not in the default location.
The following worked for me with a GPT partitioned disk.
insmod part_gpt
insmod chain
set root=(hd0,gpt1)
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
boot
Note that you can enter a command line from the grub boot menu and just type commands as above to test out different combinations.
You need to enter the id of the EFI boot partition (not the windows partition) for the set root=
command.
In the command line grub mode ls
will list the hard drive partitions, help
lists available commands.
Once you have set the root correctly you can ls /
to view files and directories to find the correct path to the windows boot manager if it is not in the default location.
answered Mar 9 at 21:46
79E09796
15013
15013
add a comment |
add a comment |
up vote
3
down vote
Guesing you have an UEFI device, the windows bootloader is still installed. You can select it back in UEFI setup menu under boot, where you will prbably have two options (GRUB and the old default as the second), delete the first one or switch the order.
Thank you. This was the easiest way and saved me a headache.
– Astrobleme
Mar 12 '17 at 22:07
add a comment |
up vote
3
down vote
Guesing you have an UEFI device, the windows bootloader is still installed. You can select it back in UEFI setup menu under boot, where you will prbably have two options (GRUB and the old default as the second), delete the first one or switch the order.
Thank you. This was the easiest way and saved me a headache.
– Astrobleme
Mar 12 '17 at 22:07
add a comment |
up vote
3
down vote
up vote
3
down vote
Guesing you have an UEFI device, the windows bootloader is still installed. You can select it back in UEFI setup menu under boot, where you will prbably have two options (GRUB and the old default as the second), delete the first one or switch the order.
Guesing you have an UEFI device, the windows bootloader is still installed. You can select it back in UEFI setup menu under boot, where you will prbably have two options (GRUB and the old default as the second), delete the first one or switch the order.
answered Feb 5 '16 at 9:00
Alko
7571515
7571515
Thank you. This was the easiest way and saved me a headache.
– Astrobleme
Mar 12 '17 at 22:07
add a comment |
Thank you. This was the easiest way and saved me a headache.
– Astrobleme
Mar 12 '17 at 22:07
Thank you. This was the easiest way and saved me a headache.
– Astrobleme
Mar 12 '17 at 22:07
Thank you. This was the easiest way and saved me a headache.
– Astrobleme
Mar 12 '17 at 22:07
add a comment |
up vote
0
down vote
Boot from DVD win 10
Open command line and type:
diskpart
select disk 0
list volume
check bootsect.exe
For example E
is the DVD
E:
cd boot
dir
if bootsect.exe
exist type the following command :
bootsect /nt60 SYS /mbr
or bootsect /nt60 your-drive-letter: /mbr
example bootsect /nt60 C: /mbr
Reboot
add a comment |
up vote
0
down vote
Boot from DVD win 10
Open command line and type:
diskpart
select disk 0
list volume
check bootsect.exe
For example E
is the DVD
E:
cd boot
dir
if bootsect.exe
exist type the following command :
bootsect /nt60 SYS /mbr
or bootsect /nt60 your-drive-letter: /mbr
example bootsect /nt60 C: /mbr
Reboot
add a comment |
up vote
0
down vote
up vote
0
down vote
Boot from DVD win 10
Open command line and type:
diskpart
select disk 0
list volume
check bootsect.exe
For example E
is the DVD
E:
cd boot
dir
if bootsect.exe
exist type the following command :
bootsect /nt60 SYS /mbr
or bootsect /nt60 your-drive-letter: /mbr
example bootsect /nt60 C: /mbr
Reboot
Boot from DVD win 10
Open command line and type:
diskpart
select disk 0
list volume
check bootsect.exe
For example E
is the DVD
E:
cd boot
dir
if bootsect.exe
exist type the following command :
bootsect /nt60 SYS /mbr
or bootsect /nt60 your-drive-letter: /mbr
example bootsect /nt60 C: /mbr
Reboot
edited Feb 1 '16 at 14:18
answered Feb 1 '16 at 14:07
GAD3R
24.9k1749105
24.9k1749105
add a comment |
add a comment |
up vote
0
down vote
I recently bumped into the same problem. (i.e. originally have a a separate partition with Ubuntu installed, dual bootable from a grub menu. I then deleted that Ubuntu partition from Windows disk management, and when I rebooted, just the grub command menu).
What I did to get back to my Windows 10:
- Do a
Ctrl
+Alt
+Delete
to reboot. While rebooting, hold down theshift
button. - My PC then give me to option to press
F12
for boot option. I clickedF12
, and it gives me back a menu with Windows boot manager on it. - I selected the Windows boot manager and click enter. I'm now back to Windows 10.
add a comment |
up vote
0
down vote
I recently bumped into the same problem. (i.e. originally have a a separate partition with Ubuntu installed, dual bootable from a grub menu. I then deleted that Ubuntu partition from Windows disk management, and when I rebooted, just the grub command menu).
What I did to get back to my Windows 10:
- Do a
Ctrl
+Alt
+Delete
to reboot. While rebooting, hold down theshift
button. - My PC then give me to option to press
F12
for boot option. I clickedF12
, and it gives me back a menu with Windows boot manager on it. - I selected the Windows boot manager and click enter. I'm now back to Windows 10.
add a comment |
up vote
0
down vote
up vote
0
down vote
I recently bumped into the same problem. (i.e. originally have a a separate partition with Ubuntu installed, dual bootable from a grub menu. I then deleted that Ubuntu partition from Windows disk management, and when I rebooted, just the grub command menu).
What I did to get back to my Windows 10:
- Do a
Ctrl
+Alt
+Delete
to reboot. While rebooting, hold down theshift
button. - My PC then give me to option to press
F12
for boot option. I clickedF12
, and it gives me back a menu with Windows boot manager on it. - I selected the Windows boot manager and click enter. I'm now back to Windows 10.
I recently bumped into the same problem. (i.e. originally have a a separate partition with Ubuntu installed, dual bootable from a grub menu. I then deleted that Ubuntu partition from Windows disk management, and when I rebooted, just the grub command menu).
What I did to get back to my Windows 10:
- Do a
Ctrl
+Alt
+Delete
to reboot. While rebooting, hold down theshift
button. - My PC then give me to option to press
F12
for boot option. I clickedF12
, and it gives me back a menu with Windows boot manager on it. - I selected the Windows boot manager and click enter. I'm now back to Windows 10.
answered May 29 '17 at 16:35
Atlas7
1012
1012
add a comment |
add a comment |
up vote
0
down vote
This worked for me, now I have to find a way to permanently fix the mbr.
I recently bumped into the same problem. (i.e. originally have a a separate partition with Ubuntu installed, dual bootable from a grub menu. I then deleted that Ubuntu partition from Windows disk management, and when I rebooted, just the grub command menu).
What I did to get back to my Windows 10:
Do a Ctrl+Alt+Delete to reboot. While rebooting, hold down the shift button.
My PC then give me to option to press F12 for boot option. I clicked F12, and it gives me back a menu with Windows boot manager on it.
I selected the Windows boot manager and click enter. I'm now back to Windows 10.
add a comment |
up vote
0
down vote
This worked for me, now I have to find a way to permanently fix the mbr.
I recently bumped into the same problem. (i.e. originally have a a separate partition with Ubuntu installed, dual bootable from a grub menu. I then deleted that Ubuntu partition from Windows disk management, and when I rebooted, just the grub command menu).
What I did to get back to my Windows 10:
Do a Ctrl+Alt+Delete to reboot. While rebooting, hold down the shift button.
My PC then give me to option to press F12 for boot option. I clicked F12, and it gives me back a menu with Windows boot manager on it.
I selected the Windows boot manager and click enter. I'm now back to Windows 10.
add a comment |
up vote
0
down vote
up vote
0
down vote
This worked for me, now I have to find a way to permanently fix the mbr.
I recently bumped into the same problem. (i.e. originally have a a separate partition with Ubuntu installed, dual bootable from a grub menu. I then deleted that Ubuntu partition from Windows disk management, and when I rebooted, just the grub command menu).
What I did to get back to my Windows 10:
Do a Ctrl+Alt+Delete to reboot. While rebooting, hold down the shift button.
My PC then give me to option to press F12 for boot option. I clicked F12, and it gives me back a menu with Windows boot manager on it.
I selected the Windows boot manager and click enter. I'm now back to Windows 10.
This worked for me, now I have to find a way to permanently fix the mbr.
I recently bumped into the same problem. (i.e. originally have a a separate partition with Ubuntu installed, dual bootable from a grub menu. I then deleted that Ubuntu partition from Windows disk management, and when I rebooted, just the grub command menu).
What I did to get back to my Windows 10:
Do a Ctrl+Alt+Delete to reboot. While rebooting, hold down the shift button.
My PC then give me to option to press F12 for boot option. I clicked F12, and it gives me back a menu with Windows boot manager on it.
I selected the Windows boot manager and click enter. I'm now back to Windows 10.
edited Aug 26 '17 at 19:28
Stephen Rauch
3,318101328
3,318101328
answered Aug 26 '17 at 19:18
John M. Marr
1
1
add a comment |
add a comment |
up vote
0
down vote
This answer is for those with UEFI who have deleted the Ubuntu partitions before removing grub
You will be doing this from Windows 10. No bootable media required.
Where
bootrec /fixmbr
,bootsect /nt60
and the Ubuntu live with theboot-repair
suggestions have failed, this has worked for me:
(This answer borrowed verbatim from here)
- Run a
cmd.exe
process with administrator privileges
- Run
diskpart
- Type:
list disk
thensel disk X
where X is the drive your boot files reside on
- Type
list vol
to see all partitions (volumes) on the disk
- Select the EFI volume by typing:
sel vol Y
where Y is theSYSTEM
volume (this is almost always the EFI partition)
- For convenience, assign a drive letter by typing:
assign letter=Z:
where Z is a free (unused) drive letter
- Type
exit
to leave disk part
- While still in the
cmd
prompt, type:Z:
and hit enter, where Z was the drive letter you just created.
- Type
dir
to list directories on this mounted EFI partition
- If you are in the right place, you should see a directory called
EFI
- Type
cd EFI
and thendir
to list the child directories insideEFI
- Type
rmdir /S ubuntu
to delete the ubuntu boot directory
Assuming you only ever had two operating systems (Win 10 & Ubuntu) you should now be able to boot directly to Windows without hitting the black grub screen.
Copied from https://askubuntu.com/questions/429610/uninstall-grub-and-use-windows-bootloader
add a comment |
up vote
0
down vote
This answer is for those with UEFI who have deleted the Ubuntu partitions before removing grub
You will be doing this from Windows 10. No bootable media required.
Where
bootrec /fixmbr
,bootsect /nt60
and the Ubuntu live with theboot-repair
suggestions have failed, this has worked for me:
(This answer borrowed verbatim from here)
- Run a
cmd.exe
process with administrator privileges
- Run
diskpart
- Type:
list disk
thensel disk X
where X is the drive your boot files reside on
- Type
list vol
to see all partitions (volumes) on the disk
- Select the EFI volume by typing:
sel vol Y
where Y is theSYSTEM
volume (this is almost always the EFI partition)
- For convenience, assign a drive letter by typing:
assign letter=Z:
where Z is a free (unused) drive letter
- Type
exit
to leave disk part
- While still in the
cmd
prompt, type:Z:
and hit enter, where Z was the drive letter you just created.
- Type
dir
to list directories on this mounted EFI partition
- If you are in the right place, you should see a directory called
EFI
- Type
cd EFI
and thendir
to list the child directories insideEFI
- Type
rmdir /S ubuntu
to delete the ubuntu boot directory
Assuming you only ever had two operating systems (Win 10 & Ubuntu) you should now be able to boot directly to Windows without hitting the black grub screen.
Copied from https://askubuntu.com/questions/429610/uninstall-grub-and-use-windows-bootloader
add a comment |
up vote
0
down vote
up vote
0
down vote
This answer is for those with UEFI who have deleted the Ubuntu partitions before removing grub
You will be doing this from Windows 10. No bootable media required.
Where
bootrec /fixmbr
,bootsect /nt60
and the Ubuntu live with theboot-repair
suggestions have failed, this has worked for me:
(This answer borrowed verbatim from here)
- Run a
cmd.exe
process with administrator privileges
- Run
diskpart
- Type:
list disk
thensel disk X
where X is the drive your boot files reside on
- Type
list vol
to see all partitions (volumes) on the disk
- Select the EFI volume by typing:
sel vol Y
where Y is theSYSTEM
volume (this is almost always the EFI partition)
- For convenience, assign a drive letter by typing:
assign letter=Z:
where Z is a free (unused) drive letter
- Type
exit
to leave disk part
- While still in the
cmd
prompt, type:Z:
and hit enter, where Z was the drive letter you just created.
- Type
dir
to list directories on this mounted EFI partition
- If you are in the right place, you should see a directory called
EFI
- Type
cd EFI
and thendir
to list the child directories insideEFI
- Type
rmdir /S ubuntu
to delete the ubuntu boot directory
Assuming you only ever had two operating systems (Win 10 & Ubuntu) you should now be able to boot directly to Windows without hitting the black grub screen.
Copied from https://askubuntu.com/questions/429610/uninstall-grub-and-use-windows-bootloader
This answer is for those with UEFI who have deleted the Ubuntu partitions before removing grub
You will be doing this from Windows 10. No bootable media required.
Where
bootrec /fixmbr
,bootsect /nt60
and the Ubuntu live with theboot-repair
suggestions have failed, this has worked for me:
(This answer borrowed verbatim from here)
- Run a
cmd.exe
process with administrator privileges
- Run
diskpart
- Type:
list disk
thensel disk X
where X is the drive your boot files reside on
- Type
list vol
to see all partitions (volumes) on the disk
- Select the EFI volume by typing:
sel vol Y
where Y is theSYSTEM
volume (this is almost always the EFI partition)
- For convenience, assign a drive letter by typing:
assign letter=Z:
where Z is a free (unused) drive letter
- Type
exit
to leave disk part
- While still in the
cmd
prompt, type:Z:
and hit enter, where Z was the drive letter you just created.
- Type
dir
to list directories on this mounted EFI partition
- If you are in the right place, you should see a directory called
EFI
- Type
cd EFI
and thendir
to list the child directories insideEFI
- Type
rmdir /S ubuntu
to delete the ubuntu boot directory
Assuming you only ever had two operating systems (Win 10 & Ubuntu) you should now be able to boot directly to Windows without hitting the black grub screen.
Copied from https://askubuntu.com/questions/429610/uninstall-grub-and-use-windows-bootloader
edited Sep 5 at 4:13
G-Man
12.7k93164
12.7k93164
answered Sep 4 at 22:58
sa my
1
1
add a comment |
add a comment |
up vote
0
down vote
Just exit the grub by typing exit and go to bios setup and restore to default settings and restart the computer.
New contributor
add a comment |
up vote
0
down vote
Just exit the grub by typing exit and go to bios setup and restore to default settings and restart the computer.
New contributor
add a comment |
up vote
0
down vote
up vote
0
down vote
Just exit the grub by typing exit and go to bios setup and restore to default settings and restart the computer.
New contributor
Just exit the grub by typing exit and go to bios setup and restore to default settings and restart the computer.
New contributor
New contributor
answered 2 days ago
phanindra tallam
1
1
New contributor
New contributor
add a comment |
add a comment |
up vote
-1
down vote
Try this:
rootnoverify (hd0,0)
chainloader +1
makeactive
boot
add a comment |
up vote
-1
down vote
Try this:
rootnoverify (hd0,0)
chainloader +1
makeactive
boot
add a comment |
up vote
-1
down vote
up vote
-1
down vote
Try this:
rootnoverify (hd0,0)
chainloader +1
makeactive
boot
Try this:
rootnoverify (hd0,0)
chainloader +1
makeactive
boot
edited Nov 23 '16 at 1:30
techraf
4,125102139
4,125102139
answered Nov 23 '16 at 1:10
abhineet
1
1
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f259069%2fhow-to-start-a-windows-partition-from-the-grub-command-line%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown