Live data from Hacker News

A Linux Evening

fabiensanglard.net

271–280 of 330 posts

Re: A Linux Evening

#271
post #253
post #15

Thunderbolt devices appear in the OS as a PCIe switch, so you need two additional bus numbers (one for the Switch Upstream Port and one for the Switch Downstream Port). If the device is hotplugged to a port which has run out of bus numbers, you'll get this error message. Mika Westerberg is constantly fine-tuning the allocation of PCI resources in the Linux kernel to avoid such scenarios. Some recent patches: https://…

The key takeaway, especially for the author who wants things to "just work", is that he should have used a USB external disk, instead of a Thunderbolt external disk. OSes tend to have more issues with Thunderbolt disks (such as this issue you explained in details) than with USB disks, because the latter is more common, so more corner case bugs have been eliminated.

Yeah, first thing I thought was oh that drive looks esoteric.

Re: A Linux Evening

#272
post #11

Yes, sometimes you land in these situations in Linux, but many times are self inflicted by unnecesary tinkering. I cannot see why dealing with all the … unwanted things from windows can ever be better. With mac if it is too new it will not be supported and after a few years you need to upgrade your hardware or are left to die. Apart from being an exclusive system for the rich.

This is why I run Fedora Silverblue. My Linux is now an appliance that upgrades atomically. If something breaks, I rollback. Once in a while, I pin a version that is known to work so it never gets garbage collected. The other day I changed /etc/ld.so.conf and the system would not boot—my fault. I choose the previous deployment in GRUB and I had a working system back.

MX here. Rock stable for my purposes. I have one Windows system for some proprietary stuff I need. Other than that it's been Linux for about 10 years now.

Re: A Linux Evening

#273
Instead of searching the Web for hours, I think it's more effective to request help in a mailing list or their IRC channel if a few minutes of web search doesn't get you anywhere.

Re: A Linux Evening

#274
Even using Arch, I rarely find any big problem using Linux. There are small inconveniences from time to time but, even so, maintenance takes less time/effort than removing bloatware after each Windows 10 update...

Re: A Linux Evening

#276
post #262

Earlier quoted context omitted.

...and the network intrusion detection system throws up all sorts of alarm bells about IPs being spoofed and duplicate IPs in use. I assume MacOS actually only re-uses IPs if it sees the lease hasn't already expired but it might be dumber than that.

IIRC it does, and otherwise throws out (or used to) an ARP check (or something like that) to see if any one on the local link is using the IP. A properly behaved DHCP server would not hand the IP again to someone else if the lease hasn't expired.

> properly behaved DHCP server

One of the common issues with this is that home routers don't usually persist leases across power cycles.

Re: A Linux Evening

#277

> > Out of curiosity, how did you come up with this solution? > The author, dkozel, never came back to answer. I imagine they typed the solution on a 40% keyboard featuring unmarked keys and then rolled into the sunset on a Segway for which they had compiled the kernel themselves. Completely oblivious of their awesomeness and of how many people would later find solace in their prose. Here's how I would have started t…

https://sourcegraph.com/github.com/torvalds/linux is a more featured search engine with limited go-to-definition functionality, and removes the need to clone locally and search in many cases. Can be used with any GitHub repo. Just make sure to first enable "case sensitivity" and "structural search" using the buttons in the right of the search textbox so that the search is exact (which is a task that GitHub's own search fails at).

Re: A Linux Evening

#278

For takeaway 2, I've found using NixOS lately to be good at keeping myself disciplined about documenting the odd little hacks I've added to fix an issue. Like in this case, I'd have to add something to my boot.loader.grub.extraConfig setting, comment it and document it with a hopefully-useful commit message so that if I encounter something similar in future, I can at least look at those bits of documentation and hope…

I don't use NixOS but I have a similar documenting approach to all my OS and $HOME config files. Every customized file / override is checked in to a git repo, and there's an `install.sh` that takes each such file / directory and copies / symlinks it from the repo to its target location. Basically the same concept as dotfiles, but also for system files. I've restored a couple of machines from OS reinstall to full readiness this way.

Re: A Linux Evening

#279
post #138

Hi folks. :) I'm so glad that my hit-and-run post has been so useful. After seeing Fabien's blog post I did a quick search and it turns out that the solution has spread fairly broadly to other forums. My choice of 0x33 was arbitrary so makes a nice canary for seeing it spread out. I'm thrilled. Sharing experiences and solutions is so essential to learning. I've benefited enormously from the generosity of open source…

The internet is amazing! The way it allows people to connect, help each other and sometimes also reconnect is heartwarming. If you have a PayPal account, I will gladly contribute to your microscope fund! Thank you again, and happy end of year!

Heartwarming, thank you so much for sharing this experience with us. :)

Re: A Linux Evening

#280
post #15

Thunderbolt devices appear in the OS as a PCIe switch, so you need two additional bus numbers (one for the Switch Upstream Port and one for the Switch Downstream Port). If the device is hotplugged to a port which has run out of bus numbers, you'll get this error message. Mika Westerberg is constantly fine-tuning the allocation of PCI resources in the Linux kernel to avoid such scenarios. Some recent patches: https://…

Any book or documentation you recommend to read to someone interested in getting involved?
Post reply on HN