Perfect. So you've got separate /boot
and /boot/efi
partitions, which means dual booting will be much easier if you want to do that.
The ubuntu--vg-ubuntu-lv
is the logical volume you'll want to resize. So now we need to see how much space is available on the volume. To get that, run the command sudo df -h
and paste that output into a comment.
From there we can figure out how much space you have and how you might want to resize the volume to prep for a new install.
What is challenging about this is that your data is under your root (/
) mount, which is also the ubuntu os. If in the end you want to entirely remove ubuntu, it'll be a little trickier than if your data was in a separate logical volume that you mounted into your root system during boot.
For example many people have a separate logical volume for /home
, which makes it easier to switch distros while preserving your home folder with all of your user data, config files, etc...
But that's getting a little ahead of ourselves. Start with sudo df -h
for the filesystem usage info and we can go from there.
Happy to help!
lsblk
will give exactly the info needed. Copy the output of lsblk
and paste it into a reply and that will be perfect. Or a screenshot. Whatever's easier for you
Okay, more details will be required, but here's what I'm thinking will work.
One of the benefits of an LVM is its pretty easy to resize it.
The outline of what you can do is this (and we can refine the steps with more details)
Right now you've got your 8TB physical volume, and within that, you should have your volume group, and within that volume group, you should have one or more logical volums that are mounted for your system. The idea is to resize the existing logical volume by shrinking it, creating addition space within the volume group that can be used to create a new logical volume. Then, that new logical volume can be used to install Fedora.
Depending on how much free space you have on the entire physical volume, you could potentially dual boot Fedora and Ubuntu. Roughly speaking, the steps would look like this:
WARNING: These steps are not exhaustive because I don't know the full details of your system. This is not meant to be a guide for you to immediately implement and follow, but to help get you down the right path DO NOT FOLLOW THESE STEPS WITHOUT FIRST FULLY UNDERSTANDING HOW THIS WILL APPLY TO YOUR UNIQUE SYSTEM SETUP.
- Download a Linux ISO of your choice. Ubuntu, Fedora, it doesn't really matter. This one is going to be used to live boot on your server so you can make adjustments to your lvm without having the lvm mounted.
- Boot into the live usb
- Once you get to the desktop environment of the live usb dismiss any installation prompts, etc and open a terminal
- Install the logical volume tools with
sudo whatever-the-package-manager-install-command-is lvm2
- If your volume group is encrypted (typically with LUKS), you'll need to decrypt it to make sizing changes to the lvm(s) in the volume group. You can decrypt it with:
cryptsetup open /dev/your-disk-here name-of-your-volume-group
- For example, on my system if I were doing this it would be
cryptsetup open /dev/nvme0n1p2 server
(I very creatively named my server volume groupserver
)
- Once you can access your volume group, you can use the
df
command to see how much space is free in your volume group. The full command you'll want to run is:sudo df -h
- This command will list all mounted disks along with filesystem usage data. With this you should be able to determine how much free space you have in your volume group.
- Once you've determined how much free space you have, you can decide how big you want to make your new logical volume. For example, if your current usage is 6TB out of the 8TB total, you could resize the current logical volume down to 7TB, and then create a new logical volume that's 1TB in size for the Fedora install
- You will do the resize using the
lvm2
tools installed. The command to shrink the logical volume looks like this:sudo lvreduce --resizefs --size -1TB /dev/your-volume-group/the-lvm-name
- Once you've shrunk the lvm, You can create your new lvm
IMPORTANT NOTES:
- If at all possible, you should really back up the data. If you don't have any kind of backups in place, you're risking losing all of your data, not just in doing this operation, but in general.
- If you want to dual boot, things are more complicated because of where your
/boot
exists
Season one was entertaining enough that I enjoyed it despite the writing, but good god season two the writing was so much worse.
Can you detail the storage and is drives and mounts as well as the lvm structure? Knowing that will help people give useful advice.
Copaganda
BBSes are back!
Good to know! Wasn't expecting a masterpiece. I'll be happy with a good, fun movie with some nice animation
I haven't yet but planning to watch Kpop Demon Hunters later this week(end) with my wife. Looks like a fun romp.
The answer is in the question. They're sycophants.
And yes. Lots of us are worried about this.
Hahaha! Even tankies gotta eat! (though I'm not actually a tankie. Just happened to pick .ml when I joined Lemmy)
That is a lovely setup. I'm gonna drop that into my bash_aliases
so much more elegant than me adding the alias for each server.
I do have the servers in ~/.ssh/config
. I just got tired of typing ssh server
and wanted the be able to just type server
to ssh in.
Hahaha. Fucking autocorrect. Git log.
undefined
alias gl='git log' alias server-name-here='ssh server-name-here'
I have a bunch of the server aliases. I use those and gl the most.
If you do go with nextcloud, use the docker AIO (all in one) setup. It's the officially supported method and it's worked really well for me.
I don't use OMV, but I have a nas server I built and here is my .02
- set up an smb share in OMV for windows. Mounting that in windows should be trivial (don't hold me. Haven't used windows in years now, but last I used win10 smb was super easy to mount)
- look into docker on OMV for deploying stuff. I run docker on my NAS and host a bunch of stuff including:
- jellyfin for all the rips of my DVDs
- navidrome for all the rips of my CDs
- nextcloud to replace google stuff
- radicale for my calendars
- Joplin server for my notes
- mealie for recipes
- more stuff I can't think of right now
- with docker, if you want a GUI for creating, managing and interacting with your stuff, look at Dockge and Portainer
Edit: added more stuff
Eye of the World is the actual first book. I'd suggest starting there. Also, just a heads up, it gets to be a bit of a slog around book seven, but the finish is really worth it.
I'll give ultrasonic a try. Thank you.

Happy with my bash progress!
This is just me celebrating a small win. I've been slowly learning bash scripting, and just now I was able to quickly write a simple bash script to automate a file moving task without referring to my notes or the web!
It's not a super complicated script, I'm just happy I'm starting to internalize the knowledge I've been building.
I've been organizing my media files after ripping our DVD collection. I had all the files for The Smurfs cartoon (love the Smurfs) in the main Smurfs show folder. I wanted to put them all into their respective season folders (Season.XX). Here's the script:
undefined
#! /bin/bash for number in {01..09}; do find . -type f -name "The.Smurfs.S$number*" -exec mv {} Season.$number/ \; done
I could have done it as a one liner, but I like to keep things like this for future reference.

Question: Can I use dd to clone my luks encrypted lvm os drive?
EDIT WITH UPDATE: Operation went off without a hitch! I'm now up and running with the 512GB nvme drive! Next stop is dual booting nixos, which was the whole reason for switching to the larger drive.
ORIGINAL POST:
I’ve got a laptop running Arch (btw), with a 128GB nvme in it. The nvme has two partitions. EFI boot, and a luks encrypted lvm.
I’ve got a 512GB nvme I want to swap in. I think I can clone the device with dd, update the uuids, expand the lvm, and drop in the 512 nvme, but my searching hasn't given me a clear confirmation of this. Am I correct in my thought process, or am I setting myself up for disaster?

In vim I can't type the ~ character
Edit 4: I think I've fixed the issue. I uninstalled vim, deleted ~/.viminfo
and /etc/vimrc
, then reinstalled vim. I jumped around a file a bit, went in and out of edit mode, and type a bunch of ~
and it didn't jump the text around at all. Still not sure what I did, but it appears this variation of turning it on and off again worked.
I'm hoping someone can help me with this.
I was holding my laptop while I had a vile open in vim, and I slipped, mashing a bunch of keys on the keyboard by mistake.
After doing this, I can't type the ~
character anymore. Anytime I try to type it, it jumps the text to the last line, putting the last line at the top of the editing screen so that's the only line of text showing.
I thought maybe I had set an option that would show up in ~/.vimrc
, but there's no ~/.vimrc
file. There is a /etc/vimrc
file, and a ~/.viminfo
file.
I've searched and had no luck finding out what I did to cause this behavior. I also tried looking through the vim ma

FIXED: Help Fixing VPN Connection When Resuming From Suspend
Edit 2: Fixed! Thanks to @[email protected] for this github issue link.
The solution is in the last comment suggesting to set ManageForeignRoutingPolicyRules=no
in /etc/systemd/networkd.conf
Original post is below...
So I've got something I don't quite know how to find a solution for and I'm hoping this lovely community can help!
I've been experimenting with Arch (btw) with Hyprland to learn more about the install process, and linux in general, and to see if I like tiling window managers (I do).
I've installed this on a thinkpad I use for tinkering/learning, and the problem I'm encountering is that when I open up the laptop and the system resumes from suspend, the VPN connection is active, but broken, or maybe leaky.
What I mean by that is prior to suspending, with the vpn connection active, if I run curl ip.me
, the result is the vpn server

I made Loukomedes (Greek donuts)


Growing up these donuts were a new year's tradition. I hadn't had them for decades, so I decided to learn how to make them. They're super easy to make and super delicious. It's a fried donut with a wonderfully crispy outer shell and a soft pillowy interior. They're traditionally topped with warm honey, cinnamon, and chopped walnut (I also toasted the walnuts).

Perl rename command works at cli but not in alias or bash script
EDIT 2: After learning that aliases aren't really suited for regex, and trying the script, I thought maybe reloading the .bashrc
file wasn't enough to refresh the aliases, so I closed my terminal and after reopening the terminal and trying the script again it works just fine.
Okay, I've tried searching for help on this and I can't find anything, and I'm banging my head on my desk trying to figure out how to get this to work.
I routinely have to capitalize the first letter in a series of files that are passed to me. So I'll get:
undefined
file01 file02
And so on. I use perl rename (I'm using Fedora) with the following command and regex, and from within the directory it works as expected:
undefined
prename 's/(^[a-z]?)/\U$1/' *
I do this a lot. At least once a day, which calls for an alias or script.
I tried adding it as an alias to my .bash_aliases
like so:
undefined
alias cap="prename 's/(^[a-z]?)/\U$1/' *"
And when I do, instead of capitalizing the first letter of the filena

Book recommendations to learn programming fundamentals
Hello! I’m looking for book recommendations for learning programming fundamentals.
To be clear, I’m not necessarily looking for a book on learning language(s), but rather, programming, theory I guess you might call it?
For example, I’ve been playing around a lot in my terminal writing bash scripts, and I just implemented my first function. Another example, I know the phrase “Object Oriented programming”, but have no idea what it means.
I learn well by doing, and I’ve learned a lot just writing scripts and reading about bash scripting, but I also realize there’s a lot about programming at a higher level that I know nothing about.

Edit: it's CentOS 7 (original: CentOS 3 on a self checkout?!?)


Am I crazy in thinking that the shop I was in that has CentOS 3 running their self checkouts should have a more up to date and currently supported OS? These are brand new self checkouts (the shop has had them for about a year now, but you get my point.)
It’s a genuine question. Am I wrong in thinking that using this OS on a self checkout is a terrible idea? (FWIW this shop is an international retailer)
I have no stake in the shop or anything. I just happened to be there when they had to reboot a self checkout and I noticed the OS version as I was going by.

Requesting Help with txg_sync
Error I Can't Diagnose
First, before this rather large infodump, I want to thank anyone that takes the time to read through this to offer any information or advice on trying to resolve this issue.
Here’s the issue I’ve been struggling with.
I keep getting this error on my server:
undefined
INFO: task txg_sync:1615 blocked for more than 241 seconds. Tainted: P O 5.15.0-112-generic #122-Ubuntu
Background:
I’ve got a homeserver running Ubuntu server 22.04 (no DE) with an Intel Core i7-6700K CPU @ 4.00GHz, 32GB RAM, and two ZFS pools. The OS is installed on its own 128GB SSD, and the two ZFS pools consist of a 128GB SSD in its own pool for the server’s cache, and a 4x8TB HDD RAIDZ1 pool that is my main data/server storage (much more detailed system info below).
I have a bunch of services running in Docker containers, and overall everything is great, except for when that error rears up.
The error seems random, but occurs most reliably, but not consistently, when I’m trying to write larger

Kicked macOS to the Curb and Installed Asahi Fedora Gnome
Most of the switching posts are from frustrated windows users making the jump. I’m already a Linux user on my server (Ubuntu for now, going Debian at some point) and a 2014 iMac for tinkering/testing (KDE Neon), and a couple of raspberry pis (raspberry pi os headless) but our main household computer is an M1 Mac mini that my wife and I both use.
Lately I’ve been super frustrated with macOS.
- First, macOS just refuses to mount my USB 3 drives. I have a 1T seagate ssd and a 3T WD hdd (both exFat) and it just flat out refuses to see them. The same drives are visible and mount just fine on my server and the KDE iMac. On macOS, they’re invisible. They don’t auto mount, and they don’t show up in disk utility (gui or shell), which is really fucking annoying when I’m trying to move large files between machines
- I use Cryptomator to encrypt data on macOS, and because of their whole walled garden shtick and how they continue to lock out system extensions, macfuse routinely breaks,

Spiced Lamb Taco on Fresh Naan


Made delicious Moroccan spiced lamb tacos in fresh naan with:
- onions pickled in apple cider vinegar, white vinegar, lemon juice and a touch of honey
- thinly sliced cabbage
- fresh made tzatziki (made this morning so the flavors could marinate)
- tomatoes roasted with garlic, onion, salt, pepper, and oregano
UPDATE: Recipes and instructions!
These are not all original recipes, but most of them are modified, so I've included the recipes as I made them, but also links to the original recipe source.
Bread
Naan (source) (Naan can be made ahead. I made mine fresh before prepping the meat)
Ingredients:
- 1 teaspoon sugar
- 1/2 cup warm water
- 1/4 oz. active dry yeast (2 1/4 teaspoons)
- 2 1/4 cups all-purpose flour
- 1/2 cup plain yogurt (I use whole milk greek)
- 1/2 teaspoon salt
- 1 Tablespoon garlic powder (approximate. I didn't measure, just dumped some in)
- 1 Tablespoon onion powder (approximate. I d

Chicken Gyros


Made chicken gyros today, made the chicken, tzatziki sauce, and the pita bread. It all tasted fantastic.

Made pita bread and then took the pita bread and made pita chips!



Pineapple Coconut Curry and Fresh Naan


Made pineapple coconut curry over roasted cauliflower and a fresh batch of naan. Delicious.

What I Learned Using Linux This Week (05)
Not as much time to tinker this week, but I still had some fun and learned some things!
How to run a memory test using memtest86+
My error message is back, which means my nuke and pave approach didn’t solve the problem. So, yay to having a record of the error message?
Here’s the error:
undefined
echo 0 > / proc/sys/kernel/hung_task_timeout_secs" disables this message. INFO: task txg_sync: 3557 blocked for more than 241 seconds. Tainted: P 0 5.15.0-94-generic #104-Ubuntu
I decided to do a little more searching and found that the txg_sync
is a zfs
task. I know zfs uses a lot of RAM as part of it’s processing. As a result/starting point, I decided to do a memory test to see if I messed up any of my RAM modules when I knocked the shit out of my server.
Running a memory test was really easy. I downloaded the latest memtest86+ ISO, used balena etcher to flash it to a usb stick, booted from that stick, and let the test run.
I let it run for two full passes and got no errors.
So

What I Learned Using Linux This Week (04)
Edit: I've made an account here on lemmy.ml as I routinely can't comment or post from my account on lemmy.world.
Bit of a week! As usual, had a lot of fun tinkering. Here’s my takeaways from this past week(ish).
I finally learned how to set up a cron job with elevated privileges
This is something I've had on my , "I should really get this figured out" list for about two years now, but instead have been inconsistently typing my rsync commands (Since I've also been too lazy to set up the aliases for these commands).
I spent a couple of days rebuilding my server from the OS up (for reasons which I will explain momentarily), and since I'm up on a fresh OS with all my containers and services up and running, I figured it was time I figure out this cron job thing.
The approach I took was to write a simple bash script for my backup. The script is four lines. Three of which are sudo rsync ...
, and the last of which is a curl -d ...
command.
The rsync
commands are to incr