The Linux Thread - The Autist's OS of Choice

  • 🐕 I am attempting to get the site runnning as fast as possible. If you are experiencing slow page load times, please report it.
Exactly why I love how the BSDs, especially Net/OpenBSD do things in regards to cleaning up redundant code. One can only imagine how much time and effort it would take to audit current day Windows like that from the bottom up. Might as well rewrite the entire thing at that point.
That was the conclusion MS came to that led to the failed Longhorn initiative.
 
  • Like
Reactions: YoRHa No. 2 Type B
ALT-PRINTSCREEN-REISUB. In case your console isn't working either.
Those might require altered permissions to work
MicroSD on Raspberry Pi and other ARM rigs are the chief place I've used this. I've routinely shut these systems down by just cutting power. The concern about corruption is quite overstated, so long as you're not pulling the power while writing something you care about or during an update or something.
I absolutely beg to differ. If I ever run a Raspberry Pi again it's going to boot from an external HD.
 
Are those double -f needed when re-enabling?
According to the manual, no. Double -f is the faggot Red Hat "Are you really sure you want to do this? I expect my users to be niggers." paranoia.

I absolutely beg to differ.
Using ext4 specifically? Mounted with sync? What kind of setup? I'm a DWM/X guy, so I've got a lot fewer niggerlicious GNOME processes to break.
 
Last edited:
  • Like
Reactions: Belisarius Cawl
Using ext4 specifically? What kind of setup? I'm a DWM/X guy, so I've got a lot fewer niggerlicious GNOME processes to break.
I wasn't looking at mount or /etc/fstab when my Pis shat themselves but presumably "yes" to ext4. But since Alt+SysRq was mentioned earlier (REISUB), one thing that anyone using Linux should also know, especially with disgustingly bloated browser software, is Alt+SysRq+F, which will target the first memory-intensive task it can find and so on. It won't reboot your system like REISUB does. Also be aware that you will likely have to alter administrative privileges for this chord to work. Oh and to answer your question: LXDE and Xfce4.
 
That was the conclusion MS came to that led to the failed Longhorn initiative.
It only failed because there was so much legacy code that they needed compatibility for. They could've done some sort of Windows on Windows system where all legacy applications run inside a protected container with compatibility APIs, and that container could eventually be made optional and removed for more streamlined systems like netbooks or tablets or even phones
 
hey @analrapist

I've noticed just browsing files in the file browser can cause that "jbd2" thing to do multi-megabytes of writes, especially if it's in the OS partitions. Is that BS normal?
 
Those might require altered permissions to work

I absolutely beg to differ. If I ever run a Raspberry Pi again it's going to boot from an external HD.
I have around 12 Pis running. I lose a MicroSD every couple years. Even the ones that do stuff locally like the weather station don't seem to have problems. Sure, I should move it to an external DB, but whatever.
 
  • Thunk-Provoking
Reactions: Belisarius Cawl
I have around 12 Pis running. I lose a MicroSD every couple years. Even the ones that do stuff locally like the weather station don't seem to have problems. Sure, I should move it to an external DB, but whatever.
It's a pain in the ass to have to start all over, even with scripts to help you. But why go through all of that?
 
I've noticed just browsing files in the file browser can cause that "jbd2" thing to do multi-megabytes of writes, especially if it's in the OS partitions. Is that BS normal?
"Browsing files in the file browser" usually means that if there's no cached version available, they're going to be read to see what they are, maybe thumbnailed, etcetera. Megabytes of writes could just be thumbnails/filetype-caching. Of course, the reads are going to mean there's also atime write once per day.

Continuing on the ext4-without-journal bit, here's an ARM hardware vendor recommending disabling journaling, and the things they do to make non-journaled ext4 safe/performant:
 
  • Informative
Reactions: Belisarius Cawl
Also be aware that you will likely have to alter administrative privileges for this chord to work.
sudo cat /proc/sys/kernel/sysrq
If it's 1 then all are enabled, 0 all are disabled, some other number then some are enabled.

sudo sysctl kernel.sysrq=1 to enable all

Depending on your system to make a change permanent you can probably add kernel.sysrq=1 to /etc/sysctl.conf or a file in /etc/sysctl.d/
 
sudo cat /proc/sys/kernel/sysrq
If it's 1 then all are enabled, 0 all are disabled, some other number then some are enabled.

sudo sysctl kernel.sysrq=1 to enable all

Depending on your system to make a change permanent you can probably add kernel.sysrq=1 to /etc/sysctl.conf or a file in /etc/sysctl.d/
All of that is correct and might benefit other Linux users or more specifically Pi users here (though maybe security-oriented users might not want to turn on every feature like I did). Still, my main concern remains running an operating system from a microSD card. It's fishy at a bare minimum.
 
The Linux-running computer I'm on is about 5 years old now. The TBW to the SSD is now almost 20 TB.

The main reasons* for such a ridiculous amount of writing...

  • not disabling "Safe Browsing" via Firefox (every 20 to 30 minutes a blacklist of bad URLS of over 20 MB is downloaded from Google)
  • watching videos in Firefox without using Private Browsing with browser.privatebrowsing.forceMediaMemoryCache set to true
  • watching YouTube videos on that main crapsite or on youtube.com/embed/[vid code]
  • using GMail or some other sites in normal browsing (not Private Browsing)
  • not disabling logging with systemd and rsyslog
  • not disabling logging in uBlock

... and all that is despite disabling caching in Firefox.

* (along with whatever the previous user used it for)

With all that, this is what the SMART thing says:

Code:
Available Spare:                    100%
Available Spare Threshold:          10%
Percentage Used:                    2%
 
Still, my main concern remains running an operating system from a microSD card. It's fishy at a bare minimum.
Millions of users disagree with you. Including a ton of embedded shit. For super special applications you can run immutable and just a small ramdisk for state files.
It's silly to take a $35 Pi and slap on storage that may cost twice as much as the Pi. My worst case Pi is the one in the attic monitoring a bunch of 433MHz sensors. If it dies, I flash a new SD card. Open the attic hole, open the box it lives in, put the MicroSD in and rsync back the backup from /home/pi and add the startup script to /etc. If I was really worried I'd image the disk so I can flash a new card directly as it keeps no local state. 'proper' storage would be larger, take more POE power and generate more of its own heat and may not even like the attic temps in summer.

The Linux-running computer I'm on is about 5 years old now. The TBW to the SSD is now almost 20 TB.

Code:
Available Spare:                    100%
Available Spare Threshold:          10%
Percentage Used:                    2%
I hate to be the bearer of bad news, but 2% in 5 years means you may have to replace that drive in 2125.
 
Millions of users disagree with you. Including a ton of embedded shit. For super special applications you can run immutable and just a small ramdisk for state files.
It's silly to take a $35 Pi and slap on storage that may cost twice as much as the Pi. My worst case Pi is the one in the attic monitoring a bunch of 433MHz sensors. If it dies, I flash a new SD card. Open the attic hole, open the box it lives in, put the MicroSD in and rsync back the backup from /home/pi and add the startup script to /etc. If I was really worried I'd image the disk so I can flash a new card directly as it keeps no local state. 'proper' storage would be larger, take more POE power and generate more of its own heat and may not even like the attic temps in summer.
Yeah the cost in dollars is minimal. But why even run the risk?
 
lol

Also wouldn't it be bad if that 2% reaches that 10% threshold (so it's really 20% of the way to problems)?
10% is the threshold for the 100%, which is still 100%
Percentage used is the estimate of the total wear available. I guessed 50% was a good number. Once it starts getting close to failure then the Available Spare can drop quickly as cells have to be moved to spare cells with lifetime left.

You can also look at the spec for that drive and compare the '20 TB' used to the manufacturer estimate.
 
  • Agree
Reactions: YoRHa No. 2 Type B
So what's the "2% used" then?

:thinking:
Percentage used is the estimate of the total wear available.
Among all the not-spares it estimates how many times they can be re-written. As they get reused more times that number goes up. When a cell finally hits the limit and causes an error on write then a spare cell is used and that 100% number starts to decrease.
 
  • Informative
Reactions: ToroidalBoat
Back