System Administration Guide, Volume I

How to Place a UFS File System on a PCMCIA Memory Card

Even though the procedure for adding a UFS file system is the same for UFS PCMCIA memory cards formatted on x86 platforms and SPARC platforms, a UFS PCMCIA memory card formatted on a SPARC platform can only be used on another SPARC platform, and a UFS PCMCIA memory card formatted on an x86 platform can only be used on an x86 platform running Solaris.

  1. Format the PCMCIA memory card for a UFS file system.

    Use the procedure "How to Format a UFS PCMCIA Memory Card".

  2. Use the newfs(1M) command and the full pathname to the Volume Management directory to create a UFS file system on the PCMCIA memory card.


    $ /usr/sbin/newfs -v /vol/dev/aliases/pcmem0
    

    -v

    Prints status messages. 

    /vol/dev/aliases/pcmem0

    Indicates the location of the memory card.  

    The newfs(1M) command displays a message asking you to confirm the creation of the file system.

  3. Confirm the creation of the file system.


    newfs: construct a new file system  \
     
           /vol/dev/aliases/pcmem0:(y/n)? y
    

    A status message is displayed, indicating the particulars of the file system and the PCMCIA memory card's formatting:


    mkfs -F ufs /vol/dev/aliases/pcmem0 2848 8 2 8192 1024 16 \
     
        10 60 2048 t 0 -1 8 -1
     
    /vol/dev/aliases/pcmem0:  2848 sectors in 128 cylinders of \
     
        2 tracks, 8 sectors
     
    1.0MB in 8 cyl groups (16 c/g, 0.12MB/g, 64 i/g)
     
    super-block backups (for fsck -F ufs -o b=#) at:
     
        32, 304, 544, 816, 1056, 1328, 1568, 1840

    The PCMCIA memory card is now ready to be used on a SPARC platform. However, before Volume Management recognizes the memory card, you must use the volrmmount(1) command as described in the following step.

  4. Use the volrmmount command with the -i option to notify Volume Management that the memory card is inserted.


    $ volrmmount -i pcmem0
    

    The PCMCIA memory card should now be mounted under /pcmem/pcmem0.

  5. Verify the UFS file system is on the PCMCIA card by using the ls command on the /pcmem directory.

    If the pcmem0 subdirectory appears, the PCMCIA memory card has a UFS file system and has been mounted properly.


    $ ls /pcmem
    pcmem0

Example--Placing a UFS File System on a PCMCIA Memory Card


$ volcheck -v
media was found
$ /usr/sbin/newfs -v /vol/dev/aliases/pcmem0
newfs: construct a new file system  \
 
       /vol/dev/aliases/pcmem0:(y/n)? y
mkfs -F ufs /vol/dev/aliases/pcmem0 ...
 
$ volrmmount -i pcmem0
 
media was found