I’m a little teapot 🫖

  • 34 Posts
  • 560 Comments
Joined 1 year ago
cake
Cake day: September 27th, 2023

help-circle









  • seaQueue@lemmy.worldtoSelfhosted@lemmy.worldHDD randomly unmounting
    link
    fedilink
    English
    arrow-up
    12
    ·
    edit-2
    6 days ago

    Don’t just look at sdb hits in the log. Open up that entire session in journalctl kernel mode (journalctl -k -bN where N is the session number in session history) and find the context surrounding the drive dropping and reconnecting.

    You’ll probably find that something caused a USB bus reset or a similar event before the drive dropped and reconnected. if you find nothing like that try switching power supplies for the HDD and/or switching USB ports until you can move the drive to a different USB root port. Use lsusb -t and swap ports until the drive is attached beneath a different root port. You might have a neighboring USB device attached to the bus that’s causing issues for other devices attached to the same root port (it happens, USB devices or drivers sometimes behave badly.)

    Always look at the context of the event when you’re troubleshooting a failure like this, don’t just drill down on the device messages. Most of the time the real cause of the issue preceded the symptom by a bit of time.







  • In my experience many of the people who haven’t quit are self medicating for attention or depressive reasons. Of the folks I know who vape about half were diagnosed with ADHD later in life (30+) and quit after finding a stimulant medication that worked for them. The rest are unmedicated and self medicating with nicotine and coffee or energy drinks. Self medicating is overlooked in virtually every discussion about nicotine and I’d like to see it considered more often when the topic comes up instead of just leaping straight to “nicotine use bad” or “nicotine users should be punished” like most discussions do.

    Edit: there’s also some interesting research re: nicotine’s neuroprotective properties that gets lost in the prohibition fervor



  • Write a couple of your own toy services as practice. Write a one-shot that fires at a particular time during boot, a normal service that would run a daemon and a mount service that fires after its dependencies are loaded (like, say, a bind mount that sets up a directory under /run/foo after the backing filesystem is mounted - I do this to make fast ext4 storage available in some parts of the VFS tree while using a btrfs filesystem for everything else.) You can also write file watcher services that fire after changes to a file or directory, I use one of those to mirror /boot/ to /.boot/ on another filesystem so it’s captured by my system snapshots.

    I’d start by reading the docs so you have some ideas about what services can do, then you’ll find uses that you wouldn’t have thought of before.