cat://Katze :verified_agender: on Nostr: Okay, so this is probably not 100% stable across all devices, and I'm sure there must ...
Okay, so this is probably not 100% stable across all devices, and I'm sure there must be an easier way than this, but if you ever need a list of all the disks that are not partitions on your Linux box, this should work:
find /dev/disk/by-path -mindepth 1 -maxdepth 1 -not -name '*part[0-9]' -not -name '*.[0-9]' -exec readlink -f {} +
Published at
2024-07-25 12:23:25Event JSON
{
"id": "4bdc62b4a748e4b79c4ae254de4e8b7a79678435deb9e4c9241ae9d0c218327a",
"pubkey": "a419e22f74ad4613d374da6e3749b73049a0ee9eda46f97dd0aa7b073fb7f6c7",
"created_at": 1721910205,
"kind": 1,
"tags": [
[
"content-warning",
"screen reader unfriendly (shell code)"
],
[
"proxy",
"https://catcatnya.com/users/benaryorg/statuses/112847107249765942",
"activitypub"
]
],
"content": "Okay, so this is probably not 100% stable across all devices, and I'm sure there must be an easier way than this, but if you ever need a list of all the disks that are not partitions on your Linux box, this should work:\n\nfind /dev/disk/by-path -mindepth 1 -maxdepth 1 -not -name '*part[0-9]' -not -name '*.[0-9]' -exec readlink -f {} +\n",
"sig": "6cba692dfa55af5664f9ce57025b8dbd30681e552a713be10a0f9199fbfc5441c63df62942f2716de3e803abab63c4804e7da8dea0559a671b94446856054736"
}