Home > du error 118337

How to Fix the DU Error 118337?

Alton Alexander
By Alton AlexanderUpdated on June 3rd, 2022

Du error 118337 is a disk I/O error that can occur when the disk is full, when the disk is damaged, or when there is a problem with the disk driver. This error can also occur if the disk is not properly formatted.

You are here because you have a question about:

  • fannie mae error code 118337
  • du error code 118337
  • du error 118337

1. Restart your computer and try again

1.Click on the Start button and type “cmd” in the search bar. 2.Right-click on the “cmd” search result and select “Run as Administrator”. 3.Type “shutdown -r now” and press Enter. 4.Wait a few minutes and then restart your computer.

2. Try running du again with sudo

  1. Type sudo du in a terminal window to open the du command.
  2. Type the path to the directory you want to check for size.
  3. Type the size of the directory.
  4. If the size of the directory is bigger than the size you specified in Step 2, du will report an error.
  5. To fix the error, you can delete any files that are larger than the size you specified in Step 2. Or, you can use the sudo command to change the size of the directory so that it matches the size you specified.

3. Try a different directory

The following steps can be taken in order to try a different directory in order to fix the du error:

  1. Open Terminal and type the following command: cd /tmp
  2. Type the following command to list the files and folders in the /tmp directory: ls
  3. If the du command reports that there are too many files in the /tmp directory, then the problem may be with the files that are being attempted to be copied. In order to troubleshoot this issue, it may be helpful to remove some of the files from the /tmp directory so that the du command can run more smoothly. To do this, type the following command: rm *
  4. If the du command still reports an error, then the problem may be with the pathname that is being used to access the files in the /tmp directory. In order to try a different pathname, type the following command: cd /
  5. Type the following command to list the files and folders in the / directory: ls
  6. If the du command reports that there are too many files in the / directory, then the problem may be with the pathname that is being used to access the files in the / directory. In order to try a different pathname, type the following command: cd /usr/local/bin
  7. Type the following command to list the files and folders in the /usr/local/bin directory: ls
  8. If the du command reports that there are too many files in the /usr/local/bin directory, then the problem may be with the pathname that is being used to access the files in the /usr/local/bin directory. In order to try a different pathname, type the following command: cd /usr/local/sbin
  9. Type the following command to list the files and folders in the /usr/local/sbin directory: ls

4. Check your permissions on the directory you're trying to run du on

  1. In Windows Explorer, open the directory you want to check your permissions on.
  2. Right-click the directory and choose Properties.
  3. On the Security tab, click the Edit button.
  4. In the Edit Security Settings dialog box, click the Add button.
  5. In the Select Users, Groups, or Computers dialog box, click the Browse button.
  6. In the Select Users, Groups, or Computers dialog box, click the Computer Account button.
  7. In the Select Computer dialog box, click the Checkbox next to the user or group you want to check permissions for.
  8. Click OK.
  9. In the Edit Security Settings dialog box, click the OK button.
  10. In the Properties dialog box, click the Security tab.
  11. In the Permissions for Users list, click the check box next to the user or group you want to check permissions for.
  12. In the Permissions for Groups list, click the check box next to the group you want to check permissions for.
  13. In the Permissions for Files list, click the check box next to the file you want to check permissions for.
  14. Click OK.
  15. In the Properties dialog box, click the OK button.
  16. In the Security tab, click the OK button.
  17. Close Windows Explorer.

5. Check if the directory you're trying to run du on exists

  1. Open a command prompt and type dir.
  2. If the directory does not exist, du will return an error.
  3. To create the directory, you can use the mkdir command.
  4. If the directory still does not exist, you can create it using the Windows command line by entering the following: mkdir C:\dir_name