=== Kilroy is now known as Vilroy | ||
=== Vilroy is now known as Kilroy | ||
=== xispita_ is now known as xispita | ||
Kilroy | I need a file that is exactly 6.9 GB how would one go about creating that? | 17:52 |
---|---|---|
andol | Kilroy: Are you defining a GB as 10^9 or 2^30 bytes? | 18:21 |
andol | In the first case you ought to be able to do something like this: dd if=/dev/urandom of=testfile bs=1000000 count=6900 | 18:24 |
andol | In the latter case I think you are ought of luck, since then 6.9 GB don't translate into an even number of bytes. | 18:25 |
TJ- | Kilroy: For base 2 "echo "fallocate -l $(numfmt --from=iec 6.9G)" for base 10 "echo "fallocate -l $(numfmt --from=si 6.9G)" | 18:35 |
Kilroy | thanks TJ- | 18:44 |
Kilroy | I get fallocate: invalid length value specified | 18:46 |
TJ- | Kilroy: try the numfmt commands on their own to test | 18:47 |
TJ- | Kilroy: I didn't run the fallocate commands to create anything, just verified the generated command worked | 18:48 |
TJ- | Kilroy: you do need to add on a filename to create of course! | 18:49 |
TJ- | Kilroy: e.g. for base 2: fallocate -l $(numfmt --from=iec 6.9G) myfile.bin | 18:50 |
Kilroy | ok | 18:55 |
rbasak | smoser: swtpm started. libtpms was already imported. | 19:37 |
rbasak | swtpm is done | 19:49 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!