frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

New Tool: lsds – List All Linux Block Devices and Settings in One Place

https://tanelpoder.com/posts/lsds-list-linux-block-devices-and-their-config/
101•mfiguiere•11mo ago

Comments

DonHopkins•11mo ago
I always wanted the /dev/zero character device driver, which you can map into memory to clear it, or use as an infinite source of nulls, to use the minor node number as the value that got mapped into memory or produced, so you could make an infinite source of beeps with:

mknod /dev/seven c 1 7

I wonder what would happen if you made a /dev/seven device in your http servers public_html directory? Would it dutifully serve it up?

Better yet, support for utf-8 unicode, so you can make an infinite source of poo emojis.

The "Everything Is A File" philosophy should be taken to its logical conclusion.

dlt713705•11mo ago
Awesome! That actually inspired me to code this: https://codeberg.org/mco-system/pooper
don-code•11mo ago
I challenge anyone to find another place on the Internet where one person's joke is another person's kernel module.
tanelpoder•11mo ago
Astute observation, but also CrowdStrike would like a word :-)
xerxes901•11mo ago
Question: what actually reads /etc/pooper to configure the character? I can’t work out how that file’s contents ends up as module parameters and I’d love to know!
dlt713705•11mo ago
You are absolutely right, the /etc/pooper file was never loaded.

The code has been updated and now you can change the pooped char on the fly with something like :

`echo "<WHATEVER UTF-8 CHAR>" | sudo tee /sys/module/pooper/parameters/char_utf8`

/etc/pooper file and module unload/reload are no more needed :)

xerxes901•11mo ago
Thanks for clarifying, and implementing this essential feature!
DonHopkins•11mo ago
Finally somebody who gives a shit! Thank you for dropping that generous contribution.

Now I can use that device as an RSS feed! That puts the log into blog.

I haven't seen that much shit emerge from a wormhole since the Ed the Happy Clown episode of Yummy Fur comics:

https://everything2.com/node/1485685?bookmark_site=twitter&o...

>We now skip back in time a little, where we find Ronald Reagan before his mysterious transformation. He presides over an America that has no concept of toilets, and piles of feces on every street corner are becoming a serious problem. Fortunately, science can help; a farmer has stumbled across a small portal to another dimension. The solution is clear; push America's mounting shit through the portal via a huge funnel. The exit point for the portal is in fact the anus of the gentleman who couldn't stop shitting back in the prison in Ed's world; so there is at least a good scientific explanation for that little episode.

>During the official opening of the shit disposer, Reagan tragically falls into the giant collection of pending waste. His body blocks the funnel, but not before his head has gone through the portal; a headless president is recovered. A scientist heads though the portal on a rescue mission.

>(Now, I know what you're thinking, and I've no idea how Reagan's head became attached to the end of Ed's penis. It makes no sense, even within the logic of Ed's universe, and it's not explained. If you have any notions, please let me know - but for now, we'll just have to accept that somehow, it happened...)

The Chester Brown Interview:

https://www.tcj.com/the-chester-brown-interview/3/

Best NSFW Ronald Reagan Quote Ever:

https://the-comics-journal.sfo3.digitaloceanspaces.com/wp-co...

Support Indie Comics!

anonymousiam•11mo ago
Easy to get an infinite stream of bell codes with: yes ^V^G
bitbang•11mo ago
Very nice, needs option for json/jsonl output.
tanelpoder•11mo ago
Thanks! Yep I was thinking of doing that next, will be very easy as under the hood the data is stored in Python dictionaries.
appleaday1•11mo ago
can we package this for Arch? Arch Defense Taskforce where you at?
tanelpoder•11mo ago
I just added a little comment/errata regarding the NVME_QDEPTH column to the post (search for errata). I should probably rename that column to emphasize that (for now) it’s the Linux nvme module level max QD and not the hardware one (it’s complicated…)
nerflad•11mo ago
If you came to represent... https://wiki.archlinux.org/title/Creating_packages

Maintaining an AUR package can be great fun and an instructive glimpse into what FLOSS maintainers go through.

jayofdoom•11mo ago
I'll note, lsblk can return a heck of a lot more data than it does by default (and nvme drives show up there). lsblk -H will list for your system, and you can specify columns. You can also adjust output.

I guess with this in mind, I'm curious how this is different?

tanelpoder•11mo ago
Hi, yep lsblk targets a wider area of functionality, like showing mountpoints, device UUIDs, while lsds focuses only on block device settings.

Maybe the latest Linux versions have lsblk versions that support these columns, but in RHEL9 at least I don't see equivalents to lsds'es WBT_LAT, QDEPTH (not the same as lsblk's RQ-SIZE), WCACHE, FUA and some others. But these 4 are which I regularly need (especially when troubleshooting a yet another slow fsync() issue etc). I did and do use lsblk all the time too, but still end up catting and grepping various additional files and correlating the results, sometimes on systems with 100+ multipath block devices.

The other reason was that I wanted a tool that shows me where it gets these values too (for myself and sometimes for explaining stuff to others).

Edit: That being said, it shouldn't be hard at all to add the said extra fields to lsblk too.

strunz•11mo ago
Would be worth adding this as an FAQ on the page. Great job btw.

EDIT: Would also be really cool to define what each field means, if you're gonna reimplement everything anyways, why not make it as user friendly as possible.

tanelpoder•11mo ago
Thanks. Yep I have to revamp the whole 0x.tools webpage, right now it's a mix of older tools & prototypes and the "final stuff" and it's confusing what's what.

The lsds verbose option shows where in the Linux /sys fs each individual field comes from (lsds -lpv) so that's the ultimate source of what each field means. But I could pull each sysfs file's description from docs into a table on the webpage (I'm probably too lazy to create a manpage for now - help is appreciated)

Edit: Since there are not that many fields, it would be possible to add a -d option in addition to -v to get a human readable description for each field too. One of the main sources of confusion is the "queue_depth" vs. "nr_requests" fields. My ideal (which I usually don't reach) is to make these tools "explainable", so that they tell you from where they got their input data (and what basic math was applied).

jayofdoom•11mo ago
Thank you for the detailed response, even if I'm reading it late! This is exactly what I was trying to learn; what this tool exposed that lsblk is missing.
trillic•11mo ago
Rewrote most of the functionality in C as an exercise

https://gist.github.com/grahameger/2507019334f07036f84080a87...

Morality should not depend on rewards or fear

https://economictimes.indiatimes.com/magazines/panache/quote-of-the-day-by-immanuel-kant-if-you-p...
1•_el1s7•46s ago•0 comments

Journalists are pairing satellite and AI to expose illegal mining in the Amazon

https://www.niemanlab.org/2026/04/geospatial-ai-is-reinventing-the-rainforest-beat/
1•giuliomagnifico•1m ago•0 comments

NARE: An LLM agent that amortizes reasoning into memory and executable rules

https://github.com/starface77/Neuro-Adaptive-Reasoning-Engine
4•Danikov•2m ago•0 comments

19IN: A Collaborative Database of Studio Equipment

https://19in.net
2•xoac•4m ago•0 comments

Open Source AI Infrastructure

2•38caveman•4m ago•0 comments

GitHub Actions is the weakest link

https://nesbitt.io/2026/04/28/github-actions-is-the-weakest-link.html
2•dochtman•4m ago•0 comments

Ubuntu's "AI Kill Switch" Is Achieved by Removing Snaps, Initially Opt-In

https://www.phoronix.com/news/Ubuntu-AI-Kill-Switch-Opt-In
1•lpcvoid•5m ago•1 comments

Jjjj – Jujutsu Jump Jobs

https://arch1t3cht.org/blog/jjjj/
1•arch1t3cht•5m ago•0 comments

Klippel Near Field Scanner on a Shoestring

https://www.diyaudio.com/community/threads/klippel-near-field-scanner-on-a-shoestring.318151/page...
1•MrBuddyCasino•6m ago•0 comments

Tracking China's mass surveillance capabilities via abandoned online dashboards

https://netaskari.substack.com/p/tracking-chinas-mass-surveillance
1•aslgbb•6m ago•0 comments

Microsoft VibeVoice: Open-Source Frontier Voice AI

https://github.com/microsoft/VibeVoice
1•tosh•7m ago•0 comments

I built a queryable, geospatially tiled map of 10M research papers

https://globalresearchspace.com/space#7.65/-16.827/42.731/-35.7/68
1•UrlAgentFoo•7m ago•1 comments

Show HN: I built AI character chat that remembers the way people do

https://www.wontopos.com/
1•wontopos•8m ago•0 comments

Miri – a plugin to make miracle-wm scrollable

https://github.com/miracle-wm-org/miri-plugin
1•matthewkosarek•8m ago•0 comments

Localsend: An open-source cross-platform alternative to AirDrop

https://github.com/localsend/localsend
1•bilsbie•8m ago•0 comments

We Are Bombarding America's Forests with Roundup – Mother Jones

https://www.motherjones.com/politics/2026/04/roundup-glyphosate-spraying-forests-monsanto-science...
2•bilsbie•9m ago•0 comments

A statement from members of the Toki Pona community

https://tokipona.net/wile-pona/
2•robinhouston•10m ago•0 comments

HardenedBSD Is Now Officially on Radicle

https://hardenedbsd.org/article/shawn-webb/2026-04-26/hardenedbsd-officially-radicle
1•birdculture•10m ago•0 comments

Show HN: LavinMQ, an open-source message broker written in Crystal

https://github.com/cloudamqp/lavinmq
5•CarlHoerberg•15m ago•1 comments

I tried and failed vibe coding a metroidvania so you (hopefully) won't have to

https://www.reddit.com/r/gamedev/s/JwbNaQqjXe
2•Michelangelo11•16m ago•0 comments

PureSearch

https://puresearch.rork.app
1•Theophollus•18m ago•0 comments

Timdle Music – Hear it, place it

https://www.timdle.com/music
1•maskinberg•18m ago•1 comments

Rapunzel: Tree style tabs for codex, Claude Code and Gemini

https://github.com/salmanjavaid/rapunzel/tree/main
1•WasimBhai•19m ago•1 comments

Is Irish Reunification Back?

https://mondediplo.com/2026/05/10northern-ireland
1•JumpCrisscross•20m ago•0 comments

The Inevitability of God? (2025)

https://samuelsmith.org/the-inevitability-of-god/
1•wslh•21m ago•0 comments

Brain motion is driven by mechanical coupling with the abdomen

https://www.nature.com/articles/s41593-026-02279-z
1•bookofjoe•22m ago•0 comments

Consumers lost $2.1B to social media scams in 2025, FTC reports

https://techcrunch.com/2026/04/27/consumers-lost-2-1-billion-to-social-media-scams-in-2025-ftc-re...
2•yakkomajuri•28m ago•0 comments

Companies are hoarding AI compute because of FOMO and sitting on most of it

https://www.businessinsider.com/companies-hoarding-unused-ai-compute-cast-ai-report-kubernetes-20...
1•berkeleyjunk•28m ago•0 comments

48-hour AI engineering challenge (cash prizes, job offers)

https://challenge.instantly.ai/
1•iandreileo•30m ago•0 comments

Starlink Reluctant to Operate in Taiwan

https://www.taipeitimes.com/News/taiwan/archives/2026/04/23/2003856096
6•keepamovin•31m ago•0 comments