frontpage.
newsnewestaskshowjobs

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•1y ago

Comments

DonHopkins•1y 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•1y ago
Awesome! That actually inspired me to code this: https://codeberg.org/mco-system/pooper
don-code•1y ago
I challenge anyone to find another place on the Internet where one person's joke is another person's kernel module.
tanelpoder•1y ago
Astute observation, but also CrowdStrike would like a word :-)
xerxes901•1y 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•1y 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•1y ago
Thanks for clarifying, and implementing this essential feature!
DonHopkins•1y 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•1y ago
Easy to get an infinite stream of bell codes with: yes ^V^G
bitbang•1y ago
Very nice, needs option for json/jsonl output.
tanelpoder•1y 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•1y ago
can we package this for Arch? Arch Defense Taskforce where you at?
tanelpoder•1y 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•1y 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•1y 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•1y 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•1y 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•1y 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).

trillic•1y ago
Rewrote most of the functionality in C as an exercise

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

jayofdoom•1y 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.

Deno Is Joining Cloudflare

https://deno.com/blog/cloudflare
294•ilreb•1h ago•143 comments

Our $445M Series D

https://oxide.computer/blog/our-445m-series-d
146•ahlCVA•1h ago•32 comments

Let your AI agents paint big arrows, boxes and text on your screen

https://github.com/franzenzenhofer/big-arrow-on-the-screen
185•franze•3h ago•74 comments

I'm in a Meeting

https://iminafleeting.com/
223•splintersio•5h ago•87 comments

Nobel Peace Prize for 2026 to Navanethem "NAVI" Pillay

https://www.nobelprize.org/prizes/peace/2026/press-release/
204•Anon84•4h ago•115 comments

Why isn't the industry freaking out about DeepSeek 4.1 Flash?

https://www.dgt.is/blog/2026-10-07-deepseek-freek-out/
906•jonotime•1d ago•821 comments

Once: Cache CLI Commands

https://github.com/alex0ptr/once
40•baquero•4h ago•19 comments

Whistle: Speech to Text in 16.9 MB

https://cactuscompute.com/blog/whistle
827•gmays•21h ago•168 comments

Iranian campaign planted fake articles in real U.S. publications using ChatGPT

https://www.washingtonpost.com/technology/2026/10/09/chatgpt-users-iran-planted-ai-generated-arti...
70•cainxinth•2h ago•34 comments

Meadows – a small language for stock-and-flow diagrams that run

https://lorezzed.github.io/meadows/
12•jjsalamon•1h ago•2 comments

Man discovers his parents' coffee machine used 1TB of data in 10 days

https://www.dexerto.com/entertainment/man-discovers-his-parents-coffee-machine-used-1tb-of-data-i...
809•ck2•1d ago•492 comments

MXC - a sandboxed code execution system

https://github.com/microsoft/mxc
90•nreece•8h ago•48 comments

Yandex Takes a Second Data Center Hit in 48 Hours

https://united24media.com/war-in-ukraine/yandex-takes-a-second-data-center-hit-in-48-hours-now-it...
6•ortusdux•8m ago•0 comments

Keyboard differences between Windows and Macs

https://unsung.aresluna.org/deeper-dive-keyboard-differences-between-windows-and-macs/
222•sohkamyung•11h ago•189 comments

Yes, and

https://htmx.org/essays/yes-and/
571•Michelangelo11•1d ago•211 comments

I hired an illustrator to draw my house. Now it's my Home Assistant dashboard

https://antonfrolov.substack.com/p/i-hired-an-illustrator-to-draw-my
751•soheilpro•2d ago•162 comments

Theranos.world

https://www.theranos.world/
497•kbyatnal•20h ago•178 comments

Study: Exercise increases cancer survival rates

https://www.nejm.org/doi/10.1056/NEJMoa2502760
21•RickJWagner•1h ago•5 comments

The Hetzner Cloud network stack – history and technical overview

https://www.hetzner.com/blog/the-hetzner-cloud-network-stack-history-and-technical-overview/
43•cnkk•2h ago•9 comments

OpenAI fires three safety researchers for "mishandling research information"

https://techcrunch.com/2026/10/08/fired-openai-safety-researchers-dispute-misconduct-claims-warn-...
112•trakkstar•4h ago•61 comments

Court throws out killer's sentence after judge said he loved AI video of victim

https://www.nbcnews.com/news/us-news/sentence-vacated-ai-video-dead-victim-rcna601457
8•rbanffy•14m ago•0 comments

The value of not getting to the point (2015)

https://ken.arneson.name/2015/11/the-value-of-not-getting-to-the-point/
195•NaOH•19h ago•68 comments

Ask HN: What do you run on a $5 VPS that's worth keeping online 24/7?

298•mariocesar•2d ago•481 comments

OpenAI, the Partition Principle, and Mathematics

https://karagila.org/2026/openai-pp/
156•md224•14h ago•238 comments

ETH-68: Ethernet Audio Interface for Linux

https://naturalsystems.io/eth68
189•chabad360•2d ago•117 comments

Beauty in DVD Menus

https://vale.rocks/posts/dvd-menus
323•speckx•1d ago•168 comments

DuckDB Ducklake

https://github.com/duckdb/ducklake
206•saikatsg•1d ago•26 comments

AI-ready biological data: $1.8B global commitment

https://biohub.org/news/virtual-biology-initiative-expansion/
138•ray__•17h ago•20 comments

OpenAI withdraws three mathematical results

https://twitter.com/danintheory/status/2108065033070789090
354•sashank_1509•1d ago•592 comments

Show HN: Making a flexible "neon" t-shirt with LED filaments

http://scottbezek.blogspot.com/2026/10/making-flexible-neon-t-shirt-with-leds.html
197•scottbez1•21h ago•36 comments