Linux / UNIX Tech Support Forum
This is a discussion on Why is there a mismatch between df and du outputs? within the Linux hardware forums, part of the Linux Getting Started category; Ok, don't Laugh at me why is there a mismatch between df and du outputs? Code: df /home du /home ...
|
|||||||
| Linux hardware Discussion about Linux hardware related problems. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
| Sponsored Links | ||
|
|
|
||||
|
Linux/UNIX inode plays very important roll. A system can not deallocate an inode until Linux or UNIX has closed the file.
Another possibility is unlikned inode which is not allowing to reclaimed free space. Thus it result into different du and df output. |
|
||||
|
__________________
Vivek Gite Linux Evangelist |
|
|||
|
Quote:
It is a bit misleading since on most systems "vi" does not keep the file opened, if you see the expected differences then I'd be surprised. A better example would be to run: sleep 120 < /home/user/demo.txt & instead of vi on another terminal/console. Then remove, check usages, kill the job, then check again. Cheers. PS: On many/most Linux systems with a "/proc" filesystem, you can find open, deleted files with: ls -l /proc/[0-9]*/fd | grep ' (deleted)$' PPS: Presuming you have permissions, you can often access the file by that symbolic link; use 'wc' to determine the size or even copy the contents back to a disk file. |
|
||||
|
Quote:
__________________
Rocky Jr. What's wrong? I hope I am not making you uncomfortable... Never send a boy to do a mans job. |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| mtrr: type mismatch | piggy | Linux hardware | 1 | 02-08-2007 10:32 PM |