View | Details | Raw Unified | Return to bug 212935
Collapse All | Expand All

(-)chapter.xml (-651 / +651 lines)
Lines 24-74 Link Here
24
24
25
    <itemizedlist>
25
    <itemizedlist>
26
      <listitem>
26
      <listitem>
27
	<para>How to add additional hard disks to a &os;
27
        <para>How to add additional hard disks to a &os;
28
	  system.</para>
28
          system.</para>
29
      </listitem>
29
      </listitem>
30
30
31
      <listitem>
31
      <listitem>
32
	<para>How to grow the size of a disk's partition on
32
        <para>How to grow the size of a disk's partition on
33
	  &os;.</para>
33
          &os;.</para>
34
      </listitem>
34
      </listitem>
35
35
36
      <listitem>
36
      <listitem>
37
	<para>How to configure &os; to use <acronym>USB</acronym>
37
        <para>How to configure &os; to use <acronym>USB</acronym>
38
	  storage devices.</para>
38
          storage devices.</para>
39
      </listitem>
39
      </listitem>
40
40
41
      <listitem>
41
      <listitem>
42
	<para>How to use <acronym>CD</acronym> and
42
        <para>How to use <acronym>CD</acronym> and
43
	  <acronym>DVD</acronym> media on a &os; system.</para>
43
          <acronym>DVD</acronym> media on a &os; system.</para>
44
      </listitem>
44
      </listitem>
45
45
46
      <listitem>
46
      <listitem>
47
	<para>How to use the backup programs available under
47
        <para>How to use the backup programs available under
48
	  &os;.</para>
48
          &os;.</para>
49
      </listitem>
49
      </listitem>
50
50
51
      <listitem>
51
      <listitem>
52
	<para>How to set up memory disks.</para>
52
        <para>How to set up memory disks.</para>
53
      </listitem>
53
      </listitem>
54
54
55
      <listitem>
55
      <listitem>
56
	<para>What file system snapshots are and how to use them
56
        <para>What file system snapshots are and how to use them
57
	  efficiently.</para>
57
          efficiently.</para>
58
      </listitem>
58
      </listitem>
59
59
60
      <listitem>
60
      <listitem>
61
	<para>How to use quotas to limit disk space usage.</para>
61
        <para>How to use quotas to limit disk space usage.</para>
62
      </listitem>
62
      </listitem>
63
63
64
      <listitem>
64
      <listitem>
65
	<para>How to encrypt disks and swap to secure them against
65
        <para>How to encrypt disks and swap to secure them against
66
	  attackers.</para>
66
          attackers.</para>
67
      </listitem>
67
      </listitem>
68
68
69
      <listitem>
69
      <listitem>
70
	<para>How to configure a highly available storage
70
        <para>How to configure a highly available storage
71
	  network.</para>
71
          network.</para>
72
      </listitem>
72
      </listitem>
73
    </itemizedlist>
73
    </itemizedlist>
74
74
Lines 76-83 Link Here
76
76
77
    <itemizedlist>
77
    <itemizedlist>
78
      <listitem>
78
      <listitem>
79
	<para>Know how to <link linkend="kernelconfig">configure and
79
        <para>Know how to <link linkend="kernelconfig">configure and
80
	    install a new &os; kernel</link>.</para>
80
            install a new &os; kernel</link>.</para>
81
      </listitem>
81
      </listitem>
82
    </itemizedlist>
82
    </itemizedlist>
83
  </sect1>
83
  </sect1>
Lines 87-99 Link Here
87
      <title>Adding Disks</title>
87
      <title>Adding Disks</title>
88
88
89
      <authorgroup>
89
      <authorgroup>
90
	<author>
90
        <author>
91
	  <personname>
91
          <personname>
92
	    <firstname>David</firstname>
92
            <firstname>David</firstname>
93
	    <surname>O'Brien</surname>
93
            <surname>O'Brien</surname>
94
	  </personname>
94
          </personname>
95
	  <contrib>Originally contributed by </contrib>
95
          <contrib>Originally contributed by </contrib>
96
	</author>
96
        </author>
97
      </authorgroup>
97
      </authorgroup>
98
    </info>
98
    </info>
99
99
Lines 122-137 Link Here
122
122
123
    <para>For this example, a single large partition will be created
123
    <para>For this example, a single large partition will be created
124
      on the new disk.  The <link
124
      on the new disk.  The <link
125
	xlink:href="http://en.wikipedia.org/wiki/GUID_Partition_Table">
125
        xlink:href="http://en.wikipedia.org/wiki/GUID_Partition_Table">
126
	<acronym>GPT</acronym></link> partitioning scheme will be
126
        <acronym>GPT</acronym></link> partitioning scheme will be
127
      used in preference to the older and less versatile
127
      used in preference to the older and less versatile
128
      <acronym>MBR</acronym> scheme.</para>
128
      <acronym>MBR</acronym> scheme.</para>
129
129
130
    <note>
130
    <note>
131
      <para>If the disk to be added is not blank, old partition
131
      <para>If the disk to be added is not blank, old partition
132
	information can be removed with
132
        information can be removed with
133
	<command>gpart delete</command>.  See &man.gpart.8; for
133
        <command>gpart delete</command>.  See &man.gpart.8; for
134
	details.</para>
134
        details.</para>
135
    </note>
135
    </note>
136
136
137
    <para>The partition scheme is created, and then a single partition
137
    <para>The partition scheme is created, and then a single partition
Lines 169-175 Link Here
169
      <filename>/etc/fstab</filename> so the new disk will be mounted
169
      <filename>/etc/fstab</filename> so the new disk will be mounted
170
      automatically at startup:</para>
170
      automatically at startup:</para>
171
171
172
    <programlisting>/dev/ada1p1	/newdisk	ufs	rw	2	2</programlisting>
172
    <programlisting>/dev/ada1p1 /newdisk        ufs     rw      2       2</programlisting>
173
173
174
    <para>The new disk can be mounted manually, without restarting the
174
    <para>The new disk can be mounted manually, without restarting the
175
      system:</para>
175
      system:</para>
Lines 182-194 Link Here
182
      <title>Resizing and Growing Disks</title>
182
      <title>Resizing and Growing Disks</title>
183
183
184
      <authorgroup>
184
      <authorgroup>
185
	<author>
185
        <author>
186
	  <personname>
186
          <personname>
187
	    <firstname>Allan</firstname>
187
            <firstname>Allan</firstname>
188
	    <surname>Jude</surname>
188
            <surname>Jude</surname>
189
	  </personname>
189
          </personname>
190
	  <contrib>Originally contributed by </contrib>
190
          <contrib>Originally contributed by </contrib>
191
	</author>
191
        </author>
192
      </authorgroup>
192
      </authorgroup>
193
    </info>
193
    </info>
194
194
Lines 229-241 Link Here
229
229
230
    <note>
230
    <note>
231
      <para>If the disk was formatted with the <link
231
      <para>If the disk was formatted with the <link
232
	  xlink:href="http://en.wikipedia.org/wiki/GUID_Partition_Table">
232
          xlink:href="http://en.wikipedia.org/wiki/GUID_Partition_Table">
233
	<acronym>GPT</acronym></link> partitioning scheme, it may show
233
        <acronym>GPT</acronym></link> partitioning scheme, it may show
234
	as <quote>corrupted</quote> because the <acronym>GPT</acronym>
234
        as <quote>corrupted</quote> because the <acronym>GPT</acronym>
235
	backup partition table is no longer at the end of the
235
        backup partition table is no longer at the end of the
236
	drive.  Fix the backup
236
        drive.  Fix the backup
237
	partition table with
237
        partition table with
238
	<command>gpart</command>:</para>
238
        <command>gpart</command>:</para>
239
239
240
      <screen>&prompt.root; <userinput>gpart recover <replaceable>ada0</replaceable></userinput>
240
      <screen>&prompt.root; <userinput>gpart recover <replaceable>ada0</replaceable></userinput>
241
ada0 recovered</screen>
241
ada0 recovered</screen>
Lines 270-281 Link Here
270
270
271
    <warning>
271
    <warning>
272
      <para>There is risk of data loss when modifying the partition
272
      <para>There is risk of data loss when modifying the partition
273
	table of a mounted file system.  It is best to perform the
273
        table of a mounted file system.  It is best to perform the
274
	following steps on an unmounted file system while running from
274
        following steps on an unmounted file system while running from
275
	a live <acronym>CD-ROM</acronym> or <acronym>USB</acronym>
275
        a live <acronym>CD-ROM</acronym> or <acronym>USB</acronym>
276
	device.  However, if absolutely necessary, a mounted file
276
        device.  However, if absolutely necessary, a mounted file
277
	system can be  resized after disabling GEOM safety
277
        system can be  resized after disabling GEOM safety
278
	features:</para>
278
        features:</para>
279
279
280
      <screen>&prompt.root; <userinput>sysctl kern.geom.debugflags=16</userinput></screen>
280
      <screen>&prompt.root; <userinput>sysctl kern.geom.debugflags=16</userinput></screen>
281
    </warning>
281
    </warning>
Lines 309-316 Link Here
309
309
310
    <note>
310
    <note>
311
      <para>Growing a live <acronym>UFS</acronym> file system is only
311
      <para>Growing a live <acronym>UFS</acronym> file system is only
312
	possible in &os; 10.0-RELEASE and later.  For earlier
312
        possible in &os; 10.0-RELEASE and later.  For earlier
313
	versions, the file system must not be mounted.</para>
313
        versions, the file system must not be mounted.</para>
314
    </note>
314
    </note>
315
315
316
    <screen>&prompt.root; <userinput>growfs <replaceable>/dev/ada0p2</replaceable></userinput>
316
    <screen>&prompt.root; <userinput>growfs <replaceable>/dev/ada0p2</replaceable></userinput>
Lines 330-342 Link Here
330
      <title><acronym>USB</acronym> Storage Devices</title>
330
      <title><acronym>USB</acronym> Storage Devices</title>
331
331
332
      <authorgroup>
332
      <authorgroup>
333
	<author>
333
        <author>
334
	  <personname>
334
          <personname>
335
	    <firstname>Marc</firstname>
335
            <firstname>Marc</firstname>
336
	    <surname>Fonvieille</surname>
336
            <surname>Fonvieille</surname>
337
	  </personname>
337
          </personname>
338
	  <contrib>Contributed by </contrib>
338
          <contrib>Contributed by </contrib>
339
	</author>
339
        </author>
340
      </authorgroup>
340
      </authorgroup>
341
    </info>
341
    </info>
342
342
Lines 353-362 Link Here
353
353
354
    <note>
354
    <note>
355
      <para><acronym>USB</acronym> 3.0 support is not compatible with
355
      <para><acronym>USB</acronym> 3.0 support is not compatible with
356
	some hardware, including Haswell (Lynx point) chipsets.  If
356
        some hardware, including Haswell (Lynx point) chipsets.  If
357
	&os; boots with a <errorname>failed with error 19</errorname>
357
        &os; boots with a <errorname>failed with error 19</errorname>
358
	message, disable xHCI/USB3 in the system
358
        message, disable xHCI/USB3 in the system
359
	<acronym>BIOS</acronym>.</para>
359
        <acronym>BIOS</acronym>.</para>
360
    </note>
360
    </note>
361
361
362
    <para>Support for <acronym>USB</acronym> storage devices is built
362
    <para>Support for <acronym>USB</acronym> storage devices is built
Lines 364-379 Link Here
364
      kernel, be sure that the following lines are present in the
364
      kernel, be sure that the following lines are present in the
365
      kernel configuration file:</para>
365
      kernel configuration file:</para>
366
366
367
    <programlisting>device scbus	# SCSI bus (required for ATA/SCSI)
367
    <programlisting>device scbus        # SCSI bus (required for ATA/SCSI)
368
device da	# Direct Access (disks)
368
device da       # Direct Access (disks)
369
device pass	# Passthrough device (direct ATA/SCSI access)
369
device pass     # Passthrough device (direct ATA/SCSI access)
370
device uhci	# provides USB 1.x support
370
device uhci     # provides USB 1.x support
371
device ohci	# provides USB 1.x support
371
device ohci     # provides USB 1.x support
372
device ehci	# provides USB 2.0 support
372
device ehci     # provides USB 2.0 support
373
device xhci	# provides USB 3.0 support
373
device xhci     # provides USB 3.0 support
374
device usb	# USB Bus (required)
374
device usb      # USB Bus (required)
375
device umass	# Disks/Mass storage - Requires scbus and da
375
device umass    # Disks/Mass storage - Requires scbus and da
376
device cd	# needed for CD and DVD burners</programlisting>
376
device cd       # needed for CD and DVD burners</programlisting>
377
377
378
    <para>&os; uses the &man.umass.4; driver which uses the
378
    <para>&os; uses the &man.umass.4; driver which uses the
379
      <acronym>SCSI</acronym> subsystem to access
379
      <acronym>SCSI</acronym> subsystem to access
Lines 393-402 Link Here
393
      <title>Device Configuration</title>
393
      <title>Device Configuration</title>
394
394
395
      <para>To test the <acronym>USB</acronym> configuration, plug in
395
      <para>To test the <acronym>USB</acronym> configuration, plug in
396
	the <acronym>USB</acronym> device.  Use
396
        the <acronym>USB</acronym> device.  Use
397
	<command>dmesg</command> to confirm that the drive appears in
397
        <command>dmesg</command> to confirm that the drive appears in
398
	the system message buffer.  It should look something like
398
        the system message buffer.  It should look something like
399
	this:</para>
399
        this:</para>
400
400
401
      <screen>umass0: &lt;STECH Simple Drive, class 0/0, rev 2.00/1.04, addr 3&gt; on usbus0
401
      <screen>umass0: &lt;STECH Simple Drive, class 0/0, rev 2.00/1.04, addr 3&gt; on usbus0
402
umass0:  SCSI over Bulk-Only; quirks = 0x0100
402
umass0:  SCSI over Bulk-Only; quirks = 0x0100
Lines 409-518 Link Here
409
da0: quirks=0x2&lt;NO_6_BYTE&gt;</screen>
409
da0: quirks=0x2&lt;NO_6_BYTE&gt;</screen>
410
410
411
      <para>The brand, device node (<filename>da0</filename>), speed,
411
      <para>The brand, device node (<filename>da0</filename>), speed,
412
	and size will differ according to the device.</para>
412
        and size will differ according to the device.</para>
413
413
414
      <para>Since the <acronym>USB</acronym> device is seen as a
414
      <para>Since the <acronym>USB</acronym> device is seen as a
415
	<acronym>SCSI</acronym> one, <command>camcontrol</command> can
415
        <acronym>SCSI</acronym> one, <command>camcontrol</command> can
416
	be used to list the <acronym>USB</acronym> storage devices
416
        be used to list the <acronym>USB</acronym> storage devices
417
	attached to the system:</para>
417
        attached to the system:</para>
418
418
419
      <screen>&prompt.root; <userinput>camcontrol devlist</userinput>
419
      <screen>&prompt.root; <userinput>camcontrol devlist</userinput>
420
&lt;STECH Simple Drive 1.04&gt;          at scbus4 target 0 lun 0 (pass3,da0)</screen>
420
&lt;STECH Simple Drive 1.04&gt;          at scbus4 target 0 lun 0 (pass3,da0)</screen>
421
421
422
      <para>Alternately, <command>usbconfig</command> can be used to
422
      <para>Alternately, <command>usbconfig</command> can be used to
423
	list the device.  Refer to &man.usbconfig.8; for more
423
        list the device.  Refer to &man.usbconfig.8; for more
424
	information about this command.</para>
424
        information about this command.</para>
425
425
426
      <screen>&prompt.root; <userinput>usbconfig</userinput>
426
      <screen>&prompt.root; <userinput>usbconfig</userinput>
427
ugen0.3: &lt;Simple Drive STECH&gt; at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (2mA)</screen>
427
ugen0.3: &lt;Simple Drive STECH&gt; at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (2mA)</screen>
428
428
429
      <para>If the device has not been formatted, refer to <xref
429
      <para>If the device has not been formatted, refer to <xref
430
	  linkend="disks-adding"/> for instructions on how to format
430
          linkend="disks-adding"/> for instructions on how to format
431
	and create partitions on the <acronym>USB</acronym> drive.  If
431
        and create partitions on the <acronym>USB</acronym> drive.  If
432
	the drive comes with a file system, it can be mounted by
432
        the drive comes with a file system, it can be mounted by
433
	<systemitem class="username">root</systemitem> using the
433
        <systemitem class="username">root</systemitem> using the
434
	instructions in <xref linkend="mount-unmount"/>.</para>
434
        instructions in <xref linkend="mount-unmount"/>.</para>
435
435
436
      <warning>
436
      <warning>
437
	<para>Allowing untrusted users to mount arbitrary media, by
437
        <para>Allowing untrusted users to mount arbitrary media, by
438
	  enabling <varname>vfs.usermount</varname> as described
438
          enabling <varname>vfs.usermount</varname> as described
439
	  below, should not be considered safe from a security point
439
          below, should not be considered safe from a security point
440
	  of view.  Most file systems were not built to safeguard
440
          of view.  Most file systems were not built to safeguard
441
	  against malicious devices.</para>
441
          against malicious devices.</para>
442
      </warning>
442
      </warning>
443
443
444
      <para>To make the device mountable as a normal user, one
444
      <para>To make the device mountable as a normal user, one
445
	solution is to make all users of the device a member of the
445
        solution is to make all users of the device a member of the
446
	<systemitem class="groupname">operator</systemitem> group
446
        <systemitem class="groupname">operator</systemitem> group
447
	using &man.pw.8;.  Next, ensure that <systemitem
447
        using &man.pw.8;.  Next, ensure that <systemitem
448
	  class="groupname">operator</systemitem> is able to read and
448
          class="groupname">operator</systemitem> is able to read and
449
	write the device by adding these lines to
449
        write the device by adding these lines to
450
	<filename>/etc/devfs.rules</filename>:</para>
450
        <filename>/etc/devfs.rules</filename>:</para>
451
451
452
      <programlisting>[localrules=5]
452
      <programlisting>[localrules=5]
453
add path 'da*' mode 0660 group operator</programlisting>
453
add path 'da*' mode 0660 group operator</programlisting>
454
454
455
      <note>
455
      <note>
456
	<para>If internal <acronym>SCSI</acronym> disks are also
456
        <para>If internal <acronym>SCSI</acronym> disks are also
457
	  installed in the system, change the second line as
457
          installed in the system, change the second line as
458
	  follows:</para>
458
          follows:</para>
459
459
460
	<programlisting>add path 'da[<replaceable>3</replaceable>-9]*' mode 0660 group operator</programlisting>
460
        <programlisting>add path 'da[<replaceable>3</replaceable>-9]*' mode 0660 group operator</programlisting>
461
461
462
	<para>This will exclude the first three
462
        <para>This will exclude the first three
463
	  <acronym>SCSI</acronym> disks (<filename>da0</filename> to
463
          <acronym>SCSI</acronym> disks (<filename>da0</filename> to
464
	  <filename>da2</filename>)from belonging to the <systemitem
464
          <filename>da2</filename>)from belonging to the <systemitem
465
	    class="groupname">operator</systemitem> group.  Replace
465
            class="groupname">operator</systemitem> group.  Replace
466
	  <replaceable>3</replaceable> with the number of internal
466
          <replaceable>3</replaceable> with the number of internal
467
	  <acronym>SCSI</acronym> disks.  Refer to &man.devfs.rules.5;
467
          <acronym>SCSI</acronym> disks.  Refer to &man.devfs.rules.5;
468
	  for more information about this file.</para>
468
          for more information about this file.</para>
469
      </note>
469
      </note>
470
470
471
      <para>Next, enable the ruleset in
471
      <para>Next, enable the ruleset in
472
	<filename>/etc/rc.conf</filename>:</para>
472
        <filename>/etc/rc.conf</filename>:</para>
473
473
474
      <programlisting>devfs_system_ruleset="localrules"</programlisting>
474
      <programlisting>devfs_system_ruleset="localrules"</programlisting>
475
475
476
      <para>Then, instruct the system to allow regular users to mount
476
      <para>Then, instruct the system to allow regular users to mount
477
	file systems by adding the following line to
477
        file systems by adding the following line to
478
	<filename>/etc/sysctl.conf</filename>:</para>
478
        <filename>/etc/sysctl.conf</filename>:</para>
479
479
480
      <programlisting>vfs.usermount=1</programlisting>
480
      <programlisting>vfs.usermount=1</programlisting>
481
481
482
      <para>Since this only takes effect after the next reboot, use
482
      <para>Since this only takes effect after the next reboot, use
483
	<command>sysctl</command> to set this variable now:</para>
483
        <command>sysctl</command> to set this variable now:</para>
484
484
485
      <screen>&prompt.root; <userinput>sysctl vfs.usermount=1</userinput>
485
      <screen>&prompt.root; <userinput>sysctl vfs.usermount=1</userinput>
486
vfs.usermount: 0 -&gt; 1</screen>
486
vfs.usermount: 0 -&gt; 1</screen>
487
487
488
      <para>The final step is to create a directory where the file
488
      <para>The final step is to create a directory where the file
489
	system is to be mounted.  This directory needs to be owned by
489
        system is to be mounted.  This directory needs to be owned by
490
	the user that is to mount the file system.  One way to do that
490
        the user that is to mount the file system.  One way to do that
491
	is for <systemitem class="username">root</systemitem> to
491
        is for <systemitem class="username">root</systemitem> to
492
	create a subdirectory owned by that user as <filename
492
        create a subdirectory owned by that user as <filename
493
	  >/mnt/<replaceable>username</replaceable></filename>.
493
          >/mnt/<replaceable>username</replaceable></filename>.
494
	In the following example, replace
494
        In the following example, replace
495
	<replaceable>username</replaceable> with the login name of the
495
        <replaceable>username</replaceable> with the login name of the
496
	user and <replaceable>usergroup</replaceable> with the user's
496
        user and <replaceable>usergroup</replaceable> with the user's
497
	primary group:</para>
497
        primary group:</para>
498
498
499
      <screen>&prompt.root; <userinput>mkdir /mnt/<replaceable>username</replaceable></userinput>
499
      <screen>&prompt.root; <userinput>mkdir /mnt/<replaceable>username</replaceable></userinput>
500
&prompt.root; <userinput>chown <replaceable>username</replaceable>:<replaceable>usergroup</replaceable> /mnt/<replaceable>username</replaceable></userinput></screen>
500
&prompt.root; <userinput>chown <replaceable>username</replaceable>:<replaceable>usergroup</replaceable> /mnt/<replaceable>username</replaceable></userinput></screen>
501
501
502
      <para>Suppose a <acronym>USB</acronym> thumbdrive is plugged in,
502
      <para>Suppose a <acronym>USB</acronym> thumbdrive is plugged in,
503
	and a device <filename>/dev/da0s1</filename> appears.  If the
503
        and a device <filename>/dev/da0s1</filename> appears.  If the
504
	device is formatted with a <acronym>FAT</acronym> file system,
504
        device is formatted with a <acronym>FAT</acronym> file system,
505
	the user can mount it using:</para>
505
        the user can mount it using:</para>
506
506
507
      <screen>&prompt.user; <userinput>mount -t msdosfs -o -m=644,-M=755 /dev/da0s1 /mnt/<replaceable>username</replaceable></userinput></screen>
507
      <screen>&prompt.user; <userinput>mount -t msdosfs -o -m=644,-M=755 /dev/da0s1 /mnt/<replaceable>username</replaceable></userinput></screen>
508
508
509
      <para>Before the device can be unplugged, it
509
      <para>Before the device can be unplugged, it
510
	<emphasis>must</emphasis> be unmounted first:</para>
510
        <emphasis>must</emphasis> be unmounted first:</para>
511
511
512
      <screen>&prompt.user; <userinput>umount /mnt/<replaceable>username</replaceable></userinput></screen>
512
      <screen>&prompt.user; <userinput>umount /mnt/<replaceable>username</replaceable></userinput></screen>
513
513
514
      <para>After device removal, the system message buffer will show
514
      <para>After device removal, the system message buffer will show
515
	messages similar to the following:</para>
515
        messages similar to the following:</para>
516
516
517
      <screen>umass0: at uhub3, port 2, addr 3 (disconnected)
517
      <screen>umass0: at uhub3, port 2, addr 3 (disconnected)
518
da0 at umass-sim0 bus 0 scbus4 target 0 lun 0
518
da0 at umass-sim0 bus 0 scbus4 target 0 lun 0
Lines 524-561 Link Here
524
      <title>Automounting Removable Media</title>
524
      <title>Automounting Removable Media</title>
525
525
526
      <note>
526
      <note>
527
	<para>&man.autofs.5; supports automatic mounting of
527
        <para>&man.autofs.5; supports automatic mounting of
528
	  removable media starting with &os;&nbsp;10.2-RELEASE.</para>
528
          removable media starting with &os;&nbsp;10.2-RELEASE.</para>
529
      </note>
529
      </note>
530
530
531
      <para><acronym>USB</acronym> devices can be automatically
531
      <para><acronym>USB</acronym> devices can be automatically
532
	mounted by uncommenting this line in
532
        mounted by uncommenting this line in
533
	<filename>/etc/auto_master</filename>:</para>
533
        <filename>/etc/auto_master</filename>:</para>
534
534
535
      <screen>/media		-media		-nosuid</screen>
535
      <screen>/media            -media          -nosuid</screen>
536
536
537
      <para>Then add these lines to
537
      <para>Then add these lines to
538
	<filename>/etc/devd.conf</filename>:</para>
538
        <filename>/etc/devd.conf</filename>:</para>
539
539
540
      <screen>notify 100 {
540
      <screen>notify 100 {
541
	match "system" "GEOM";
541
        match "system" "GEOM";
542
	match "subsystem" "DEV";
542
        match "subsystem" "DEV";
543
	action "/usr/sbin/automount -c";
543
        action "/usr/sbin/automount -c";
544
};</screen>
544
};</screen>
545
545
546
      <para>Reload the configuration if &man.autofs.5;
546
      <para>Reload the configuration if &man.autofs.5;
547
	and &man.devd.8; are already running:</para>
547
        and &man.devd.8; are already running:</para>
548
548
549
      <screen>&prompt.root; <userinput>service automount reload</userinput>
549
      <screen>&prompt.root; <userinput>service automount reload</userinput>
550
&prompt.root; <userinput>service devd restart</userinput></screen>
550
&prompt.root; <userinput>service devd restart</userinput></screen>
551
551
552
      <para>&man.autofs.5; can be set to start at boot by adding this
552
      <para>&man.autofs.5; can be set to start at boot by adding this
553
	line to <filename>/etc/rc.conf</filename>:</para>
553
        line to <filename>/etc/rc.conf</filename>:</para>
554
554
555
      <programlisting>autofs_enable="YES"</programlisting>
555
      <programlisting>autofs_enable="YES"</programlisting>
556
556
557
      <para>&man.autofs.5; requires &man.devd.8; to be enabled, as it
557
      <para>&man.autofs.5; requires &man.devd.8; to be enabled, as it
558
	is by default.</para>
558
        is by default.</para>
559
559
560
      <para>Start the services immediately with:</para>
560
      <para>Start the services immediately with:</para>
561
561
Lines 565-584 Link Here
565
&prompt.root; <userinput>service devd start</userinput></screen>
565
&prompt.root; <userinput>service devd start</userinput></screen>
566
566
567
      <para>Each file system that can be automatically mounted appears
567
      <para>Each file system that can be automatically mounted appears
568
	as a directory in <filename>/media/</filename>.  The directory
568
        as a directory in <filename>/media/</filename>.  The directory
569
	is named after the file system label.  If the label is
569
        is named after the file system label.  If the label is
570
	missing, the directory is named after the device node.</para>
570
        missing, the directory is named after the device node.</para>
571
571
572
      <para>The file system is transparently mounted on the first
572
      <para>The file system is transparently mounted on the first
573
	access, and unmounted after a period of inactivity.
573
        access, and unmounted after a period of inactivity.
574
	Automounted drives can also be unmounted manually:</para>
574
        Automounted drives can also be unmounted manually:</para>
575
575
576
      <screen>&prompt.root; <userinput>automount -fu</userinput></screen>
576
      <screen>&prompt.root; <userinput>automount -fu</userinput></screen>
577
577
578
      <para>This mechanism is typically used for memory cards and
578
      <para>This mechanism is typically used for memory cards and
579
	<acronym>USB</acronym> memory sticks.  It can be used with
579
        <acronym>USB</acronym> memory sticks.  It can be used with
580
	any block device, including optical drives or
580
        any block device, including optical drives or
581
	<acronym>iSCSI</acronym> <acronym>LUN</acronym>s.</para>
581
        <acronym>iSCSI</acronym> <acronym>LUN</acronym>s.</para>
582
    </sect2>
582
    </sect2>
583
  </sect1>
583
  </sect1>
584
584
Lines 587-599 Link Here
587
      <title>Creating and Using <acronym>CD</acronym> Media</title>
587
      <title>Creating and Using <acronym>CD</acronym> Media</title>
588
588
589
      <authorgroup>
589
      <authorgroup>
590
	<author>
590
        <author>
591
	  <personname>
591
          <personname>
592
	    <firstname>Mike</firstname>
592
            <firstname>Mike</firstname>
593
	    <surname>Meyer</surname>
593
            <surname>Meyer</surname>
594
	  </personname>
594
          </personname>
595
	  <contrib>Contributed by </contrib>
595
          <contrib>Contributed by </contrib>
596
	</author>
596
        </author>
597
      </authorgroup>
597
      </authorgroup>
598
    </info>
598
    </info>
599
599
Lines 633-715 Link Here
633
633
634
    <sect2 xml:id="atapicam">
634
    <sect2 xml:id="atapicam">
635
      <info>
635
      <info>
636
	<title>Supported Devices</title>
636
        <title>Supported Devices</title>
637
637
638
	<authorgroup>
638
        <authorgroup>
639
	  <author>
639
          <author>
640
	    <personname>
640
            <personname>
641
	      <firstname>Marc</firstname>
641
              <firstname>Marc</firstname>
642
	      <surname>Fonvieille</surname>
642
              <surname>Fonvieille</surname>
643
	    </personname>
643
            </personname>
644
	    <contrib>Contributed by </contrib>
644
            <contrib>Contributed by </contrib>
645
	  </author>
645
          </author>
646
	</authorgroup>
646
        </authorgroup>
647
      </info>
647
      </info>
648
648
649
      <indexterm>
649
      <indexterm>
650
	<primary><acronym>CD</acronym> burner</primary>
650
        <primary><acronym>CD</acronym> burner</primary>
651
	<secondary>ATAPI/CAM driver</secondary>
651
        <secondary>ATAPI/CAM driver</secondary>
652
      </indexterm>
652
      </indexterm>
653
653
654
      <para>The <filename>GENERIC</filename> kernel provides support
654
      <para>The <filename>GENERIC</filename> kernel provides support
655
	for <acronym>SCSI</acronym>,  <acronym>USB</acronym>, and
655
        for <acronym>SCSI</acronym>,  <acronym>USB</acronym>, and
656
	<acronym>ATAPI</acronym> <acronym>CD</acronym> readers and
656
        <acronym>ATAPI</acronym> <acronym>CD</acronym> readers and
657
	burners.  If a custom kernel is used, the options that need to
657
        burners.  If a custom kernel is used, the options that need to
658
	be present in the kernel configuration file vary by the type
658
        be present in the kernel configuration file vary by the type
659
	of device.</para>
659
        of device.</para>
660
660
661
      <para>For a <acronym>SCSI</acronym> burner, make sure these
661
      <para>For a <acronym>SCSI</acronym> burner, make sure these
662
	options are present:</para>
662
        options are present:</para>
663
663
664
      <programlisting>device scbus	# SCSI bus (required for ATA/SCSI)
664
      <programlisting>device scbus      # SCSI bus (required for ATA/SCSI)
665
device da	# Direct Access (disks)
665
device da       # Direct Access (disks)
666
device pass	# Passthrough device (direct ATA/SCSI access)
666
device pass     # Passthrough device (direct ATA/SCSI access)
667
device cd	# needed for CD and DVD burners</programlisting>
667
device cd       # needed for CD and DVD burners</programlisting>
668
668
669
      <para>For a <acronym>USB</acronym> burner, make sure these
669
      <para>For a <acronym>USB</acronym> burner, make sure these
670
	options are present:</para>
670
        options are present:</para>
671
671
672
      <programlisting>device scbus	# SCSI bus (required for ATA/SCSI)
672
      <programlisting>device scbus      # SCSI bus (required for ATA/SCSI)
673
device da	# Direct Access (disks)
673
device da       # Direct Access (disks)
674
device pass	# Passthrough device (direct ATA/SCSI access)
674
device pass     # Passthrough device (direct ATA/SCSI access)
675
device cd	# needed for CD and DVD burners
675
device cd       # needed for CD and DVD burners
676
device uhci	# provides USB 1.x support
676
device uhci     # provides USB 1.x support
677
device ohci	# provides USB 1.x support
677
device ohci     # provides USB 1.x support
678
device ehci	# provides USB 2.0 support
678
device ehci     # provides USB 2.0 support
679
device xhci	# provides USB 3.0 support
679
device xhci     # provides USB 3.0 support
680
device usb	# USB Bus (required)
680
device usb      # USB Bus (required)
681
device umass	# Disks/Mass storage - Requires scbus and da</programlisting>
681
device umass    # Disks/Mass storage - Requires scbus and da</programlisting>
682
682
683
      <para>For an <acronym>ATAPI</acronym> burner, make sure these
683
      <para>For an <acronym>ATAPI</acronym> burner, make sure these
684
	options are present:</para>
684
        options are present:</para>
685
685
686
      <programlisting>device ata	# Legacy ATA/SATA controllers
686
      <programlisting>device ata        # Legacy ATA/SATA controllers
687
device scbus	# SCSI bus (required for ATA/SCSI)
687
device scbus    # SCSI bus (required for ATA/SCSI)
688
device pass	# Passthrough device (direct ATA/SCSI access)
688
device pass     # Passthrough device (direct ATA/SCSI access)
689
device cd	# needed for CD and DVD burners</programlisting>
689
device cd       # needed for CD and DVD burners</programlisting>
690
690
691
      <note>
691
      <note>
692
	<para>On &os; versions prior to 10.x, this line is also
692
        <para>On &os; versions prior to 10.x, this line is also
693
	  needed in the kernel configuration file if the burner is an
693
          needed in the kernel configuration file if the burner is an
694
	  <acronym>ATAPI</acronym> device:</para>
694
          <acronym>ATAPI</acronym> device:</para>
695
695
696
	<programlisting>device atapicam</programlisting>
696
        <programlisting>device atapicam</programlisting>
697
697
698
	<para>Alternately, this driver can be loaded at boot time by
698
        <para>Alternately, this driver can be loaded at boot time by
699
	  adding the following line to
699
          adding the following line to
700
	  <filename>/boot/loader.conf</filename>:</para>
700
          <filename>/boot/loader.conf</filename>:</para>
701
701
702
	<programlisting>atapicam_load="YES"</programlisting>
702
        <programlisting>atapicam_load="YES"</programlisting>
703
703
704
	<para>This will require a reboot of the system as this driver
704
        <para>This will require a reboot of the system as this driver
705
	  can only be loaded at boot time.</para>
705
          can only be loaded at boot time.</para>
706
      </note>
706
      </note>
707
707
708
      <para>To verify that &os; recognizes the device, run
708
      <para>To verify that &os; recognizes the device, run
709
	<command>dmesg</command> and look for an entry for the device.
709
        <command>dmesg</command> and look for an entry for the device.
710
	On systems prior to 10.x, the device name in the first line of
710
        On systems prior to 10.x, the device name in the first line of
711
	the output will be <filename>acd0</filename> instead of
711
        the output will be <filename>acd0</filename> instead of
712
	<filename>cd0</filename>.</para>
712
        <filename>cd0</filename>.</para>
713
713
714
      <screen>&prompt.user; <userinput>dmesg | grep cd</userinput>
714
      <screen>&prompt.user; <userinput>dmesg | grep cd</userinput>
715
cd0 at ahcich1 bus 0 scbus1 target 0 lun 0
715
cd0 at ahcich1 bus 0 scbus1 target 0 lun 0
Lines 723-746 Link Here
723
      <title>Burning a <acronym>CD</acronym></title>
723
      <title>Burning a <acronym>CD</acronym></title>
724
724
725
      <para>In &os;, <command>cdrecord</command> can be used to burn
725
      <para>In &os;, <command>cdrecord</command> can be used to burn
726
	<acronym>CD</acronym>s.  This command is installed with the
726
        <acronym>CD</acronym>s.  This command is installed with the
727
	<package>sysutils/cdrtools</package> package or port.</para>
727
        <package>sysutils/cdrtools</package> package or port.</para>
728
728
729
      <para>While <command>cdrecord</command> has many options, basic
729
      <para>While <command>cdrecord</command> has many options, basic
730
	usage is simple.  Specify the name of the
730
        usage is simple.  Specify the name of the
731
	<acronym>ISO</acronym> file to burn and, if the system has
731
        <acronym>ISO</acronym> file to burn and, if the system has
732
	multiple burner devices, specify the name of the device to
732
        multiple burner devices, specify the name of the device to
733
	use:</para>
733
        use:</para>
734
734
735
      <screen>&prompt.root; <userinput>cdrecord <replaceable>dev=device</replaceable> <replaceable>imagefile.iso</replaceable></userinput></screen>
735
      <screen>&prompt.root; <userinput>cdrecord <replaceable>dev=device</replaceable> <replaceable>imagefile.iso</replaceable></userinput></screen>
736
736
737
      <para>To determine the device name of the burner, use
737
      <para>To determine the device name of the burner, use
738
	<option>-scanbus</option> which might produce results like
738
        <option>-scanbus</option> which might produce results like
739
	this:</para>
739
        this:</para>
740
740
741
      <indexterm>
741
      <indexterm>
742
	<primary><acronym>CD-ROM</acronym>s</primary>
742
        <primary><acronym>CD-ROM</acronym>s</primary>
743
	<secondary>burning</secondary>
743
        <secondary>burning</secondary>
744
      </indexterm>
744
      </indexterm>
745
      <screen>&prompt.root; <userinput>cdrecord -scanbus</userinput>
745
      <screen>&prompt.root; <userinput>cdrecord -scanbus</userinput>
746
ProDVD-ProBD-Clone 3.00 (amd64-unknown-freebsd10.0) Copyright (C) 1995-2010 J&ouml;rg Schilling
746
ProDVD-ProBD-Clone 3.00 (amd64-unknown-freebsd10.0) Copyright (C) 1995-2010 J&ouml;rg Schilling
Lines 765-888 Link Here
765
        1,7,0   107) *</screen>
765
        1,7,0   107) *</screen>
766
766
767
      <para>Locate the entry for the <acronym>CD</acronym> burner and
767
      <para>Locate the entry for the <acronym>CD</acronym> burner and
768
	use the three numbers separated by commas as the value for
768
        use the three numbers separated by commas as the value for
769
	<option>dev</option>.  In this case, the Yamaha burner device
769
        <option>dev</option>.  In this case, the Yamaha burner device
770
	is <literal>1,5,0</literal>, so the appropriate input to
770
        is <literal>1,5,0</literal>, so the appropriate input to
771
	specify that device is <option>dev=1,5,0</option>.  Refer to
771
        specify that device is <option>dev=1,5,0</option>.  Refer to
772
	the manual page for <command>cdrecord</command> for other ways
772
        the manual page for <command>cdrecord</command> for other ways
773
	to specify this value and for information on writing audio
773
        to specify this value and for information on writing audio
774
	tracks and controlling the write speed.</para>
774
        tracks and controlling the write speed.</para>
775
775
776
      <para>Alternately, run the following command to get the device
776
      <para>Alternately, run the following command to get the device
777
	address of the burner:</para>
777
        address of the burner:</para>
778
778
779
      <screen>&prompt.root; <userinput>camcontrol devlist</userinput>
779
      <screen>&prompt.root; <userinput>camcontrol devlist</userinput>
780
&lt;MATSHITA CDRW/DVD UJDA740 1.00&gt;   at scbus1 target 0 lun 0 (cd0,pass0)</screen>
780
&lt;MATSHITA CDRW/DVD UJDA740 1.00&gt;   at scbus1 target 0 lun 0 (cd0,pass0)</screen>
781
781
782
      <para>Use the numeric values for <literal>scbus</literal>,
782
      <para>Use the numeric values for <literal>scbus</literal>,
783
	<literal>target</literal>, and <literal>lun</literal>.  For
783
        <literal>target</literal>, and <literal>lun</literal>.  For
784
	this example, <literal>1,0,0</literal> is the device name to
784
        this example, <literal>1,0,0</literal> is the device name to
785
	use.</para>
785
        use.</para>
786
    </sect2>
786
    </sect2>
787
787
788
    <sect2 xml:id="mkisofs">
788
    <sect2 xml:id="mkisofs">
789
      <title>Writing Data to an <acronym>ISO</acronym> File
789
      <title>Writing Data to an <acronym>ISO</acronym> File
790
	System</title>
790
        System</title>
791
791
792
      <para>In order to produce a data <acronym>CD</acronym>, the data
792
      <para>In order to produce a data <acronym>CD</acronym>, the data
793
	files that are going to make up the tracks on the
793
        files that are going to make up the tracks on the
794
	<acronym>CD</acronym> must be prepared before they can be
794
        <acronym>CD</acronym> must be prepared before they can be
795
	burned to the <acronym>CD</acronym>.  In &os;,
795
        burned to the <acronym>CD</acronym>.  In &os;,
796
	<package>sysutils/cdrtools</package> installs
796
        <package>sysutils/cdrtools</package> installs
797
	<command>mkisofs</command>, which can be used to produce an
797
        <command>mkisofs</command>, which can be used to produce an
798
	<acronym>ISO</acronym> 9660 file system that is an image of a
798
        <acronym>ISO</acronym> 9660 file system that is an image of a
799
	directory tree within a &unix; file system.  The simplest
799
        directory tree within a &unix; file system.  The simplest
800
	usage is to specify the name of the <acronym>ISO</acronym>
800
        usage is to specify the name of the <acronym>ISO</acronym>
801
	file to create and the path to the files to place into the
801
        file to create and the path to the files to place into the
802
	<acronym>ISO</acronym> 9660 file system:</para>
802
        <acronym>ISO</acronym> 9660 file system:</para>
803
803
804
      <screen>&prompt.root; <userinput>mkisofs -o <replaceable>imagefile.iso</replaceable> <replaceable>/path/to/tree</replaceable></userinput></screen>
804
      <screen>&prompt.root; <userinput>mkisofs -o <replaceable>imagefile.iso</replaceable> <replaceable>/path/to/tree</replaceable></userinput></screen>
805
805
806
      <indexterm>
806
      <indexterm>
807
	<primary>file systems</primary>
807
        <primary>file systems</primary>
808
	<secondary>ISO 9660</secondary>
808
        <secondary>ISO 9660</secondary>
809
      </indexterm>
809
      </indexterm>
810
810
811
      <para>This command maps the file names in the specified path to
811
      <para>This command maps the file names in the specified path to
812
	names that fit the limitations of the standard
812
        names that fit the limitations of the standard
813
	<acronym>ISO</acronym> 9660 file system, and will exclude
813
        <acronym>ISO</acronym> 9660 file system, and will exclude
814
	files that do not meet the standard for <acronym>ISO</acronym>
814
        files that do not meet the standard for <acronym>ISO</acronym>
815
	file systems.</para>
815
        file systems.</para>
816
816
817
      <indexterm>
817
      <indexterm>
818
	<primary>file systems</primary>
818
        <primary>file systems</primary>
819
	<secondary>Joliet</secondary>
819
        <secondary>Joliet</secondary>
820
      </indexterm>
820
      </indexterm>
821
821
822
      <para>A number of options are available to overcome the
822
      <para>A number of options are available to overcome the
823
	restrictions imposed by the standard.  In particular,
823
        restrictions imposed by the standard.  In particular,
824
	<option>-R</option> enables the Rock Ridge extensions common
824
        <option>-R</option> enables the Rock Ridge extensions common
825
	to &unix; systems and <option>-J</option> enables Joliet
825
        to &unix; systems and <option>-J</option> enables Joliet
826
	extensions used by &microsoft; systems.</para>
826
        extensions used by &microsoft; systems.</para>
827
827
828
      <para>For <acronym>CD</acronym>s that are going to be used only
828
      <para>For <acronym>CD</acronym>s that are going to be used only
829
	on &os; systems, <option>-U</option> can be used to disable
829
        on &os; systems, <option>-U</option> can be used to disable
830
	all filename restrictions.  When used with
830
        all filename restrictions.  When used with
831
	<option>-R</option>, it produces a file system image that is
831
        <option>-R</option>, it produces a file system image that is
832
	identical to the specified &os; tree, even if it violates the
832
        identical to the specified &os; tree, even if it violates the
833
	<acronym>ISO</acronym> 9660 standard.</para>
833
        <acronym>ISO</acronym> 9660 standard.</para>
834
834
835
      <indexterm>
835
      <indexterm>
836
	<primary><acronym>CD-ROM</acronym>s</primary>
836
        <primary><acronym>CD-ROM</acronym>s</primary>
837
	<secondary>creating bootable</secondary>
837
        <secondary>creating bootable</secondary>
838
      </indexterm>
838
      </indexterm>
839
839
840
      <para>The last option of general use is <option>-b</option>.
840
      <para>The last option of general use is <option>-b</option>.
841
	This is used to specify the location of a boot image for use
841
        This is used to specify the location of a boot image for use
842
	in producing an <quote>El Torito</quote> bootable
842
        in producing an <quote>El Torito</quote> bootable
843
	<acronym>CD</acronym>.  This option takes an argument which is
843
        <acronym>CD</acronym>.  This option takes an argument which is
844
	the path to a boot image from the top of the tree being
844
        the path to a boot image from the top of the tree being
845
	written to the <acronym>CD</acronym>.  By default,
845
        written to the <acronym>CD</acronym>.  By default,
846
	<command>mkisofs</command> creates an <acronym>ISO</acronym>
846
        <command>mkisofs</command> creates an <acronym>ISO</acronym>
847
	image in <quote>floppy disk emulation</quote> mode, and thus
847
        image in <quote>floppy disk emulation</quote> mode, and thus
848
	expects the boot image to be exactly 1200, 1440 or
848
        expects the boot image to be exactly 1200, 1440 or
849
	2880&nbsp;KB in size.  Some boot loaders, like the one used by
849
        2880&nbsp;KB in size.  Some boot loaders, like the one used by
850
	the &os; distribution media, do not use emulation mode.  In
850
        the &os; distribution media, do not use emulation mode.  In
851
	this case, <option>-no-emul-boot</option> should be used.  So,
851
        this case, <option>-no-emul-boot</option> should be used.  So,
852
	if <filename>/tmp/myboot</filename> holds a bootable &os;
852
        if <filename>/tmp/myboot</filename> holds a bootable &os;
853
	system with the boot image in
853
        system with the boot image in
854
	<filename>/tmp/myboot/boot/cdboot</filename>, this command
854
        <filename>/tmp/myboot/boot/cdboot</filename>, this command
855
	would produce
855
        would produce
856
	<filename>/tmp/bootable.iso</filename>:</para>
856
        <filename>/tmp/bootable.iso</filename>:</para>
857
857
858
      <screen>&prompt.root; <userinput>mkisofs -R -no-emul-boot -b boot/cdboot -o /tmp/bootable.iso /tmp/myboot</userinput></screen>
858
      <screen>&prompt.root; <userinput>mkisofs -R -no-emul-boot -b boot/cdboot -o /tmp/bootable.iso /tmp/myboot</userinput></screen>
859
859
860
      <para>The resulting <acronym>ISO</acronym> image can be mounted
860
      <para>The resulting <acronym>ISO</acronym> image can be mounted
861
	as a memory disk with:</para>
861
        as a memory disk with:</para>
862
862
863
      <screen>&prompt.root; <userinput>mdconfig -a -t vnode -f /tmp/bootable.iso -u 0</userinput>
863
      <screen>&prompt.root; <userinput>mdconfig -a -t vnode -f /tmp/bootable.iso -u 0</userinput>
864
&prompt.root; <userinput>mount -t cd9660 /dev/md0 /mnt</userinput></screen>
864
&prompt.root; <userinput>mount -t cd9660 /dev/md0 /mnt</userinput></screen>
865
865
866
      <para>One can then verify that <filename>/mnt</filename> and
866
      <para>One can then verify that <filename>/mnt</filename> and
867
	<filename>/tmp/myboot</filename> are identical.</para>
867
        <filename>/tmp/myboot</filename> are identical.</para>
868
868
869
      <para>There are many other options available for
869
      <para>There are many other options available for
870
	<command>mkisofs</command> to fine-tune its behavior.  Refer
870
        <command>mkisofs</command> to fine-tune its behavior.  Refer
871
	to &man.mkisofs.8; for details.</para>
871
        to &man.mkisofs.8; for details.</para>
872
872
873
      <note>
873
      <note>
874
	<para>It is possible to copy a data <acronym>CD</acronym> to
874
        <para>It is possible to copy a data <acronym>CD</acronym> to
875
	  an image file that is functionally equivalent to the image
875
          an image file that is functionally equivalent to the image
876
	  file created with <command>mkisofs</command>.  To do so, use
876
          file created with <command>mkisofs</command>.  To do so, use
877
	  <filename>dd</filename> with the device name as the input
877
          <filename>dd</filename> with the device name as the input
878
	  file and the name of the <acronym>ISO</acronym> to create as
878
          file and the name of the <acronym>ISO</acronym> to create as
879
	  the output file:</para>
879
          the output file:</para>
880
880
881
	<screen>&prompt.root; <userinput>dd if=/dev/<replaceable>cd0</replaceable> of=<replaceable>file.iso</replaceable> bs=2048</userinput></screen>
881
        <screen>&prompt.root; <userinput>dd if=/dev/<replaceable>cd0</replaceable> of=<replaceable>file.iso</replaceable> bs=2048</userinput></screen>
882
882
883
	<para>The resulting image file can be burned to
883
        <para>The resulting image file can be burned to
884
	  <acronym>CD</acronym> as described in <xref
884
          <acronym>CD</acronym> as described in <xref
885
	    linkend="cdrecord"/>.</para>
885
            linkend="cdrecord"/>.</para>
886
      </note>
886
      </note>
887
    </sect2>
887
    </sect2>
888
888
Lines 890-972 Link Here
890
      <title>Using Data <acronym>CD</acronym>s</title>
890
      <title>Using Data <acronym>CD</acronym>s</title>
891
891
892
      <para>Once an <acronym>ISO</acronym> has been burned to a
892
      <para>Once an <acronym>ISO</acronym> has been burned to a
893
	<acronym>CD</acronym>, it can be mounted by specifying the
893
        <acronym>CD</acronym>, it can be mounted by specifying the
894
	file system type, the name of the device containing the
894
        file system type, the name of the device containing the
895
	<acronym>CD</acronym>, and an existing mount point:</para>
895
        <acronym>CD</acronym>, and an existing mount point:</para>
896
896
897
      <screen>&prompt.root; <userinput>mount -t cd9660 <replaceable>/dev/cd0</replaceable> <replaceable>/mnt</replaceable></userinput></screen>
897
      <screen>&prompt.root; <userinput>mount -t cd9660 <replaceable>/dev/cd0</replaceable> <replaceable>/mnt</replaceable></userinput></screen>
898
898
899
      <para>Since <command>mount</command> assumes that a file system
899
      <para>Since <command>mount</command> assumes that a file system
900
	is of type <literal>ufs</literal>, a <errorname>Incorrect
900
        is of type <literal>ufs</literal>, a <errorname>Incorrect
901
	  super block</errorname> error will occur if <literal>-t
901
          super block</errorname> error will occur if <literal>-t
902
	  cd9660</literal> is not included when mounting a data
902
          cd9660</literal> is not included when mounting a data
903
	<acronym>CD</acronym>.</para>
903
        <acronym>CD</acronym>.</para>
904
904
905
      <para>While any data <acronym>CD</acronym> can be mounted this
905
      <para>While any data <acronym>CD</acronym> can be mounted this
906
	way, disks with certain <acronym>ISO</acronym> 9660 extensions
906
        way, disks with certain <acronym>ISO</acronym> 9660 extensions
907
	might behave oddly.  For example, Joliet disks store all
907
        might behave oddly.  For example, Joliet disks store all
908
	filenames in two-byte Unicode characters.  If some non-English
908
        filenames in two-byte Unicode characters.  If some non-English
909
	characters show up as question marks, specify the local
909
        characters show up as question marks, specify the local
910
	charset with <option>-C</option>.  For more information, refer
910
        charset with <option>-C</option>.  For more information, refer
911
	to &man.mount.cd9660.8;.</para>
911
        to &man.mount.cd9660.8;.</para>
912
912
913
      <note>
913
      <note>
914
	<para>In order to do this character conversion with the help
914
        <para>In order to do this character conversion with the help
915
	  of <option>-C</option>, the kernel requires the
915
          of <option>-C</option>, the kernel requires the
916
	  <filename>cd9660_iconv.ko</filename> module to be loaded.
916
          <filename>cd9660_iconv.ko</filename> module to be loaded.
917
	  This can be done either by adding this line to
917
          This can be done either by adding this line to
918
	  <filename>loader.conf</filename>:</para>
918
          <filename>loader.conf</filename>:</para>
919
919
920
	<programlisting>cd9660_iconv_load="YES"</programlisting>
920
        <programlisting>cd9660_iconv_load="YES"</programlisting>
921
921
922
	<para>and then rebooting the machine, or by directly loading
922
        <para>and then rebooting the machine, or by directly loading
923
	  the module with <command>kldload</command>.</para>
923
          the module with <command>kldload</command>.</para>
924
      </note>
924
      </note>
925
925
926
      <para>Occasionally, <errorname>Device not configured</errorname>
926
      <para>Occasionally, <errorname>Device not configured</errorname>
927
	will be displayed when trying to mount a data
927
        will be displayed when trying to mount a data
928
	<acronym>CD</acronym>.  This usually means that the
928
        <acronym>CD</acronym>.  This usually means that the
929
	<acronym>CD</acronym> drive has not detected a disk in
929
        <acronym>CD</acronym> drive has not detected a disk in
930
	the tray, or that the drive is not visible on the bus.  It
930
        the tray, or that the drive is not visible on the bus.  It
931
	can take a couple of seconds for a <acronym>CD</acronym>
931
        can take a couple of seconds for a <acronym>CD</acronym>
932
	drive to detect media, so be
932
        drive to detect media, so be
933
	patient.</para>
933
        patient.</para>
934
934
935
      <para>Sometimes, a <acronym>SCSI</acronym>
935
      <para>Sometimes, a <acronym>SCSI</acronym>
936
	<acronym>CD</acronym> drive may be missed because it did not
936
        <acronym>CD</acronym> drive may be missed because it did not
937
	have enough time to answer the bus reset.  To resolve this,
937
        have enough time to answer the bus reset.  To resolve this,
938
	a custom kernel can be created which increases the default
938
        a custom kernel can be created which increases the default
939
	<acronym>SCSI</acronym> delay.  Add the following option to
939
        <acronym>SCSI</acronym> delay.  Add the following option to
940
	the custom kernel configuration file and rebuild the kernel
940
        the custom kernel configuration file and rebuild the kernel
941
	using the instructions in <xref
941
        using the instructions in <xref
942
	  linkend="kernelconfig-building"/>:</para>
942
          linkend="kernelconfig-building"/>:</para>
943
943
944
      <programlisting>options SCSI_DELAY=15000</programlisting>
944
      <programlisting>options SCSI_DELAY=15000</programlisting>
945
945
946
      <para>This tells the <acronym>SCSI</acronym> bus to pause 15
946
      <para>This tells the <acronym>SCSI</acronym> bus to pause 15
947
	seconds during boot, to give the <acronym>CD</acronym>
947
        seconds during boot, to give the <acronym>CD</acronym>
948
	drive every possible chance to answer the bus reset.</para>
948
        drive every possible chance to answer the bus reset.</para>
949
949
950
      <note>
950
      <note>
951
	<para>It is possible to burn a file directly to
951
        <para>It is possible to burn a file directly to
952
	  <acronym>CD</acronym>, without creating an
952
          <acronym>CD</acronym>, without creating an
953
	  <acronym>ISO</acronym> 9660 file system.  This is known as
953
          <acronym>ISO</acronym> 9660 file system.  This is known as
954
	  burning a raw data <acronym>CD</acronym> and some people do
954
          burning a raw data <acronym>CD</acronym> and some people do
955
	  this for backup purposes.</para>
955
          this for backup purposes.</para>
956
956
957
	<para>This type of disk can not be mounted as a normal data
957
        <para>This type of disk can not be mounted as a normal data
958
	  <acronym>CD</acronym>.  In order to retrieve the data burned
958
          <acronym>CD</acronym>.  In order to retrieve the data burned
959
	  to such a <acronym>CD</acronym>, the data must be read from
959
          to such a <acronym>CD</acronym>, the data must be read from
960
	  the raw device node.  For example, this command will extract
960
          the raw device node.  For example, this command will extract
961
	  a compressed tar file located on the second
961
          a compressed tar file located on the second
962
	  <acronym>CD</acronym> device into the current working
962
          <acronym>CD</acronym> device into the current working
963
	  directory:</para>
963
          directory:</para>
964
964
965
	<screen>&prompt.root; <userinput>tar xzvf /dev/<replaceable>cd1</replaceable></userinput></screen>
965
        <screen>&prompt.root; <userinput>tar xzvf /dev/<replaceable>cd1</replaceable></userinput></screen>
966
966
967
	<para>  In order to mount a data <acronym>CD</acronym>, the
967
        <para>  In order to mount a data <acronym>CD</acronym>, the
968
	  data must be written using
968
          data must be written using
969
	  <command>mkisofs</command>.</para>
969
          <command>mkisofs</command>.</para>
970
      </note>
970
      </note>
971
    </sect2>
971
    </sect2>
972
972
Lines 974-1019 Link Here
974
      <title>Duplicating Audio <acronym>CD</acronym>s</title>
974
      <title>Duplicating Audio <acronym>CD</acronym>s</title>
975
975
976
      <para>To duplicate an audio <acronym>CD</acronym>, extract the
976
      <para>To duplicate an audio <acronym>CD</acronym>, extract the
977
	audio data from the <acronym>CD</acronym> to a series of
977
        audio data from the <acronym>CD</acronym> to a series of
978
	files, then write these files to a blank
978
        files, then write these files to a blank
979
	<acronym>CD</acronym>.</para>
979
        <acronym>CD</acronym>.</para>
980
980
981
      <para><xref linkend="using-cdrecord"/> describes how to
981
      <para><xref linkend="using-cdrecord"/> describes how to
982
	duplicate and burn an audio <acronym>CD</acronym>.  If the
982
        duplicate and burn an audio <acronym>CD</acronym>.  If the
983
	&os; version is less than 10.0 and the device is
983
        &os; version is less than 10.0 and the device is
984
	<acronym>ATAPI</acronym>, the <option>atapicam</option> module
984
        <acronym>ATAPI</acronym>, the <option>atapicam</option> module
985
	must be first loaded using the instructions in <xref
985
        must be first loaded using the instructions in <xref
986
	  linkend="atapicam"/>.</para>
986
          linkend="atapicam"/>.</para>
987
987
988
      <procedure xml:id="using-cdrecord">
988
      <procedure xml:id="using-cdrecord">
989
	<title>Duplicating an Audio <acronym>CD</acronym></title>
989
        <title>Duplicating an Audio <acronym>CD</acronym></title>
990
990
991
	<step>
991
        <step>
992
	  <para>The <package>sysutils/cdrtools</package> package or
992
          <para>The <package>sysutils/cdrtools</package> package or
993
	    port installs <command>cdda2wav</command>.  This command
993
            port installs <command>cdda2wav</command>.  This command
994
	    can be used to extract all of the audio tracks, with each
994
            can be used to extract all of the audio tracks, with each
995
	    track written to a separate <acronym>WAV</acronym> file in
995
            track written to a separate <acronym>WAV</acronym> file in
996
	    the current working directory:</para>
996
            the current working directory:</para>
997
997
998
	  <screen>&prompt.user; <userinput>cdda2wav -vall -B -Owav</userinput></screen>
998
          <screen>&prompt.user; <userinput>cdda2wav -vall -B -Owav</userinput></screen>
999
999
1000
	  <para>A device name does not need to be specified if there
1000
          <para>A device name does not need to be specified if there
1001
	    is only one <acronym>CD</acronym> device on the system.
1001
            is only one <acronym>CD</acronym> device on the system.
1002
	    Refer to the <command>cdda2wav</command> manual page for
1002
            Refer to the <command>cdda2wav</command> manual page for
1003
	    instructions on how to specify a device and to learn more
1003
            instructions on how to specify a device and to learn more
1004
	    about the other options available for this command.</para>
1004
            about the other options available for this command.</para>
1005
	</step>
1005
        </step>
1006
1006
1007
	<step>
1007
        <step>
1008
	  <para>Use <command>cdrecord</command> to write the
1008
          <para>Use <command>cdrecord</command> to write the
1009
	    <filename>.wav</filename> files:</para>
1009
            <filename>.wav</filename> files:</para>
1010
1010
1011
	  <screen>&prompt.user; <userinput>cdrecord -v dev=<replaceable>2,0</replaceable> -dao -useinfo  *.wav</userinput></screen>
1011
          <screen>&prompt.user; <userinput>cdrecord -v dev=<replaceable>2,0</replaceable> -dao -useinfo  *.wav</userinput></screen>
1012
1012
1013
	  <para>Make sure that <replaceable>2,0</replaceable> is set
1013
          <para>Make sure that <replaceable>2,0</replaceable> is set
1014
	    appropriately, as described in <xref
1014
            appropriately, as described in <xref
1015
	      linkend="cdrecord"/>.</para>
1015
              linkend="cdrecord"/>.</para>
1016
	</step>
1016
        </step>
1017
      </procedure>
1017
      </procedure>
1018
    </sect2>
1018
    </sect2>
1019
  </sect1>
1019
  </sect1>
Lines 1023-1044 Link Here
1023
      <title>Creating and Using <acronym>DVD</acronym> Media</title>
1023
      <title>Creating and Using <acronym>DVD</acronym> Media</title>
1024
1024
1025
      <authorgroup>
1025
      <authorgroup>
1026
	<author>
1026
        <author>
1027
	  <personname>
1027
          <personname>
1028
	    <firstname>Marc</firstname>
1028
            <firstname>Marc</firstname>
1029
	    <surname>Fonvieille</surname>
1029
            <surname>Fonvieille</surname>
1030
	  </personname>
1030
          </personname>
1031
	  <contrib>Contributed by </contrib>
1031
          <contrib>Contributed by </contrib>
1032
	</author>
1032
        </author>
1033
      </authorgroup>
1033
      </authorgroup>
1034
      <authorgroup>
1034
      <authorgroup>
1035
	<author>
1035
        <author>
1036
	  <personname>
1036
          <personname>
1037
	    <firstname>Andy</firstname>
1037
            <firstname>Andy</firstname>
1038
	    <surname>Polyakov</surname>
1038
            <surname>Polyakov</surname>
1039
	  </personname>
1039
          </personname>
1040
	  <contrib>With inputs from </contrib>
1040
          <contrib>With inputs from </contrib>
1041
	</author>
1041
        </author>
1042
      </authorgroup>
1042
      </authorgroup>
1043
    </info>
1043
    </info>
1044
1044
Lines 1058-1099 Link Here
1058
1058
1059
    <itemizedlist>
1059
    <itemizedlist>
1060
      <listitem>
1060
      <listitem>
1061
	<para>DVD-R: This was the first <acronym>DVD</acronym>
1061
        <para>DVD-R: This was the first <acronym>DVD</acronym>
1062
	  recordable format available.  The DVD-R standard is defined
1062
          recordable format available.  The DVD-R standard is defined
1063
	  by the <link
1063
          by the <link
1064
	    xlink:href="http://www.dvdforum.com/forum.shtml"><acronym>DVD</acronym>
1064
            xlink:href="http://www.dvdforum.com/forum.shtml"><acronym>DVD</acronym>
1065
	    Forum</link>.  This format is write once.</para>
1065
            Forum</link>.  This format is write once.</para>
1066
      </listitem>
1066
      </listitem>
1067
1067
1068
      <listitem>
1068
      <listitem>
1069
	<para><acronym>DVD-RW</acronym>: This is the rewritable
1069
        <para><acronym>DVD-RW</acronym>: This is the rewritable
1070
	  version of the DVD-R standard.  A
1070
          version of the DVD-R standard.  A
1071
	  <acronym>DVD-RW</acronym> can be rewritten about 1000
1071
          <acronym>DVD-RW</acronym> can be rewritten about 1000
1072
	  times.</para>
1072
          times.</para>
1073
      </listitem>
1073
      </listitem>
1074
1074
1075
      <listitem>
1075
      <listitem>
1076
	<para><acronym>DVD-RAM</acronym>: This is a rewritable format
1076
        <para><acronym>DVD-RAM</acronym>: This is a rewritable format
1077
	  which can be seen as a removable hard drive.  However, this
1077
          which can be seen as a removable hard drive.  However, this
1078
	  media is not compatible with most
1078
          media is not compatible with most
1079
	  <acronym>DVD-ROM</acronym> drives and DVD-Video players as
1079
          <acronym>DVD-ROM</acronym> drives and DVD-Video players as
1080
	  only a few <acronym>DVD</acronym> writers support the
1080
          only a few <acronym>DVD</acronym> writers support the
1081
	  <acronym>DVD-RAM</acronym> format.  Refer to <xref
1081
          <acronym>DVD-RAM</acronym> format.  Refer to <xref
1082
	    linkend="creating-dvd-ram"/> for more information on
1082
            linkend="creating-dvd-ram"/> for more information on
1083
	  <acronym>DVD-RAM</acronym> use.</para>
1083
          <acronym>DVD-RAM</acronym> use.</para>
1084
      </listitem>
1084
      </listitem>
1085
1085
1086
      <listitem>
1086
      <listitem>
1087
	<para><acronym>DVD+RW</acronym>: This is a rewritable format
1087
        <para><acronym>DVD+RW</acronym>: This is a rewritable format
1088
	  defined by the <link
1088
          defined by the <link
1089
	    xlink:href="http://www.dvdrw.com/"><acronym>DVD+RW</acronym>
1089
            xlink:href="http://www.dvdrw.com/"><acronym>DVD+RW</acronym>
1090
	    Alliance</link>.  A <acronym>DVD+RW</acronym> can be
1090
            Alliance</link>.  A <acronym>DVD+RW</acronym> can be
1091
	  rewritten about 1000 times.</para>
1091
          rewritten about 1000 times.</para>
1092
      </listitem>
1092
      </listitem>
1093
1093
1094
      <listitem>
1094
      <listitem>
1095
	<para>DVD+R: This format is the write once variation of the
1095
        <para>DVD+R: This format is the write once variation of the
1096
	  <acronym>DVD+RW</acronym> format.</para>
1096
          <acronym>DVD+RW</acronym> format.</para>
1097
      </listitem>
1097
      </listitem>
1098
    </itemizedlist>
1098
    </itemizedlist>
1099
1099
Lines 1103-1114 Link Here
1103
1103
1104
    <note>
1104
    <note>
1105
      <para>A distinction must be made between the physical media and
1105
      <para>A distinction must be made between the physical media and
1106
	the application.  For example, a DVD-Video is a specific file
1106
        the application.  For example, a DVD-Video is a specific file
1107
	layout that can be written on any recordable
1107
        layout that can be written on any recordable
1108
	<acronym>DVD</acronym> physical media such as DVD-R, DVD+R, or
1108
        <acronym>DVD</acronym> physical media such as DVD-R, DVD+R, or
1109
	<acronym>DVD-RW</acronym>.  Before choosing the type of media,
1109
        <acronym>DVD-RW</acronym>.  Before choosing the type of media,
1110
	ensure that both the burner and the DVD-Video player are
1110
        ensure that both the burner and the DVD-Video player are
1111
	compatible with the media under consideration.</para>
1111
        compatible with the media under consideration.</para>
1112
    </note>
1112
    </note>
1113
1113
1114
    <sect2>
1114
    <sect2>
Lines 1115-1148 Link Here
1115
      <title>Configuration</title>
1115
      <title>Configuration</title>
1116
1116
1117
      <para>To perform <acronym>DVD</acronym> recording, use
1117
      <para>To perform <acronym>DVD</acronym> recording, use
1118
	&man.growisofs.1;.  This command is part of the
1118
        &man.growisofs.1;.  This command is part of the
1119
	<package>sysutils/dvd+rw-tools</package> utilities which
1119
        <package>sysutils/dvd+rw-tools</package> utilities which
1120
	support all <acronym>DVD</acronym> media types.</para>
1120
        support all <acronym>DVD</acronym> media types.</para>
1121
1121
1122
      <para>These tools use the <acronym>SCSI</acronym> subsystem to
1122
      <para>These tools use the <acronym>SCSI</acronym> subsystem to
1123
	access the devices, therefore <link
1123
        access the devices, therefore <link
1124
	  linkend="atapicam">ATAPI/CAM support</link> must be loaded
1124
          linkend="atapicam">ATAPI/CAM support</link> must be loaded
1125
	or statically compiled into the kernel.  This support is not
1125
        or statically compiled into the kernel.  This support is not
1126
	needed if the burner uses the <acronym>USB</acronym>
1126
        needed if the burner uses the <acronym>USB</acronym>
1127
	interface.  Refer to <xref linkend="usb-disks"/> for more
1127
        interface.  Refer to <xref linkend="usb-disks"/> for more
1128
	details on <acronym>USB</acronym> device configuration.</para>
1128
        details on <acronym>USB</acronym> device configuration.</para>
1129
1129
1130
      <para>DMA access must also be enabled for
1130
      <para>DMA access must also be enabled for
1131
	<acronym>ATAPI</acronym> devices, by adding the following line
1131
        <acronym>ATAPI</acronym> devices, by adding the following line
1132
	to <filename>/boot/loader.conf</filename>:</para>
1132
        to <filename>/boot/loader.conf</filename>:</para>
1133
1133
1134
      <programlisting>hw.ata.atapi_dma="1"</programlisting>
1134
      <programlisting>hw.ata.atapi_dma="1"</programlisting>
1135
1135
1136
      <para>Before attempting to use
1136
      <para>Before attempting to use
1137
	<application>dvd+rw-tools</application>, consult the <link
1137
        <application>dvd+rw-tools</application>, consult the <link
1138
	  xlink:href="http://fy.chalmers.se/~appro/linux/DVD+RW/hcn.html">Hardware
1138
          xlink:href="http://fy.chalmers.se/~appro/linux/DVD+RW/hcn.html">Hardware
1139
	  Compatibility Notes</link>.</para>
1139
          Compatibility Notes</link>.</para>
1140
1140
1141
      <note>
1141
      <note>
1142
	<para>For a graphical user interface, consider using
1142
        <para>For a graphical user interface, consider using
1143
	  <package>sysutils/k3b</package> which provides a user
1143
          <package>sysutils/k3b</package> which provides a user
1144
	  friendly interface to &man.growisofs.1; and many other
1144
          friendly interface to &man.growisofs.1; and many other
1145
	  burning tools.</para>
1145
          burning tools.</para>
1146
      </note>
1146
      </note>
1147
    </sect2>
1147
    </sect2>
1148
1148
Lines 1150-1221 Link Here
1150
      <title>Burning Data <acronym>DVD</acronym>s</title>
1150
      <title>Burning Data <acronym>DVD</acronym>s</title>
1151
1151
1152
      <para>Since &man.growisofs.1; is a front-end to <link
1152
      <para>Since &man.growisofs.1; is a front-end to <link
1153
	  linkend="mkisofs">mkisofs</link>, it will invoke
1153
          linkend="mkisofs">mkisofs</link>, it will invoke
1154
	&man.mkisofs.8; to create the file system layout and perform
1154
        &man.mkisofs.8; to create the file system layout and perform
1155
	the write on the <acronym>DVD</acronym>.  This means that an
1155
        the write on the <acronym>DVD</acronym>.  This means that an
1156
	image of the data does not need to be created before the
1156
        image of the data does not need to be created before the
1157
	burning process.</para>
1157
        burning process.</para>
1158
1158
1159
      <para>To burn to a DVD+R or a DVD-R the data in
1159
      <para>To burn to a DVD+R or a DVD-R the data in
1160
	<filename>/path/to/data</filename>, use the following
1160
        <filename>/path/to/data</filename>, use the following
1161
	command:</para>
1161
        command:</para>
1162
1162
1163
      <screen>&prompt.root; <userinput>growisofs -dvd-compat -Z <replaceable>/dev/cd0</replaceable> -J -R <replaceable>/path/to/data</replaceable></userinput></screen>
1163
      <screen>&prompt.root; <userinput>growisofs -dvd-compat -Z <replaceable>/dev/cd0</replaceable> -J -R <replaceable>/path/to/data</replaceable></userinput></screen>
1164
1164
1165
      <para>In this example, <option>-J -R</option> is passed to
1165
      <para>In this example, <option>-J -R</option> is passed to
1166
	&man.mkisofs.8;  to create an ISO 9660 file system with Joliet
1166
        &man.mkisofs.8;  to create an ISO 9660 file system with Joliet
1167
	and Rock Ridge extensions.  Refer to &man.mkisofs.8; for more
1167
        and Rock Ridge extensions.  Refer to &man.mkisofs.8; for more
1168
	details.</para>
1168
        details.</para>
1169
1169
1170
      <para>For the initial session recording, <option>-Z</option> is
1170
      <para>For the initial session recording, <option>-Z</option> is
1171
	used for both single and multiple sessions.  Replace
1171
        used for both single and multiple sessions.  Replace
1172
	<replaceable>/dev/cd0</replaceable>, with the name of the
1172
        <replaceable>/dev/cd0</replaceable>, with the name of the
1173
	<acronym>DVD</acronym> device.  Using
1173
        <acronym>DVD</acronym> device.  Using
1174
	<option>-dvd-compat</option> indicates that the disk will be
1174
        <option>-dvd-compat</option> indicates that the disk will be
1175
	closed and that the recording will be unappendable.  This
1175
        closed and that the recording will be unappendable.  This
1176
	should also provide better media compatibility with
1176
        should also provide better media compatibility with
1177
	<acronym>DVD-ROM</acronym> drives.</para>
1177
        <acronym>DVD-ROM</acronym> drives.</para>
1178
1178
1179
      <para>To burn a pre-mastered image, such as
1179
      <para>To burn a pre-mastered image, such as
1180
	<replaceable>imagefile.iso</replaceable>, use:</para>
1180
        <replaceable>imagefile.iso</replaceable>, use:</para>
1181
1181
1182
      <screen>&prompt.root; <userinput>growisofs -dvd-compat -Z <replaceable>/dev/cd0</replaceable>=<replaceable>imagefile.iso</replaceable></userinput></screen>
1182
      <screen>&prompt.root; <userinput>growisofs -dvd-compat -Z <replaceable>/dev/cd0</replaceable>=<replaceable>imagefile.iso</replaceable></userinput></screen>
1183
1183
1184
      <para>The write speed should be detected and automatically set
1184
      <para>The write speed should be detected and automatically set
1185
	according to the media and the drive being used.  To force the
1185
        according to the media and the drive being used.  To force the
1186
	write speed, use  <option>-speed=</option>.  Refer to
1186
        write speed, use  <option>-speed=</option>.  Refer to
1187
	&man.growisofs.1; for example usage.</para>
1187
        &man.growisofs.1; for example usage.</para>
1188
1188
1189
      <note>
1189
      <note>
1190
	<para>In order to support working files larger than 4.38GB, an
1190
        <para>In order to support working files larger than 4.38GB, an
1191
	  UDF/ISO-9660 hybrid file system must be created by passing
1191
          UDF/ISO-9660 hybrid file system must be created by passing
1192
	  <option>-udf -iso-level 3</option> to &man.mkisofs.8; and
1192
          <option>-udf -iso-level 3</option> to &man.mkisofs.8; and
1193
	  all related programs, such as &man.growisofs.1;.  This is
1193
          all related programs, such as &man.growisofs.1;.  This is
1194
	  required only when creating an ISO image file or when
1194
          required only when creating an ISO image file or when
1195
	  writing files directly to a disk.  Since a disk created this
1195
          writing files directly to a disk.  Since a disk created this
1196
	  way must be mounted as an UDF file system with
1196
          way must be mounted as an UDF file system with
1197
	  &man.mount.udf.8;, it will be usable only on an UDF aware
1197
          &man.mount.udf.8;, it will be usable only on an UDF aware
1198
	  operating system.  Otherwise it will look as if it contains
1198
          operating system.  Otherwise it will look as if it contains
1199
	  corrupted files.</para>
1199
          corrupted files.</para>
1200
1200
1201
	<para>To create this type of ISO file:</para>
1201
        <para>To create this type of ISO file:</para>
1202
1202
1203
	<screen>&prompt.user; <userinput>mkisofs -R -J -udf -iso-level 3 -o <replaceable>imagefile.iso</replaceable> <replaceable>/path/to/data</replaceable></userinput></screen>
1203
        <screen>&prompt.user; <userinput>mkisofs -R -J -udf -iso-level 3 -o <replaceable>imagefile.iso</replaceable> <replaceable>/path/to/data</replaceable></userinput></screen>
1204
1204
1205
	<para>To burn files directly to a disk:</para>
1205
        <para>To burn files directly to a disk:</para>
1206
1206
1207
	<screen>&prompt.root; <userinput>growisofs -dvd-compat -udf -iso-level 3 -Z <replaceable>/dev/cd0</replaceable> -J -R <replaceable>/path/to/data</replaceable></userinput></screen>
1207
        <screen>&prompt.root; <userinput>growisofs -dvd-compat -udf -iso-level 3 -Z <replaceable>/dev/cd0</replaceable> -J -R <replaceable>/path/to/data</replaceable></userinput></screen>
1208
1208
1209
	<para>When an ISO image already contains large files, no
1209
        <para>When an ISO image already contains large files, no
1210
	  additional options are required for &man.growisofs.1; to
1210
          additional options are required for &man.growisofs.1; to
1211
	  burn that image on a disk.</para>
1211
          burn that image on a disk.</para>
1212
1212
1213
	<para>Be sure to use an up-to-date version of
1213
        <para>Be sure to use an up-to-date version of
1214
	  <package>sysutils/cdrtools</package>, which contains
1214
          <package>sysutils/cdrtools</package>, which contains
1215
	  &man.mkisofs.8;, as an older version may not contain large
1215
          &man.mkisofs.8;, as an older version may not contain large
1216
	  files support.  If the latest version does not work, install
1216
          files support.  If the latest version does not work, install
1217
	  <package>sysutils/cdrtools-devel</package> and read its
1217
          <package>sysutils/cdrtools-devel</package> and read its
1218
	  &man.mkisofs.8;.</para>
1218
          &man.mkisofs.8;.</para>
1219
      </note>
1219
      </note>
1220
    </sect2>
1220
    </sect2>
1221
1221
Lines 1223-1251 Link Here
1223
      <title>Burning a <acronym>DVD</acronym>-Video</title>
1223
      <title>Burning a <acronym>DVD</acronym>-Video</title>
1224
1224
1225
      <indexterm>
1225
      <indexterm>
1226
	<primary><acronym>DVD</acronym></primary>
1226
        <primary><acronym>DVD</acronym></primary>
1227
	<secondary>DVD-Video</secondary>
1227
        <secondary>DVD-Video</secondary>
1228
      </indexterm>
1228
      </indexterm>
1229
1229
1230
      <para>A DVD-Video is a specific file layout based on the ISO
1230
      <para>A DVD-Video is a specific file layout based on the ISO
1231
	9660 and micro-UDF (M-UDF) specifications.  Since DVD-Video
1231
        9660 and micro-UDF (M-UDF) specifications.  Since DVD-Video
1232
	presents a specific data structure hierarchy, a particular
1232
        presents a specific data structure hierarchy, a particular
1233
	program such as <package>multimedia/dvdauthor</package> is
1233
        program such as <package>multimedia/dvdauthor</package> is
1234
	needed to author the <acronym>DVD</acronym>.</para>
1234
        needed to author the <acronym>DVD</acronym>.</para>
1235
1235
1236
      <para>If an image of the DVD-Video file system already exists,
1236
      <para>If an image of the DVD-Video file system already exists,
1237
	it can be burned in the same way as any other image.  If
1237
        it can be burned in the same way as any other image.  If
1238
	<command>dvdauthor</command> was used to make the
1238
        <command>dvdauthor</command> was used to make the
1239
	<acronym>DVD</acronym> and the result is in
1239
        <acronym>DVD</acronym> and the result is in
1240
	<filename>/path/to/video</filename>, the following command
1240
        <filename>/path/to/video</filename>, the following command
1241
	should be used to burn the DVD-Video:</para>
1241
        should be used to burn the DVD-Video:</para>
1242
1242
1243
      <screen>&prompt.root; <userinput>growisofs -Z <replaceable>/dev/cd0</replaceable> -dvd-video <replaceable>/path/to/video</replaceable></userinput></screen>
1243
      <screen>&prompt.root; <userinput>growisofs -Z <replaceable>/dev/cd0</replaceable> -dvd-video <replaceable>/path/to/video</replaceable></userinput></screen>
1244
1244
1245
      <para><option>-dvd-video</option> is passed to &man.mkisofs.8;
1245
      <para><option>-dvd-video</option> is passed to &man.mkisofs.8;
1246
	to instruct it to create a DVD-Video file system layout.
1246
        to instruct it to create a DVD-Video file system layout.
1247
	This option implies the <option>-dvd-compat</option>
1247
        This option implies the <option>-dvd-compat</option>
1248
	&man.growisofs.1; option.</para>
1248
        &man.growisofs.1; option.</para>
1249
    </sect2>
1249
    </sect2>
1250
1250
1251
    <sect2>
1251
    <sect2>
Lines 1252-1302 Link Here
1252
      <title>Using a <acronym>DVD+RW</acronym></title>
1252
      <title>Using a <acronym>DVD+RW</acronym></title>
1253
1253
1254
      <indexterm>
1254
      <indexterm>
1255
	<primary><acronym>DVD</acronym></primary>
1255
        <primary><acronym>DVD</acronym></primary>
1256
	<secondary><acronym>DVD+RW</acronym></secondary>
1256
        <secondary><acronym>DVD+RW</acronym></secondary>
1257
      </indexterm>
1257
      </indexterm>
1258
1258
1259
      <para>Unlike CD-RW, a virgin <acronym>DVD+RW</acronym> needs to
1259
      <para>Unlike CD-RW, a virgin <acronym>DVD+RW</acronym> needs to
1260
	be formatted before first use.  It is
1260
        be formatted before first use.  It is
1261
	<emphasis>recommended</emphasis> to let &man.growisofs.1; take
1261
        <emphasis>recommended</emphasis> to let &man.growisofs.1; take
1262
	care of this automatically whenever appropriate.  However, it
1262
        care of this automatically whenever appropriate.  However, it
1263
	is possible to use <command>dvd+rw-format</command> to format
1263
        is possible to use <command>dvd+rw-format</command> to format
1264
	the <acronym>DVD+RW</acronym>:</para>
1264
        the <acronym>DVD+RW</acronym>:</para>
1265
1265
1266
      <screen>&prompt.root; <userinput>dvd+rw-format <replaceable>/dev/cd0</replaceable></userinput></screen>
1266
      <screen>&prompt.root; <userinput>dvd+rw-format <replaceable>/dev/cd0</replaceable></userinput></screen>
1267
1267
1268
      <para>Only perform this operation once and keep in mind that
1268
      <para>Only perform this operation once and keep in mind that
1269
	only virgin <acronym>DVD+RW</acronym> medias need to be
1269
        only virgin <acronym>DVD+RW</acronym> medias need to be
1270
	formatted.  Once formatted, the <acronym>DVD+RW</acronym> can
1270
        formatted.  Once formatted, the <acronym>DVD+RW</acronym> can
1271
	be burned as usual.</para>
1271
        be burned as usual.</para>
1272
1272
1273
      <para>To burn a totally new file system and not just append some
1273
      <para>To burn a totally new file system and not just append some
1274
	data onto a <acronym>DVD+RW</acronym>, the media does not need
1274
        data onto a <acronym>DVD+RW</acronym>, the media does not need
1275
	to be blanked first.  Instead, write over the previous
1275
        to be blanked first.  Instead, write over the previous
1276
	recording like this:</para>
1276
        recording like this:</para>
1277
1277
1278
      <screen>&prompt.root; <userinput>growisofs -Z <replaceable>/dev/cd0</replaceable> -J -R <replaceable>/path/to/newdata</replaceable></userinput></screen>
1278
      <screen>&prompt.root; <userinput>growisofs -Z <replaceable>/dev/cd0</replaceable> -J -R <replaceable>/path/to/newdata</replaceable></userinput></screen>
1279
1279
1280
      <para>The <acronym>DVD+RW</acronym> format supports appending
1280
      <para>The <acronym>DVD+RW</acronym> format supports appending
1281
	data to a previous recording.  This operation consists of
1281
        data to a previous recording.  This operation consists of
1282
	merging a new session to the existing one as it is not
1282
        merging a new session to the existing one as it is not
1283
	considered to be multi-session writing.  &man.growisofs.1;
1283
        considered to be multi-session writing.  &man.growisofs.1;
1284
	will <emphasis>grow</emphasis> the ISO 9660 file system
1284
        will <emphasis>grow</emphasis> the ISO 9660 file system
1285
	present on the media.</para>
1285
        present on the media.</para>
1286
1286
1287
      <para>For example, to append data to a
1287
      <para>For example, to append data to a
1288
	<acronym>DVD+RW</acronym>, use the following:</para>
1288
        <acronym>DVD+RW</acronym>, use the following:</para>
1289
1289
1290
      <screen>&prompt.root; <userinput>growisofs -M <replaceable>/dev/cd0</replaceable> -J -R <replaceable>/path/to/nextdata</replaceable></userinput></screen>
1290
      <screen>&prompt.root; <userinput>growisofs -M <replaceable>/dev/cd0</replaceable> -J -R <replaceable>/path/to/nextdata</replaceable></userinput></screen>
1291
1291
1292
      <para>The same &man.mkisofs.8; options used to burn the
1292
      <para>The same &man.mkisofs.8; options used to burn the
1293
	initial session should be used during next writes.</para>
1293
        initial session should be used during next writes.</para>
1294
1294
1295
      <note>
1295
      <note>
1296
	<para>Use <option>-dvd-compat</option> for better media
1296
        <para>Use <option>-dvd-compat</option> for better media
1297
	  compatibility with <acronym>DVD-ROM</acronym> drives.  When
1297
          compatibility with <acronym>DVD-ROM</acronym> drives.  When
1298
	  using <acronym>DVD+RW</acronym>, this option will not
1298
          using <acronym>DVD+RW</acronym>, this option will not
1299
	  prevent the addition of data.</para>
1299
          prevent the addition of data.</para>
1300
      </note>
1300
      </note>
1301
1301
1302
      <para>To blank the media, use:</para>
1302
      <para>To blank the media, use:</para>
Lines 1308-1373 Link Here
1308
      <title>Using a <acronym>DVD-RW</acronym></title>
1308
      <title>Using a <acronym>DVD-RW</acronym></title>
1309
1309
1310
      <indexterm>
1310
      <indexterm>
1311
	<primary><acronym>DVD</acronym></primary>
1311
        <primary><acronym>DVD</acronym></primary>
1312
	<secondary><acronym>DVD-RW</acronym></secondary>
1312
        <secondary><acronym>DVD-RW</acronym></secondary>
1313
      </indexterm>
1313
      </indexterm>
1314
1314
1315
      <para>A <acronym>DVD-RW</acronym> accepts two disc formats:
1315
      <para>A <acronym>DVD-RW</acronym> accepts two disc formats:
1316
	incremental sequential and restricted overwrite.  By default,
1316
        incremental sequential and restricted overwrite.  By default,
1317
	<acronym>DVD-RW</acronym> discs are in sequential
1317
        <acronym>DVD-RW</acronym> discs are in sequential
1318
	format.</para>
1318
        format.</para>
1319
1319
1320
      <para>A virgin <acronym>DVD-RW</acronym> can be directly written
1320
      <para>A virgin <acronym>DVD-RW</acronym> can be directly written
1321
	without being formatted.  However, a non-virgin
1321
        without being formatted.  However, a non-virgin
1322
	<acronym>DVD-RW</acronym> in sequential format needs to be
1322
        <acronym>DVD-RW</acronym> in sequential format needs to be
1323
	blanked before writing a new initial session.</para>
1323
        blanked before writing a new initial session.</para>
1324
1324
1325
      <para>To blank a <acronym>DVD-RW</acronym> in sequential
1325
      <para>To blank a <acronym>DVD-RW</acronym> in sequential
1326
	mode:</para>
1326
        mode:</para>
1327
1327
1328
      <screen>&prompt.root; <userinput>dvd+rw-format -blank=full <replaceable>/dev/cd0</replaceable></userinput></screen>
1328
      <screen>&prompt.root; <userinput>dvd+rw-format -blank=full <replaceable>/dev/cd0</replaceable></userinput></screen>
1329
1329
1330
      <note>
1330
      <note>
1331
	<para>A full blanking using <option>-blank=full</option> will
1331
        <para>A full blanking using <option>-blank=full</option> will
1332
	  take about one hour on a 1x media.  A fast blanking can be
1332
          take about one hour on a 1x media.  A fast blanking can be
1333
	  performed using <option>-blank</option>, if the
1333
          performed using <option>-blank</option>, if the
1334
	  <acronym>DVD-RW</acronym> will be recorded in Disk-At-Once
1334
          <acronym>DVD-RW</acronym> will be recorded in Disk-At-Once
1335
	  (DAO) mode.  To burn the <acronym>DVD-RW</acronym> in DAO
1335
          (DAO) mode.  To burn the <acronym>DVD-RW</acronym> in DAO
1336
	  mode, use the command:</para>
1336
          mode, use the command:</para>
1337
1337
1338
	<screen>&prompt.root; <userinput>growisofs -use-the-force-luke=dao -Z <replaceable>/dev/cd0</replaceable>=<replaceable>imagefile.iso</replaceable></userinput></screen>
1338
        <screen>&prompt.root; <userinput>growisofs -use-the-force-luke=dao -Z <replaceable>/dev/cd0</replaceable>=<replaceable>imagefile.iso</replaceable></userinput></screen>
1339
1339
1340
	<para>Since &man.growisofs.1; automatically attempts to detect
1340
        <para>Since &man.growisofs.1; automatically attempts to detect
1341
	  fast blanked media and engage DAO write,
1341
          fast blanked media and engage DAO write,
1342
	  <option>-use-the-force-luke=dao</option> should not be
1342
          <option>-use-the-force-luke=dao</option> should not be
1343
	  required.</para>
1343
          required.</para>
1344
1344
1345
	<para>One should instead use restricted overwrite mode with
1345
        <para>One should instead use restricted overwrite mode with
1346
	  any <acronym>DVD-RW</acronym> as this format is more
1346
          any <acronym>DVD-RW</acronym> as this format is more
1347
	  flexible than the default of incremental sequential.</para>
1347
          flexible than the default of incremental sequential.</para>
1348
      </note>
1348
      </note>
1349
1349
1350
      <para>To write data on a sequential <acronym>DVD-RW</acronym>,
1350
      <para>To write data on a sequential <acronym>DVD-RW</acronym>,
1351
	use the same instructions as for the other
1351
        use the same instructions as for the other
1352
	<acronym>DVD</acronym> formats:</para>
1352
        <acronym>DVD</acronym> formats:</para>
1353
1353
1354
      <screen>&prompt.root; <userinput>growisofs -Z <replaceable>/dev/cd0</replaceable> -J -R <replaceable>/path/to/data</replaceable></userinput></screen>
1354
      <screen>&prompt.root; <userinput>growisofs -Z <replaceable>/dev/cd0</replaceable> -J -R <replaceable>/path/to/data</replaceable></userinput></screen>
1355
1355
1356
      <para>To append some data to a previous recording, use
1356
      <para>To append some data to a previous recording, use
1357
	<option>-M</option> with &man.growisofs.1;.  However, if data
1357
        <option>-M</option> with &man.growisofs.1;.  However, if data
1358
	is appended on a <acronym>DVD-RW</acronym> in incremental
1358
        is appended on a <acronym>DVD-RW</acronym> in incremental
1359
	sequential mode, a new session will be created on the disc and
1359
        sequential mode, a new session will be created on the disc and
1360
	the result will be a multi-session disc.</para>
1360
        the result will be a multi-session disc.</para>
1361
1361
1362
      <para>A <acronym>DVD-RW</acronym> in restricted overwrite format
1362
      <para>A <acronym>DVD-RW</acronym> in restricted overwrite format
1363
	does not need to be blanked before a new initial session.
1363
        does not need to be blanked before a new initial session.
1364
	Instead, overwrite the disc with <option>-Z</option>.  It is
1364
        Instead, overwrite the disc with <option>-Z</option>.  It is
1365
	also possible to grow an existing ISO 9660 file system written
1365
        also possible to grow an existing ISO 9660 file system written
1366
	on the disc with <option>-M</option>.  The result will be a
1366
        on the disc with <option>-M</option>.  The result will be a
1367
	one-session <acronym>DVD</acronym>.</para>
1367
        one-session <acronym>DVD</acronym>.</para>
1368
1368
1369
      <para>To put a <acronym>DVD-RW</acronym> in restricted overwrite
1369
      <para>To put a <acronym>DVD-RW</acronym> in restricted overwrite
1370
	format, the following command must be used:</para>
1370
        format, the following command must be used:</para>
1371
1371
1372
      <screen>&prompt.root; <userinput>dvd+rw-format <replaceable>/dev/cd0</replaceable></userinput></screen>
1372
      <screen>&prompt.root; <userinput>dvd+rw-format <replaceable>/dev/cd0</replaceable></userinput></screen>
1373
1373
Lines 1380-1412 Link Here
1380
      <title>Multi-Session</title>
1380
      <title>Multi-Session</title>
1381
1381
1382
      <para>Few <acronym>DVD-ROM</acronym> drives support
1382
      <para>Few <acronym>DVD-ROM</acronym> drives support
1383
	multi-session DVDs and most of the time only read the first
1383
        multi-session DVDs and most of the time only read the first
1384
	session.  DVD+R, DVD-R and <acronym>DVD-RW</acronym> in
1384
        session.  DVD+R, DVD-R and <acronym>DVD-RW</acronym> in
1385
	sequential format can accept multiple sessions.  The notion
1385
        sequential format can accept multiple sessions.  The notion
1386
	of multiple sessions does not exist for the
1386
        of multiple sessions does not exist for the
1387
	<acronym>DVD+RW</acronym> and the <acronym>DVD-RW</acronym>
1387
        <acronym>DVD+RW</acronym> and the <acronym>DVD-RW</acronym>
1388
	restricted overwrite formats.</para>
1388
        restricted overwrite formats.</para>
1389
1389
1390
      <para>Using the following command after an initial non-closed
1390
      <para>Using the following command after an initial non-closed
1391
	session on a DVD+R, DVD-R, or <acronym>DVD-RW</acronym> in
1391
        session on a DVD+R, DVD-R, or <acronym>DVD-RW</acronym> in
1392
	sequential format, will add a new session to the disc:</para>
1392
        sequential format, will add a new session to the disc:</para>
1393
1393
1394
      <screen>&prompt.root; <userinput>growisofs -M <replaceable>/dev/cd0</replaceable> -J -R <replaceable>/path/to/nextdata</replaceable></userinput></screen>
1394
      <screen>&prompt.root; <userinput>growisofs -M <replaceable>/dev/cd0</replaceable> -J -R <replaceable>/path/to/nextdata</replaceable></userinput></screen>
1395
1395
1396
      <para>Using this command with a <acronym>DVD+RW</acronym> or a
1396
      <para>Using this command with a <acronym>DVD+RW</acronym> or a
1397
	<acronym>DVD-RW</acronym> in restricted overwrite mode will
1397
        <acronym>DVD-RW</acronym> in restricted overwrite mode will
1398
	append data while merging the new session to the existing one.
1398
        append data while merging the new session to the existing one.
1399
	The result will be a single-session disc.  Use this method to
1399
        The result will be a single-session disc.  Use this method to
1400
	add data after an initial write on these types of
1400
        add data after an initial write on these types of
1401
	media.</para>
1401
        media.</para>
1402
1402
1403
      <note>
1403
      <note>
1404
	<para>Since some space on the media is used between each
1404
        <para>Since some space on the media is used between each
1405
	  session to mark the end and start of sessions, one should
1405
          session to mark the end and start of sessions, one should
1406
	  add sessions with a large amount of data to optimize media
1406
          add sessions with a large amount of data to optimize media
1407
	  space.  The number of sessions is limited to 154 for a
1407
          space.  The number of sessions is limited to 154 for a
1408
	  DVD+R, about 2000 for a DVD-R, and 127 for a DVD+R Double
1408
          DVD+R, about 2000 for a DVD-R, and 127 for a DVD+R Double
1409
	  Layer.</para>
1409
          Layer.</para>
1410
      </note>
1410
      </note>
1411
    </sect2>
1411
    </sect2>
1412
1412
Lines 1414-1435 Link Here
1414
      <title>For More Information</title>
1414
      <title>For More Information</title>
1415
1415
1416
      <para>To obtain more information about a <acronym>DVD</acronym>,
1416
      <para>To obtain more information about a <acronym>DVD</acronym>,
1417
	use <command>dvd+rw-mediainfo
1417
        use <command>dvd+rw-mediainfo
1418
	  <replaceable>/dev/cd0</replaceable></command> while the
1418
          <replaceable>/dev/cd0</replaceable></command> while the
1419
	disc in the specified drive.</para>
1419
        disc in the specified drive.</para>
1420
1420
1421
      <para>More information about
1421
      <para>More information about
1422
	<application>dvd+rw-tools</application> can be found in
1422
        <application>dvd+rw-tools</application> can be found in
1423
	&man.growisofs.1;, on the <link
1423
        &man.growisofs.1;, on the <link
1424
	  xlink:href="http://fy.chalmers.se/~appro/linux/DVD+RW/">dvd+rw-tools
1424
          xlink:href="http://fy.chalmers.se/~appro/linux/DVD+RW/">dvd+rw-tools
1425
	  web site</link>, and in the <link
1425
          web site</link>, and in the <link
1426
	  xlink:href="http://lists.debian.org/cdwrite/">cdwrite
1426
          xlink:href="http://lists.debian.org/cdwrite/">cdwrite
1427
	  mailing list</link> archives.</para>
1427
          mailing list</link> archives.</para>
1428
1428
1429
      <note>
1429
      <note>
1430
	<para>When creating a problem report related to the use of
1430
        <para>When creating a problem report related to the use of
1431
	  <application>dvd+rw-tools</application>, always include the
1431
          <application>dvd+rw-tools</application>, always include the
1432
	  output of <command>dvd+rw-mediainfo</command>.</para>
1432
          output of <command>dvd+rw-mediainfo</command>.</para>
1433
      </note>
1433
      </note>
1434
    </sect2>
1434
    </sect2>
1435
1435
Lines 1437-1459 Link Here
1437
      <title>Using a <acronym>DVD-RAM</acronym></title>
1437
      <title>Using a <acronym>DVD-RAM</acronym></title>
1438
1438
1439
      <indexterm>
1439
      <indexterm>
1440
	<primary><acronym>DVD</acronym></primary>
1440
        <primary><acronym>DVD</acronym></primary>
1441
	<secondary><acronym>DVD-RAM</acronym></secondary>
1441
        <secondary><acronym>DVD-RAM</acronym></secondary>
1442
      </indexterm>
1442
      </indexterm>
1443
1443
1444
      <para><acronym>DVD-RAM</acronym> writers can use either a
1444
      <para><acronym>DVD-RAM</acronym> writers can use either a
1445
	<acronym>SCSI</acronym> or <acronym>ATAPI</acronym> interface.
1445
        <acronym>SCSI</acronym> or <acronym>ATAPI</acronym> interface.
1446
	For <acronym>ATAPI</acronym> devices, DMA access has to be
1446
        For <acronym>ATAPI</acronym> devices, DMA access has to be
1447
	enabled by adding the following line to
1447
        enabled by adding the following line to
1448
	<filename>/boot/loader.conf</filename>:</para>
1448
        <filename>/boot/loader.conf</filename>:</para>
1449
1449
1450
      <programlisting>hw.ata.atapi_dma="1"</programlisting>
1450
      <programlisting>hw.ata.atapi_dma="1"</programlisting>
1451
1451
1452
      <para>A <acronym>DVD-RAM</acronym> can be seen as a removable
1452
      <para>A <acronym>DVD-RAM</acronym> can be seen as a removable
1453
	hard drive.  Like any other hard drive, the
1453
        hard drive.  Like any other hard drive, the
1454
	<acronym>DVD-RAM</acronym> must be formatted before it can be
1454
        <acronym>DVD-RAM</acronym> must be formatted before it can be
1455
	used.  In this example, the whole disk space will be formatted
1455
        used.  In this example, the whole disk space will be formatted
1456
	with a standard UFS2 file system:</para>
1456
        with a standard UFS2 file system:</para>
1457
1457
1458
      <screen>&prompt.root; <userinput>dd if=/dev/zero of=<replaceable>/dev/acd0</replaceable> bs=2k count=1</userinput>
1458
      <screen>&prompt.root; <userinput>dd if=/dev/zero of=<replaceable>/dev/acd0</replaceable> bs=2k count=1</userinput>
1459
&prompt.root; <userinput>bsdlabel -Bw <replaceable>acd0</replaceable></userinput>
1459
&prompt.root; <userinput>bsdlabel -Bw <replaceable>acd0</replaceable></userinput>
Lines 1460-1475 Link Here
1460
&prompt.root; <userinput>newfs <replaceable>/dev/acd0</replaceable></userinput></screen>
1460
&prompt.root; <userinput>newfs <replaceable>/dev/acd0</replaceable></userinput></screen>
1461
1461
1462
      <para>The <acronym>DVD</acronym> device,
1462
      <para>The <acronym>DVD</acronym> device,
1463
	<filename>acd0</filename>, must be changed according to the
1463
        <filename>acd0</filename>, must be changed according to the
1464
	configuration.</para>
1464
        configuration.</para>
1465
1465
1466
      <para>Once the <acronym>DVD-RAM</acronym> has been formatted, it
1466
      <para>Once the <acronym>DVD-RAM</acronym> has been formatted, it
1467
	can be mounted as a normal hard drive:</para>
1467
        can be mounted as a normal hard drive:</para>
1468
1468
1469
      <screen>&prompt.root; <userinput>mount <replaceable>/dev/acd0</replaceable> <replaceable>/mnt</replaceable></userinput></screen>
1469
      <screen>&prompt.root; <userinput>mount <replaceable>/dev/acd0</replaceable> <replaceable>/mnt</replaceable></userinput></screen>
1470
1470
1471
      <para>Once mounted, the <acronym>DVD-RAM</acronym> will be both
1471
      <para>Once mounted, the <acronym>DVD-RAM</acronym> will be both
1472
	readable and writeable.</para>
1472
        readable and writeable.</para>
1473
    </sect2>
1473
    </sect2>
1474
  </sect1>
1474
  </sect1>
1475
1475
Lines 1478-1500 Link Here
1478
1478
1479
<!--
1479
<!--
1480
      <authorgroup>
1480
      <authorgroup>
1481
	<author>
1481
        <author>
1482
	  <personname>
1482
          <personname>
1483
	    <firstname>Julio</firstname>
1483
            <firstname>Julio</firstname>
1484
	    <surname>Merino</surname>
1484
            <surname>Merino</surname>
1485
	  </personname>
1485
          </personname>
1486
	  <contrib>Original work by </contrib>
1486
          <contrib>Original work by </contrib>
1487
	</author>
1487
        </author>
1488
      </authorgroup>
1488
      </authorgroup>
1489
1489
1490
      <authorgroup>
1490
      <authorgroup>
1491
	<author>
1491
        <author>
1492
	  <personname>
1492
          <personname>
1493
	    <firstname>Martin</firstname>
1493
            <firstname>Martin</firstname>
1494
	    <surname>Karlsson</surname>
1494
            <surname>Karlsson</surname>
1495
	  </personname>
1495
          </personname>
1496
	  <contrib>Rewritten by </contrib>
1496
          <contrib>Rewritten by </contrib>
1497
	</author>
1497
        </author>
1498
      </authorgroup>
1498
      </authorgroup>
1499
      -->
1499
      -->
1500
1500
Lines 1505-1544 Link Here
1505
      <title>Steps to Format a Floppy</title>
1505
      <title>Steps to Format a Floppy</title>
1506
1506
1507
      <para>A floppy disk needs to be low-level formatted before it
1507
      <para>A floppy disk needs to be low-level formatted before it
1508
	can be used.  This is usually done by the vendor, but
1508
        can be used.  This is usually done by the vendor, but
1509
	formatting is a good way to check media integrity.  To
1509
        formatting is a good way to check media integrity.  To
1510
	low-level format the floppy disk on &os;, use
1510
        low-level format the floppy disk on &os;, use
1511
	&man.fdformat.1;.  When using this utility, make note of any
1511
        &man.fdformat.1;.  When using this utility, make note of any
1512
	error messages, as these can help determine if the disk is
1512
        error messages, as these can help determine if the disk is
1513
	good or bad.</para>
1513
        good or bad.</para>
1514
1514
1515
      <step>
1515
      <step>
1516
	<para>To format the floppy, insert a new 3.5 inch floppy disk
1516
        <para>To format the floppy, insert a new 3.5 inch floppy disk
1517
	  into the first floppy drive and issue:</para>
1517
          into the first floppy drive and issue:</para>
1518
1518
1519
	  <screen>&prompt.root; <userinput>/usr/sbin/fdformat -f 1440 /dev/fd0</userinput></screen>
1519
          <screen>&prompt.root; <userinput>/usr/sbin/fdformat -f 1440 /dev/fd0</userinput></screen>
1520
      </step>
1520
      </step>
1521
1521
1522
      <step>
1522
      <step>
1523
	<para>After low-level formatting the disk, create a disk label
1523
        <para>After low-level formatting the disk, create a disk label
1524
	  as it is needed by the system to determine the size of the
1524
          as it is needed by the system to determine the size of the
1525
	  disk and its geometry.  The supported geometry values are
1525
          disk and its geometry.  The supported geometry values are
1526
	  listed in <filename>/etc/disktab</filename>.</para>
1526
          listed in <filename>/etc/disktab</filename>.</para>
1527
1527
1528
	<para>To write the disk label, use &man.bsdlabel.8;:</para>
1528
        <para>To write the disk label, use &man.bsdlabel.8;:</para>
1529
1529
1530
	<screen>&prompt.root; <userinput>/sbin/bsdlabel -B -w /dev/fd0 fd1440</userinput></screen>
1530
        <screen>&prompt.root; <userinput>/sbin/bsdlabel -B -w /dev/fd0 fd1440</userinput></screen>
1531
      </step>
1531
      </step>
1532
1532
1533
      <step>
1533
      <step>
1534
	<para>The floppy is now ready to be high-level formatted with
1534
        <para>The floppy is now ready to be high-level formatted with
1535
	  a file system.  The floppy's file system can be either UFS
1535
          a file system.  The floppy's file system can be either UFS
1536
	  or FAT, where FAT is generally a better choice for
1536
          or FAT, where FAT is generally a better choice for
1537
	  floppies.</para>
1537
          floppies.</para>
1538
1538
1539
	<para>To format the floppy with FAT, issue:</para>
1539
        <para>To format the floppy with FAT, issue:</para>
1540
1540
1541
	<screen>&prompt.root; <userinput>/sbin/newfs_msdos /dev/fd0</userinput></screen>
1541
        <screen>&prompt.root; <userinput>/sbin/newfs_msdos /dev/fd0</userinput></screen>
1542
      </step>
1542
      </step>
1543
    </procedure>
1543
    </procedure>
1544
1544
Lines 1553-1565 Link Here
1553
1553
1554
<!--
1554
<!--
1555
    <authorgroup>
1555
    <authorgroup>
1556
	<author>
1556
        <author>
1557
	  <personname>
1557
          <personname>
1558
	    <firstname>Lowell</firstname>
1558
            <firstname>Lowell</firstname>
1559
	    <surname>Gilbert</surname>
1559
            <surname>Gilbert</surname>
1560
	  </personname>
1560
          </personname>
1561
	  <contrib>Original work by </contrib>
1561
          <contrib>Original work by </contrib>
1562
	</author>
1562
        </author>
1563
      </authorgroup>
1563
      </authorgroup>
1564
      -->
1564
      -->
1565
1565
Lines 1575-1600 Link Here
1575
1575
1576
    <itemizedlist>
1576
    <itemizedlist>
1577
      <listitem>
1577
      <listitem>
1578
	<para>Archives of the whole system, backed up onto permanent,
1578
        <para>Archives of the whole system, backed up onto permanent,
1579
	  off-site media.  This provides protection against all of the
1579
          off-site media.  This provides protection against all of the
1580
	  problems listed above, but is slow and inconvenient to
1580
          problems listed above, but is slow and inconvenient to
1581
	  restore from, especially for non-privileged users.</para>
1581
          restore from, especially for non-privileged users.</para>
1582
      </listitem>
1582
      </listitem>
1583
1583
1584
      <listitem>
1584
      <listitem>
1585
	<para>File system snapshots, which are useful for restoring
1585
        <para>File system snapshots, which are useful for restoring
1586
	  deleted files or previous versions of files.</para>
1586
          deleted files or previous versions of files.</para>
1587
      </listitem>
1587
      </listitem>
1588
1588
1589
      <listitem>
1589
      <listitem>
1590
	<para>Copies of whole file systems or disks which are
1590
        <para>Copies of whole file systems or disks which are
1591
	  sychronized with another system on the network using a
1591
          synchronized with another system on the network using a
1592
	  scheduled <package>net/rsync</package>.</para>
1592
          scheduled <package>net/rsync</package>.</para>
1593
      </listitem>
1593
      </listitem>
1594
1594
1595
      <listitem>
1595
      <listitem>
1596
	<para>Hardware or software <acronym>RAID</acronym>, which
1596
        <para>Hardware or software <acronym>RAID</acronym>, which
1597
	  minimizes or avoids downtime when a disk fails.</para>
1597
          minimizes or avoids downtime when a disk fails.</para>
1598
      </listitem>
1598
      </listitem>
1599
    </itemizedlist>
1599
    </itemizedlist>
1600
1600

Return to bug 212935