System Administration Guide, Volume 1

How to Remount a UFS File System Without Large Files

When you mount a file system, the largefiles option is selected by default, which enables you to create files larger than 2 Gbytes. Once a file system contains large files, you cannot remount the file system with the nolargefiles option or mount it on a system running Solaris 2.6 or compatible versions, until you remove any large files and run fsck to reset the state to nolargefiles.

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

  1. Become superuser.

  2. Make sure there are no large files in the file system.


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

    mount-point

    Specifies the mount point of the file system you want to check for large files. 

    If large files exist within this file system, they must be removed or moved to another file system.

  3. Unmount the file system.


    # umount mount-point
    
  4. Reset the file system state.


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


    # mount -o nolargefiles mount-point
    

Example--Mounting a File System Without Large Files

The following example checks the /datab file system and remounts it with the nolargefiles option.


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