Re: Re: Can I generate a checksum for a directory?
Frank Steinmetzger <[email protected]>
| Newsgroups | gmane.linux.gentoo.user |
|---|---|
| Message-ID | <aa88dvZ79fTNbYgw@q> |
Am Mon, Mar 09, 2026 at 04:26:49PM -0500 schrieb Dale: > > > I could just copy Franks script over and run it for the files. It would > > > report any errors. I'm sure that would take several days, maybe even a week > > > or more, to run on all those files tho. > > Well, to check whether a ZFS raid is still intact, one does a ZFS scrub. > > Which is exactly what you describe: it reads everything and compares > > checksums. On my 6 TB drives at 80 % use, it takes 10½ hours. > > > > > This is what I come to figure out. Basically, using your script is the > easiest way. It has to generate a checksum and compare for each file tho > and given the huge volume of data, it would take a long while. > > If you get bored, it would be nice to have a way to do the check and be able > to resume the check. One might have to stop more than once when checking > large amounts of data. Sort of like emerge does. Start a update, stop, > resume later as needed. It’s not really automated, but this is already possible, using the -N and -S option. See help output under “directory selection options”. When you press ctrl+c, it prints how many dirs it processed. So on the second run, add the option -S <number> to skip this many dirs. -- Grüße | Greetings | Salut | Qapla’ Please do not share anything from, with or about me on any social network. Operator? Please give me 911.
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEVbE9o2D2lE5fhoVsizG+tUDUMMoFAmmvPHYACgkQizG+tUDU MMqYkxAAye/FEkuGKBnSBIhd/zhcaC/09MoVitTX71QtKHVaSKHh24l+fyvHeSMw kgi2Lo2IjSPrTbnPptLB7+JTW0LTXZCVQfhr0F8s/Isb9RKe+gnzUk3Z+Ul+k4HN FgXI0nREjXO+5gBy0ROAseHhvbCEuTZm0OvzyxAuo9KjMXvYjd3QqEzoGAYCstS8 qPYUIObSAbSdAxD+ZXDgiZYCXyBFPbGCK6ZOBhPjfJA0/IlAdbokiIDoI7u2tG8R B6PAWY4ZpIOFZHhICUplfJFixLkzmihI4Kf4axbbwG1rq8ur/oh3l9StFAenbLN0 I/rQKWjUotTr0SIbJ3rk1HjBzndJ8VPdMuBjGoXMVNDaf7mA5WMRhsIiGAx+NeGu q6tWg42bSwTp896mpBE2EFmiR94VvTNMd9ZhkDAYugM41KRmxwPNB8zgfNcF4Omv +UKqptULqxxkshJU0RO1P1HmuPB/y7TgS/+Sm1WPb3bjjyWEuxI+r0k8ltxNVgl4 dzi3ldaqM9VZ0eljDYvtZOx8IQlZmzchzCwoVEPkmUvet7EYnx75P8nPrXshrkr5 5pBpvEsBhLB05TgoGK7e6g2cWNA+ow+Cvd3KzWqcTzE1i+7WhSyPSlOPWPiV/Cza 5HjNLjw1XLXkpeBXpQrY8zLGKj3prOzU3aRZRUggzAq5kaq/i4A= =sabJ -----END PGP SIGNATURE-----