#struggling to boot into my mint usb

141 messages · Page 1 of 1 (latest)

undone jetty
#

hi! running a framework laptop and the mint installation i have on one of my usb cards is not booting, so i thought i'd try to boot into a live environment and run boot-repair on it. on the mint cinnamon 22.3 iso, i'm having trouble installing the ppa:yannubuntu/boot-repair because trying to add the apt repository is saying that "this PPA does not support noble" even though on the ubuntu site (https://launchpad.net/~yannubuntu/+archive/ubuntu/boot-repair) it clearly does. what should i do?

low whale
undone jetty
#

oh!! i see it! thank you!

#

ive not used this before - what should i expect to see or do after running it?

#

might i still have to resort to updating grub via mounting the drive in the live iso?

low whale
#

You could use it to create a summary report and post the URL here

#

You installed Mint to a USB drive?

undone jetty
#

i'll post the url when it's done updating/running!

cedar smelt
cedar smelt
#

or lsblk -o name,model,label,fstype,size,partuuid,mountpoint

low whale
#

The USB may be dead

undone jetty
#

for real? it's fairly new too...

cedar smelt
#

show full result. reboot to live or real OS if needed

#

if your real OS is Linux, anyway

undone jetty
#

let me pull it up on nobara

cedar smelt
low whale
cedar smelt
#

ensure your modular cardreader this is firmly plugged in, and wit card in it

cedar smelt
#

thanks jeremy

low whale
#

All I see is a NVME with Nobara/Fedora and Windows and the other drive is most likely the Mint ISO

cedar smelt
#

guessing sda is the Nobara drive

undone jetty
#

it is not

cedar smelt
#

anyway the report is very cluttered and i dont feel like sifting.

#

so show the line I put. i just edited it

undone jetty
#

yep yep, just a sec

#
NAME        MODEL             FSTYPE   SIZE PARTUUID                             MOUNTPOINT
sda         250GB Card               232.9G                                      
├─sda1                        ext4   203.1G f0bea170-01                          
├─sda2                                   1K f0bea170-02                          
└─sda5                        swap    29.8G f0bea170-05                          
zram0                         swap       8G                                      [SWAP]
nvme0n1     WD Blue SN570 1TB        931.5G                                      
├─nvme0n1p1                   vfat     100M b4918bb4-6de7-417b-acd1-5a2d12894a52 /boot/efi
├─nvme0n1p2                             16M 79a725f8-0580-4db3-89e9-35e9c8d4022a 
├─nvme0n1p3                   ntfs   306.6G e89edb75-eaf9-46df-a18a-9aef539a73ff 
├─nvme0n1p4                   ntfs     746M 4703c6c8-3435-42c7-a9ae-e7d215b01bbd 
├─nvme0n1p5                   ext4       2G 0cbd406a-8e69-438c-9ce2-397ae8df9370 /boot
└─nvme0n1p6                   btrfs  622.1G 8a599c4f-b57f-4032-a201-b11a12385e77 /home```
cedar smelt
low whale
#

/dev/sda must be where Mint was

undone jetty
#

that lines up with my understanding, yes

cedar smelt
#

ya model says 250 GB Card

#

however, there's no EFI partition on it

#

open up kde partition manager.

#

select sda

low whale
#

sudo parted -l

undone jetty
#

shit i dont have spectacle/screenshot program on this install

cedar smelt
#

best way to fix this is either turn off the nvme port in BIOS, or unplug the card. or fix the module on a different pc with easily unpluggable other drives

#

boot live stick, and after having made an efi partition on the 250 gig, u run boot repair

undone jetty
# low whale `sudo parted -l`

this should be the relevant data:

Disk /dev/sda: 250GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End    Size    Type      File system     Flags
 1      1049kB  218GB  218GB   primary   ext4
 2      218GB   250GB  32.0GB  extended                  lba
 5      218GB   250GB  32.0GB  logical   linux-swap(v1)  swap```
cedar smelt
#

there's no efi

undone jetty
#

yeah... i wonder what happened to it ?_?

cedar smelt
#

either boot thing thing in legacy mode (if framework has CSM) or redo the install or move stuff around

undone jetty
#

oh. i know what probably happened

cedar smelt
#

wherever u made it.

#

SURPRISE!!!

undone jetty
#

when i installed mint on the drive, it probably put everything it needed for booting on my nvme

#

i wiped my nvme recently

cedar smelt
#

i'd say give this a shot with kde partition manager

#

and get spectacle

undone jetty
#

which is not how i expected that install to work

#

let me grab it really quick

cedar smelt
#
Boot0000* Fedora    HD(1,GPT,b4918bb4-6de7-417b-acd1-5a2d12894a52,0x800,0x32000)/File(\EFI\fedora\shim.efi) File(.䍒)
Boot0001* Fedora    HD(1,GPT,b4918bb4-6de7-417b-acd1-5a2d12894a52,0x800,0x32000)/File(\EFI\fedora\shimx64.efi)
Boot0002* Windows Boot Manager    HD(1,GPT,b4918bb4-6de7-417b-acd1-5a2d12894a52,0x800,0x32000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)57494```
undone jetty
cedar smelt
#

those three entries, and only those three, boot from the nvme ESP currently

undone jetty
#

makes sense

#

the entry for mint was lost when i wiped the nvme

cedar smelt
#

do you want to redo or take time to move a partition on this card?

undone jetty
#

i'd like to not lose what i have on the drive

#

so we can try to resize partition and stuff as necessary on the drive?

low whale
#

29.8G of swap?

cedar smelt
#

I suggest a 200 MiB EFI System partition (fat32) at the start of this drive (250 gig drive)

undone jetty
#

yeah i have no idea lol

#

that's just what it auto-set up

cedar smelt
#

unmount sda1

#

then run swapon -s to be sure only nvme swap is in play, if any at all

undone jetty
#

is it umount /dev/sda1 to unmount?

cedar smelt
#

u can just r-click in the kde ptn mgr

#

should have unmount option. r-click the lock icon

undone jetty
#

gotcha, unmounted

#
Filename                Type        Size        Used        Priority
/dev/zram0                              partition    8388604        0        100```
cedar smelt
#

delete the swap inside the extended partition

undone jetty
#

okie, it's unallocated

cedar smelt
#

delete the extended partition

undone jetty
#

done

cedar smelt
#

right click sda1 and choose move.

#

then show the dialog box

undone jetty
#

i should just drag it over to the end of the space?

cedar smelt
#

u couild but id rather see it first, untouched

undone jetty
cedar smelt
#

put in the 'free space before' 300 MiB

#

and press Tab once

#

then hit ok, and show pic

undone jetty
cedar smelt
#

looks proper. now find the apply button and let it work

undone jetty
cedar smelt
#

may take a while since over 50 MiB of data has to shift.

undone jetty
#

seems right

cedar smelt
#

yes click apply

undone jetty
#

do we need to recreate the swap after?

cedar smelt
#

later, make a few gigs swap partition at the very end of drive. dont need extended partition

cedar smelt
#

what's on sda1, Mint?

undone jetty
#

yep!

cedar smelt
#

it will fail to boot if u leave the old swap UUID in there

undone jetty
#

makes sense, so just provide the fstab the new one from lsblk

cedar smelt
#

so make sure to open the correct fstab.. (in /etc/ of sda1)

#

and change it to the new swap's UUID of new swap partition

#

you'll still need to do boot repair with manual options , to force a GRUB install onto this new EFI partition that hasn't yet been made, but will be

#

once sda1 has moved, right click the 300 MiB free space and do new partition : primary, Fat32 , label: ESP_Portable

#

and flag it with esp and boot flags.

#

best put the flags with gparted from live environment

undone jetty
#

okay! so after this moving operation finishes

  • create extended partition to fill the space at the end of the drive
  • create linuxswap partition under that extended partition
  • grab the uuid from lsblk -f
  • edit sda1's /etc/fstab to use that new uuid for its swap
  • run boot repair and use the manual options to write a new grub install into that 300mb efi patition
cedar smelt
#

nah i said u dont NEED an extended partition

#

but if u want i guess u can

undone jetty
#

i dont really know why it's there

#

like i said it was probably automatic

cedar smelt
undone jetty
#

gotcha!

undone jetty
cedar smelt
#

the live boot with the boot repair tool. it should have gparted app

undone jetty
cedar smelt
#

no

#

no flags to mess with

undone jetty
#

oh ok - just make the partitions and its good to go as a swap

cedar smelt
#

just sudo blkid and get the new UUID for the new swap

cedar smelt
#

you may want to consider turning off the NVME in the UEFI storage/advanced settings. before booting live

#

so that the grub repair ONLY sees linux mint

undone jetty
#

yeah i can try that! the moving process just finished so let me create the EFI partition

undone jetty
cedar smelt
#

yes

undone jetty
#

and now i can make an extended linuxswap partition at the end and set the new uuid in fstab

#

and then restart into the live environment for the grub repair

#

does only root have permissions for the extended partition or does everyone?

cedar smelt
#

BIOS: nvme off
liv: esp and boot flag for new esp
boot repair:advanced> grub location

undone jetty
#

i would assume only root, right?

cedar smelt
#

g2g

undone jetty
#

but it seems successful!! i booted without my nvme in and it went into GRUB, and although it's misnamed ("Ubuntu" instead of Linux Mint Xia whatever) it booted into the install!! thank you so mnuch @cedar smelt đź©·

#

and thank you @low whale as well for earlier diagnostics!!

low whale
#

Good to see it works again

cedar smelt
undone jetty
cedar smelt
#

good.

undone jetty
#

thanks so much for all y'alls help!