• 0 Posts
  • 43 Comments
Joined 1 year ago
cake
Cake day: July 1st, 2023

help-circle



  • Off the top of my head, I think the best chances of survival are: C, A, B. I’m not sure about A vs. C, because A’s total odds are hard to calculate in my head, while C is exactly 1/3 (33.33%).

    The reason A is better than B is that a 1/6 chance of dying, twice, is better than a 2/6 chance of dying, once. They might seem at first like the same, but consider that one of those 36 chances in the A case is where you get shot twice in a row. That’s no worse than a regular death. So it comes out to only 11/36 of dying in the first two rounds of A, but 12/36 of dying in the first one round of B.

    spoiler

    Using a calculator. it turns out A is actually 0.16% better than C. They’re really about the same.



  • Limonene@lemmy.worldtohmmm@lemmy.worldhmmm
    link
    fedilink
    arrow-up
    34
    arrow-down
    2
    ·
    1 month ago

    The two outlets could be on different circuits, if for example one of them is connected to a switch on a lighting circuit.

    Then, the cable will be powering one circuit from the other. A circuit limited to 20A could draw 40A before blowing, causing damage to the wires.

    Someone might do some wiring work on the lights, and shut off the lighting circuit, and still get zapped (though most electricians would test it before touching it, since breaker labels are rarely accurate).

    There are many creative ways to die to a cable like this.




  • In my system, the raid arrays seem to do periodic data scrubbing automatically. Maybe it’s something that’s part of Debian, or maybe it’s just a default kernel setting. I don’t think it helps much with data integrity – I think it helps more just by ensuring the continued functionality of the drives.

    When it’s running, you can type cat /proc/mdstat to see the progress.

    That command will also show you if there is a failing drive, so that you can replace it.





  • Sure. First you set up a RAID5/6 array in mdadm. This is a purely software thing, which is built into the Linux kernel. It doesn’t require any hardware RAID system. If you have 3-4 drives, RAID5 is probably best, and if you have 5+ drives RAID6 is probably best.

    If your 3 blank drives are sdb1, sdc1, and sdd1, run this:

    mdadm --create --verbose /dev/md0 --level=5 -n 3 /dev/sdb1 /dev/sdc1 /dev/sdd1

    This will create a block device called /dev/md0 that you can use as if it were a single large hard drive.

    mkfs.btrfs /dev/md0

    That will make the filesystem on the block device.

    mkdir /mnt/bigraid
    mount /dev/md0 /mnt/bigraid
    

    This creates a mount point and mounts the filesystem.

    To get it to mount every time you boot, add an entry for this filesystem in /etc/fstab




  • Pretty fucked, but not as fucked as Ukraine, Palestine, Lebanon, or Taiwan.

    NATO will be fucked for a while if the US withdraws, but other NATO countries may ramp up military spending over time.

    This situation is a worldwide danger. The US is/was a world power, it has/had the largest national economy in the world, it has the largest military in the world.

    Previously, we could be concerned that democratic countries (including the US) weren’t putting enough pressure on authoritarian countries (like Russia, China, and North Korea) to improve. Now we have to worry that the US will actually become a fully authoritarian country, like Russia or China.