LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-23-2022, 01:23 AM   #1
Gyroman
Member
 
Registered: Nov 2014
Location: Australia
Distribution: Mint 19.1 Toshiba Satellite Pro R50-C
Posts: 108
Blog Entries: 5

Rep: Reputation: 1
How to remove Mint dual booted (not working) with Win10


I have been through expert help to fix dual booted Mint on a Win10 Toshiba Satellite Pro laptop. The help was excellent I got back the boot menu but Mint would not boot I used boot-repair from a live Mint USB with no change. I have saved my Linux data and I need to remove Mint. The Win10 {anti sociable b*st*rd} would not update properly with the dual boot so I want to just get back to a clean{?} Win10. This is same as PLEASE HELP (with info) I have been on this for weeks and I need to finish a job.
 
Old 07-23-2022, 02:47 AM   #2
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,799
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
Windows should update normally if you can boot any live linux and run:
Code:
sudo efibootmgr -o 5,6,4,3,2002,2006,2004,2005,2,0,1,3001
to reverse what you did in your earlier thread. Save the Mint removal project for after your urgent project is done. You may be game for trying Linux again when you're not so busy.

Code:
sudo efibootmgr -o 5,6
might be sufficient. I've never had so many options on one PC to try a subset to rearrange just the first two.
 
1 members found this post helpful.
Old 07-23-2022, 06:13 AM   #3
Gyroman
Member
 
Registered: Nov 2014
Location: Australia
Distribution: Mint 19.1 Toshiba Satellite Pro R50-C
Posts: 108

Original Poster
Blog Entries: 5

Rep: Reputation: 1
Thanks ... I prefer Linux any day to WIN.. but
I need the powerpoint/word/zoom project stuff on WIN however I have a problem running videos embedded in powerpoint on zoom like no sound.. and I use Linux to do video editing work. I feel uneasy about undoing what we did before as the boot menu looks better somehow so I am sure it improved things and I can live boot Mint off the USB ok.

I suppose one option would be to run Mint in a virtual box and leave WIN10 alone for now. I have 16G memory and 1Tb HDD so would that allow me to load up my video prepping software and convert videos to something that will run on windows and transfer via a shared folder? I just don't want to disturb my WIN10 for now even if it won't update.

I think ultimately I would like to have a Linux Mint machine with WIN#? safely locked up in a virtual box if that would allow WIN to have required apps loaded and access required hardware etc.

Does [sudo efibootmgr -o 5,6 ] (-o mean order) and (5,6 = new boot order) ie just change the boot order back to WIN10?

I tried reinstalling Mint but got partition errors before. After what has been done is that a possibility now?
 
Old 07-23-2022, 12:11 PM   #4
amplitude
LQ Newbie
 
Registered: Jul 2022
Distribution: Ubuntu 20.04
Posts: 20

Rep: Reputation: 2
You just insert the linux mint installation media and update the GRUB.

also try EasyBCD link

Last edited by amplitude; 07-23-2022 at 12:16 PM.
 
1 members found this post helpful.
Old 07-23-2022, 03:10 PM   #5
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,799
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
Quote:
Originally Posted by Gyroman View Post
I suppose one option would be to run Mint in a virtual box and leave WIN10 alone for now. I have 16G memory and 1Tb HDD so would that allow me to load up my video prepping software and convert videos to something that will run on windows and transfer via a shared folder?
It should.

Quote:
I think ultimately I would like to have a Linux Mint machine with WIN#? safely locked up in a virtual box if that would allow WIN to have required apps loaded and access required hardware etc.
Good plan.

Quote:
Does [sudo efibootmgr -o 5,6 ] (-o mean order) and (5,6 = new boot order) ie just change the boot order back to WIN10?
-o is the efibootmgr boot order option. man efibootmgr

Quote:
I tried reinstalling Mint but got partition errors before. After what has been done is that a possibility now?
Successful installation should be possible at any time. The Mint installer can remove the old and install completely afresh, but also it can just reformat the existing Linux / partition and keep the /home partition undisturbed, if there is one from the old installation.
 
1 members found this post helpful.
Old 07-25-2022, 02:25 AM   #6
Gyroman
Member
 
Registered: Nov 2014
Location: Australia
Distribution: Mint 19.1 Toshiba Satellite Pro R50-C
Posts: 108

Original Poster
Blog Entries: 5

Rep: Reputation: 1
Quote:
Originally Posted by mrmazda View Post

Successful installation should be possible at any time. The Mint installer can remove the old and install completely afresh, but also it can just reformat the existing Linux / partition and keep the /home partition undisturbed, if there is one from the old installation.
Thanks.. I tried Mint installation from live boot USB and the only option to keeping dual boot with WIN10 was to repartition the drive like it did not seem to give an option to use the existing Linux partition much less preserve my home directory. So not sure about this..
 
Old 07-25-2022, 02:29 AM   #7
Gyroman
Member
 
Registered: Nov 2014
Location: Australia
Distribution: Mint 19.1 Toshiba Satellite Pro R50-C
Posts: 108

Original Poster
Blog Entries: 5

Rep: Reputation: 1
Quote:
Originally Posted by amplitude View Post
You just insert the linux mint installation media and update the GRUB.

also try EasyBCD link
How do I "just update the grub" from a live boot Mint USB or is that a command line thing?
 
Old 07-25-2022, 06:34 PM   #8
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,799
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
It's been too long since I last installed Mint for me to provide specifics, but the installation guide clearly suggests you can designate that an existing home partition can be reused without reformatting, and the existing root partition can be selected for reuse with fresh formatting. The starting point is the "installation type" you choose, which must be "something else". Obviously "erase disk" is not intended to keep whatever is present there now.

Updating grub can be done several ways. The only way I ever do it is via chroot on a command line Linux boot. Once this has been accomplished with root authority:
Code:
# mount /dev/sda6 /mnt
# mount -o bind /sys /mnt/sys
# mount -o bind /dev /mnt/dev
# mount -o bind /proc /mnt/proc
# chroot /mnt
# mount -a
# update-grub
# exit
At this point, reboot. Note /dev/sda6 must be replaced with the device name of whatever partition contains Mint's root filesystem. Presumably, update-grub remains a shortcut to the following:
Code:
sudo grub-mkconfig -o /boot/grub/grub.cfg
which is typically what needs doing when "reinstall grub" is recommended. Reinstall Grub can also mean reinstalling all grub* packages using a package manager.
 
1 members found this post helpful.
Old 07-26-2022, 12:13 AM   #9
Gyroman
Member
 
Registered: Nov 2014
Location: Australia
Distribution: Mint 19.1 Toshiba Satellite Pro R50-C
Posts: 108

Original Poster
Blog Entries: 5

Rep: Reputation: 1
Thank you.. I ran the grub update and so pleased to see it found Mint but had a problem with "GRUB drive for /sdb1"
I had a look at mapfile but just don't know enough to do this.. Thank you so much for your patience..

Code:
mint@mint:~$ sudo mount -o bind /sys /mnt/sys
mint@mint:~$ sudo mount -o bind /dev /mnt/dev
mint@mint:~$ sudo mount -o bind /proc /mnt/proc
mint@mint:~$ sudo chroot /mnt
root@mint:/# mount -a
root@mint:/# update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.0-107-generic
Found linux image: /boot/vmlinuz-5.4.0-105-generic
Found initrd image: /boot/initrd.img-5.4.0-105-generic
Found linux image: /boot/vmlinuz-5.4.0-104-generic
Found initrd image: /boot/initrd.img-5.4.0-104-generic
Found linux image: /boot/vmlinuz-5.4.0-91-generic
Found initrd image: /boot/initrd.img-5.4.0-91-generic
grub-probe: error: cannot find a GRUB drive for /dev/sdb1.  Check your device.map.
Adding boot menu entry for UEFI Firmware Settings
done
root@mint:/# exit
exit
mint@mint:~$
 
Old 07-26-2022, 01:11 AM   #10
Gyroman
Member
 
Registered: Nov 2014
Location: Australia
Distribution: Mint 19.1 Toshiba Satellite Pro R50-C
Posts: 108

Original Poster
Blog Entries: 5

Rep: Reputation: 1
I just discovered I now have lost WIN10 on the ubuntu/Mint boot menu..

From uefi I moved WIN10 boot to top and got back my WIN10 so now I have no dual boot menu

should I just use WIN10 to repartition the drive and remove Mint which then could be re-installed clean or can I fix the dual boot menu?

Last edited by Gyroman; 07-26-2022 at 01:33 AM.
 
Old 07-26-2022, 01:34 AM   #11
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,799
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
Repeat the process you reported in comment #9 through the mount -a step, then run parted -l and/or fdisk -l instead of update-grub. Then show us that output as well as what efibootmgr reports. It may be necessary to use it as you did before, except to designate 5 be first instead of 6, to provide access directly to Windows until it can be determined just what happened as a result of /dev/sdb1 not being found when you ran update-grub.

Edit:
You should be able to fix grub's menu once we can determine what caused the update-grub error.

Last edited by mrmazda; 07-26-2022 at 01:36 AM.
 
Old 07-26-2022, 06:31 AM   #12
Gyroman
Member
 
Registered: Nov 2014
Location: Australia
Distribution: Mint 19.1 Toshiba Satellite Pro R50-C
Posts: 108

Original Poster
Blog Entries: 5

Rep: Reputation: 1
Huston.. I think we have a problem?
I should say to get live Mint up I F2'd into the bios and moved 'USB Memory' above 'WIN boot mgr' that's all..

Code:
mint@mint:~$ sudo mount -o bind /sys /mnt/sys
mount: /mnt/sys: mount point does not exist.
mint@mint:~$ sudo mount -o bind /dev /mnt/dev
mount: /mnt/dev: mount point does not exist.
mint@mint:~$ sudo mount -o bind /proc /mnt/proc
mount: /mnt/proc: mount point does not exist.
mint@mint:~$
[/code]

Code:
mint@mint:~$ efibootmgr
BootCurrent: 2001
Timeout: 2 seconds
BootOrder: 2001,0005,0006,0004,0003,2002,2006,2004,2005,0002,0000,0001,3001
Boot0000  Boot Device List
Boot0001  Diagnostic Menu
Boot0002  UiApp
Boot0003* ODD
Boot0004* HDD/SSD
Boot0005* Windows Boot Manager
Boot0006* ubuntu
Boot2001* USB Memory
Boot2002* USB ODD
Boot2004* LAN1
Boot2005* LAN2
Boot2006* FDD
Boot3001  HDD Recovery
mint@mint:~$
I'm just a rocket man.. all the science I don't understand..
 
Old 07-26-2022, 11:02 AM   #13
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,799
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
Quote:
Originally Posted by Gyroman View Post
Code:
mint@mint:~$ sudo mount -o bind /sys /mnt/sys
mount: /mnt/sys: mount point does not exist.
mint@mint:~$ sudo mount -o bind /dev /mnt/dev
mount: /mnt/dev: mount point does not exist.
mint@mint:~$ sudo mount -o bind /proc /mnt/proc
mount: /mnt/proc: mount point does not exist.
mint@mint:~$
The problem is what you reported in #9 isn't what you had to have actually done. Look at #8. In your description, you left out the foundational command that mounts the installed system's root filesystem, which is why what you did here couldn't work.

With your current efibootmgr output, after removing USB stick, you should be able to boot directly into Windows.
 
Old 07-26-2022, 06:31 PM   #14
Gyroman
Member
 
Registered: Nov 2014
Location: Australia
Distribution: Mint 19.1 Toshiba Satellite Pro R50-C
Posts: 108

Original Poster
Blog Entries: 5

Rep: Reputation: 1
Houston.. Yes that is correct as it is now removing the USB gets me straight into WIN10..

Check for re-entry.. I should have gone back and started from #8 followed by #9 as far as mount -a. Is that correct?

One thing I did not try after update-grub (#8) was to actually try to boot into my installed Mint.. I sort of panicked because WIN10 did not appear in the boot menu. Now I am ok with getting into bios and changing the boot order if I move UBUNTU back on top should it boot my installed Mint since I did update-grub?

It's cold out here in space..
 
Old 07-26-2022, 07:08 PM   #15
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,799
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
Quote:
Originally Posted by Gyroman View Post
I should have gone back and started from #8 followed by #9 as far as mount -a. Is that correct?
10-4.

Quote:
One thing I did not try after update-grub (#8) was to actually try to boot into my installed Mint.. I sort of panicked because WIN10 did not appear in the boot menu.
Absence of Windows in Grub menu could be a sign that you managed to boot the live media in legacy mode rather than UEFI. That could have resulted in update-grub doing the wrong thing for your existing installation.

Quote:
Now I am ok with getting into bios and changing the boot order if I move UBUNTU back on top should it boot my installed Mint since I did update-grub?
At this point I would try using the BBS menu or making UEFI-Ubuntu/Mint the first BIOS entry to see what happens when you try to boot Mint.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Mint 19.1 install as dual boot on Win10 Toshiba Satellite Pro/ Win10 cant update/ changed boot order to Win10 first lost boot menu lost Mint Gyroman Linux - Newbie 8 07-20-2022 08:49 PM
[SOLVED] Can I renew a Win10/L-Mint dual boot without reinstalling Mint? KaisoMod Linux - General 10 12-07-2021 02:37 PM
Switching from win10 to a linux distro with win10 vm kevgk Linux - Virtualization and Cloud 3 11-01-2018 05:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration