Sponsored Content
Full Discussion: Disk Space full
Top Forums UNIX for Advanced & Expert Users Disk Space full Post 302576840 by admin_xor on Saturday 26th of November 2011 05:48:28 PM
Old 11-26-2011
This is a classic example of what happens when you run out of system resources like memory. The shell cannot create another process ( fork ) and thus you are restricted to the built-in commands provided by the shell you are using.

You copied the large file in /tmp which is tmpfs and resides on virtual memory. Dumping files in /tmp means consuming virtual memory. In turn, less room for other processes.

In this case, here is what you could do:
Code:
cd /tmp; echo *; >large_file

All of the commands are shell built-in (work in bourne and korn shells) and shell does not need to fork another process. So, cd lets you in the /tmp directory, echo lets you see the files in that and figure out the name of the file, > brings the size of the file down to zero solving your problem.
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

disk full

Please solve the following NOTICE HTFS:No space on dev hd(1/42) (2 Replies)
Discussion started by: msuheel
2 Replies

2. Linux

Unable to remove file using rm: Disk space is full

Hi all, My disk space is 100% full. df -k <dir> -> 100% One of my debug files consume huge amount of space and i want to remove the same to start off fresh debugs. However i'm unable to remove the file giving out the following error message: rm -f debug.out22621 rm: cannot remove... (8 Replies)
Discussion started by: Pankajakshan
8 Replies

3. Linux

Disk full 100%

one of my servers / was full by 100% i cleard some space, now though i have enough space on / partition still df is showing disk usage as 100% am not able to create any single txt file ? why so ? (3 Replies)
Discussion started by: bryanabhay
3 Replies

4. Solaris

solaris 8 / disk space almost full

Hi All, My Solaris 8 firewall server is getting full on the / filesystem. I don't know which one should I delete. I think there's no more to delete on the file like logs or temp file. Does someone knows about deleting a safe file (or folder) on FS like /usr, /opt, /platform, /kernel, /sbin?... (7 Replies)
Discussion started by: itik
7 Replies

5. UNIX for Dummies Questions & Answers

how to install new packages when disk space is full

during installation i created four partitions mainly / 5GB /home 1GB /boot 100MB swap 2GB now since i didnt make the /usr partition all of the packages were being installed in the / partition ..now all the space in the / partition is filled ...i ran du -h... (3 Replies)
Discussion started by: tarunicon
3 Replies

6. AIX

Paging space is 100% full

Paging space is 100% full? what step can i take (3 Replies)
Discussion started by: ramraj731
3 Replies

7. Solaris

Read Only Permission after the space is full.

Hi, Is there any chance that a file system that mounted on the server becomes read only when the space in that file system becomes full? Regards, Sreejith (9 Replies)
Discussion started by: Sreejith K
9 Replies

8. Emergency UNIX and Linux Support

Swap space (almost) full

Hello, This is RHEL 5.7. swap is almost full, but I am not sure, what to release and how to release space. This is production server so I would like to try all possible options before reboot. # top top - 00:18:26 up 327 days, 7:01, 3 users, load average: 0.16, 0.21, 0.18 Tasks: 782 total, ... (7 Replies)
Discussion started by: solaris_1977
7 Replies

9. Shell Programming and Scripting

Disk full alerts

i want to create 1 script to monitor 1 particular filesystem out of the diferent filesystems. if disk space of that particular filesystem increases by 80% it sends an alert mail to an email id ---------- Post updated at 04:18 PM ---------- Previous update was at 04:17 PM ---------- no. I am... (1 Reply)
Discussion started by: rakeshhhhhhhh
1 Replies
fitset(8)						      System Manager's Manual							 fitset(8)

Name
       fitset - determine if subset fits on a system

Syntax
       fitset [ -d ] [ root-path ]

Description
       The utility is used to determine if the files in a software subset will fit on a system.

       Subset inventory records are read from the standard input. For each record, the space required to install the file described in that record
       is deducted from the available free space on the file system to which it would be installed.  Only currently mounted UFS file  systems  are
       used  in  the computations. Space requirements for files already on the disk will be modified to account for the size of the resident copy.
       After all records have been read, the free space computed for all file systems is checked. If the space required to install the files would
       cause any file system to be more than 90% full, returns an exit status of -1.

       The  utility  uses  to size all subsets before attempting to install them.  The root-path argument is the pathname of the top directory for
       the hierarchy into which the files are going to be installed. If no root-path is specified, the directory '/' is assumed.

Options
       -d     Enable debugging. This will make print voluminous status information on standard output. This information is the initial file system
	      statistics,  the	file  system  location	of  the file from each input record and the statistics for the file system after the space
	      required to install the file has been deducted.

Restrictions
       NFS mounts are ignored. If software would be installed to an NFS mounted directory, it is sized against the file system containing the  NFS
       mount point.

       The  program  does  not	detect the use of symbolic links in paths to root-path or any of the mount points. This can cause to size a subset
       incorrectly if root-path is a symbolic link or a symbolic link exists in the path of any of the pathnames used with the	command  to  mount
       local file systems.

Examples
       To determine if a particular subset will fit on the system, redirect the contents of the subset inventory file into For example:
	   fitset < /usr/etc/subsets/ULTUUCP400.inv

       To determine if the same subset will fit in a hierarchy rooted at the command would be:
	   fitset /var/tmp/root < /usr/etc/subsets/ULTUUCP400.inv

Diagnostics
       fitset: root path must be absolute
       A relative pathname was specified for root-path.  This path must be absolute.

       fitset: cannot stat root-path (error message)
       The root-path cannot be accessed. The error message provides more information.

       fitset: root-path is not a directory.
       Either root-path is not a directory or it is a symbolic link to something which is not a directory.

Files
       Subset inventory files

See Also
       stl_inv(5), setld(8)
       Guide to Preparing Software for Distribution on ULTRIX Systems

																	 fitset(8)
All times are GMT -4. The time now is 05:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy