|
Lines 2022-2038
Link Here
|
| 2022 |
<sect2> |
2022 |
<sect2> |
| 2023 |
<title>The device</title> |
2023 |
<title>The device</title> |
| 2024 |
|
2024 |
|
| 2025 |
<para>Floppy disks are accessed throught entries in |
2025 |
<para>Floppy disks are accessed through entries in |
| 2026 |
<filename>/dev</filename> (like any other device). To access the |
2026 |
<filename>/dev</filename> (like any other device). To access the |
| 2027 |
raw floppy disk you can use <filename>/dev/rfdX</filename>, |
2027 |
raw floppy disk you can use <filename>/dev/rfd<replaceable>X</replaceable></filename>, |
| 2028 |
where X stands for the drive number, usually 0. When the disk is |
2028 |
where <replaceable>X</replaceable> stands for the drive number, usually 0. When the disk is |
| 2029 |
formatted you can use <filename>/dev/fdX</filename>, or |
2029 |
formatted you can use <filename>/dev/fd<replaceable>X</replaceable></filename>, or |
| 2030 |
whichever of the other devices named |
2030 |
whichever of the other devices named |
| 2031 |
<filename>/dev/fdXY</filename>, where Y stands for a |
2031 |
<filename>/dev/fd<replaceable>XY</replaceable></filename>, where <replaceable>Y</replaceable> stands for a |
| 2032 |
letter. These are all the same.</para> |
2032 |
letter. These are all the same.</para> |
| 2033 |
|
2033 |
|
| 2034 |
<para>Other important devices are |
2034 |
<para>Other important devices are |
| 2035 |
<filename>/dev/fdX.size</filename>, where size is a floppy disk |
2035 |
<filename>/dev/fd<replaceable>X</replaceable>.<replaceable>size</replaceable></filename>, where <replaceable>size</replaceable> is a floppy disk |
| 2036 |
size in kilobytes. These entries are used at low-level format |
2036 |
size in kilobytes. These entries are used at low-level format |
| 2037 |
time to determine the disk size.</para> |
2037 |
time to determine the disk size.</para> |
| 2038 |
|
2038 |
|
|
Lines 2053-2059
Link Here
|
| 2053 |
<para>To format the floppy at a low-level fashion you need to |
2053 |
<para>To format the floppy at a low-level fashion you need to |
| 2054 |
use <application>fdformat</application>. This utility expects |
2054 |
use <application>fdformat</application>. This utility expects |
| 2055 |
the device name as an argument. We will use those |
2055 |
the device name as an argument. We will use those |
| 2056 |
<filename>/dev/fdX.size</filename> devices, which will allow us |
2056 |
<filename>/dev/fd<replaceable>X</replaceable>.<replaceable>size</replaceable></filename> devices, which will allow us |
| 2057 |
to format the floppy to its real size, or force them. So you |
2057 |
to format the floppy to its real size, or force them. So you |
| 2058 |
insert a new 3.5inch floppy disk in your drive and issue:</para> |
2058 |
insert a new 3.5inch floppy disk in your drive and issue:</para> |
| 2059 |
|
2059 |
|
|
Lines 2092-2100
Link Here
|
| 2092 |
<para>You can run now <application>disklabel</application> |
2092 |
<para>You can run now <application>disklabel</application> |
| 2093 |
like:</para> |
2093 |
like:</para> |
| 2094 |
|
2094 |
|
| 2095 |
<screen>&prompt.root; <userinput>/sbin/disklabel -B -r -w /dev/rfd0 fd(size)</userinput></screen> |
2095 |
<screen>&prompt.root; <userinput>/sbin/disklabel -B -r -w /dev/rfd0 <replaceable>fdsize</replaceable></userinput></screen> |
| 2096 |
|
2096 |
|
| 2097 |
<para>Replace fd(size) with fd1440, fd1720 or whichever size you |
2097 |
<para>Replace <replaceable>fdsize</replaceable> with <literal>fd1440</literal>, <literal>fd1720</literal> or whichever size you |
| 2098 |
want. The last field instructs disklabel which entry to take |
2098 |
want. The last field instructs disklabel which entry to take |
| 2099 |
from <filename>/etc/disktab</filename> to use.</para> |
2099 |
from <filename>/etc/disktab</filename> to use.</para> |
| 2100 |
</sect2> |
2100 |
</sect2> |