When you mount a file system, the largefiles option is selected by default. This option 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 that is running Solaris 2.6 or compatible 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.
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.
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.
Remove or move any large files in this file system to another file system, if necessary.
Unmount the file system.
# umount /mount-point |
Reset the file system state.
# fsck /mount-point |
Remount the file system with the nolargefiles option.
# mount -o nolargefiles /mount-point |
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 |