Even though the procedure for adding a UFS file system is the same for UFS diskettes formatted on IA platforms and SPARC platforms, a UFS diskette formatted on a SPARC platform can only be used on another SPARC platform, and a UFS diskette formatted on an IA platform can only be used on an IA platform.
Format the diskette for a UFS file system.
Create a SunOS file system on the diskette.
$ /usr/sbin/newfs -v /vol/dev/aliases/floppy0 |
-v |
Prints status messages. |
/vol/dev/aliases/floppy0 |
Indicates the location of the floppy. |
The newfs(1M) command displays a message asking you to confirm the creation of the file system.
Confirm the creation of the file system.
newfs: construct a new file system /vol/dev/aliases/floppy0:(y/n)? y |
A status message is displayed, indicating the particulars of the file system and the diskette's formatting.
The diskette is now ready to be used on a SPARC platform. However, before Volume Management recognizes it, you must run the volrmmount command, as described in the following steps.
Invoke the volrmmount command using the -i option to notify Volume Management that the diskette is inserted.
$ volrmmount -i floppy0 |
Verify that the UFS file system is on the diskette by using the ls command on the /floppy directory.
If the floppy0 subdirectory appears, the diskette has a UFS file system and has been mounted properly.
$ ls /floppy floppy0 |
$ volcheck -v media was found $ /usr/sbin/newfs -v /vol/dev/aliases/floppy0 newfs: construct a new file system /vol/dev/aliases/floppy0: (y/n)? y mkfs -F ufs /vol/dev/aliases/floppy0 2880 18 2 8192 1024 16 10 5 2048 t 0 -1 8 15 /vol/dev/aliases/floppy0: 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, $ volrmmount -i floppy0 $ ls /floppy floppy0 |