from Schykle's Blog

A modern OS deserves a modern filesystem

In my recent exploration of Pop!_OS 26.04, I made note that I’d really love to see the folks at System76 adopt BTRFS in place of Ext4. A copy-on-write filesystem with compression and snapshotting makes perfect sense for an operating system designed for getting work done. Luckily for us, we can do a tiny bit of hacking to convert a fresh install of Pop!_OS from Ext4 to BTRFS while maintaining encryption!

Installing Pop!_OS

The first step in the process will be performing a fresh install of Pop!_OS. Technically you can do this with an existing installation and the steps will be very similar, but I’d prefer to do this clean. My guide is based on adapting official documentation and manpages to the specifics of Pop!_OS. Feel free to adapt my instructions to fit your particular needs!

When you boot into the Pop!_OS live session via USB, the first thing that should Pop!_up is the installer (was that funny? I thought it was funny). This is the easy part. Proceed through the installation as you typically would, setting your language/keyboard settings, selecting a clean install, and making sure to enable encryption (which is selected by default, so if you’re turning it off... BAD!).

Once the installation completes, we can move on to the filesystem conversion!

Converting ext4 to btrfs

Rather than pressing that shut down or restart button in the completed installer, open up the Disks application and navigate to your drive. For me, it’s a 512GB Kioxia drive. The largest partition/volume on this drive will be a LUKS encrypted root partition. It’ll be locked and you can unlock it by selecting it and pressing the little padlock icon on the bottom left of the Volumes section. The password will be the same one you used during the install, either the same as your login password, or a custom one if you chose to use a separate password.

Once the system unlocks/decrypts that drive, you’ll have access to the contents within, which will be an ext4 partition that needs to be converted. The first step will be to make sure the filesystem is clean. Open up a terminal and proceed with the following:

sudo su
fsck -fvy /dev/mapper/data-root

Next up, the filesystem conversion itself.

btrfs-convert /dev/mapper/data-root

This may take some time, but once it’s complete, it’ll provide you with an important piece of information you need for some steps later on. In the output, the UUID for our new (target) filesystem. Copy just the target UUID to your clipboard.

Now that you’ve converted the filesystem, it’s time to clean it up just a bit. It’s time to mount it with the following (I’ve chosen to enable ZSTD compression as I’ll touch on later):

mount -o compress=zstd:6 /dev/mapper/data-root /mnt

The next step is to delete the snapshot it created when converting from ext4 to btrfs.

btrfs subvolume delete /mnt/ext2_saved

Now it’s time to defragment the filesystem. An optional but sensible step and will ensure the data on disk makes use of ZSTD compression.

btrfs filesystem defrag -v -r -f /mnt

Lastly, “balancing” the filesystem, which essentially compacts data to make use of potential free space that comes from inconsistent block sizes. Most of the time, just a run on metadata is done, but I always prefer to do a full balance as it’s relatively fast on modern hardware with just a single drive/volume. If you were running this on multiple terabytes of data and disks, pass -m.

btrfs balance start /mnt --full-balance

OKAY OKAY... we’re almost done, I promise.

Updating FSTAB and pointing the right fingers

Now that the root filesystem has been converted to BTRFS and cleaned up properly, we need to update the fstab and the bootloader to reflect the changes so your system spins up with the right information.

The first step, modify the fstab on the installed system.

nano /mnt/etc/fstab

That file will probably look something like this...

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system>  <mount point>  <type>  <options>  <dump>  <pass>
PARTUUID=6ce4c755-19e7-4186-888e-08e94bf23a97  /boot/efi  vfat  umask=0077  0  0
PARTUUID=a3b707a3-2bf1-4151-aca2-2e10ea039680  /recovery  vfat  umask=0077  0  0
UUID=8b2ba665-8bb8-4237-ac34-021bf6ae0477  /  ext4  noatime,errors=remount-ro  0  1
/swapfile  none  swap  sw,pri=10  0  0

You may notice a familiar line... UUID=. That’s what we’re fixing. Remember that line we copied earlier? That’s the proper UUID we need to put in that space. We also need to make sure we change ext4 to btrfs. I generally also remove noatime and I tend to add compress=zstd:6 (most systems default to 1, but I prefer 6) so we can benefit from BTRFS compression! I also removed errors=remount-ro as BTRFS automatically switches readonly upon encountering errors. Here’s an example of what my corrected fstab looks like:

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system>  <mount point>  <type>  <options>  <dump>  <pass>
PARTUUID=6ce4c755-19e7-4186-888e-08e94bf23a97  /boot/efi  vfat  umask=0077  0  0
PARTUUID=a3b707a3-2bf1-4151-aca2-2e10ea039680  /recovery  vfat  umask=0077  0  0
UUID=4800fb71-c03d-4925-96b2-f5bbd28c6a6f  /  btrfs  compress=zstd:6  0  0
/swapfile  none  swap  sw,pri=10  0  0

Next up, let’s make sure the bootloader does what it’s supposed to. For this step, we need to mount the boot partition, chroot into the installed system, and make sure the appropriate BTRFS commands exist! I’ll walk you through it, but essentially what we’re going to do is remount the partition with all the right settings applied, make sure the appropriate system directories get mounted within that space, and then chroot in.

Your boot partition should be a ~4GB FAT partition at the font of your filesystem. The easiest way to locate it is by just selecting it in GNOME Disks and taking note of which “Device” it is. For me, it’s /dev/nvme0n1p1 (this may vary if you use SATA SSDs or HDDs and can look like /dev/sda1, for example). This is what I mounted at /mnt/boot/efi.

cd / && umount /mnt
mount -o compress=zstd:6 /dev/mapper/data-root /mnt
mount /dev/nvme0n1p1 /mnt/boot/efi
for i in /dev /dev/pts /proc /sys /run; do mount -B "$i" "/mnt/$i"; done
chroot /mnt
mount -t efivarfs efivarfs /sys/firmware/efi/efivars

Now that we’re chrooted into the system, we need to install the btrfs-progs package. Make sure you’re connected to the internet, and then run the following:

apt update && apt install btrfs-progs

This will typically update the initramfs but I like to be certain, so from there, we’ll run a command to do exactly that. We’ll also then trigger kernelstub which should sync everything up and update your bootloader.

update-initramfs -c -k all
kernelstub

Aaaaaand, bada-bing, bada-boom!

Booting into the new system

From there, it’s time to experience greatness! Exit the terminal and reboot your system. It should reboot as it would during a standard installation, and when you enter your decryption password upon boot, things should work as if nothing ever happened. The only difference being that you’re now really cool because you use BTRFS!

Thanks for coming along on this little journey! It’s the result of multiple trial-and-error experiences, reading documentation I barely understood, and overall just a fantastic learning experience. I hope it helps anyone who wants something similar!

Documentation referenced for this guide:

System76 Kernelstub Documentation Arch Linux BTRFS manpage Red Hat fstab introduction Debian initramfs-tools manpage Arch Linux chroot manpage

 
Read more... Discuss...

from esoterical

I keep going back and forth between opening myself up to others and staying within myself because I know that’s where I’m safest. I write and write and every time I think I wrote something of substance, I take it down after a week or so because I’m embarrassed. Because I know whomever out there knows me, knows me as the quiet reserved girl that never speaks up.

It will be different sooner rather than later, I’ll be writing more and publishing and I’ll have no choice but to accept my writing as it is and take constructive criticism as it comes. Nothing I write will ever be perfect, no point of view of mine will ever be fully considered. I just have to be okay with that, and I’ve been shot down enough times in my life to be buffed of that insecurity.

It’s people finally seeing me as a writer and researcher with rather strong and sometimes underdog opinions that makes me want to quit and hide myself over and over again. At some point it has to stop. I have so much to say about the wisdom and information I have and will continue to learn. At the core of it all, I just want to share knowledge and inspire others. Both of which I’ve had terrible experiences with. I’ve been too young, too disillusioned, too judged.

I’ve also grown older, integrated my more of my shadows, and I see everyone as human as I am. So it’s time I start coming out of my hermit shell.

 
Read more...

from Roscoe's Quick Notes

IU Mens Basketball

Thursday Night Basketball.

Tonight my men's college basketball game of choice has the (9-0) Indiana Hoosiers hosting the (2-8) Western Illinois Leathernecks in a game scheduled to start at 5:00 PM CT.

GO HOOSIERS!

And the adventure continues.

 
Read more...

from darkest before dawn

Reflecting on a human's moment.

breakfast

Pepper and fat penetrate the whole house.

Unseen haze fills my nostrils, clouds adjacent rooms.

An egg pops and sizzles. Sausage cools on the counter. Biscuit baked, ready for dressing.

Breakfast has come.

A moment special. A moment of need. Made holy with a patient word of thanks.

Sometimes I spend it alone. Sometimes together. Always pleasant. But aren't meals always pleasant?

I can't recall Ever eating Angry or sad.

Though I'm sure, statistically, I must have felt some emotion Other than joy or satisfaction.

A friend told me man did not always eat three meals.

He asserted a Mr Kellogg introduced the idea in order to push his 'wellness' clinic in the early 20th.

True or untrue, This is something I choose not to know.

Knowledge I decide I don't want or need.

Sausage. Bread. Egg. Joy.

That is the food pyramid this morning.

And it is magnanimous.


#poetry

 
Read more...

from brendan halpin

Though I consider Mastodon to be my “real” home on social media, I do still have a Bluesky account, mostly to keep up with wrestling news because I appear to be the only wrestling fan on Mastodon.

So every day I get a glimpse at the difference between corporate social media and non-corporate social media, and it basically boils down to this: corporate social media wants you angry.

People used to joke about this on Twitter: “Been off Twitter for two days. Who are we mad at?” they’d say. Bluesky is less toxic, but still—spend ten minutes on it and you’ll find something to get angry about.

I’m not anti-anger. Anger is an appropriate and healthy response to a lot of things.

But, and I speak from experience here, getting angry is not the same as doing something. This doesn’t mean you shouldn’t get angry, but if you go on social media and get angry about something, that’s not activism. That’s not helping anyone. Especially you.

There are more bad things happening in the world than any of us have time or energy to be angry about. We’re simply not built to take in the problems of billions of people and get moved to anger about all of them. So eventually we get inured to bad things and don’t get angry about anything important because we’re overwhelmed.

Or we still have energy to get angry but we waste it on dumb shit like “a famous person said something dumb on a podcast.” I mean, yeah, I’d prefer not to support celebrities who are bad people, but also there’s plenty of stuff to be angry about right in my own neighborhood. There’s stuff I can get angry about and actually do something about.

I don’t know if this is by design or by accident on the part of corporate social media, but I believe the more energy you spend getting angry about dumb stuff, or stuff that doesn’t really affect you, the less energy you’ll have for things that are important and do affect you.

In other words, corporate social media is keeping us passive and giving us the feeling of doing something while actually preventing us from doing things.

 
Read more... Discuss...

from Ernest Ortiz Writes Now

Every raindrop is also a single scratch from my pencil.

The rain makes me sleepy and drains my energy, but it also gives me solace.

While I’m stuck indoors the rain gives me opportunities for new ideas.

My composition notebook, pencil, and sharpener are like a warm blanket.

Always ready to write.

#writing #rain

 
Read more... Discuss...

from Nightjar

I'm tireless, energetic, if not a little hard to see. Maybe I don't want to be found. I'm busy. Plain, I hide out in these verdant arroyos, mesquite woods

in this Dwarf Umbrella, pish pish pish — overgrow, get messy I am nine years, one month old today. Call me something new

like the little one with drag queen eyes. Honor me, not like before: maybe joystick, how about camel — I can keep going like this.

#poetry

 
Read more... Discuss...

from Lastige Gevallen in de Rede

G1Vandaag over De Krentenpap crisis

Wij van G1 Vandaag zijn de straat opgegaan om de meningen te horen van het volk levend lopend boven op de straat.

Mevrouw, mevrouw wat vindt u van ...

Mooi, dat je het vraagt, ik loop hier al dagen om op zoek naar een team on the spot journalisten in de hoop mijn mening publiekelijk te ventileren. Mijns inziens is het schandalig, een jaar geleden heb ik het al aangekaart op menig politiek menu tijdens de opgewarmde debatten maar niemand, niemand trok zich er iets van aan. Nu is het zover, en ik had het gezegd, ik zei het. Krenten zijn niet goed beveiligd, de kommen te open. Ze kunnen als ze het willen zelf zo uit de kom rollen en verdwijnen op de bodem, Iedereen die het wil kan erbij en ze meenemen, de krenten zijn in gevaar. Het is de hoogste tijd voor actie, het is nog niet te laat alleen aan de late kant. Samen komen we er wel uit om de krenten er in te houden. U mag nu voor mij buigen.

Meneer, meneer heeft u een mening over ...

De krenten? Wel ja, ik denk dat de pap niet goed is, als pap lauw is of te waterig dan trekken krenten dat niet, in de basis, het fundament zit het probleem. Daar moeten ze wat aan doen. Op de manier waarop ze nu bezig zijn wordt het nooit wat.

Meneer 2, meneer 2 wat vindt u van de huidige krenten situatie?

O eh ja, bedroevend, ik ben zelf niet zo'n pap liefhebber maar ik ken veel mensen die hier door zijn getroffen, en ik zie en ervaar het leed mede in hun bijzijn, dan de pijn, het onvermogen dit te verwerken, heel lastig, sorry, ik krijg het nu zelf ook moeilijk. Ik.. het spijt me.

Mevrouw, mevrouw heeft u iets te zeggen over de krenten uit de pap situatie?

Het is schandalig! Ongehoord, krenten moeten in de pap, zonder dat is het geen pap maar vals eten! Dit kan zo niet doorgaan, de wereld is bar en boos, het klimaat, steeds weer dezelfde vallende kabinetten, diverse oorlogen, brandende bosjes en nu dit, ik doe amper nog een oog dicht, vooral overdag niet zelfs niet na het stoombad.

Meneer, meneer, heeft u iets te zeggen over de crisis..

Ik eet mijn pap altijd al zonder krenten, ik kan dat spul niet eens betalen. Het is best te doen, lekker zelfs, ik snap alle drukte niet.

Mevrouw, meneer, hebben jullie gedachten over de kren ..

Jazeker, erg, het is zondermeer erg, die vorige spreker heeft u zijn legitimatie gezien...

We willen zijn naam graag doorgeven aan de kliklijn, arme mensen zijn zo gevoelloos, kennen het verschil niet tussen goed en slecht, het is een wonder dat ze oprecht lopen, echt. Onwaarschijnlijk.

De krenten horen in pap, zonder krent is pap onmogelijk. Dat weet iedereen met een modaal en hoger salaris, echte mensen met nut voor samen leven en dineren hier in deze schitterende nog wel groene, rustige en veilige villa wijk om en nabij de kopstad Smægmå.

Nou tot zover G1 Vandaag op de eerste de beste laan nabij de G1 Vandaag studio, terug naar die studio voor meer hoogdravend nieuws over de krentenpap crisis.

 
Lees verder...

from The happy place

As I made the slow lunch jog around my regular route, sun shining on ice coated roads, I was listening again, as is my habit, to Ava Max.

Shall we say, I had a powerful revelation, in the sun — rose cheeked with snotted nose;

I’m thinking of course about the ”So Am I” lyrics:

Do you ever feel like a misfit?  Everything inside you is dark and twisted  Oh, but it's okay to be different  'Cause baby, so am I (so am I, so am I, so am I-I-I-I)

I think this paints a powerful picture: to feel this inside: as everything being both dark and twisted.

It’s true of course what they say, that the hurt of the soul is not always visible on the outside, but on hearing these words, I felt like this (this is the revelation):

Inside, I felt like a beautiful pop queen with long blonde hair and festive makeup; glittering, who nevertheless feels dark and twisted inside.

As further ”proof”, Hilary duff also does not have any contact with her sister.

And again, the contrast is striking, because on the outermost side, I look like a (handsome) troll.

 
Read more... Discuss...

from Divinae Proportiones

Oggi apro il mio blog sull'arte della miniatura. Ho intenzione di scrivere un testo sulla Storia della Miniatura e di vendere i miei articoli di Arte Libraia. Si tratta di due attività alle quali ho dedicato molto tempo da più di dieci anni e per le quali ritengo di essere ormai competente.

L'arte sacra è una passione che ho da sempre e ne farò uno dei miei motivi di vita. Preghiera e lavoro sono le due condizioni indispensabili per la mia quotidianità e le le mie più care risorse e compagne.

Presto aggiungerò anche la possibilità di scaricare i contenuti in epub. Non vedo l'ora di iniziare a scrivere.

 
Continua... Discuss...

from An Open Letter

I looked at my Spotify wrapped today, and my top song had been listened to 167 times. That song was famous prophets stars by Car Seat Headrest. That was the song that I found right after breaking up with E, and I think there’s a very good chance that is the song that I’ve cried the most to in my life. It’s also 16 minutes long, which means that I have listened to it for 2.7k minutes, or also 45 hours. Is it bad to say That I’m kind of proud of that number? I feel like it represents how much I confronted my grief, and how I did not shy away from it, I continued to cry for months afterwards, with each time being a little bit more spread out than the last. And at the end of the day, it has become such an incredibly beautiful song that does not hurt me anymore, I have gone from waking up and immediately listening to it and starting my day crying, to waking up and immediately listening to it, but in a more rich way, not necessarily sad, and it feels wrong to call it happy either. But I am proud.

 
Read more...

from profdrmafya

Oy kullanmamak, ülkenin kaderini Suriyelilerin eline bırakmak demektir!

Ümit Özdağ ile Yeter Artık!

Gençlerle sohbet ettiğim YETER ARTIK dediğim programda apolitik olmanın sonuçlarını da konuştuk. Ben hiç partiye oy vermeyeceğim demek bu ülkeye gelip vatandaşlık alanlara ülkenizin ve kendinizin kaderini bırakmak demektir!

 
Devamını oku...

from profdrmafya

90 yaşında pazarda mendil satan yaşlı teyze

“Kolay mı, her şey pahalı. Bak mendil satıyorum ben 90 yaşında. Sabah bir çay içtim daha yemek yok”

emekliyi bu duruma getiren akpsi de mhpsi de ... bilinçli, bile isteye yaptınız herşeyi

 
Devamını oku...

Join the writers on Write.as.

Start writing or create a blog