Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "update-grub"
-
Windows: I need to update
Me: Fuck off I'm doing an assignment
Windows: Nah mate I need to update like right fucking now
Me: For fucks sake, go on then, but if you take longer than 30mins I'll delete you again
Windows: *Updating 25% done*
Windows: *Reboots*
*Grub rescue screen*
Me: Hello?
Windows: ...
Me: ...
Me: You fucking cunt21 -
> Get home for lunch, time to get some work done
> Fire up windows to program my keyboard
> WindowsUpdate, fine I can wait
> Reboot, grub rescue - no partition found
> Fire up a live CD, windows update nuked my linux partition (literally - now empty space instead of my previous ubuntu partition)
> Reinstall ubuntu
> Now stuck on «Loading operating system»
Oh well, I know what I'm doing tonight
> Pic related16 -
Update on my previous rants: finally got it working! after spending 2 days compiling the kernel and trying to fix some issues, I just reinstalled my laptop with a fresh antergos image, installed the kernel and both the speaker and headphones work just fine! no distortion, no weird chrome video speed ups, just works - it was probably just something I had installed ages ago to make external usb sound work.
I also used this opportunity to apply the missing grub theme and found this: https://gnome-look.org/content/... it's perfect with almost any custom background too.
Why is this a rant? well some asshat at gnome decided to remove the "global dark theme" option from tweaks, so now thousands of themes are broken if you want the dark theme, since the developers now have to offer the dark theme seperately, well numix-frost has had this reported since the 7th may and no response since, the hack to make it work is to replace the gtk.css with the dark equivalent gtk-dark.css for now..31 -
(Written March 13th at 2am.)
This morning (yesterday), my computer decided not to boot again: it halts on "cannot find firmware rtl-whatever" every time. (it has booted just fine several times since removing the firmware.) I've had quite the ordeal today trying to fix it, and every freaking step along the way has thrown errors and/or required workarounds and a lot of research.
Let's make a list of everything that went wrong!
1) Live CD: 2yo had been playing with it, and lost it. Not easy to find, and super smudgy.
2) Unencrypt volume: Dolphin reports errors when decrypting the volume. Research reveals the Live CD doesn't incude the cryptsetup packages. First attempts at installing them mysteriously fail.
3) Break for Lunch: automatic powersaving features turned off the displays, and also killed my session.
4) Live CD redux: 25min phonecall from work! yay, more things added to my six-month backlog.
5) Mount encrypted volume: Dolphin doesn't know how, and neither do I. Research ensues. Missing LVM2 package; lvmetad connection failure ad nauseam; had to look up commands to unlock, clone, open, and mount encrypted Luks volume, and how to perform these actions on Debian instead of Ubuntu/Kali. This group of steps took four hours.
6) Chroot into mounted volume group: No DNS! Research reveals how to share the host's resolv with the chroot.
7) `# apt install firmware-realtek`: /boot/initrd.img does not exist. Cannot update.
8) Find and mount /boot, then reinstall firmware: Apt cannot write to its log (minor), listed three install warnings, and initially refused to write to /boot/initrd.img-[...]
9) Reboot!: Volume group not found. Cannot process volume group. Dropping to a shell! oh no..
(Not listed: much research, many repeated attempts with various changes.)
At this point it's been 9 hours. I'm exhausted and frustrated and running out of ideas, so I ask @perfectasshole for help.
He walks me through some debugging steps (most of which i've already done), and we both get frustrated because everything looks correct but isn't working.
10) Thirteenth coming of the Live CD: `update-initramfs -u` within chroot throws warnings about /etc/crypttab and fsck, but everything looks fine with both. Still won't boot. Editing grub config manually to use the new volume group name likewise produces no boots. Nothing is making sense.
11) Rename volume group: doubles -'s for whatever reason; Rebooting gives the same dreaded "dropping to a shell" result.
A huge thank-you to @perfectasshole for spending three hours fighting with this issue with me! I finally fixed it about half an hour after he went to bed.
After renaming the volume group to what it was originally, one of the three recovery modes managed to actually boot and load the volume. From there I was able to run `update-initramfs -u` from the system proper (which completed without issue) and was able to boot normally thereafter.
I've run updates and rebooted twice now.
After twelve+ hours... yay, I have my Debian back!
oof.rant nightmare luks i'm friends with grub and chroot now realtek realshit at least my computer works again :< initrd boot failure9 -
After a few hours of trying to get Antergos installed on a SD card I decided to give up and try Ubuntu instead as it usually have better out-of-the-box compatibility. And just like that, I've got it up and running on my School computer. (bios locked, can't boot from USB but SD works for some reason).
So, I'm going to run Ubuntu from a 32GB SD Card, should I upgrade to something bigger?
Edit: I survived grub update. Phew..6 -
That moment when you're dual booting to have Windows for gaming and Windows decides it would be nice to reboot and install updates, while you're gaming of course. Without any sort of visible notification. Any. And then it fails to install its updates, because updates are hard to install, you know? Sometimes its just not the way you'd like it, you know? It's probably best to revert everything, yes? It only takes an hour after all! An hour of the lovely “Windows was too dumb to update and now has to try to make itself work again” screen with its lovely moving dots. Oh and of course you'll have to sit there and watch it because Windows has to reboot at least twice during the process. And if you're not there to tell GRUB you want to boot into Windows again Linux won't boot properly because Windows keeps the filesystems write-protected. Just to be safe you'd let it complete its marvellous ways!
I wish this was the first time this happened. But it wasn't. Fuck Windows.5 -
Linux is an amazing, stable operating system.
Until you decide to upgrade it, then you realise the update failed, your DE is broken and after using Timeshift to restore the system, your GRUB decided to commit seppuku.26 -
I booted up windows yesterday night to play some games which is weird for me since I am almost never in the mood
It had to update for like four hours automatically without asking me first so I leave it on and just go to bed
Next day, not really in the mood to play games, as usual
I go to restart into superior distro: Linux
Computer reboots into windows
Try again: fucking windows
Another: malware fills my screen once again
This fucking ass clown overwrote grub
This fucking piece of shit malware deleted my fancy dual boot screen and had the balls to casually say "Hi" while it did it
I then remembered my laptop doesn't have a keyboard combination to select what to boot from. I have to fucking boot my laptop by pressing a pinhole on the side so I can select linux.
Fuck Lenovo with their shitty button and fuck Windows
On the bright side, I guess if anyone steals the laptop they'll never know I have a second OS on it. -
Dual Boot Linux & Windows.
I hardly ever see anyone do it right. And there is just two tricks that make a completely new experience out of it. I am not sharing it with you to be nice, I am sharing because I am curious if you're already doing it.
1. Install on a second hard drive, not a different partition. Learn which button to hold on the boot screen to select the boot drive. You can still chain-load via Grub, but the major advantage, updates of neither OS will fuck up your boot loader. You can update it abso-fucking-lutely risk free. Second advantage, advice 2. becomes trivially easy.
2. Set up a virtual machine. Select as its hard drive the raw disk volume where you have installed your Windows. You can do this with VirtualBox, but QEMU with virtual machine manager make is far easier to set this up in. You can now start Windows under Linux as a virtual machine. You can always start a small application, but the big deal is installing. Start a Steam download, have it installed and ready without switching over. Running windows updates. And when you then have time to play the game, just reboot and you have it already installed.
I feel like many are not aware that you can start a virtual machine of a real hard drive. It's one of those things that improve usability of it enormously. It's something where many will just not think about it because they keep dual booting and virtual machines in two different categories in their brains, but immediately will think it is obvious as soon as they hear about it.
So, who already did this? Raise your hands!26 -
1) Remove kernel linux
2) Change kernel to linux-zen
3) Make init ramdisk
4) Everythings great -> hit reboot
5) Stuck at Grub
Me: Fuck.. Forgot to update grub config.
(Lesson : RTFM first.)1 -
Yesterday I had to start the windows 10 partition on my work laptop in order to use a shitty conference call software that works only on Windows. Windows decided that it was time to upgrade the system without asking me, so it deleted grub from the MBR, and destroyed my Linux partition (I had to recover it from a backup sector and it was full of errors).
Result: I wasted my morning fixing the laptop.
Thank you Microsoft. -
Updated windows 10, was a feature update or something
Reboot and can't boot into Debian, grub error
oopsies4 -
I see a lot of rants about Linux dual boot with Windows and Windows update fucks up grub. So I bought a new ssd and reinstalled Linux, but damn.. its always a lot of work to make everything work again. Every time I still learn new things and I don't have to be afraid anymore after Windows update
-
another big applaus for windows 10 update getting stuck and fucking up my whole GRUB!
I'm not even able to boot from live cd or select OS by UEFI anymore.. -
I was scared shitless while installing the windows creator, that it might shit on my grub like the anniversary update did! I had to chroot, reinstall bootloader, and run mkinitcpio to rebuild boot and kernel images. But thankfully everything went on smoothly this time!11
-
So I wanted a newer Linux OS for doing certain things at work. I went for Kubuntu 21.04 as it would have reasonably newer software and had the tools I needed for managing exfat partitions. I installed it on a second drive and everything went smoothly. I booted to the OS and it said it needed to do updates. Okay, lets do that. I started them and walked away.
I came back later and it had finished. I rebooted the machine because I needed to run windows. It came up to a prompt and a grub command line. WTF. I am like oh fuck, it didn't just fuck me out of my windows install. So I rebooted into the BIOS. I looked and it now had switched the drive I installed Linux on as the boot drive. That is weird. So I switched the M.2 drive to boot. It went right into Windows.
Kubuntu 21.04 installed on second drive as intended, switched the boot drive to the second drive, and then fucked itself on first update. And people wonder why non-techies don't run Linux. Its a pile of shit only a masochist would love. Because we are the only ones who can possibly sort out shit like this.
I know its probably a webpage away from fixing, but I needed to work in windows and could not be fucked to fix it. Its a distraction to actually getting my work done. Just disappointed in the entire ecosystem.8 -
I make a mistake today.
The incident happens when I opened my computer, open Vivaldi, and after all tabs are loaded, I update my Linux distro.
Unfortunately, when it updates the kernel, it got lagged, really lagged. My CPU load goes up to 14,56 (which is also the PB of CPU load of my computer). I barely can move my mouse. I decided to Ctrl-C, nothing happened. Then I decided to turn off my computer by pressing the power button once, nothing happened. Then I hold the power button for a few seconds, don't really hesitate or think of anything.
When I start my computer again, it goes to the GRUB. I realized that the GRUB load is slower than usual, but I don't really think of anything. When I choose the 'Alter Linux' option (which is the name of my distro), the GRUB says that it cannot find the kernel and thus it cannot boot. At this point it's pretty fucked up.
2 lessons that I have learned after this incident:
1. Turn off every single other window (except the Update window) when you are going to update.
2. Never turn off the computer while it's still updating, especially if there is kernel update in it.
(Luckily, I have an old version of the distro burned to a Kingston USB, so I can run the live environment of the distro from the USB, and then install another distro to that USB)20 -
10 hours ago I was trying to install manjaro on my laptop. I have run into problems with the nvidicancer drivers, as one would expect, but at least I had a working OS. I was following a video tutorial that instructed me to tweak some grub settings, and I was able to do it with no problem.
Now on the other hand, I am following the EXACT SAME procedure (same partition, same installer, same settings),but after I update-grub,everything freezes including the command itself.
How is it possible that doing the exact same procedure at different times of the day gives me two different results? Is my laptop sentient and simply "not in the mood" anymore, or what the fuck?7 -
Does anyone have dual boot Linux/ Windows and also have problems with the slow-ass periodic updates Windows shoves down your throat, needs to do multiple restarts for, but gets stuck at the grub bootloader?
It's really annoying the next time you need your PC quickly you're forced to standby for 2 hours.9 -
Let me tell you about my wonderful weekend. It all started with a game that doesn't run in wine and it ended up in the biggest nightmare of Windows Update and EFI configuration.
1 - let's boot on my Windows partition to play trackmania 2.
2 - Windows Update interrupts me while driving a track.
3 - Update keep failing over and over again.
4 - I keep trying things to fix Windows Update, but with no success.
5 - Let's try system restore, failed
6 - Let's try to do a reset. "You don't have a recovery drive". Oh, right...
7 - Let's try to upgrade Windows 10 to Windows 10, just because. Nope, "we could not determine if your pc can run Windows 10". Wait what....
8 - I guess I'll be reinstalling this trash. "Nope, can't. Don't like that partition I just formatted". Of course you can't...
9 - Had to delete the partition and let it create new ones. It created a new EFI partition. Just why???
10 - Okay that worked. Let's fix grub now.
11 - Maybe not, let's try rEFInd, because it looks fancy.
12 - After rebooting on the live USB for about 50 times and reconfiguring rEFInd without any luck, I realised the install script didn't install fs drivers for ext4. Oh, right... That's why you didn't find any Linux kernel...
13 - It can't boot windows, they're using a different EFI partition. Let's move rEFInd to the new EFI partition windows created for me.
14 - Finally everything works again. So much effort to play a freaking game without being bothered by windows update. And rEFInd abience theme looks beautiful.
I've got to say though, I learned a lot and the Arch wiki is awesome!6 -
I literally cried to the Lord while reading the Rego language reference. Man, that thing is HARD to grasp.
After a while I just gave up and switched to Windows (wanted to play) but Windows needed to apply an update thus I decided to reboot and while GRUB was counting down I decided to turn back to Arch and give a try.
I was heard, now this damn policies works and the Go code do not panic anymore.1 -
Every fucking time i see dual boot with a machine with WinCrap, the windows manager always end up messing with the boot at the bios forcing me to reinstall grub again to make a proper boot. Most of the time the Windows Boot Manager still is corrupt.
I feel rage about that, why does Windows is so badly design when it come to boot manager? I would think they would fucking figure it out after the 90'S!! But no, to fucking busy fucking with people's machine with broken update and feature nobody use... Fuck Microsoft!3 -
Anytime I have to deal with grub (cause windows update on dualboot) I get flashbacks of the grubhub ad!4
-
The fact that Windows 10 needs its own bootloader as the primary to update and fuck up GRUB is beyond me, so much for “supporting Linux”. Fuck you Microshit.
-
Dual boot pc.
HP update of various drivers. 😀
Overwrited GRUB ... 😮
One hour before see Ubuntu again. 😪 -
It only takes three commands to install Gentoo:
> cfdisk /dev/hda && mkfs.xfs /dev/hda1 && mount /dev/hda1 /mnt/gentoo/ && chroot /mnt/gentoo/ && env-update && . /etc/profile && emerge sync && cd /usr/portage && scripts/bootsrap.sh && emerge system && emerge vim && vi /etc/fstab && emerge gentoo-dev-sources && cd /usr/src/linux && make menuconfig && make install modules_install && emerge gnome mozilla-firefox openoffice && emerge grub && cp /boot/grub/grub.conf.sample /boot/grub/grub.conf && vi /boot/grub/grub.conf && grub && init 6
that's the first one2 -
I have been working on a long time, low progress project of mine that keeps on giving and giving.
Let's begin like two years ago where I dipped my toes into "more then gigabit" networking thanks to a Linus Techtips video about infiniband.
I had the dream of booting my Workstation from my NAS, a so called diskless setup.
Well, since I run FreeNAS on my Nas , a very nice Freebsd based Nas OS, everything's gonna be good.
In the beginning, there was no infiniband support.
Turns out, you don't need it, since the mellanox CX2 nics can do ETH too.
Yay.
Just took me a few weeks of anger.
So, to be able to boot something over the network, you need firmware that finds the bookable stuff and loads it.
That protocol and firmware is called PXE.
PXE needs a DHCP telling it what to do, and what is where and etc.
Freenas here I come! Installing dnsmasq on the actual freenas install turned out to be not that great of an idea because freenas thinks of itself as being an "appliance" that you don't fiddle with. So things work, until you update/ upgrade when everything will basically be wiped, except what you have done through the ui.
Ok. So I gona use a jail, a container like thing for that.
Everything is great, jail has internet, everything Installs fine, what could go wrong?
Dnsmasq can launch and work, but not as dhcp server. Some thing about permissions.
Turns out, jails have permission like things.
A few days of head scratching later, it has ALL the permissions.
Dnsmasq still can't work as DHCP server though, why you ask?
Because it needs a specific kernelmodule that isn't contained in the jail. Since jails are kind of like a docker container, they run on the same OS kernel, who does not have this module, I'd need to patch the freenas, which is an appliance, so fuck that.
Like a year later, freenas has finally added good VM support, so why not make a VM for the dhcpserver?
Well, about a year ago, I didn't know that the virtual Intel nic is a fucken unstable piece of garbage, crashing nearly any OS at some point.
So that was it for a while again.
Now to the last few weeks.
Finally dnsmasq is running in a freebsd VM with a good and working configuration which is rather simple, if those tutorial fuckers out there would explain shit instead of just telling you to copy, paste and replace X.
Now back to the PXE side.
I'm using iPXE because I have no clue how to boot anything over tftp so iSCSi it is, since that is what I can relate too.
The idea behind iscsi is to fake a SCSI disk over the network. Attached devices appear as if they are actually directly connected to the machine instead of over the network.
iPXE gets a lease from the server, can connect to it, everything is fucken great. Finally.
Except that if it "sanBoots" the iscsi drive, it can't find anything to boot.
Well fuck.
If I attach a Linux live USB over iscsi, it boots, finds grub, and crashes because the live iso isn't configured for network-boot.
But it boots.
So what's so different?
Well iPXE is booted in legacy mode, where as the content of the target is windows 10 in efi mode.
Ffff.
Ok. Can I get iPXE to boot in EFI mode?
Well yes, after like 3 days fiddling with it.
But it only finds the onboard Intel nic instead of the new Mellanox CX3 cards, and can't even connect to the target....
Sooo, I guess my options are as follows.
Either, get PXE efi to work on the network cards directly, its called flexboot and might be able to since I just found some firmware options for that.
Or give up on efi and install windows in legacy mode.
Which isn't that easy when it has to end up on a drive on my nas.