System Administration Guide: Devices and File Systems

ProcedureHow to Mount a UFS File System Without Large Files (mount Command)

When you mount a file system, the largefiles option is selected by default. This option enables you to create files larger than 2 GB. If a file system contains large files, you cannot remount the file system with the nolargefiles option or mount it on a system that is running older Solaris versions, until you remove any large files and run the fsck command to reset the state to nolargefiles.

This procedure assumes that the file system is in the /etc/vfstab file.

  1. Become superuser or assume an equivalent role.

  2. Create a mount point for the file system to be mounted, if necessary.

    # mkdir /mount-point

    There must be a mount point on the local system to mount a file system. A mount point is a directory to which the mounted file system is attached.

  3. Ensure that no large files exist in the file system.

    # cd /mount-point
    # find . -xdev -size +20000000 -exec ls -l {} \;

    where /mount-point identifies the mount point of the file system you want to check for large files.

  4. Remove or move any large files in this file system to another file system, if necessary.

  5. Unmount the file system.

    # umount /mount-point
  6. Reset the file system state.

    # fsck /mount-point
  7. Remount the file system with the nolargefiles option.

    # mount -o nolargefiles /mount-point

Example 18–6 Mounting a File System Without Large Files (mount Command)

The following example shows how to check the /datab file system and remount it with the nolargefiles option.

# cd /datab
# find . -xdev -size +20000000 -exec ls -l {} \;
# umount /datab 
# fsck /datab
# mount -o nolargefiles /datab