1 .\" $NetBSD: mmcformat.8,v 1.3 2008/11/04 19:43:04 wiz Exp $
3 .\" Copyright (c) 2008 Reinoud Zandijk
4 .\" All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in
13 .\" the documentation and/or other materials provided with the
16 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS
17 .\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY
20 .\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
22 .\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
24 .\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
25 .\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
26 .\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34 .Nd format optical media
37 .Op Fl BDFGHhIMOpRrSsw
38 .Op Fl b Ar blockingnr
40 .\" .Op X format is not implemented yet
45 utility formats optical media conforming to the MMC standard.
46 This includes CD, DVD, and Blu-Ray (BD) media.
48 The options are as follows:
49 .Bl -tag -width XbXblockingnrXX
51 Blank media when possible before formatting it.
52 .It Fl b Ar blockingnr
53 Explicitly select packet size in sectors
55 It is not recommended to change this from its default of 32.
57 Certify media for DVD-RAM / DV-RE.
58 The argument cert-num specifies:
59 .Bl -tag -offset indent
69 Print all SCSI/ATAPI command errors.
73 Grow last CD-RW/DVD-RW session.
75 Show help and print formatting choices for the inserted media.
77 Show help and print formatting choices for the inserted media.
79 Show help and print formatting choices for the inserted media.
81 Select MRW (Mount Rainier) error correcting background format.
83 Old style CD-RW formatting; recommended for CD-RW.
85 Explicitly set packet format.
87 Restart previously stopped MCD-MRW or DVD+RW background format.
89 Recompile defect list for DVD-RAM.
91 Grow spare space DVD-RAM / BD-RE.
93 Format DVD+MRW / BD-RE with extra spare space.
95 Wait until completion of background format.
98 Due to the enormous varieties in optical media,
100 is made as generic as possible.
101 This can result in confusion.
103 .Dl Ic mmcformat -B -O /dev/rcd0d
105 Blanks and then formats a CD-RW disc using the
108 It is recommended to use this
110 command unless your drive reports that it's not supported; in that case, resort
113 Note that a CD-RW disc can be reformatted without being blanked.
114 Blanking switches between sequential and fixed packet writing by
116 This can also help to revive old discs.
118 .Dl Ic mmcformat -F -M /dev/rcd0d
120 Format a CD-RW or a DVD+RW to use MRW (Mount Rainier).
121 This format tries to hide media flaws as much as possible by
128 command first appeared in
131 .An Reinoud Zandijk Aq reinoud@NetBSD.org
136 but that tool is very hard disk oriented.