System Administration Guide

How to Remount a File System Without Large Files

After you mount a file system with the default largefiles mount option and large files have been created, you cannot remount the file system with the nolargefiles option until you remove any large files and run fsck to reset the state to nolargefiles.

  1. Become superuser.

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


    # cd /file-system
    # find . xdev -size +2000000 -exec ls -l {} \;
     
    

    file-system

    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 /file-system
    
  4. Reset the file system state.


    # fsck /dev/rdsk/device-name
    
  5. Remount the file system with the nolargefiles option.


    # mount -o nolargefiles /dev/rdsk/device-name
    

Example -- Mounting a File System Without Large Files

In this example, /datab is checked for large files and /dev/dsk/c0t3d0s7 is then mounted on the /datab directory.


# cd /datab
# find . xdev -size +2000000 -exec ls -l {} \;
# find . xdev -size +2000000 -exec ls -l {} \;
# umount /datab 
# fsck /dev/rdsk/c0t3d0s7 /files1
# mount -o nolargefiles /dev/dsk/c0t3d0s7 /files1