|
||||||||||
1. Managing Removable Media (Overview) 2. Managing Removable Media (Tasks) Managing Removable Media (Task Map) How to Format a Diskette (rmformat) How to Create a File System on Removable Media How to Create a File System on a DVD-RAM How to Check a File System on Removable Media How to Repair Bad Blocks on Removable Media How to Enable or Disable Write Protection on Removable Media How to Enable or Disable Read or Write Protection and Set a Password on Removable Media 3. Accessing Removable Media (Tasks) 4. Writing CDs and DVDs (Tasks) 5. Managing Devices (Overview/Tasks) 6. Dynamically Configuring Devices (Tasks) 7. Using USB Devices (Overview) 9. Using InfiniBand Devices (Overview/Tasks) 11. Administering Disks (Tasks) 12. SPARC: Adding a Disk (Tasks) 13. x86: Adding a Disk (Tasks) 14. Configuring Solaris iSCSI Targets and Initiators (Tasks) 15. Configuring and Managing the Solaris Internet Storage Name Service (iSNS) 16. The format Utility (Reference) 17. Managing File Systems (Overview) 18. Creating UFS, TMPFS, and LOFS File Systems (Tasks) 19. Mounting and Unmounting File Systems (Tasks) 20. Using The CacheFS File System (Tasks) 21. Configuring Additional Swap Space (Tasks) 22. Checking UFS File System Consistency (Tasks) 23. UFS File System (Reference) 24. Backing Up and Restoring File Systems (Overview) 25. Backing Up Files and File Systems (Tasks) 26. Using UFS Snapshots (Tasks) 27. Restoring Files and File Systems (Tasks) 28. UFS Backup and Restore Commands (Reference) 29. Copying UFS Files and File Systems (Tasks) |
Formatting DiskettesYou can use the rmformat command to format and protect rewritable diskettes. File systems are mounted automatically. So, you might have to unmount media before you can format it, if the media contains an existing file system. The rmformat command has three formatting options:
Removable Media Hardware ConsiderationsKeep the following restrictions in mind when working with diskettes:
Diskette Hardware ConsiderationsKeep the following in mind when formatting diskettes:
A Solaris system can format the following diskette types:
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, regardless of whether the diskette is, in fact, a 1.44 Mbyte diskette, 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. How to Load Removable MediaFor information about removable media hardware considerations, see Removable Media Hardware Considerations.
How to Format a Diskette (rmformat)You can use the rmformat command to format a diskette. By default, this command creates two partitions on the media: partition 0 and partition 2 (the whole media).
This example shows how to format a diskette. $ rmformat -F quick /dev/rdiskette Formatting will erase all the data on disk. Do you want to continue? (y/n) y ......................................................................... How to Create a File System on Removable Media
The following example shows how to format a diskette and create a UFS file system on the diskette. $ rmformat -F quick /dev/rdiskette Formatting will erase all the data on disk. Do you want to continue? (y/n)y $ su # /usr/sbin/newfs /dev/rdiskette newfs: construct a new file system /dev/rdiskette: (y/n)? y /dev/rdiskette: 2880 sectors in 80 cylinders of 2 tracks, 18 sectors 1.4MB in 5 cyl groups (16 c/g, 0.28MB/g, 128 i/g) super-block backups (for fsck -F ufs -o b=#) at: 32, 640, 1184, 1792, 2336,Example 2-3 Formatting a Diskette for a PCFS File System This example shows how to create a PCFS file system with an alternate fdisk partition. In these examples, vold is not running. $ rmformat -F quick /dev/rdsk/c0t4d0s2:c Formatting will erase all the data on disk. Do you want to continue? (y/n) y $ su # fdisk /dev/rdsk/c0t4d0s2:c # mkfs -F pcfs /dev/rdsk/c0t4d0s2:c Construct a new FAT file system on /dev/rdsk/c0t4d0s2:c: (y/n)? y # This example shows how to create a PCFS file system without an fdisk partition. $ rmformat -F quick /dev/rdiskette Formatting will erase all the data on disk. Do you want to continue? (y/n) y $ su # mkfs -F pcfs -o nofdisk,size=2 /dev/rdiskette Construct a new FAT file system on /dev/rdiskette: (y/n)? y # How to Create a File System on a DVD-RAMUse this procedure to create a file system on a DVD-RAM.
How to Check a File System on Removable Media
The following example shows how check the consistency of a PCFS file system on media. In this example, vold is not running. # fsck -F pcfs /dev/rdsk/c0t4d0s2 ** /dev/rdsk/c0t4d0s2 ** Scanning file system meta-data ** Correcting any meta-data discrepancies 1457664 bytes. 0 bytes in bad sectors. 0 bytes in 0 directories. 0 bytes in 0 files. 1457664 bytes free. 512 bytes per allocation unit. 2847 total allocation units. 2847 available allocation units. # How to Repair Bad Blocks on Removable MediaYou can only use the rmformat command to verify, analyze, and repair bad sectors that are found during verification if the drive supports bad block management. Most diskettes and USB memory sticks do not support bad block management. If the drive supports bad block management, a best effort is made to rectify the bad block. If the bad block cannot be rectified despite the best effort mechanism, a message indicates the failure to repair the media.
Applying Read or Write Protection and Password Protection to Removable MediaYou can apply read protection or write protection, and set a password, on removable media that support this feature. How to Enable or Disable Write Protection on Removable Media
How to Enable or Disable Read or Write Protection and Set a Password on Removable MediaYou can apply a password with a maximum of 32 characters for removable media that support this feature. You will receive a warning message if you attempt to apply a password on media that does not support this feature.
This example shows how to enable write protection and set a password on a diskette. $ rmformat -W enable /dev/rdiskette Please enter password (32 chars maximum): xxx Please reenter password: xxx This example shows to disable read protection and remove the password on a diskette. $ rmformat -R disable /dev/rdiskette Please enter password (32 chars maximum): xxx Please reenter password: xxx |
|||||||||
|