this post was submitted on 07 Jan 2024
20 points (81.2% liked)

Linux

48052 readers
909 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
20
submitted 10 months ago* (last edited 10 months ago) by [email protected] to c/[email protected]
 

Any and all help would be so greatly appreciated. I've been battling with my laptop to be able to dual-boot Ubuntu Cinnamon and Windows 10 for about four days now. I've probably gone down five or six different rabbit-holes of troubleshooting, GRUB command-line fun, reinstalling and updating the BIOS, trying and failing to deal with VMX and locked NVram. As of now, my system boot-loops and fails to run Windows, but paradoxically I am able to get Ubuntu running, which is what I am using now.

I'll try to provide as much relevant information here as I can:

  • Device: HP ZBook 17, gen 6
  • Primary OS: Windows 10 Home
  • Linux distro: Ubuntu Cinnamon 23.10
  • Ubuntu location: /dev/sda3
  • grub-install --version = 2.12~rc1-10ubuntu4
  • boot-repair Boot-info summary: https://paste.ubuntu.com/p/rxZ3D5GtpP/
  • I'm more than happy to provide more information as it's requested.

As of now, I am unable to run Windows through the BIOS. If I run via the dedicated SSD as I normally do, it boot-loops, and if I try to go through any other drives it just tells me I need to install an OS. I am currently able to run Ubuntu, but only by going through the following process:

  1. Startup menu
  2. Boot configuration
  3. Boot from EFI > Ubuntu > shimx64.efi

At this point, I am happy with two outcomes to this scenario:

  1. I am able to run my laptop with Windows 10 as the primary OS, with the ability to dual-boot to Ubuntu Cinnamon 23.10.
  2. Assuming option 1 is impossible/requires a Herculean amount of work to pull off from this state, I am willing to scrub Windows 10 from my laptop and move forward with Cinnamon as my daily driver, though I am rather inexperienced in it. I can learn to move forward as I need to and run a VM or WINE for any Windows-specific processes I still need to do. But I would rather keep this option as my dead man's switch.
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 8 points 10 months ago (2 children)
  1. Backup
  2. Install linux
  3. Use a VM (e.g. Boxes) and install windows
[–] [email protected] 11 points 10 months ago (2 children)

People aren't going to like this recommendation, but this is really the best way.

[–] [email protected] 8 points 10 months ago

I do not knoe hoe many hours I've spent in the past on grub issues because of dual booting.

Never ever again. Wasted time. Grub issue? Reinstall. Everything is in home path anyway. I don't care about the system anymore.

[–] [email protected] 2 points 10 months ago (1 children)

Mainly because my Windows license is an OEM one that won't move to the "new hardware" :/

[–] [email protected] 3 points 10 months ago

There are cheap keys or pirated stuff

[–] [email protected] 5 points 10 months ago (1 children)

I appreciate the elegance of your answer but it's a bit lacking in detail. Are you saying that I should go with the nuclear option when installing Linux and remove the old files? I might just remove my HDD in that case and install Linux into the dedicated SSD.

[–] [email protected] 6 points 10 months ago* (last edited 10 months ago) (3 children)

Yes. Nuclear everything. Fuck grub.

No idea who spreads the word of dual booting. I went into that trap as well. I've spent so much time on grub. Don't waste your time. Even if you manage to fix it after hours, you are not better off than before. You will run into the same or another issue again. And you won't remember what worked did before. Backup your stuff an run.

Nowadays I use an atomic/immutable system but I wouldn't do it on a traditional install differently.

  1. Install all packages as flatpak
  2. Server stuff is installed with podman (docker in the past)
  3. Whatever is not available as flatpak is installed via distrobox
  4. Install only base apps to the system itself
[–] [email protected] 4 points 10 months ago

Should definitely be mentioned that dual booting isn’t nearly the headache if you have separate drives and don’t try to have the boot loaders in the same partition. I have Win10 and its boot area on one ssd, and two distros of linux sharing the boot partition on the second ssd, and there’s been no issues. But there’s a good chance Windows boot gets screwed if you try to put it all on one disk.

[–] [email protected] 3 points 10 months ago* (last edited 10 months ago) (2 children)

Thanks for the no-nonsense reply. I have been smelling a little bit of bullshit with the whole dual boot fiasco here for a bit. VMX not behaving, Windows' VM utility not behaving, BIOS not behaving, it's like goddamn if I type a command I wouldn't mind if it stuck instead of seemingly getting thrown into a black hole.

Going with your approach, I imagine if I pick a home distro and decide I want to move to another down the line the transition is far easier than this? Even if I am switching from say Ubuntu to Fedora?

[–] [email protected] 2 points 10 months ago (1 children)

I've been happily dualbooting Win10/Mint for years on the very machine I'm writing from. Zero issues with boots, GRUB, no need for flatpaks, both systems work fine, both configs heavily customized.

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

That's nice :) I still wouldn't ever recommend it to a newcomer

[–] [email protected] 2 points 10 months ago* (last edited 10 months ago) (1 children)

If you keep all your personal files in your home directory and stay away from snaps and don't switch desktop environments, i.e. stay with GNOME or KDE you can switch back and forth as you wish. There are minor "bugs"/issues when switching between DEs but nothing too serious. Best is to have a seperate drive for Home but that's luxury. Choose one (bigger) distro. If you need to install another distro because a package is only available on that system, just use distrobox instead. Want to check out another distro? Use a vm. Don't use a nieche distro as a beginner. Use a system that auto updates itself so that you will never interact with the system again.

[–] [email protected] 1 points 10 months ago (1 children)

I'll have to spend some time backing up and moving some files around but I think this is how I'll move forward. I think I'll also find a cracked Win10 image and I'll keep it on a thumb drive if ever i need to full on run the OS. I use a few proprietary software that universally get the JUST USE FOSS ALTERNATIVES argument from people not in the know.

[–] [email protected] 1 points 10 months ago (1 children)

Use the virtual machine with the app "Boxes". It's incredibly easy to install

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

Thanks! I'll be sure to use that.

[–] [email protected] 1 points 9 months ago (1 children)

why flatpaks? Aren't they more insecure and bloated? They seem like the wrong direction for Linux.

[–] [email protected] 1 points 9 months ago* (last edited 9 months ago)

Following on space https://www.ypsidanger.com/wasting-disk-space/

Security? The author of that article forgets to compare it to a traditional install. And the current state of flatpaks is not what flatpaks can be. Just because it's not perfect right now, doesn't mean that it's trash. Yes, the permissions caould be given much better like on android but even on android it's not perfect and there's room for improvements. Right now it's better than traditional packages and in the future it gets even better