Questions about best method to remove Mint from my dual boot setup
by NuxIT from LinuxQuestions.org on (#6K20B)
I've had Windows 10 and Linux Mint 18.x installed in a dual boot forever now. Probably since 2018. Anyways, I'd like to cleanly remove the old Linux Mint from my hard disk and free up some space. Then I will need to wipe out GRUB so only Windows 10 boots up. My plan is to essentially just delete this partition highlighted where I installed Mint.
NOTE: Image not showing up? Here's a link to my partition in Windows.
I'm not 100% sure which hard disk I installed GRUB to but I'm pretty sure it was my E: drive at the bottom. Any idea how to verify where GRUB is installed? I could boot up to the Linux mint and run sudo fdisk -l or something. I also believe this syntax might work but have not tried yet. But, I don't really need to know this but might be good just to be aware.
Code:sudo fdisk -l 2>/dev/null | egrep "Disk /|/dev/" | sed "s#^/dev/#Part /dev/#" | awk '{print $2}' | sed 's/://' | xargs -n1 -IX sudo sh -c "hexdump -v -s 0x80 -n 2 -e '2/1 \"%x\" \"\\n\"' X | xargs -n1 -IY sh -c \"case \"Y\" in '48b4') echo X: GRUB 2 v1.96 ;; 'aa75' | '5272') echo X: GRUB Legacy ;; '7c3c') echo X: GRUB 2 v1.97 oder v1.98 ;; '020') echo X: GRUB 2 v1.99 ;; *) echo X: Kein GRUB Y ;; esac\""After deleting the highlighted Linux partition above I'm planning on doing one of the following to remove GRUB and only have Windows boot.
1) Use Windows recovery USB drive and choose the menu where you can fix problems booting or whatever and it should give you a place to reformat the MBR. More less, This videos method.
2) Run this sequence of commands. This has worked on one of my older laptops that was Dual boot with Windows to remove a linux load and only have windows boot so I suppose this should work as well. Boot with the same Windows recovery USB and then run this command sequence.
Boot with Recovery USB
bootrec /scanos
bootrec /fixmbr
bootrec /fixboot
bootrec /rebuildbcd
Thanks for any ideas on which method is best. I'm pretty sure my good old rig is UEFI if that matters.
NOTE: Image not showing up? Here's a link to my partition in Windows.
I'm not 100% sure which hard disk I installed GRUB to but I'm pretty sure it was my E: drive at the bottom. Any idea how to verify where GRUB is installed? I could boot up to the Linux mint and run sudo fdisk -l or something. I also believe this syntax might work but have not tried yet. But, I don't really need to know this but might be good just to be aware.
Code:sudo fdisk -l 2>/dev/null | egrep "Disk /|/dev/" | sed "s#^/dev/#Part /dev/#" | awk '{print $2}' | sed 's/://' | xargs -n1 -IX sudo sh -c "hexdump -v -s 0x80 -n 2 -e '2/1 \"%x\" \"\\n\"' X | xargs -n1 -IY sh -c \"case \"Y\" in '48b4') echo X: GRUB 2 v1.96 ;; 'aa75' | '5272') echo X: GRUB Legacy ;; '7c3c') echo X: GRUB 2 v1.97 oder v1.98 ;; '020') echo X: GRUB 2 v1.99 ;; *) echo X: Kein GRUB Y ;; esac\""After deleting the highlighted Linux partition above I'm planning on doing one of the following to remove GRUB and only have Windows boot.
1) Use Windows recovery USB drive and choose the menu where you can fix problems booting or whatever and it should give you a place to reformat the MBR. More less, This videos method.
2) Run this sequence of commands. This has worked on one of my older laptops that was Dual boot with Windows to remove a linux load and only have windows boot so I suppose this should work as well. Boot with the same Windows recovery USB and then run this command sequence.
Boot with Recovery USB
bootrec /scanos
bootrec /fixmbr
bootrec /fixboot
bootrec /rebuildbcd
Thanks for any ideas on which method is best. I'm pretty sure my good old rig is UEFI if that matters.