this post was submitted on 23 Jul 2025
75 points (100.0% liked)

Linux

56975 readers
479 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 6 years ago
MODERATORS
 

I have a PC currently configured to dual boot Windows 10 and Linux Mint. I don't need Windows anymore, but Mint is working just fine and I'd rather avoid wiping the whole thing and starting over. Is there a safe way to just get rid of Windows?

you are viewing a single comment's thread
view the rest of the comments
[–] FauxLiving@lemmy.world 1 points 1 week ago* (last edited 1 week ago) (1 children)

There's not many things that are happening at boot: the UEFI Boot Manager points to GRUB which boots your system.

It's almost certainly one of them. The Boot Manager's entries can be fixed with efibootmgr

Most likely you'll also have an issue after it boots because of the swap from being on /dev/sda to /dev/nvme0n1. Your home directory or swap file from the USB drive probably in the fstab like:

/dev/sda3     /home    ext4    options   0 0
/dev/sda4     /swap    swap    options   0 0

Now /dev/sda doesn't exist anymore, because you're on an NVME drive. Now those directories will be at /dev/nvme0n1p3 and /dev/nvme0n1p4. You'll have to edit fstab manually to fix this. If fstab is using UUIDs then it'll work as-is since the partition UUIDs would have been part of the image.

e:

Obviously that’s not the exact dd command I used, for privacy reasons.

Unless you did

dd /dev/urandom /dev/nvme0n1

Then you're probably fine.

[–] over_clox@lemmy.world 1 points 1 week ago (1 children)

Wait wait, I just double checked.

Apparently my 128GB is a SATA M2.

Fuck I'm still learning this new hardware. 🤦‍♂️

[–] FauxLiving@lemmy.world 2 points 1 week ago (1 children)

In almost all cases it'll be the same situation. The boot manager is pointing the wrong way. You added the entry to the 100GB drive when you (or whatever Mint uses to install) ran grub-install. You also have an existing entry for the OS on the 128GB drive.

The only way it would have worked seamlessly is if you plugged the 128GB drive into the same connection that the 100GB drive was on AND both the original OS and Mint both use grub AND install it in the same location.

It's an easy fix once you know what to look for (just run efibootmgr --unicode and you'll see the boot entries).

Apparently my 128GB is a SATA M2.

[–] over_clox@lemmy.world 2 points 1 week ago* (last edited 1 week ago) (1 children)

I hear ya there, but..

I be getting really confused when one config boots from /dev/sda, but when I have my backup drive attached (not the boot device), it boots from /dev/sdb

Hell I dunno, I probably confused the hell out of my laptop plus myself with my cutout mod reconfiguration, but it's happy to boot from almost anything now.

Almost...

Hey, at least I know how to restore to my previous state from backup via dd 👍

[–] FauxLiving@lemmy.world 2 points 1 week ago

I be getting really confused when one config boots from /dev/sda, but when I have my backup drive attached (not the boot device), it boots from /dev/sdb

Hell I dunno, I probably confused the hell out of my laptop plus myself with my cutout mod reconfiguration, but it’s happy to boot from almost anything now.

You probably just have multiple boot entries and some are higher priority, so if you plug in a drive it's boot config is higher in the boot order and since it is available it'll boot that.

Just run

efibootmgr --unicode

You can see all of the entries and their boot order.