xref: /netbsd-src/usr.sbin/mscdlabel/mscdlabel.8 (revision c38e7cc395b1472a774ff828e46123de44c628e9)
1.\" $NetBSD: mscdlabel.8,v 1.4 2005/07/25 11:26:40 drochner Exp $
2.\"
3.Dd July 25, 2005
4.Dt MSCDLABEL 8
5.Os
6.Sh NAME
7.Nm mscdlabel
8.Nd generate disk label from CD track information
9.Sh SYNOPSIS
10.Nm
11.Op Ar device | file
12.Sh DESCRIPTION
13.Nm
14is used to generate a
15.Nx
16disk label from track information read from the CD.  This way, data
17of previous sessions of a multi-session CD can be accessed.
18.Pp
19.Nm
20scans the CD's TOC, beginning with the last track.
21For each data track where an ISO9660 filesystem is identified,
22basic information (volume label, creation date) is printed and
23a partition entry added to the in-core disklabel.
24.Pp
25The raw partition (typically partition
26.Em c ,
27but
28.Em d
29on i386 and some other platforms) is left alone during this process.
30.Pp
31The
32.Nm
33utility can also be used on files or non-CD devices.
34In this case a single track is assumed.
35If the device supports disk labels, a label will be written
36as described above. Otherwise, just the ISO volume label
37information will be printed.
38.Sh SEE ALSO
39.Xr cdplay 1 ,
40.Xr disklabel 8 ,
41.Xr mbrlabel 8
42