![]() |
![]() |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Chapter 19Formatting Removable Media (Tasks)This chapter describes how to format removable media from the command line in the Solaris environment. For information on the procedures associated with formatting removable media, see Formatting Removable Media (Task Map). For background information on removable media, see Chapter 17, Managing Removable Media (Overview). Formatting Removable Media (Task Map)
Formatting Removable Media OverviewThe rmformat command is a non-superuser utility that you can use to format and protect rewritable removable media. The rmformat command has three formatting options:
Formatting Removable Media GuidelinesKeep the following in mind when formatting removable media:
Removable Media Hardware ConsiderationsThis section describes removable media hardware considerations. Diskette Hardware ConsiderationsKeep the following in mind when formatting diskettes:
A Solaris system can format diskettes for use on both Solaris and DOS systems. However, the hardware platform imposes some limitations. These limitations are summarized in the following table.
Diskettes formatted for UFS are restricted to the hardware platform on which they were formatted. In other words, a UFS diskette formatted on a SPARC based platform cannot be used for UFS on an x86 platform, nor can a diskette formatted on an x86 platform be used on a SPARC based platform. This is because the SPARC and x86 UFS formats are different. SPARC uses little-endian bit coding, x86 uses big-endian. A complete format for SunOS file systems consists of the basic "bit" formatting plus the structure to support a SunOS file system. A complete format for a DOS file system consists of the basic "bit" formatting plus the structure to support either an MS-DOS or an NEC-DOS file system. The procedures required to prepare a diskette for each type of file system are different. Therefore, before you format a diskette, consider which procedure to follow. For more information, see Formatting Removable Media (Task Map). On a Solaris system (either SPARC or x86), you can format diskettes with the following densities.
By default, the diskette drive formats a diskette to a like density. This default means that a 1.44 Mbyte drive attempts to format a diskette for 1.44 Mbytes, whether the diskette is in fact a 1.44 Mbyte diskette or not, unless you instruct it otherwise. In other words, a diskette can be formatted to its capacity or lower, and a drive can format to its capacity or lower. PCMCIA Memory Card Hardware ConsiderationsA Solaris platform can format PCMCIA memory cards for use on both Solaris and DOS platforms. However, the hardware platform imposes some limitations. These limitations are summarized in the following table.
PCMCIA memory cards formatted for UFS are restricted to the hardware platform on which they were formatted. In other words, a UFS PCMCIA memory card formatted on a SPARC platform cannot be used for UFS on an x86 platform. Likewise, PCMCIA memory cards formatted on an x86 platform cannot be used on a SPARC platform. This is because the SPARC and x86 UFS formats are different. A complete format for UFS file systems consists of the basic "bit" formatting plus the structure to support a UFS file system. A complete format for a DOS file system consists of the basic "bit" formatting plus the structure to support either an MS-DOS or an NEC-DOS file system. The procedures required to prepare a PCMCIA memory card for each type of file system are different. Therefore, before you format a PCMCIA memory card, consider which file system you are using.
|
$ volcheck -v media was found |
Two status messages are possible:
Volume management detected the media and will attempt to mount it in the directory described in Table 18-1.
If the media is formatted properly, no error messages appear in the console.
If the media is not formatted, the "media was found" message is still displayed, but the error messages similar to the following appear in the Console:
fd0: unformatted diskette or no diskette in the drive fd0: read failed (40 1 0) fd0: bad format You must format the media before volume management can mount it. For more information, see Chapter 19, Formatting Removable Media (Tasks). | |
| Volume management did not detect the media. Make sure the media is inserted properly and run volcheck again. If unsuccessful, check the media, it could be damaged. You can also try to mount the media manually. |
Verify that the media was mounted by listing its contents.
For example, do the following for a diskette:
$ ls /floppy floppy0 myfiles |
As described earlier, floppy0 is a symbolic link to the actual name of the diskette, In this case, myfiles. If the diskette has no name but is formatted correctly, the system will refer to it as unnamed_floppy.
If nothing appears under the /floppy directory, the diskette was either not mounted or is not formatted properly. To find out, run the mount command and look for the line that begins with /floppy (usually at the end of the listing):
/floppy/name on /vol/dev/diskette0/name
If the line does not appear, the diskette was not mounted. Check the console window for error messages.
Previous Contents Index Next ![]() |