Skip to content

u/LinuxPoodle

In this archive from Jan 2019 to Mar 2019

0
posts
139
comments
0
media
434
score

it depends

https://en.wikipedia.org/wiki/Linux or https://en.wikipedia.org/wiki/Linux.html ? obviously the former

if you don't need it, then do away with it

but I'd keep it for other filetypes (images and the like) even if not strictly required, things get confusing quickly

or a slash?

the slash is special, it makes all URLs point to a different place unless you make all links and references absolute

useless slash really hurts, it duplicates all your urls, etc.

2 points

I used to run OpenWRT on a router, so the difference naturally was... there IS no regular distro for a router. Embedded device, rare architecture, extremely tight resources (very few MB flash storage and RAM), ... this is only possible with a minimal kernel compiled for that hardware and space-optimized binaries and whatnot. All custom tailored to fit the device.

On a "real PC" or even a raspberry with plenty of resources (both ram and storage counted in gigabytes) then you can use whatever. The only advantage might be that again a router distro is preconfigured whereas any regular distro you have to do it yourself.

6 points

sorting is locale dependent ( locale, LC_COLLATE ). so it can sort to "0 1 A B C a b c Ä ä" or "0 1 a A ä Ä b B c C". Both are correctly sorted, just according to different locale. So what you need to find is a locale for LC_COLLATE that will reflect the order you prefer.

Unfortunately I'm not sure what Windows sorts to.

You can experiment like this:

locale
ls
LC_COLLATE=C ls

For other locale they have to be built on your system first ( /etc/locale.gen if you have it )

2 points

Do these errors represent silent data corruption/bit rot ?

you got an error message so it's not silent anymore

what does bit-rot error look like if above errors are not example of bit rot ?

silent bit rot is no error just wrong data in your file

what you had looked like a filesystem problem, possibly after power loss or not umounting correctly

you should also check your storage media SMART and run selftest

1 points

Short of cutting internet completely and turning it into intranet experience, the thing you ask for does not exist. And even then there is still porn in it (offline wikipedia comes with explicit pictures, too).

Give the child the root password (on their own PC in their own room with some privacy) and just let it go. Internet is everywhere, kids come with smartphones to school, it's completely outside of your control.

"You can't stop him, Stoick. You can only prepare him. I know it seems hopeless, but you won't always be around to protect him. He's going to get out there again. He's probably out there now." (how to train your dragon)

1 points

on a sidenote, with true randomness it is after all possible to pick the same wallpaper twice (or even more times) in a row. so maybe you want to remember the last wallpaper and exclude it from the selection in the next round. or build a full random order list and go through it one by one (this is how MP3 players usually work when selecting "random"; they do not repeat songs until it went through the playlist once).

1 points

my favorite player can be started from command line, configured with a text file, controlled with the keyboard. no GUI, no mouse. so for a long time that was mplayer, now it's mpv.

I use it for everything and I also script it. Four instances in a four-way splitscreen as a security camera viewer, easy and works perfect.

1 points

lots of performance problems reported with 5.0 kernel

sometimes below 1MB/s throughput

I/O scheduling is a mess and no single kernel developer sees through it all

solve by going back to old / lts kernel, cross fingers and hope for the mess to be sorted soon

2 points

How do you replace the core system while running it?

Well, it's complicated. But (in theory) not impossible, I mean, you do something similar when hibernating (suspend to disk) and resuming after all, the kernel boots anew and then travels back in time to restore an older memory state. And all sorts of crazy things can go wrong with that.

Anyway, I don't do this, because so far all desktops and servers - if I really needed them to run a newer kernel, so reboot, so what. It's good practise to reboot once in a while, after all - at some point the machine will go down unexpectedly and then it has to be able to boot, too.

And no machine is so important that it can't be rebooted during a planned maintenance window.

If you really have machines that cannot be rebooted no matter what you should rethink some design choices cause sooner or later it will go down regardless.

1 points

Uhhm, it depends.

the old kernel modules can't be loaded anymore

well, of course you can load them

unless you uninstalled them

as archlinux is wont to do

There are servers with uptimes measured in years not days, obviously they don't reboot, but in such an event they might boot a new kernel then. So there can be kernel updates, followed by more kernel updates, without ever actually booting those kernels since it never lost power between those updates.

But of course, this has to be supported by whatever distro you're using.

1 points

pvresize is not involved here either ( if you don't know what you are doing it's better to not do anything at all, otherwise you lose all your data )

and yeah sure the LVM must be available first so cryptsetup open, vgchange -a y is a matter of course (if you are doing this from a live environment)

but that's the same as if you only wanted to mount it, not resize it, so it's not specifically resize-related, just a normal procedure

lvresize and resize2fs

please be careful.

also about the order of things: when shrinking you have to shrink the filesystem first (resizefs /dev/vg/lv size) and then lvresize to match it (lvresize -Lsize vg/lv)

size should be identical for both, e.g. 42G - careful this stops working if the filesystem is on a different device after all, but fine in your case

please don't use shit like 9.8G if you have to use that write it as 9800M or something.

actually lvresize has two aliases, lvreduce and lvextend, for shrinking and growing specifically.

some people say you should use those instead, I say lvresize is fine, and for all three you have to understand what you're doing or kiss your data goodbye

2 points

My first SSD was 64GB (hey - they were expensive, some years back) and it was large enough for me to fit both root and home onto it.

It's amazing how little space you need once you don't count media movies music and such stuff (all that to stay on HDD). Or rather, 64G is already a lot of space, we just tend to forget it over 10+TB hard drives...

However, I don't suggest you actually buy a 64G SSD. It's far from the sweet spot. If you're happy with that little space it might make more sense to spend $0 and shrink your windows filesystem a bit.

2 points

I have over a dozen LUKS containers they all open with a single password on boot

however this is distro specific so ask your distro community how to handle multiple LUKS containers

or just try with identical password and it might work (systemd supports reusing passwords but it not enabled everywhere)

If I am not mistaken I cant just add the drive to the LVM group as it is inside the LUKS container/partition

yes, if you want it encrypted, each PV has to be encrypted

if you had encrypted LV instead it would be different but then you have the same problem for each new LV you created

1 points

since your flavor of fakeraid seems to be supported by mdadm, uninstall dmraid first

with dmraid deinstalled and rebooted (and no /dev/mapper /dev/dm raid devices present), what does mdadm --assemble (--scan) actually say?

/dev/md devices will be created only after the assemble so not having them before is normal

1 points

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.