Axe the question on cramming 1TB files onto a floppy disk.
1) This is not asked frequently. This is not asked rarely. This has probably only been asked once, in some leap year during the thirteenth full moon. 2) "You need a dd that handles large files"; this is spectacularly unhelpful, as it says nothing about where to get such a dd, what's wrong with the existing dd, etc. 3) This information might be useful somewhere in the Handbook, if rewritten and generalized to explain why files can be larger than the disks that they live on: since this question is simply met with derision by many members of the -doc team, however, not to mention the FreeBSD community in general, we'll just deorbit it. 4) If we had a "Stupid FreeBSD Tricks" book, this would belong there.
This commit is contained in:
parent
12f21e3dab
commit
dafc837843
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=12056
1 changed files with 0 additions and 37 deletions
|
@ -2130,43 +2130,6 @@ disk wd2 at wdc1 drive 1 # change from wd3 to wd2</programlisting
|
|||
</answer>
|
||||
</qandaentry>
|
||||
|
||||
<qandaentry>
|
||||
<question id="tb-on-floppy">
|
||||
<para>How can I put 1TB files on my floppy?</para>
|
||||
</question>
|
||||
|
||||
<answer>
|
||||
<para>I keep several virtual ones on floppies :-). The maximum
|
||||
file size is not closely related to the maximum disk size. The
|
||||
maximum disk size is 1TB. It is a feature that the file size
|
||||
can be larger than the disk size.</para>
|
||||
|
||||
<para>The following example creates a file of size 8T-1 using a
|
||||
whole 32K of disk space (3 indirect blocks and 1 data block) on
|
||||
a small root partition. The dd command requires a dd that works
|
||||
with large files.</para>
|
||||
|
||||
<screen>&prompt.user; <userinput>cat foo</userinput>
|
||||
df .
|
||||
dd if=/dev/zero of=z bs=1 seek=`echo 2^43 - 2 | bc` count=1
|
||||
ls -l z
|
||||
du z
|
||||
df .
|
||||
&prompt.user; <userinput>sh foo</userinput>
|
||||
Filesystem 1024-blocks Used Avail Capacity Mounted on
|
||||
/dev/da0a 64479 27702 31619 47% /
|
||||
1+0 records in
|
||||
1+0 records out
|
||||
1 bytes transferred in 0.000187 secs (5346 bytes/sec)
|
||||
-rw-r--r-- 1 bde bin 8796093022207 Sep 7 16:04 z
|
||||
32 z
|
||||
Filesystem 1024-blocks Used Avail Capacity Mounted on
|
||||
/dev/da0a 64479 27734 31587 47% /</screen>
|
||||
|
||||
<para>Bruce Evans, September 1998</para>
|
||||
</answer>
|
||||
</qandaentry>
|
||||
|
||||
<qandaentry>
|
||||
<question id="archsw-readin-failed-error">
|
||||
<para>Why do I get an error message,
|
||||
|
|
Loading…
Reference in a new issue