Go Back   The macosxhints Forums > OS X Help Requests > System



Reply
 
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
Old 06-25-2003, 05:02 PM   #1
eoinrussell
Prospect
 
Join Date: Jun 2003
Posts: 5
OS X thinks Disk Full - ?

I'm hoping this is an easy one. Out of the blue on a restart from Classic, OS X seems to think my disk is full. I cannot copy files and apps that write a file on startup all 'unexpectedly quit'. I have plenty of free disk space and have tried logging in as a different user - no luck.

Any ideas?

Thanks.
eoinrussell is offline   Reply With Quote
Old 06-25-2003, 05:07 PM   #2
Gimpy00Wang
Triple-A Player
 
Join Date: May 2003
Location: PA
Posts: 91
Are you possibly out of inodes? Do a "df -i" and look at iused and ifree. This is hopefully not the case since you should have millions of inodes (depending on the size of your disk), but it's wortht a check...

- G!mpy
Gimpy00Wang is offline   Reply With Quote
Old 06-25-2003, 05:21 PM   #3
hayne
Site Admin
 
Join Date: Jan 2002
Location: Montreal
Posts: 32,473
Quote:
Originally posted by Gimpy00Wang
Are you possibly out of inodes? Do a "df -i" and look at iused and ifree.

Before getting to the original poster's problem, I'd like to note that 'df -i' does not do what you think it does. Inodes as they are usually understood in traditional UNIX filesystems do not exist in HFS+ (OS X's default filesystem). See my posting titled "'df -i' output understood" on this thread: http://forums.macosxhints.com/showth...threadid=11940

Now back to the problem.
The use of the 'df' command (without the -i) would indeed give us more info. Please copy and paste back here the results of executing the following command in Terminal:

df /

It might also be a good idea to startup in single-user mode (hold Command + S while restarting) and type 'fsck' at the prompt. Repeat until it says the disk appears to be okay and then type 'reboot'. This checks your disk for problems and fixes them just as Disk Utility does.
hayne is offline   Reply With Quote
Old 06-25-2003, 05:29 PM   #4
eoinrussell
Prospect
 
Join Date: Jun 2003
Posts: 5
ok - I solved the problem. I checked the inodes and whatnot. df / reported that I had no available space. I actualy had about 200 megs. I dumped another 400 megs of stuff and now everything is fine - df / reports available space. This does not make much sense to me but at least I can launch my apps again.

Thanks for the help.
eoinrussell is offline   Reply With Quote
Old 06-25-2003, 05:47 PM   #5
hayne
Site Admin
 
Join Date: Jan 2002
Location: Montreal
Posts: 32,473
10% buffer

Quote:
Originally posted by eoinrussell
df / reported that I had no available space. I actualy had about 200 megs.

How did you determine that you had 200 MB free disk space? I guess you are calculating this from the total size of the disk and the amount you have used. But it is not possible to use 100% of a disk's capacity as explained below.

Note that 'df' subtracts off a 10% buffer zone before reporting "available" space. E.g. if your disk holds 100 GB, and you have used 90 GB, 'df' will report zero space available.
I believe the kernel does not let normal (non-root) users use up more than 90% of the disk. This is a safety measure as the OS needs considerable disk space for its own operations and if the disk were to actually get too full, it would be unrecoverable. So 'df' is just reporting what is truely available for your use.

Beyond the safety issue, disks get increasingly slow as they get filled up. It is unwise to use more than 90% of the disk in OS 9 as well. But I guess the OS 9 system does not prevent you from doing that.
hayne is offline   Reply With Quote
Old 06-25-2003, 05:47 PM   #6
mervTormel
League Commissioner
 
Join Date: Jan 2002
Posts: 5,536
uh, you might want to reconsider your "everything's okay" position.

you are definitely on the precipice of more problems.

one should try to keep about 10-20% free space on one's boot partition. breathing room for this OS that is alive until it runs out of, er, breathing room. then all sorts of nasty, monstrous things can happen.

of course, 10-20% of 6GB and 60GB is a wide gap, but obviously, 200MB free begins to approach failure.

[edit: what hayne said. thanx, hayne! -mt]

Last edited by mervTormel; 06-25-2003 at 05:50 PM.
mervTormel is offline   Reply With Quote
Old 06-25-2003, 06:02 PM   #7
petey
All Star
 
Join Date: Feb 2002
Location: peteyville
Posts: 794
from what i understand...

#1 using an HFS+ partition under any OS with less than 15% free space runs the risk of unrecoverable file system damage.

#2 on a totally different subject, OS X generates swap files. the "Disk Full" message is about the OS worrying it won't have room to write more swap. you can fill a non-boot partition more than 99% full without getting "Disk Full" errors.

Last edited by petey; 06-25-2003 at 06:05 PM.
petey is offline   Reply With Quote
Old 06-25-2003, 06:04 PM   #8
eoinrussell
Prospect
 
Join Date: Jun 2003
Posts: 5
wow - I had no idea of any of this. I guess it is time for some summer cleaning...
eoinrussell is offline   Reply With Quote
Old 06-25-2003, 06:08 PM   #9
petey
All Star
 
Join Date: Feb 2002
Location: peteyville
Posts: 794
Quote:
Originally posted by mervTormel

one should try to keep about 10-20% free space on one's boot partition.

i'd say you should keep 10-20% free, PLUS whatever room is taken up by swap at peak usage.
petey is offline   Reply With Quote
Old 06-25-2003, 06:08 PM   #10
djn1
MVP
 
Join Date: Apr 2002
Location: UK
Posts: 1,212
It's also worth bearing in mind that the OS X virtual memory system generates swap files which are 76.2MB in size, ... each! My machine has been up for just over two days and I currently have three; i.e. 228.6MB. On occasions, when I've been doing a lot of memory intensive tasks, this has jumped to around 15 to 20 swapfiles; i.e. around 1GB to 1.5GB. In other words, 600MB is hardly any free space at all and 200MB is a miniscule amount - both are, as Merv and hayne indicate, dangerously low amounts. If possible you should seriously consider either replacing your drive or backing some stuff up and deleting it from your drive.
__________________
chromasia

G4/800, OS 10.3.x, 1.25GB RAM, 2x80GB HD, 60GB firewire, Geforce4MX, Iiyama VMpro 455+413
Goldtouch keyboard, Cirque EasyCat trackpad, D-Link DSL-604+
djn1 is offline   Reply With Quote
Old 06-25-2003, 06:25 PM   #11
mervTormel
League Commissioner
 
Join Date: Jan 2002
Posts: 5,536
Quote:
Originally posted by petey
i'd say you should keep 10-20% free, PLUS whatever room is taken up by swap at peak usage.

implied

but, as i said, a percentage of a large partition is larger than said percentage of a smaller partition.

so, the percentage is just a rule of thumb, and true mgt of the issue comes in knowing the characteristics of one's work habits and monitoring RAM and disk space and other metrics while doing heavy lifting.

in fact, it also requires knowing when you're doing heavy lifting. use some kind of monitor on the desktop and get into the habit of eyeballing it while you work so you can get a feel for these metrics and the operations that trigger them.
mervTormel is offline   Reply With Quote
Old 06-25-2003, 06:28 PM   #12
hayne
Site Admin
 
Join Date: Jan 2002
Location: Montreal
Posts: 32,473
humorous note

I get email notifications about additions to this thread and I have Entourage set up to use a text-to-speech AppleScript to announce the sender & subject of incoming email messages when Entourage is in the background.

I have been reading other postings and coming back to this thread to read activity here. Meanwhile I've noted that Entourage has vocally reported messages about "OS X thinks this cool". I didn't remember a thread of that title and went back to the forums "show new" page and didn't see anything there.

It took me a minute before I realized that the vocal announcement were referring to this thread!
hayne is offline   Reply With Quote
Old 06-25-2003, 06:28 PM   #13
djn1
MVP
 
Join Date: Apr 2002
Location: UK
Posts: 1,212
Quote:
Originally posted by mervTormel
use some kind of monitor on the desktop and get into the habit of eyeballing it while you work so you can get a feel for these metrics and the operations that trigger them.

I'd vote for iPulse which gives good visual feedback on RAM usage and page-in/outs (amongst other things).
__________________
chromasia

G4/800, OS 10.3.x, 1.25GB RAM, 2x80GB HD, 60GB firewire, Geforce4MX, Iiyama VMpro 455+413
Goldtouch keyboard, Cirque EasyCat trackpad, D-Link DSL-604+
djn1 is offline   Reply With Quote
Old 06-25-2003, 06:33 PM   #14
djn1
MVP
 
Join Date: Apr 2002
Location: UK
Posts: 1,212
Re: humorous note

Quote:
Originally posted by hayne
I get email notifications about additions to this thread and I have Entourage set up to use a text-to-speech AppleScript to announce the sender & subject of incoming email messages when Entourage is in the background.

Hi hayne, could I snag a copy of your script?
__________________
chromasia

G4/800, OS 10.3.x, 1.25GB RAM, 2x80GB HD, 60GB firewire, Geforce4MX, Iiyama VMpro 455+413
Goldtouch keyboard, Cirque EasyCat trackpad, D-Link DSL-604+
djn1 is offline   Reply With Quote
Old 06-25-2003, 06:56 PM   #15
hayne
Site Admin
 
Join Date: Jan 2002
Location: Montreal
Posts: 32,473
(off topic) AppleScript to announce email messages

As requested, here is my AppleScript for Entourage that announces new email messages:
Code:
tell application "Entourage"
	if frontmost then return -- don't announce if Entourage is frontmost
	set selectedMessages to current messages
	repeat with theMessage in selectedMessages
		set theSender to the display name of sender of theMessage
		set theSubject to subject of theMessage
		say "new message from '" & theSender & "'"
		say "Subject: " & theSubject
	end repeat
end tell
There have been several articles on the main MacOSXHints site about this sort of thing - so go search.
hayne is offline   Reply With Quote
Old 06-25-2003, 07:03 PM   #16
djn1
MVP
 
Join Date: Apr 2002
Location: UK
Posts: 1,212
Re: (off topic) AppleScript to announce email messages

Quote:
Originally posted by hayne
As requested, here is my AppleScript for Entourage that announces new email messages:

Thank you.
__________________
chromasia

G4/800, OS 10.3.x, 1.25GB RAM, 2x80GB HD, 60GB firewire, Geforce4MX, Iiyama VMpro 455+413
Goldtouch keyboard, Cirque EasyCat trackpad, D-Link DSL-604+
djn1 is offline   Reply With Quote
Old 06-25-2003, 07:22 PM   #17
mervTormel
League Commissioner
 
Join Date: Jan 2002
Posts: 5,536
Quote:
Originally posted by djn1
I'd vote for iPulse which gives good visual feedback on RAM usage and page-in/outs (amongst other things).

iPulse was to modern and blinky/flashy/busy for me.

i use Flame, over top of Memory Monitor, over top of Load Monitor in a 128x128 stamp in the bottom right corner, translucent so the metrics shine thru. it's been a real handy and delightful meter that catches yer eye when the rig starts to grunt.

they've been NSUIelement'd to 1 so they take no dock slots
mervTormel is offline   Reply With Quote
Old 06-25-2003, 07:29 PM   #18
djn1
MVP
 
Join Date: Apr 2002
Location: UK
Posts: 1,212
Quote:
Originally posted by mervTormel
i use Flame, over top of Memory Monitor, over top of Load Monitor in a 128x128 stamp in the bottom right corner, translucent so the metrics shine thru. it's been a real handy and delightful meter that catches yer eye when the rig starts to grunt.

Thanks for those Merv. Incidentally, the site for Load Monitor seems to have dissapeared.
__________________
chromasia

G4/800, OS 10.3.x, 1.25GB RAM, 2x80GB HD, 60GB firewire, Geforce4MX, Iiyama VMpro 455+413
Goldtouch keyboard, Cirque EasyCat trackpad, D-Link DSL-604+
djn1 is offline   Reply With Quote
Old 06-25-2003, 07:34 PM   #19
mervTormel
League Commissioner
 
Join Date: Jan 2002
Posts: 5,536
flame, too.

if you want them, i'll zip 'em up and post them.
mervTormel is offline   Reply With Quote
Old 06-25-2003, 07:37 PM   #20
djn1
MVP
 
Join Date: Apr 2002
Location: UK
Posts: 1,212
I managed to get Flame from here (a few minutes ago):

http://www.matthewdrayton.com/flame/index.html

... but I would like to try Load Monitor if you don't mind posting it.
__________________
chromasia

G4/800, OS 10.3.x, 1.25GB RAM, 2x80GB HD, 60GB firewire, Geforce4MX, Iiyama VMpro 455+413
Goldtouch keyboard, Cirque EasyCat trackpad, D-Link DSL-604+
djn1 is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 03:09 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.