Skip to content

u/MiddleHelmetSpell

In this archive from Feb 2020 to Mar 2020

0
posts
30
comments
0
media
42
score

> you should always keep a device on you that you know that can output to an HDMI port on you

that's a bit more expensive then, around $15, for an older generation raspberry pi. up to $50 if you want the current model all nicely tucked away in a box

though there is nothing wrong with dropping $1K on a laptop if it's work / presentation / etc. related. but if someone ask for cheap solution I feel obligated to dip into the other end of the spectrum as well.

you can do very interesting things with very little money these days and it's nothing to sneeze at either. my cheapest electronics (arduinos like under $5 a piece) do the most interesting work around here.

it could make sense to avoid the laptop purchase altogether if you're just not a laptop kind of person.

2 points

did you try it yourself? aliexpress known for gadgets with cheap ass smartphone cameras. yet claims it has ABBYY OCR (which costs a fortune in and of itself). so many flags and doubts about this

I found one reviewer on YouTube but he only uses it as a fancy camera with a foot pedal, nothing else. But I don't have to buy a fancy gadget for that.

He's a true data hoarder though https://www.youtube.com/watch?v=qPjm7TY5E_w

1 points

this looks like it'd be great for scanning 2-3 pages but annoying as hell to go through an entire one. instead of just flipping a page along you have to lift up the entire book and lay it back down?

not practical

I scanned a few books using regular feed scanners. Bought a used copy and cut the pages. Can't do that with rare unique books but that's rarely what I have at home. I have simple needs and just want to read on kindle what isn't available as ebook yet

and even that involves a lot of work. even with high quality scans, OCR is not perfect unfortunately

3 points

if you want to nuke the disk and lose all data on it:

wipefs -a /dev/sda1 /dev/sda2 /dev/sda

you'll have to create a partition table etc. afterwards, using any tool of your choice ([cfg]disk, parted, ...)

3 points

you're supposed to test drives before you shuck

out of my WD whites I have one that vibrates noisily while the others are "silent" (as silent as such HDDs may ever be, they're never noiseless). In hindsight I should have returned it

smaller drives (with high density platters) have a lot less rotating mass so reasonable to expect them to do better in terms of noise

but you never know

​

are you useing vibration dampeners? I padded my noisy disk with window seal strips and it helped, not perfect but can't have cake and eat it too

2 points

that'll likely involve a performance cost, degraded state is meant to be temporary

also it's insane to raid6/z2 with only 4 disks. double redundancy is for more drives

if you want double redundancy with 3 drives you can do it with mdadm raid1 too but no one does that, who runs 3 drives for the capacity of one? it's insane

1 points

It's a matter of opinion.

You like ZFS - you go with that. You like traditional mdadm + luks/integrity/lvm/any filesystems you like, you go with that.

> Also I read that RAIDZ1 is slower on Kernel >=5.0 because they removed some symbol that ZFS used.

you could also go with freenas or similar for native freebsd openzfs instead of linux

plenty of options all around

if you don't have pressure to get this running by tomorrow, you could give each of those solutions a short test run, see how it goes, then pick

4 points

for a write/read/verify test, in windows you can use h2testw, and in linux badblocks

you should also watch the SMART data since hard drives hide errors otherwise

also keep a watch on the temperature as drives overhead easily in the external case esp. when under constant load

for the mybook cases it helps to put them on two books of the same height so there is more of an air gap underneath. or outright have a fan blow air through it.

another thing to look out for is drive noise. one of my white labels makes a lot more noise than the others, I made the mistake of shucking it anyway, should have returned it, there is always another sale but there is no medicine for regret

1 points

I'm confused since Linux/X.org DPI has been dynamic since the age of CRT monitors.

`xdpyinfo` would give the exact size of display in mm precision and calculate the actual, real DPI of your display from that, and that's what all programs should use so text is always the same real size regardless of display size and resolution.

Whereas Windows just used a fixed DPI value whether or not it matched your display and every display would show things at a different size.

Frustrating to hear that this is still a problem today... sorry for not offering a solution

2 points

the downside of badblocks is (and the smartctl selftest), it goes to the trouble of investing hours and hours of work in to reading all data... and the read data is just discarded

a raid check will also read and discard all data but at least it'll verify the parity actually matches the data while you're at it

so it does at least sommat slightly more useful than the others

if you actually already know that you have a drive going bad and you're gonna need the data that's still on it, you should use `ddrescue` to make a copy directly, not run a read-and-discard-data test. those are fine on working drives but not on known bad ones

2 points

How though?

# badblocks -b 1M -s -v /dev/loop0
badblocks: invalid block size - 1M
# badblocks -b 16M -s -v /dev/loop0
badblocks: invalid block size - 16M

Also even if that works keep in mind the sector numbers reported by bad blocks will change too.

2 points

Thanks, I didn't even know that was a problem.

# badblocks -s -v /dev/sda
badblocks: Value too large for defined data type invalid end block (1125899906842624): must be 32-bit value

Possible alternatives:

Run a SMART self-test smartctl -t long (this is appropriate if you wanted a read-only test anyway). SMART also supports testing in segments and resuming tests with the -t select,0-max being identical to -t long, or arbitrary start-stop values. Useful if your machine is not 24/7 operational so you can only do a portion a day for very large/slow drives.

Use cryptsetup open --type plain --cipher aes-xts-plain64 to create an encrypted device on top. Then shred -v -n 0 -z fill that with zeroes (encrypted to random data). Then read it back (decrypted to zeroes) cmp /dev/zero /dev/mapper/encrypted. In the read step this stops on the first bit error.

If you insist on badblocks, you can create virtual partitions with losetup --find --show --offset=x --sizelimit=y and badblocks each of them in turn.

That said, you can also just use real partitions if you don't mind being unable to map the very first/last few sectors.

It's a bit silly to have this issue in 2020 but there are ways to work with it.

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.