2005-07-25 15:26:40 +04:00
|
|
|
.\" $NetBSD: mscdlabel.8,v 1.4 2005/07/25 11:26:40 drochner Exp $
|
2002-05-29 23:39:06 +04:00
|
|
|
.\"
|
2005-07-25 15:26:40 +04:00
|
|
|
.Dd July 25, 2005
|
2002-05-29 23:39:06 +04:00
|
|
|
.Dt MSCDLABEL 8
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm mscdlabel
|
|
|
|
.Nd generate disk label from CD track information
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
2005-07-25 15:26:40 +04:00
|
|
|
.Op Ar device | file
|
2002-05-29 23:39:06 +04:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
|
|
|
is used to generate a
|
|
|
|
.Nx
|
2002-05-30 20:09:59 +04:00
|
|
|
disk label from track information read from the CD. This way, data
|
2002-05-29 23:39:06 +04:00
|
|
|
of previous sessions of a multi-session CD can be accessed.
|
|
|
|
.Pp
|
|
|
|
.Nm
|
2004-07-04 18:11:44 +04:00
|
|
|
scans the CD's TOC, beginning with the last track.
|
|
|
|
For each data track where an ISO9660 filesystem is identified,
|
|
|
|
basic information (volume label, creation date) is printed and
|
|
|
|
a partition entry added to the in-core disklabel.
|
2002-05-29 23:39:06 +04:00
|
|
|
.Pp
|
|
|
|
The raw partition (typically partition
|
|
|
|
.Em c ,
|
|
|
|
but
|
|
|
|
.Em d
|
|
|
|
on i386 and some other platforms) is left alone during this process.
|
2005-07-25 15:26:40 +04:00
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility can also be used on files or non-CD devices.
|
|
|
|
In this case a single track is assumed.
|
|
|
|
If the device supports disk labels, a label will be written
|
|
|
|
as described above. Otherwise, just the ISO volume label
|
|
|
|
information will be printed.
|
2002-05-29 23:39:06 +04:00
|
|
|
.Sh SEE ALSO
|
2002-05-30 20:09:59 +04:00
|
|
|
.Xr cdplay 1 ,
|
2002-05-29 23:39:06 +04:00
|
|
|
.Xr disklabel 8 ,
|
2002-05-30 20:09:59 +04:00
|
|
|
.Xr mbrlabel 8
|