LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   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 (https://www.linuxquestions.org/questions/linux-newbie-8/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-4175714825/)

Gyroman 07-19-2022 10:51 PM

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
 
I looked up how to change boot order on dual boot system. Can't recall actual youtube video. Now Win10 boots normally with no selection menu but still when updating it mostly reports it cannot complete and has to undo everything. I can live boot from Mint USB and backed up all my Linux data files.

I tried to reinstall Mint from the USB and it stalled with a partition corrupt error. I looked at the partitions and do not know enough to decipher what to reformat to clear out Mint and start from scratch and particularly scared of breaking my Win10 access. It would be very helpful if I could restore the boot option menu and get back both.

Thank you for your assistance.

mrmazda 07-19-2022 11:22 PM

Boot any Linux live media from USB and collect output from parted -l or fdisk -l, and from efibootmgr -v, then paste their output here between code tags.

Gyroman 07-20-2022 12:30 AM

Outputs as requested

Code:

mint@mint:~$ parted -l
mint@mint:~$ efibootmgr -v
BootCurrent: 2001
Timeout: 2 seconds
BootOrder: 2001,0005,0006,0004,0003,2002,2006,2004,2005,0002,0000,0001,3001
Boot0000  Boot Device List        FvVol(a881d567-6cb0-4eee-8435-2e72d33e45b5)/FvFile(ef276355-416b-7472-fc38-138f693f4f1f)
Boot0001  Diagnostic Menu        FvVol(a881d567-6cb0-4eee-8435-2e72d33e45b5)/FvFile(f0f01bd0-471f-82f7-80d0-70b79bffea76)
Boot0002  UiApp        FvVol(a881d567-6cb0-4eee-8435-2e72d33e45b5)/FvFile(462caa21-7614-4503-836e-8ab6f4662331)
Boot0003* ODD        PciRoot(0x0)/Pci(0x17,0x0)/Sata(0,0,0)N.....YM....R,Y.
Boot0004* HDD/SSD        PciRoot(0x0)/Pci(0x17,0x0)/Sata(1,0,0)N.....YM....R,Y.
Boot0005* Windows Boot Manager        HD(1,GPT,0a256cd2-d26d-420f-af95-fcf78ed17b37,0x800,0x82000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...9................
Boot0006* ubuntu        HD(1,GPT,0a256cd2-d26d-420f-af95-fcf78ed17b37,0x800,0x82000)/File(\EFI\ubuntu\shimx64.efi)
Boot2001* USB Memory        PciRoot(0x0)/Pci(0x14,0x0)/USB(0,0)N.....YM....R,Y.
Boot2002* USB ODD        .../..CJ.M=.J..'
Boot2004* LAN1        .../..CJ.M=.J..'
Boot2005* LAN2        .../..CJ.M=.J..'
Boot2006* FDD        .../..CJ.M=.J..'
Boot3001  HDD Recovery        PciRoot(0x0)/Pci(0x17,0x0)/Sata(1,0,0)/HD(1,GPT,0a256cd2-d26d-420f-af95-fcf78ed17b37,0x800,0x82000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)/.R.e.c.o.v.e.r.y.B.C.D...
mint@mint:~$ fdisk -l
fdisk: cannot open /dev/loop0: Permission denied
fdisk: cannot open /dev/sda: Permission denied
fdisk: cannot open /dev/sdb: Permission denied
mint@mint:~$


mrmazda 07-20-2022 01:28 AM

Booted to any live Linux media in UEFI mode, the following should get your Mint Grub back (without disturbing Windows bootability):
Code:

# efibootmgr -o 6,5,4,3,2002,2006,2004,2005,2,0,1,3001
Because your attempt to reinstall might have damaged the existing installation, simply having your Grub menu back might not be sufficient to boot Mint again, but Windows should still be in your Grub menu.

Apparently using what you booted you needed elevated permission to run parted and fdisk . Try again prepending sudo to each, or login as root first if possible.

Gyroman 07-20-2022 01:36 AM

Ok thanks but considering what you say i'll first run the sudo commands..

Code:

mint@mint:~$ sudo fdisk -l
Disk /dev/loop0: 1.8 GiB, 1948155904 bytes, 3804992 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes




Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: B82BB3E0-C1A9-11E6-A3AA-EC21E5FE2D1F

Device          Start        End    Sectors  Size Type
/dev/sda1        2048    534527    532480  260M EFI System
/dev/sda2      534528    567295      32768    16M Microsoft reserved
/dev/sda3      567296 1585092855 1584525560 755.6G Microsoft basic data
/dev/sda4  1921261568 1924538367    3276800  1.6G Windows recovery environment
/dev/sda5  1924548608 1953521663  28973056  13.8G Windows recovery environment
/dev/sda6  1585094656 1921261567  336166912 160.3G Linux filesystem

Partition table entries are not in disk order.


Disk /dev/sdb: 3.8 GiB, 4022337024 bytes, 7856127 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x7012e9a0

Device    Boot  Start    End Sectors  Size Id Type
/dev/sdb1  *          0 3964927 3964928  1.9G  0 Empty
/dev/sdb2      3951336 3956007    4672  2.3M ef EFI (FAT-12/16/32)
mint@mint:~$ sudo parted -l
Model: ATA HGST HTS541010A9 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:

Warning: failed to translate partition name
Number  Start  End    Size    File system  Name                          Flags
 1      1049kB  274MB  273MB  fat32        EFI system partition          boot, esp
 2      274MB  290MB  16.8MB              Microsoft reserved partition  msftres
 3      290MB  812GB  811GB  ntfs        Basic data partition          msftdata
 6      812GB  984GB  172GB  ext4
 4      984GB  985GB  1678MB  ntfs                                      hidden, diag
 5      985GB  1000GB  14.8GB  fat32        Basic data partition          hidden, diag


Warning: The driver descriptor says the physical block size is 2048 bytes, but
Linux says it is 512 bytes.
Ignore/Cancel? Ignore                                                   
Model: SanDisk Cruzer Blade (scsi)
Disk /dev/sdb: 16.1GB
Sector size (logical/physical): 2048B/512B
Partition Table: mac
Disk Flags:

Number  Start  End    Size    File system  Name  Flags
 1      2048B  6143B  4096B                Apple
 2      2023MB  2025MB  2392kB              EFI


mint@mint:~$


mrmazda 07-20-2022 01:46 AM

Nothing I see in post #5 suggests the efibootmgr command in comment #4 shouldn't work.

Gyroman 07-20-2022 02:07 AM

Thanks here is the result..
Code:

mint@mint:~$ sudo efibootmgr -o 6,5,4,3,2002,2006,2004,2005,2,0,1,3001
BootCurrent: 2001
Timeout: 2 seconds
BootOrder: 0006,0005,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:~$


Gyroman 07-20-2022 02:31 AM

Thanks I think it is as you suggested.. Boot menu comes up with Ubuntu at top goes to this screen

Perform MOK management

Continue boot
Change Secure Boot state
Enroll key from disk
Enroll hash from disk

Pressing [continue] goes to [Toshiba >>>] hardware screen and stalls there. I had to do a hard power off

Selecting the third option
Win10 boots ok

I have not tried any of the other options..
If I cannot boot Mint can I reinstall it or remove it
Thanks

mrmazda 07-20-2022 08:49 PM

There should be instructions from an appropriate web search to repair Mint secure boot bootability. That's not something I've ever needed to do here.


All times are GMT -5. The time now is 04:34 AM.