Sponsored Content
Top Forums UNIX for Beginners Questions & Answers CentOS 6 ran out of space, need to reclaim it Post 303038160 by MadeInGermany on Tuesday 27th of August 2019 05:06:58 AM
Old 08-27-2019
In parallel let me help you to look for the files that fill your / file system.
Your post#11 explains some things. (In your post#1 you said that "df -h" gave output for "/" only. That was misleading.)
Can you shortly umount the /mnt/backup and look for files? Such files are invisible when mounted.
Code:
umount /mnt/backup
ls -lah /mnt/backup
du -sh /mnt/backup
mount /mnt/backup

(Just seeing that Peasant has the same idea in post#13.)
These 2 Users Gave Thanks to MadeInGermany For This Post:
 

10 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

Ran out of space on /dev/root partition

hi, I have a SCO unix server which has a 36gb hard drive, but the IT company who supplied it assigned 1gb to /dev/root, 15mb to /dev/boot and 33gb to /dev/u. The /dev/root partition is now full, is there a way I can use the 33gb assigned to /dev/u without loosing any data, preferably... (2 Replies)
Discussion started by: Martyn
2 Replies

2. Shell Programming and Scripting

which user ran which command

can we come to know all the command ran bya user for last 1 day (1 Reply)
Discussion started by: narang.mohit
1 Replies

3. UNIX for Dummies Questions & Answers

Reclaim deleted disk space

I have a disk space issue on one of my unix servers. it is showing 98% full.. i found the offending folder and removed it. but i have not reclaimed the disk space. is there another command that i need ? thank you in advance for any assistance. (4 Replies)
Discussion started by: JanSP
4 Replies

4. Shell Programming and Scripting

Identify if ran by su or sudo?

Recently I was on an operational call and heard the people running my code placing the code in the /tmp directory and running as root. I had not planned on that. So I want to add some checks to my code (using ksh93): # ---------- ---------- ---------- # root not allowed to run this #... (3 Replies)
Discussion started by: ericdp63
3 Replies

5. Shell Programming and Scripting

how to find whether a script ran or not

Hi, I have written a script and placed in an application and the script can be executed manually only. But somehow one of the method in the script is being called and bringing the application down. But we are not able to find any instance of script running. Is there a way to findout whether the... (1 Reply)
Discussion started by: Satyak
1 Replies

6. Linux

How to reclaim the space which i used to increse the swap space on Xen,

Hi, i have done a blunder here, i increased the swap space on Xen5.6 server machine using below steps :- 1056 dd if=/dev/zero of=/root/myswapfile bs=1M count=1024 1057 ls -l /root/myswapfile 1058 chmod 600 /root/myswapfile 1059 mkswap /root/myswapfile 1060 swapon /root/myswapfile ... (1 Reply)
Discussion started by: apm
1 Replies

7. Red Hat

On CentOS, moving space from large free directory to another

Hi. My "/usr" folder is running out of space. My "/home" folder is quite large and has a lot of free space. As follows: Filesystem Type Size Used Avail Use% Mounted on ... /dev/sda5 ext3 9.7G 2.6G 6.7G 28% / /dev/sda7 ext3 152G 16G 128G 11% /home /dev/sda3 ... (7 Replies)
Discussion started by: pkiula
7 Replies

8. Red Hat

How to Upgrade Centos 5.7 using Centos 5.8 ISO image on Vmware workstation

Dear Linux Experts, On my windows 7 desktop with the help of Vmware workstation (Version 7.1), created virtual machine and installed Centos 5.7 successfully using ISO image. Query : Is this possible to upgrade the Centos 5.7 using Centos 5.8 ISO image to Centos version 5.8?.. if yes kindly... (2 Replies)
Discussion started by: Ananthcn
2 Replies

9. AIX

How to reclaim hard disks and IP's in AIX?

Hello I recently received a request to reclaim hard disks and IP addresses within an AIX system(s). THe file systems are no longer in use and the client has indicated that it is OK to remove them and reclaim the disks and release the IP's. Now, since the file systems belong to a Volume group I... (8 Replies)
Discussion started by: Joseph Sabo
8 Replies

10. UNIX for Beginners Questions & Answers

Safe way to shrink lvm vg_*-lv_swap partition and reclaim freed space on Linux?

Hello, # lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sr0 11:0 1 1024M 0 rom sda 8:0 0 38.2G 0 disk ├─sda1 8:1 0 500M 0 part /boot └─sda2 8:2 ... (2 Replies)
Discussion started by: centosadmin
2 Replies
cddevsuppl(8)						      System Manager's Manual						     cddevsuppl(8)

NAME
cddevsuppl - Sets and gets the major and minor numbers of a device file on a Rock Ridge format CD-ROM SYNOPSIS
/usr/sbin/cddevsuppl -m mapfile [-c] /usr/sbin/cddevsuppl -u unmapfile [-c] /usr/sbin/cddevsuppl [-c] OPTIONS
Directs cddevsuppl to continue processing the device file mappings if an error is returned for a specific device file mapping. An error message for that specific device file will be printed to standard error. The default action is to stop processing when an error has occurred. This option is useful only when used in combination with the -m mapfile or -u unmapfile options. Maps the major and minor num- bers for device files. The mappings are specified in mapfile. This text file has one entry for each device file mapping in the format: device_file_path new_major new_minor The device_file_path field is the full pathname of the file on the CD-ROM, and the new_major and new_minor fields are integers. The fields are separated by white space. The entries are separated by newlines. Anything beyond the third field is ignored. The follow- ing is an example of mapfile: /mnt/dev/ttys4 8 2050 /mnt/dev/zero 38 0 The maximum number of mappings for a Rock Ridge compact disk is defined in the header file <sys/cdrom.h>. If a device file is mapped again, the previous device file mapping for the device file is overridden. Unmaps the major and minor numbers for device files. The mappings are specified in unmapfile. This text file has one entry for each device file mapping in the format: device_file_path The device_file_path field is the full pathname of the file on the CD-ROM. The entries are separated by newlines. Anything beyond the first field is ignored. The following is an example of mapfile: /mnt/dev/zero DESCRIPTION
The cddevsuppl command is used to map and unmap the major and minor numbers of a device file on a mounted Rock Ridge format CD-ROM. The -m mapfile option maps the major and minor number of device files and displays the new setting, if the mapping is successful. This option is used to add new mappings or to change existing mappings, in case the major and minor numbers of the device files are incorrect. The -u unmapfile option removes the existing mappings for files specified in unmapfile and displays the device file and the major/minor numbers as recorded on the CD-ROM. If no options are used, the cddevsuppl command displays the existing device file mappings. If the mapping table is empty, nothing is dis- played. Note: The mapping table is cleared after a mount or umount command. If you want to open a device file on a CD-ROM, the dev option must be specified in the mount command. See mount(8) for more information. RESTRICTIONS
Only the superuser can change administrative CD-ROM features successfully. To read the current device file mappings, the user must have read permission on the device file. Mappings should be established before affected device files are used. If the command is applied for device file mappings when device files have already been opened, the effect of this command on these files is undefined. Only existing devices files on the CD-ROM can be mapped. These files are indicated by the mode: b (block special file) or c (character spe- cial file). Use the ls -l command to display the file modes.. If you access device files on a CD-ROM that are mapped to inappropriate major and minor numbers, undefined results can occur. The device file mappings for a mounted CD-ROM are eliminated when the CD-ROM is unmounted. The cddevsuppl(8) command is not supported in a TruCluster Server environment. EXIT STATUS
The following exit values are returned: Successful completion. File not found, file is not a file or directory within a CD-ROM file hier- archy, or access denied. Not user with appropriate privileges. Too many mappings. Parameter error or bad format in a mapping file. File is not a device file. File not previously mapped. EXAMPLES
The following example shows the output of the cddevsuppl command when no CD-ROM is mounted and no files are mapped: # cddevsuppl # The fol- lowing example shows the output of the cddevsuppl command after a CD-ROM file system has been mounted: # /usr/sbin/mount -t cdfs -o nover- sion,rrip,dev /dev/disk/cdrom0c /mnt # cddevsuppl # The following example maps the major and minor numbers of files mounted in the previous example and specified in mapfile. Note: If you want, you can issue an ls -l command before and after the cddevsuppl command to verify that the major and minor numbers have changed. # cddevsuppl -m /tmp/mapfile /mnt/dev/ttys4: (8,2050) /mnt/dev/zero: (38,0) The following exam- ple unmaps the major and minor numbers of the file specified in unmapfile file and shows the result of the subsequent cddevsuppl command: # cddevsuppl -u /tmp/unmapfile /mnt/dev/zero: (1,5) # cddevsuppl /mnt/dev/ttys4: (8,2050) The following example unmounts the /mnt file system and shows the output of the subsequent cddevsuppl command: # umount /mnt # cddevsuppl # SEE ALSO
Commands: mount(8) Files: cdfs(4) Functions: cd_setdevmap(3), cd_getdevmap(3) cddevsuppl(8)
All times are GMT -4. The time now is 03:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy