System Administration Guide: Virtualization Using the Solaris Operating System

ProcedureHow to Mount the File System Manually

You must be the zone administrator and have the Zone Management profile to perform this procedure. This procedure uses the newfs command, which is described in the newfs(1M) man page.

  1. Become superuser, or have the Zone Management rights profile in your list of profiles.

  2. In the zone my-zone, create a new file system on the disk.

    my-zone# newfs /dev/lofi/1
  3. Respond yes at the prompt.

    newfs: construct a new file system /dev/rlofi/1: (y/n)? y

    You will see a display that is similar to this:

    /dev/rlofi/1:   20468 sectors in 34 cylinders of 1 tracks, 602 sectors
            10.0MB in 3 cyl groups (16 c/g, 4.70MB/g, 2240 i/g)
    super-block backups (for fsck -F ufs -o b=#) at:
     32, 9664, 19296,
  4. Check the file system for errors.

    my-zone# fsck -F ufs /dev/rlofi/1

    You will see a display that is similar to this:

    ** /dev/rlofi/1
    ** Last Mounted on 
    ** Phase 1 - Check Blocks and Sizes
    ** Phase 2 - Check Pathnames
    ** Phase 3 - Check Connectivity
    ** Phase 4 - Check Reference Counts
    ** Phase 5 - Check Cyl groups
    2 files, 9 used, 9320 free (16 frags, 1163 blocks, 0.2% fragmentation)
  5. Mount the file system.

    my-zone# mount -F ufs /dev/lofi/1 /mnt
  6. Verify the mount.

    my-zone# grep /mnt /etc/mnttab

    You will see a display similar to this:

    /dev/lofi/1     /mnt    ufs