Posts
2565
Following
163
Followers
82
AS4242423219 on DN42
Also @noisytoot@mice.tel in case chinchillas eat the cables
@david_chisnall @whitequark @elly On my supermicro BMC there isn't even an intentional way to get a real shell. It has SSH but it's using some weird thing called SMASH that appears to be entirely useless (it has no documented functionality for doing anything other than listing its own commands, which all do nothing)

In order to get a proper shell I dumped the firmware, booted it in QEMU (to avoid having to solder to tiny contacts on the board to get a serial console), figured out a way to get it to execute my code on boot (it has a read-only cramfs root partition and a read/write /nv partition, and /nv/network/netconfig1 gets sourced as root at boot) and bind-mount a script that runs /bin/sh over /SMASH/msh, and reflashed the firmware with a modified /nv partition.

The SSH server is a proprietary modified version of dropbear that seems to be hardcoded to use /SMASH/msh and uses some different user database from /etc/passwd (so I needed to ssh to ADMIN rather than root). Later I replaced it with my own more normal and up-to-date build of dropbear.
1
1
3

@woof Failed to decrypt message

0
0
0
There was a whole television in there too but I didn't want to carry it home to find out if it worked
0
0
0
Actually this CD player is not quite working properly and I'm beginning to see why it was thrown away. At least the radio part still works
1
0
1
I also found a BT Smart Hub router/modem, which unfortunately doesn't seem to be supported by OpenWrt (and I destroyed the tabs holding the plastic cover on while trying to take it apart), and a lithium ion battery that probably shouldn't have been in there
1
0
0
Someone else found a mini-ITX motherboard, including RAM (weird low profile 2x8GB DDR3), a 256GB SSD, some Nvidia GPU, and CPU/heatsink/fan, in a case full of cat hair
1
0
0
I discovered that there's an ewaste bin near my school.

Who throws away a working pair of headphones, a working CD player, a working portable USB-C vacuum cleaner, and a seemingly unopened USB-A to B cable with the price tag still on it?
1
0
1
repeated
reminder: there is no limit in the IRC emoji reactions specification for how long an emoji react can be... so the first 4kb of the bee movie is a legal emoji reaction!
1
4
0
@jiub @maddy that's odd, I would've expected the opposite
1
0
2
@maddy Is it USB Mass Storage or USB Attached SCSI?
1
0
1

@kemona_halftau according to this article I found it seems to be mostly british spelling but with some bits of american spelling (most of which aren’t universally agreed upon)

but that article is wrong about british oxford spelling (oxford spelling uses -ize, not -ise) so I’m not sure how much I trust it

0
0
1
@kemona_halftau isn't canadian spelling the same as british spelling?
1
0
0

@foxyloon btrfs raid-1 is stable and safe to use (unlike raid-5/6 which has the write hole and I wouldn’t trust), but there are several things to note:

  • if you have more than two devices, raid1 just means that it keeps at least two copies on different devices. if you want three or four-way mirroring there’s raid1c3 and raid1c4 profiles for that
  • if you want to mount a filesystem with some devices missing (e.g. a drive failed), you need to use the degraded mount option
  • if a device was temporarily missing and data was written to it during that time you’ll need to use btrfs balance to resync it and ensure everything is on both devices
  • nodatacow (chattr +C) disables data checksumming so btrfs won’t be able to detect or correct errors on such files. I would just avoid using that attribute (especially on an SSD where fragmentation isn’t such a big issue), but some stuff like systemd-journald sets it by default for performance reasons
0
0
2

@foxyloon I use btrfs. It has the advantage over md-raid that it checksums data/metadata so if one copy gets corrupted btrfs scrub will be able to detect which device has the correct data and repair the other one.

To create a raid1 filesystem across multiple devices, use mkfs.btrfs -d raid1 -m raid1 /dev/device1 /dev/device1

To add a new device and convert existing filesystem to raid1 do btrfs device add /dev/device2 /mountpoint to add the new device followed by btrfs balance start -dconvert=raid1,soft -mconvert=raid1,soft /mountpoint to convert data and metadata to raid1

1
0
2
one of those drives is now making a buzzing sound that lasts about a second then stops for a few seconds. I don't think it's supposed to do that
0
0
0

@kemona_halftau on the stock firmware you should use thinkpad_acpi but if you happen to be on coreboot on an thinkpad between ivybridge (3rd gen/xx3x) and kaby lake refresh (8th gen/xx8x) (maybe also earlier and later versions but I haven’t confirmed that, doesn’t work on X200) you can use ectool from coreboot:

# to set the charging start threshold to 50%
ectool -w 0xb0 -z 0x32
# to set the charging end threshold to 50%
ectool -w 0xb1 -z 0x32
1
0
0

@april I did look and found the text of the GPLv3 in LICENSE but didn’t find anything specifying it was GPLv3-or-later other than the commit message. The text of the GPL itself only says this:

If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation.

If you don’t specify “or any later version” somewhere, the default is the specified version only.

0
0
0
@ariadne where can I find openircd? I can only find this: https://github.com/Konloch/OpenIRCd, which is in Java
1
0
0
@ariadne when did +y become +b ~q: (now +b ~quiet:)?
0
0
0
Show older