-
rtprio
anyone know if i can update glibc inside the /compat/linux ?
-
mason
rtprio: As long as you keep things consistent, just think of it as an encapsulated Linux distribution. Just make sure you don't use something so new expects unsupported syscalls. Not sure if there's a guide for that.
-
rtprio
great
-
nimaje
where does your current one come from? from linux_base-rl9?
-
polarian
dch: hey would you mind if I PMed you to ask you something?
-
polarian
you are core, its only a quick question so I didnt think it warranted an email
-
polarian
warrented*
-
polarian
whatever, spelling is hard :p
-
skered
Top level src/ Makefile[s] is just make running make? I'd like to guess that's a make per-project/component, maybe even down to the program level - given that most (all?) have a Makefile.
-
skered
Is possible to provide the lower level makes a prefix? ex: bear (generates compile_commands.json). The docs say to run bear at the top level however I think there is some leakage of data between indepent parts of the tree when you do that with LSP/clangd.
-
ivy
skered: you can do something like 'make -C bin/ls all install' if you want to build a single program
-
ivy
(or 'cd bin/ls; make all install' which is functionallity equivalent)
-
ivy
this skips a lot of stuff the top-level Makefile.inc1 does, but for quickly testing something, it's usually fine
-
ivy
i'm not sure what you mean by provide a prefix though
-
skered
Yeah, I know I can build single things by hand but I was hoping I could get the internal makes to exec via bear such that they have their own compile_commands.json
-
skered
The issue is with the single one off `make -C ... ` even with bear it doesn't have --sysroot so it's using system paths. That's another issue I've seen with trying to do one offs.
-
skered
er hold on... what's the different between `make -C bin/cat` and `make -C bin/cat all` ?
-
ivy
all is the default target, so nothing
-
karolyi
cyric: are you cy⊙Fo by any chance?
-
ivy
karolyi: i don't think Cy is on IRC
-
karolyi
ivy: I hoped to reach him online in a more responsive way than email is, but I'll email him then
-
ivy
karolyi: he's usually fairly responsive to email, fwiw
-
karolyi
thanks, good to know
-
ivy
although he's busy with some personal irl stuff recently
-
karolyi
I hope to get this patch in spamassassin before 4.0.3 releases as I've been told "we have not yet planned any dates for a v4.0.3 release":
bz.apache.org/SpamAssassin/show_bug.cgi?id=8374
-
Macer
Due to a significant increase in abuse, largely driven by AI scraping, this Bugzilla instance is now only available to authenticated users.
-
Macer
:(
-
rwp
The AI Scraping Plague is destroying everything.
-
LXGHTNXNG
kweeehhh :(
-
ivy
i actually have an Apache Bugzilla login but for some reason it's not accepting it, oh well
-
polarian
they dont like ivy bridge :)
-
karolyi
need me to pastebin it?
-
karolyi
my account is from way back in time
-
ivy
-
polarian
lol
-
polarian
alright something I cant find any info on, whats the best way to find a file from LBA on freebsd
-
polarian
I have a read error, I need to find the file at the LBA
-
rwp
No idea. But upon what file system type? ZFS? UFS?
-
rwp
If you don't know I think the easiest way to print it is "df -hT" the -T option prints the file system top.
-
polarian
rwp: zfs
-
rwp
And it must be a single disk configuration because otherwise zfs would have "healed" it from one of the other copies. Drat!
-
polarian
rwp: yes
-
polarian
its in my laptop
-
polarian
nothing on my laptop I care about, so yeah
-
polarian
I have a sneaky suspicion this HDD is finally kicking the bucket
-
polarian
its 13 years old
-
polarian
maybe more
-
polarian
I swore I wouldn't replace it until it dies
-
rwp
What does "zpool status -v" say?
-
polarian
and I still wont, until it kills itself
-
polarian
rwp: I had 2 read errors
-
polarian
but no files listed
-
polarian
so I assume its zfs metadata
-
rwp
I think the zpool status -v should list the files associated.
-
polarian
yes
-
polarian
hence why I think its metadata
-
polarian
this is not recoverable without reverting to a snapshot
-
polarian
and my last snapshot is too far back for me to care enough
-
polarian
I wouldnt have this issue with OpenBSD, because errors go unchecked :p
-
polarian
xD
-
rwp
I think if it were me I would read all of the data off to backup. During that read any blocks with errors will be printed. Then you can decide to replace the storage device. And restore the backup upon it.
-
polarian
yeah my last snapshot was 2 months ago
-
polarian
rwp: like I said, I dont give a fuck about anything on my laptop
-
polarian
anything I care about is already cloned to my server
-
joepublic
perhaps throw it into a volcano
-
polarian
so I will run this HDD until it kills itself
-
rwp
Then like joepublic suggests, time to discard it and replace it.
-
polarian
nah
-
polarian
not until it dies for good
-
polarian
and if it hangs on for dear life, then so be it :p
-
polarian
also one or two read errors doesn't mean the HDD is on the way out jsyn
-
polarian
this HDD has no realloc sectors
-
polarian
so its not had to reallocate at all yet
-
rwp
If you want to try to postpone the inevitable then read every block and write it back. One of the blocks will have an error. Write zeros or random data over the block with the errors. The firmware on the drive will try to write the block. If that works then it is recovered. If it fails then it will use a spare block on the drive and again the drive is recovered.
-
polarian
rwp: that is what I was going to do
-
polarian
but if my suspicion is that its filesystem metadata
-
polarian
I could break zfs by doing that :p
-
polarian
best to errr... leave it for now :3
-
rwp
To read and write every block I would boot the installer iso as a live boot system. Jump to a shell. Then "dd if=/dev/ada0 of=/dev/ada0 bs=1M status=progress" and let it read and write every block.
-
polarian
hmmm
-
rwp
The installer might try to zpool import the storage. If so then BEFORE doing this make sure the drive is exported and NOT mounted. Critically important to have nothing else writing to it.
-
polarian
yeah I get that
-
polarian
I feel like I would fuck that one up though
-
polarian
and end up wiping my system
-
polarian
but I much rather just rewrite the block info
-
rwp
They don't call dd the disk destroyer for nothing.
-
polarian
aka convert the LBA to block
-
polarian
and then do it
-
polarian
I thought they called it the dick destroyer :p
-
polarian
j jk
-
rwp
Useful flags for dd in this case are bs=1M iflag=fullblock oflag=sync,direct so that the writes are all synchronous and when the command exits the buffers are all sync'd and flush'd.
-
polarian
actually
-
polarian
I can just convert the LBA
-
polarian
and seek
-
rwp
I note that you are giving inconsistent feedback. "like I said, I dont give a fuck about anything on my laptop" and "I feel like I would fuck that one up though". So you both care about the data and don't care about the data. Hmm... I would back up and then reinstall and then put your data back. that's a safe answer.
-
polarian
can anyone remember the maths for converting LBA to block
-
polarian
physical block that is
-
rwp
Since you say this is very old then it can't be very large. Run "dd if=/dev/ada0 of=/dev/null bs=1M status=progress" let it run until it prints an error. That error should tell you which block has the read error.
-
polarian
err thats a good idea
-
polarian
or err
-
polarian
pass blocksize=512
-
polarian
and slap the LBA into dd
-
polarian
and it should hit the right lBA
-
polarian
lemme see
-
rwp
The reason I always set bs=1M is because it avoids the small physical reads that may actually be multiple repeated reads of the same block. Getting down to the 1M size block should be good enough and much more efficient to get there.
-
polarian
dd: /dev/ada0: Input/output error
-
polarian
haha
-
polarian
it works
-
polarian
how
-
polarian
now*
-
polarian
do I be stupid and zero this block...
-
polarian
this could brick my filesystem...
-
rwp
Did it tell you the block with the error?
-
polarian
no I did some maths
-
polarian
bs=512, and then skip=<LBA>
-
polarian
count=1
-
polarian
so one block and skip to the LBA which smartctl reported error
-
polarian
and yes I got the error which means the maths worked
-
polarian
now what do I do I wonder...
-
polarian
well if theres a read error, then its not like the data is required on the system
-
rwp
The thing I like about dd if=/dev/ada0 of=/dev/ada0 from a live boot is that I don't have to do any math and I can't be wrong about it.
-
polarian
otherwise it wouldnt boot already
-
polarian
question is do I
-
joepublic
I am not sure how writing randomly to the drive differs from the volcano solution
-
polarian
dd if=/dev/zero of=/dev/ada0 bs=512 skip=<LBA>
-
polarian
count=1
-
polarian
DONT FORGOT THE COUNT=1 otherwise fuck!
-
rwp
The volcano solution is better because then the drive will be replaced.
-
polarian
should I zero the block, votes y/n
-
rwp
It's not the solution I proposed. Which means you have to decide to do it yourself.
-
Macer
jump! jump!
-
polarian
actually, just in case I will wait a few days, snapshot, move it to my server and then fuck about with this
-
rwp
And joepublic is voting volcano. Which is a good vote in my opinion. But you say you don't care about this data.
-
polarian
theres nothing massively important
-
polarian
but I rather not reinstall freebsd all over again
-
polarian
redo the configs
-
polarian
you get the point
-
joepublic
really, just the drive, not the whole laptop
-
polarian
the drive stays until it wont spin no more
-
Macer
it's a platter?
-
polarian
yes
-
polarian
this thing will spin until it dies
-
polarian
I dont care if I am 100 years old by then, it will keep spinning until it dies
-
vkarlsen
No planned obsolescence here, we run the hardware until the wheels fall off
-
Macer
lol.. to each their own. i only use platters for my nas.
-
rwp
Since you are looking at crazy schemes... How about this? Get a USB attached drive of the same size. Mirror the two drives together. Let zfs silver the attached drive into the mirror. Then let zfs "heal" the bad block on the original disk with a scrub? It will lose whatever that block is holding.
-
Macer
i definitely wouldn't bother with a 2.5" platter in a laptop nowadays though.
-
rwp
My NAS boxes are all spinning drives too. More cost effective.
-
Macer
vkarlsen yeah. i still use my 2013 macbook pro. when a meteor hits it i'll replace it
-
Macer
i was trying to put some iteration of bsd on it but i just can't cope with the trackpad not working out the box lol
-
polarian
vkarlsen: seeeee... someone gets it
-
polarian
rwp: ots fomeeeee
-
polarian
oops
-
polarian
thats not english
-
polarian
it was meant to say "its fineeeeeeeee"
-
Macer
i use it for office work. and even today it does that quite well and the screen is probably better than 90% of the screens on things today
-
Macer
say what you want about apple products but the retina screens are legit. :)
-
rwp
polarian, Does that mean you did it? And now the bad block is gone?
-
polarian
also with NAND prices at £102/TB, HDDs are the way to go :p
-
polarian
rwp: no I didnt do it, I wont touch it until I snapshot and move it to a server
-
polarian
I currently dont have a server running openzfs (long story)
-
Macer
i'm surprised platters aren't going through the roof
-
polarian
I will in a few days
-
Macer
you'd think there would be carry over
-
LXGHTNXNG
they are macer
-
polarian
and then I will copy the snapshot over
-
polarian
and if I need to, I can rebuild the pool from snapshot
-
Macer
oh they are? i haven't had to get one in a while
-
polarian
in the worst case
-
Macer
my pools are both at 50% but at least now with zfs supporting raidz expansion i can just toss one or two more onto a vdev and be done with it instead of having to make another vdev
-
Macer
what a godsend
-
rwp
Remember that life is a 2x multiplier. You need to be able to back that data up. So will need a second system of at least the same size for backup purposes.
-
polarian
openzfs is a brain fuck I swear
-
Macer
well.. this thing has been a trooper for a decade without problems replacing dead disks :)
-
Macer
but i do have a backup server but that's for the super important stuff
-
polarian
whenever you feel comfortable with openzfs it reminds you, that you know a mere fraction of what it is
-
» polarian sighs
-
rwp
Life is good! Right up until it isn't. WWJD? He would save. :-)
-
Macer
haha
-
Macer
polarian i come from the days of yesteryear where backups etc were a lot more difficult.. these kids don't know how easy they have it :)
-
polarian
Macer: why because you do zfs snapshot zroot@whatever, then send it to some remote server
-
polarian
and then restore everything from scratch by recv it again?
-
Macer
you know speaking of that
-
Macer
does zfs allow encrypted zfs send?
-
Macer
i never looked into that
-
polarian
no afaik
-
Macer
doh!
-
polarian
its done over SSH
-
Macer
well.. there's your reason why :)
-
Macer
no i mean the data itself
-
polarian
elaborate?
-
rdr
use case?????
-
rwp
I thought very recent zfs does allow send on encrypted datasets and will send the encrypted data of them. Because initially there were bugs in that process. Which I think is only recently fixed and mature enough to test out.
-
Macer
storing it on a storage conglomerate
-
rdr
so you are using ZFS with encryption, but ssh transfers the data with encryption so...
-
Macer
rwp ah. ok. yea i was curious about that considering you'd be using a 'public service' as a snapshot backup and obviously if it's sensitive data...
-
Macer
rdr the sending and storing are different issues. sure you can zfs send using ssh to make the connection remain encrypted but i was asking about the actual data itself being stored remotely on storageco servers
-
rdr
you could add another layer of encryption and encrypt the data on the encrypted drive to send over encrypted ssh :D
-
rwp
Initially there were a few very serious bugs found in that new encrypted dataset code. I read the disclosures and didn't feel I needed to be the beta tester for those features. But I thought I read that they were mostly worked out now. I have been wanting to try them.
-
Macer
so their ai can't scrub your data to train itself or whatever :)
-
Macer
ah cool... if you ever try it let me know what it does lol
-
rwp
Remote backups to servers not in a secure location should just always be encrypted data blobs just as a matter of policy.
-
polarian
I really need to play/learn more with backups
-
polarian
I dont know all the cool shit you can do
-
Macer
yeah. i agree with you there
-
polarian
my good old way of doing backups is tarballs
-
Macer
that's why i was curious about it
-
polarian
versioned...
-
rwp
That is a scary thing to hear someone say! :-/
-
polarian
I have tons of tarballs
-
polarian
I dont even know whats in most of them
-
polarian
they are mostly phone backups because android has no good fucking way to backup
-
Macer
wasn't tar created for tape backups though? :)
-
Macer
so i mean.. in a way it makes sense?
-
polarian
Macer: ah whatever, it does its job
-
Macer
no. i'm actually saying that what you're doing isn't necessarily 'wrong' .. i mean tar was meant to back things up wasn't it?
-
Macer
like it means 'tape archive' doesn't it?
-
rdr
tarballs are sticky and get stuck everywhere
-
Macer
too bad tape drives and tapes are so ridiculously expensive
-
Macer
especially for how slow they are
-
rdr
i'm still trying to tame the cat command =^(o.o)^-
-
rdr
okay question that i should just ask AI
-
Macer
and the marketing at 2x the actual space because of compression too
-
rdr
what is the best way to list all processes to grep if something is running, "ps auxww"?
-
rwp
Best? Everyone does their own thing. But yes "ps auxww" is good. Try it with "d" too.
-
rdr
i'm just wondering if some flags are superfluous
-
rwp
Some people like to | grep "[f]oo" so that it does not match itself. (shrug) I just ignore the grep matching itself.
-
rwp
Nope. You need all of those flags.
-
rdr
on a certain otherOS it's just aux I should read the man page
-
polarian
come to think of it, if the block is erroring, then it cant be read anyways, so if the device is still booting
-
polarian
its not mandatory
-
rwp
Reading the man page is the way. Because then you see that "u" is user,pid,%cpu,%mem,vsz,rss,tt,state,start,time,command: and implies -r and other useful things.
-
rwp
Without 'u' it sorts hierarchically by controlling terminal and then process id. Which isn't enough for me to get the mental tree image out of it. So add 'd' for it. Try "ps axd" for example.
-
rwp
ps will truncate lines to the terminal size. That's the reason for adding 'w' and another 'w' for "ww" so you get the full command line arguments. If that's desired.
-
swee
I noticed specifically on freebsd with a coffee lake cpu/igpu with i915kms, kde plasma wayland feels like it's less than 60fps (it's much smoother on linux), i know it's not me because it's much smoother with X11 (with screen tears), and Xonotic still reports 100+ FPS with the same effects level
-
swee
just a freebsd silly or what?
-
rdr
wayland on freebsd is still newish
-
rwp
s/freebsd/wayland/ is being silly
-
rdr
but xonotic can go as many frames as it wants it just wont display on your screen if it is running at 60fps
-
swee
rwp: wayland is much smoother on linux
-
rdr
lets see if kde has a fps addon
-
swee
it used to have a benchmark effect in Plasma 5, i dunno what happened to it
-
rdr
1. Built-in "Show FPS" Desktop Effect
-
rwp
swee, What is the advantage of Wayland again? (my looks away shyly, I think I will go for a walk now)
-
polarian
alright err
-
polarian
here goes nothing
-
rdr
system settings -> Desktop effects (might be in submenu) -> Show FPS
-
rdr
is your refresh rate correct in KDE settings?
-
swee
-
polarian
reading 512 bytes from /dev/zero and then seeking to the LBA
-
polarian
hope to fuck this doesnt brick my device
-
rdr
you might just need to get it... with get new or maybe it isn't installed
-
rdr
i'm gonna check
-
polarian
dd if=/dev/zero of=/dev/ada0 bs=512 seek=2239833278 count=1
-
polarian
am I missing anything :p
-
polarian
rwp: back me up :p
-
swee
rdr: yeah it is, 60hz, just like in linux
-
polarian
ah it looks fineee
-
polarian
count=1 will stop any major damage :3
-
rwp
polarian, If that is the block then that seems as reasonable as I can judge. But if you break it you get to keep both halves of it.
-
polarian
ah fuck
-
polarian
I cant write to it while mounted I forgot
-
polarian
will deal with this another time then :3
-
rwp
Saved by the safety feature! Well, you will need to boot a live iso boot or something and then do it.
-
polarian
rwp: yeah yeah I know
-
polarian
cant be arsed rn
-
polarian
will let the corruption fester like an open wound for a few days
-
polarian
I dont have the time to play with this
-
polarian
I should really play with backing up with snapshots, and rebuilding the device from snapshot
-
rwp
Always a good skill to be able to do.
-
polarian
in theory, I should install a second freebsd machine, and then clone my laptop using the snapshot from a server
-
polarian
if I can pull the snapshot and rebuild my entire laptop to another laptop
-
polarian
it means backups are working :3
-
polarian
rwp: yeah but when you have infra still on Linux it makes shit harder
-
polarian
my infra is old
-
polarian
its about to be replaced, but yeah
-
polarian
I have never actually had a checksum failure, so err...
-
rwp
I have quite a mixed set of systems here too. But they all talk to each other okay.
-
polarian
I do wonder if bitrot is really as bad as data scientists point out
-
rwp
I have had power cable problems and have had SATA cable problems that both caused checksum failures and the zfs checksum checking saved me from losing my data. ZFS rocks!
-
rwp
But so far on ZFS I have not had a storage device, either spinning or flash nand, fail yet.
-
rwp
Since zfs detected, reported, protected me, from the cable problems that is still a big win for zfs.
-
» rwp must head to a meetup, later!
-
polarian
rwp: enjoy!
-
polarian
OpenBSD may be getting a better fs soon :)
-
polarian
ik people have been saying it for decades
-
polarian
one of the devs is porting his 9front filesystem (gefs) to OpenBSD rn
-
polarian
trying to setup serial terminal access right now
-
polarian
and it aint going well
-
polarian
ttyU0 "/usr/libexec/getty std.115200" vt100 on secure
-
polarian
this should work
-
polarian
baudrate of 115200, vt100 emulation, on, and allow root access
-
polarian
I am using two ttl serial adapters, with the rx and tx soldered to the opposites on each
-
polarian
so GND to GND, RX to TX and TX to RX
-
polarian
from the client machine I have plugged in a different adapter and jumped rx and tx, and I indeed get a loopback, so I have the right interface