Skip to content

u/motonnerd

In this archive from Aug 2016 to Jul 2019

1
posts
25
comments
0
media
66
score

Top posts

[Speculation/Discussion]: Are compilation targets for CPUs running custom microcode likely to ever be "a thing"?

Context. Below is how I ("sort of") understand the pros and cons for people pursuing something like this: Feasibility: Considering the number of compilation targets & variations GCC supports, I wouldn't be surprised if someone (at least in an academic context) creates one -- I don't know of any road...

5 points2 comments
Open on Reddit

Top comments

I wish I had an answer for you but alas, I have only sympathy (and possibly a useful way for people to replicate a related issue).

I had a workflow which would reliably trigger a system lockup (but I never tried the SysRq keys, nor do I think I ever waited 30m before hard shutdown):

tar --create --file=- ~/Documents | xz --compress -9 [...] | gpg --encrypt [...]

I have been able to work around the issue by running the steps individually or by reducing the size of the stuff being compressed.

I, too, wonder why the OOM killer is not violently stabbing the unprivileged user's zsh process who, along with its children, has consumed 15+GB.

I'm up-to-date on my packages, running the standard linux-hardened kernel (a few DKMS packages), have symlinked /bin/sh to dash, and am not aware of any odd tweaks which would reasonably be expected to interfere.

5 points

Just want to chime in to note that I also tried updating to Debian Testing some years ago and couldn't.... consistently make it work well. I'd been running *nix for a couple years at that point, so I guess I did something wrong.

So my end opinion goes something like this: Use each distro for what it's good for. Others have had better luck/skill running Debian Testing; more power to them. Personally, if I want Debian Testing I'll swallow hard and tolerate the stuff I don't like about Ubuntu (which, if memory serves, is Debian Testing but with another layer of polish and curation). If I want an unflappably solid install, I'll go Debian Stable or something similar. But if you want the latest (& possibly buggiest) software and have the time to devote to truly mastering your system, Arch will serve your needs.

If you do switch, personally I like to plan my install before I start: Pick a filesystem, desktop environment, services to run, should there be full-disk encryption, partitioning, etc. Arch is malleable, but some stuff (like low-level disk work) can be a pain to set up after an install (not an Arch-specific thing, just a general note). And, most importantly: Have an alternate system available during the install and make sure your backups are good.

3 points

Gonna be a party now! Here's how I'd approach it, including sanity-checks.

1: You burned 32GB on the boot partition. You may need to uninstall some stuff in order to carry out the next steps (temporary disk space requirements, for example for downloading the Arch installer to dd to a thumbdrive.

2: Obviously, doublecheck that your partitions are working the way you think - if you, say, forgot to set up your /home partition correctly, then you could not even be using it.

At this point, you may be tempted to skip the above steps. I recommend you don't, because on my server right now btrfs filesystem show reports the following:

Label: 'DiskArrayFS' uuid: cd2f3b25-072f-47f5-86d4-08bd4dda66aa

Total devices 4 FS bytes used 706.20GiB

devid 3 size 463.76GiB used 354.03GiB path /dev/mapper/DecryptedArray1

devid 4 size 463.76GiB used 355.00GiB path /dev/mapper/DecryptedArray3

devid 6 size 463.76GiB used 354.03GiB path /dev/mapper/DecryptedArray2

devid 7 size 464.63GiB used 355.00GiB path /dev/mapper/DecryptedArray0

Label: 'OSFS' uuid: e37cfbd7-f8f2-4c82-b595-01ba3d093e4d

Total devices 1 FS bytes used 10.23GiB

devid 1 size 232.00GiB used 24.02GiB path /dev/mapper/DecryptedRoot

I have a setup similar to the one you describe - "OSFS" holds almost nothing but the OS, and "DiskArrayFS" holds all my media and stuff. Note that, despite me having a few AUR packages, a lot of daemons, and LXDE along with some stuff like GIMP, I'm only at 10 1/4 or so GB of data in the OS partition. Granted, you choice of desktop environment could easily account for the extra size (GNOME / KDE, possibly even XFCE).

3: Ok, you've confirmed that other aspects of your setup are correct and that you do need to enlarge your / partition (I'm using "root" here because it sounds to me like you have /home on a separate partition and the 32GB partition is for "everything else", which would be "root" - /boot would be a different case and setup, and those can pretty much universally be <5GB. (My understanding is that if you truly burn more than 32GB on a /boot partition, you're doing something really interesting/weird.)

4: Backup your shit. We're about to screw around with partitions, and there's a high chance of failure. At a minimum, dd if=/dev/sdx of=/home/username/rootbackup.raw status=progress. "rootbackup.raw" will be 32GB in size, and "should" (assuming you did 1 and 2) be stored in your /home partition. Ideally, you'd take that file and put it on a thumbdrive or something - since I don't know your situation or what you have available, I'll just airdrop the man dd command and move on.

5: Even if you don't want to backup anything, backup /etc. If you've done any meaningful configuration, you'll be happy to have the old configuration files for reference or (if you're like me) directly dropping in and dealing with problems as they come up.

6: Make sure you have a backup of anything you care about in your /home directory. I know I'm harping on the backup thing, but I've also never lost data, so.... yeah.

7: Now we get to the "fun" (well, for me) part. From a working install (or a web search engine, often): man btrfs-filesystem. BTRFS has a 'resize' command which is documented pretty well there. Pay special attention to the difference between "filesystem" and "partition", as well as the mechanics of things - depending on what happens farther down, this could take a long time.

8: Others may know better than I, but at this point I'd make a live-bootable USB and just boot to that. Lets talk partitioning:

8a: lsblk and blkid to get an idea of what disks & partitions are recognized and how things are organized. You may wish to write the "/dev/sd*" parts down for ease of reference later.

8b: Grab your favorite CLI partitioning tool. I like gdisk myself, because I'm running GPT partition tables even on my 2010 Dell (BIOS complains every boot though). If you're not running a GPT partition table, use fdisk or parted. Either way, fire it up and look at the beginning & end sectors of your partitions. Don't be afraid to write them down for easy reference later, I do!

8c: Since you have a swap partition, I'm going to assume that you're running a spinning hard drive. I assume that your swap partitionis "at the end of the disk"/"farthest out". Long ago I heard that it's best to put the swap partition at the end (biggest sector numbers) of the hard drive (thereby placing it on the outer rim of the physical disk, which gives it the highest speed under the hard drive's read/write head, which reduces latency and increases throughput, which is critical for swap). I expect this to still be true. If your setup doesn't have this, feel free to generalize my instructions and make that change.

9: Now that we've pretty exhaustively checked our assumptions, lets get to the meat of things. Personally, I'd straight up delete the /home partition (and rely on the backup we discussed earlier). I think BTRFS' partition resize utility will only shrink to the start, and not to the end, of the partition. Technically we probably could save that data, but that would basically involve taking a backup anyway and/or having a really detailed plan beforehand, and I'm not willing to put that much effort in. Assuming your disk is partitioned as [start][root][/home][swap][end], that will give you maximum leeway to resize your root partition to be whatever you want.

10: Expand your root partition to be the size you want. Since you've already blown through 32GB, I'd recommend bringing it up to at least 50GB. If you want your computer to be a server of some description, bump it up more - how much depends on what you want it to do. And don't get paralyzed trying to pick a size for your root partition - I recommend 75GB if you're using it for a regular computer and 100GB if you're using it for some kind of server. I say not to worry too much about it because, in the end, bind-mounts and symlinks can do all kinds of terrible, bodgy things that can work around almost all partition size limitation issues - at the cost of things becoming more and more like a house of cards the more you use/abuse it. So there's a lot of flexibility here.

11: Mount the root partition. btrfs filesystem resize /rootpartition/mountpoint max . Let it complete. Look for problems

12: If you want to move your swap partition, now's a great time. Slam it against far end of the disk. Recreate your /home partition between the root partition and the swap partition.

13: Restore data as needed.

14: Mount all the partitions. Start with root and mount the other partitions where they would normally be mounted inside your root partition. Edit /etc/fstab appropriately. lsblk and blkid remain your friends for specifying labels, UUIDs, or however you want to do it. If you're using old-style device names (e.g. "/dev/sda1"), consider switching to labels or UUIDs. Computers are mercurial little beasties these days. Alternately, grab the partitioning instructions from the ArchWiki install guide and use genfstab

15: arch-chroot into your system. Look around, make sure everything is accounted for. Then reinstall your bootloader of choice to your disk (don't need to reinstall the packages, but need ot run the install commands - for example, for GRUB, that would involve the grub-install and grub-mkconfig commands.

16: Look at the comments below my comment to see what I missed. Reboot.

17: Troubleshoot anything which breaks. dmesg and all the tools mentioned above should help.

3 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.