Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

remove ubuntu from dual boot windows 10

GRUB Remove (After dual boot messup with UBUNTU!)
(I have dual booted my pc with Ubuntu. I deleted the volume from Disk management.
then i see the grub editor open without any boot selectig option.)

// Opne Command as administrator
diskpart

list disk
// In my case (SDD & HDD): follow gpt (*)
 | Disk 0    Online          111 GB  1024 KB      * |
 | Disk 1    Online          465 GB    48 GB        |
 
sel disk 0
| Disk 0 is now the selected disk |

list vol

// focus on :
|  Volume 1  FAT32  Partition    100 MB  Healthy    System |

sel vol 1

| Volume 1 is the selected volume. |

assign letter=x:

| DiskPart successfully assigned the drive letter or mount point. |

exit

cd /d x:
cd efi
dir
// you will see this line
| 09/10/2022  07:35 AM    <DIR>   ubuntu |
rmdir /s ubuntu

y

// restart

: )
 
PREVIOUS NEXT
Tagged: #remove #ubuntu #dual #boot #windows
ADD COMMENT
Topic
Name
5+2 =