this post was submitted on 22 Aug 2023
0 points (NaN% liked)

Linux

47233 readers
782 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
 

I'm looking to finally use Linux properly and I'm planning to dual boot my laptop. There's enough storage to go around, and while I'm comfortable messing around I'd rather not have to run and buy a new device before school while fixing my current one.

https://m.youtube.com/watch?v=VaIgbTOvAd0

This was the general guide I was planning to follow, just with KDE Plasma (or another KDE). I was going to keep windows the default, and boot into Linux as needed when I had time to learn and practice.

I assume it should be the near similar process for KDE Plasma?

I'm ok with things going wrong with the Linux install, but I'd like to keep the Windows install as safe as possible.

top 27 comments
sorted by: hot top controversial new old
[–] kilgore@feddit.de 0 points 1 year ago

Whatever you do, don't cross the streams!

[–] cmnybo@discuss.tchncs.de 0 points 1 year ago (1 children)

If your laptop has room for a second drive, it's easiest to put Linux on its own drive.

[–] otter@lemmy.ca 0 points 1 year ago (1 children)

Unfortunately there's just the one slot. I'm going to keep that in mind for future purchases

[–] Pantherina@feddit.de 0 points 1 year ago (1 children)

So then if the drive is big enough, use the shitty windows partition manager and shrink the windows partition, leaving as much space as you want for Linux.

Also you can try Linux on a Live ISO or even install it on a USB stick, but with UEFI thats a pain.

[–] MalReynolds@slrpnk.net 0 points 1 year ago (1 children)

Ventoy on a fast usb stick or better a nvme case (cheap one + 256Gb is easily sub $100 and who can't use screaming fast external storage) via a usb3+ port is pretty godlike and really convenient.

[–] Pantherina@feddit.de 0 points 1 year ago (1 children)

But ventoy is not persistent right?

[–] MalReynolds@slrpnk.net 0 points 1 year ago (1 children)

The specific ISO/distros can be (relatively) easily made persistent if they're built with that in mind, there's a list of choices in that link. I have a custom Arch ISO on mine that was a doddle to enable persitence on...

[–] Pantherina@feddit.de 0 points 1 year ago

Thanks! Interesting!

[–] Dotdev@programming.dev 0 points 1 year ago* (last edited 1 year ago) (1 children)

Turn off secure boot and just check if anyone has ever run your device with linux before. And kde plasma is a de not a distro.

[–] 9tr6gyp3@lemmy.world 0 points 1 year ago (1 children)

You can leave on secure boot nowadays if you install and configure the sbctl package. It can use the Windows secure boot method, and you'll have a successful dual boot deployment.

[–] otter@lemmy.ca 0 points 1 year ago (2 children)

Do I need to turn it off initially and re-enable it after?

I'm a little unsure of when secure boot becomes a problem

[–] Pantherina@feddit.de 0 points 1 year ago

Thats what I thought. Secure boot normally needs a distro signed by damn Microsoft. This only applies for official Ubuntu spins and Fedora. Maybe some others. But the distro can create its own secureboot entry once running, and then you can enable it again.

[–] deadcade@lemmy.deadca.de 0 points 1 year ago (1 children)

For a distribution like Fedora, it's usually not required to turn off secure boot. You'll know if it's needed when booting the install USB, as it'll give a "security policy" (or similar) warning.

Other things of note when dual booting are Windows "Fast Boot" and "Hibernation" features, which can put hardware in a state where it is unusable from Linux. Turning those off in Windows can fix things like your network interface not working. Windows also stores the time in a different way than Linux, if you are in a non-utc timezone, setting up NTP (automatically syncing date and time) on both Windows and Linux can help.

[–] Pantherina@feddit.de 0 points 1 year ago

For me this didnt do anything. You need to reboot, and when the screen is black, force kill by pressing the power button. Lol Windows.

There also is a specific shutdown command with some parameters to force that. You can create a .bat file on your Desktop and use that to really shutdown your PC.

[–] Weslee@lemmy.world 0 points 1 year ago* (last edited 1 year ago) (1 children)

Just incase you're unaware, if you're looking to learn Linux but keep the windows until you're familiar enough with Linux, there is a way to install Linux in windows as a container, it's called WSL 2.0

Might be easier for you to learn with, and if you brick it then you can just wipe the container and start again, takes minutes to do

[–] undrwater@lemmy.world 0 points 1 year ago (1 children)

This is probably better than dual booting. You're learning the command line, which is the happiness foundation needed to enjoy linux.*

[–] Pantherina@feddit.de 0 points 1 year ago

And then you are ready to install Ubuntu and use Snaps... I dont know. Yes its useful but for me the use of the command line comes with time.

[–] Cralder@feddit.nu 0 points 1 year ago (1 children)

Windows and Linux keeps track of time differently. One stores the time in your current time zone. The other stores the GMT time and adds an offset. I forget which one does what but it results in your time being wrong each time you switch from Linux to Windows or vice versa. You can search for how to fix it, its not very hard, or you can just ignore it and reset your clock each time you switch OS.

[–] SpaceCadet@sopuli.xyz 0 points 1 year ago* (last edited 1 year ago) (1 children)

I don't think that's the case anymore.

I just checked, the time in the UEFI BIOS is in UTC, yet both Linux and Windows 10 display the local time correctly as an offset to UTC. I didn't have to do anything special for that.

Edit:

So I looked a bit deeper into it, and this is apparently controlled by a registry key called RealTimeIsUniversal in [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]. You can paste the text below in a .reg file and then import it to set the parameter:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
"RealTimeIsUniversal"=dword:00000001

I confirmed that this setting exists on my system, but I have no memory of ever manually setting this parameter. It's documented in the Arch wiki though, so it's possible that I did set it and forgot about it.

In any case, if you do a fresh Windows install and your time differs between Linux and Windows , this is what you should check.

[–] Tippon@lemmy.dbzer0.com 0 points 1 year ago (1 children)

It is with Windows 10 and Mint. I booted into Mint a few days ago, and when I switched back to Windows, the time was wrong.

Apparently it's easy to fix, but I keep forgetting while I'm in Mint >.<

[–] putoelquelolea@lemmy.ml 0 points 1 year ago (1 children)

You can also fix it by running the following command on your Linux machine:

timedatectl set-local-rtc 1 --adjust-system-clock

[–] Pantherina@feddit.de 0 points 1 year ago

You could but this as an autostart script:

cat > ~/.config/autostart/adjust-time &lt;
[–] Pantherina@feddit.de 0 points 1 year ago (2 children)

I would now say never on the same disk. A shame because many laptops only have one slot. But Windows 11 may do anything and you never know what happens after a "Windows update"

[–] otter@lemmy.ca 0 points 1 year ago (1 children)

I've seen people talk about Windows messing up the Linux install. Have there been cases where the windows install itself was messed up after an update (or is it straight up "you never know" and anything can happen)

I only have one slot, and I'd prefer to not have to carry around a USB or external drive if I can avoid it. I'm ok with having to redo the Linux install/setup, and it might be nice practice anyway. But I definitely need to have windows running and stable for schoolwork.

[–] Pantherina@feddit.de 0 points 1 year ago

So for me USB sticks dont even work on Secureboot, so you need to disable that.

Then you can shrink your windows partition and install Fedora or something in the rest. Only use the unallocated space.

I actually removed the windows Bootloader manually, the IT simply removed the Linux bootloader instead, lol.

[–] UnPassive@lemmy.world 0 points 1 year ago (1 children)

Twice after a windows update I lost my bootloader menu and my laptop would boot straight into Windows. After the second time I just removed Windows. Some investigation revealed that "Windows does not support dual booting" which I believe translates to "we will ocationally cause issues that a beginner would struggle to fix in the hopes of them staying on Windows." Just a theory. Separate drives for sure if you can. No idea if they still do this as it's been years since I dual booted

[–] Pantherina@feddit.de 0 points 1 year ago

Yes its horrible. This may happen during their weird updates.

Interestingly you can swap drives Windows 11 and Fedora, it does "repair" bullshit at the beginning but works.

If you never update windows (which is so horrible that you actually need to consider that) you can first install it, shrink it and install Linux.