alphapuggle

joined 1 year ago
[–] [email protected] 1 points 3 weeks ago (8 children)

Apologies, I think I got a bit ahead of myself in the description.
Once you've determined which partition is which (in your case, /dev/sda1 does appear to be the EFI partition, and /dev/sda3 appears to be your root partition), you need to mount them in this order

mount /dev/sda3 /mnt
mount /dev/sda1 /mnt/boot/efi

[–] [email protected] 1 points 3 weeks ago* (last edited 3 weeks ago) (10 children)

That's alright, I'll do my best to walk you through it.

Your drive contains multiple partitions (/dev/sda1 through /dev/sda3).
One of these drives is going to be your EFI partition. This is what your system can read before linux boots, your BIOS can't understand ext4 / btrfs / etc, but it can understand fat32.
If you run lsblk -no FSTYPE /dev/sda1 it should return vfat if that's your EFI partition. That's what we're going to mount to /mnt/boot/efi

I'm assuming that /dev/sda3 is your data partition, e.g. where your linux install is. You can find the filesystem format the same way as your EFI partition. Edit: After determining which partition is which, you're going to want to mount the root partition, and then the EFI partition
mount /dev/sda3 /mnt
mount /dev/sda1 /mnt/boot/efi

Unix systems have theology of "everything is a file", all devices and system interfaces are mounted as files. As such, to be able to properly chroot into an offline install, we need to make binds from our running system to the offline system. That's what's achieved by running for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
This is just a simple loop that mounts /dev, /dev/pts, /proc, /sys, and /run to your offline install. You're going to want to either add /sys/firmware/efi/efivars to that list, or mount it (with -B, which is shorthand for --bind, not a normal mount).

Once you've done this, you should be able to successfully chroot into /mnt (or /mnt/root if running btrfs)
At this point, you should be able to run your grub repair commands.

[–] [email protected] 2 points 3 weeks ago (12 children)

I'm doing my morning scroll before I start my day, so I can't delve too deep, but this is the article I always reference when I have to do repairs

https://askubuntu.com/a/831241

#1 thing I noticed in your image is that lsblk only shows you partitions, and doesn't mount them. You probably want /dev/sda3 mounted at /mnt

The only thing from the article you want to modify is using mount -B /sys/firmware/efi/efivars /mnt/sys/efi/efivars, I believe the functionality changed since that article was written and that's what worked for me

Additionally, if you drive is formatted as btrfs instead of ext4, once you mount your drive your root will most likely be at /mnt/admin or similar. Mount subdirectories to that folder instead of /mnt

If you have questions lmk and I'll get back to you at some point today

[–] [email protected] 30 points 4 weeks ago

It was designed as a test to be up the for 6 months, with no self propulsion.

It stated up and operational for 2 years.

[–] [email protected] 28 points 1 month ago* (last edited 1 month ago) (2 children)

C (see)

U (you)

N(ext)

T(Tuesday)

[–] [email protected] 2 points 1 month ago

I recognized the skeleton before I even saw the post title

[–] [email protected] 5 points 1 month ago

No, that was one of our main books. This was something pretty obscure, I've never seen anyone mention it and I don't really remember any more details than that off the top of my head

[–] [email protected] 9 points 1 month ago* (last edited 1 month ago) (2 children)

I was behind in my literature class in like, 7th grade. The books were boring as hell and I couldn't make myself read the chapters at night.

Our teacher gave us a list of bonus titles to catch up for like, 1.5x the points of a normal book, so I jumped on the first one on the list.

I don't remember the title of the book unfortunately, but about one or two chapters or so, the either the main character or their neighbor or something...

Gruesome...snaps the head of their cat off while petting it

Proceeded to put the book down and hand it back into the teacher and ask for a different one. I don't think she was aware of the content of the book

[–] [email protected] 1 points 1 month ago (1 children)

SFC has worked numerous times for me, usually for botched updates. Haven't used it in a long time after leaving tech support

[–] [email protected] 10 points 1 month ago

Common misconception; someone prayed that your car would stay broken first and He's gotta honor "first come first served"

[–] [email protected] 3 points 1 month ago* (last edited 1 month ago)

This got me to finally move away from Edge. Only thing I'm wishing comes soon is native PWA support. The addon is so janky and my biggest gripe about using Firefox, but I can put up with it since I've now got vertical tabs and multiple profiles

[–] [email protected] 17 points 2 months ago

Until then, Mr Parihar wore a bike helmet while driving to avoid more fines.

view more: ‹ prev next ›