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



Reply
 
Thread Tools Rating: Thread Rating: 6 votes, 5.00 average. Display Modes
Old 05-02-2005, 03:03 PM   #21
mzx
Triple-A Player
 
Join Date: Jan 2005
Location: California
Posts: 88
user id 502 is the user i am logged in as and the trash is empty. i also logged in as the other users and all trash was emptied. if a user was deleted before that users trash was emptied, and then a new user with the same name was created, would that make a difference?
mzx is offline   Reply With Quote
Old 05-02-2005, 09:19 PM   #22
voldenuit
League Commissioner
 
Join Date: Sep 2003
Location: Old Europe
Posts: 5,146
Something is fishy here, emptying the trash of user 502 should work.

Being of the get-a-larger-hammer school, I'd simply do a

sudo rm -Rf /.Trashes

then reboot as I don't know how gracefully the Finder handles this kind of unfriendly action.
voldenuit is offline   Reply With Quote
Old 05-02-2005, 09:49 PM   #23
hayne
Site Admin
 
Join Date: Jan 2002
Location: Montreal
Posts: 32,473
1) I would recommend emptying the Trash from the command-line, but using a somewhat gentler "hammer" - one that would just remove the Trash of that one user # 502:

Open a Terminal window and copy & paste the following command into it, then press Return, and supply your password when asked:

sudo rm -rf /.Trashes/502

Do not type in the command yourself as there is a danger of erasing everything on your hard disk if you make a mistake!
In fact you should be very careful to copy all of the above command and check that it all pasted into the Terminal window before you press Return.

After doing that, repeat the 'du' commands that you had done before - just to check that the disk space has indeed been freed up.

2) If you have deleted a user and then created another one with the same name, it seems possible that something might have gotten screwed up. How did you delete the user - using the Accounts preference panel?
In any case, the command listed above should fix things up, so go ahead and do it.
hayne is offline   Reply With Quote
Old 05-03-2005, 01:08 PM   #24
mzx
Triple-A Player
 
Join Date: Jan 2005
Location: California
Posts: 88
Smile

Thanks for all your help, it worked! After I ran the terminal command to delete the trash, I ran the du command and the 502 user trash disappeared, there is no 502 user at all anymore. I'm guessing it may have had something to do with the user that was deleted then restablished with the same name. I wasnt the person that deleted and added the account so I'm not sure how it was done. Thanks again for the help...
mzx is offline   Reply With Quote
Old 05-11-2005, 01:36 PM   #25
Juz10mac
Triple-A Player
 
Join Date: Apr 2005
Location: Texas
Posts: 107
Quote:
Originally Posted by weltonch777
Hit Command + 2 (View as List)
Hit Command + J (Show View Options) and check the box next to Calculate all Sizes

I do this too! This is my favorite way of finding what's taking up the most space.
__________________
12" iBook G4 - 1.07GHz, 768meg RAM, 32meg VRAM, 60gig HDD, Combo drive, Mac OS 10.4.9
Juz10mac is offline   Reply With Quote
Old 01-09-2007, 05:27 PM   #26
leeroylee
Prospect
 
Join Date: Jan 2007
Posts: 3
Hi people, sorry to bump an old thread..

I make (or try) to make music on my mac using Logic 7 , some soft and hardware... I use a mac g5 dual running 10.3 osx (soon to be 10.4)

Anyway, my hard drive is now showing 2.02 GB available!, I hadn't noticed it creep up so quick!!

My Audio drive on the other hand is showing 50 GB available!

I have no real clue when it comes to the technicalities of using macs. i just love them for their power and (usual) stability,, running multiple instances of a plugin in logic for example is a breeze.

What is the best maintenance prog like the disk defrag on a pc, or anything that will keep my files in check and keeep my mac tidy??

I followed the info on page 1 of this thread , this is the results from Terminal:
Code:
  0B    /.Trashes
  0B    /.vol
 11G    /Applications
170M    /Applications (Mac OS 9)
1.5K    /automount
3.4M    /bin
  0B    /cores
  0B    /Desktop Folder
du: /dev/fd/3: Bad file descriptor
 10G    /dev
 11M    /Iomega Stuff Dont Delete
 15G    /Library
 71M    /Live 3.0 OS X
1.5K    /Network
 43M    /paid for
515M    /private
 34G    /Samples
2.1M    /sbin
1.0G    /System
163M    /System Folder
  0B    /Temporary Items
  0B    /TheVolumeSettingsFolder
  0B    /Trash
 10G    /Users
308M    /usr
 24G    /Volumes
106G    /


I have no idea what i should be looking for or what is not needed!!

Any help for a noob in despair is very much appreciated.
leeroylee is offline   Reply With Quote
Old 01-09-2007, 05:38 PM   #27
hayne
Site Admin
 
Join Date: Jan 2002
Location: Montreal
Posts: 32,473
Quote:
Originally Posted by leeroylee
Anyway, my hard drive is now showing 2.02 GB available!, I hadn't noticed it creep up so quick!!

My Audio drive on the other hand is showing 50 GB available!

So you should do a cleanup on your main drive to get a bit more than 2 GB free. Maybe move some stuff to your Audio drive.

From the results of that 'du' command, I note the two following lines in particular:
34G /Samples
24G /Volumes
The first is probably normal since you said you do audio work - but maybe you could move some of those samples to a different drive.
The second (24 GB used in /Volumes) might be suspicious.

Please show us the results of the following command (in a Terminal window):

ls -l /Volumes

Quote:
What is the best maintenance prog like the disk defrag on a pc, or anything that will keep my files in check and keeep my mac tidy??

You don't need any maintenance program to do defragging or anything like that. But there is no program that will tell you that you are trying to store too much stuff on your disk drive - only you know what is valuable and what is junk.
__________________
hayne.net/macosx.html
hayne is offline   Reply With Quote
Old 01-10-2007, 07:48 AM   #28
leeroylee
Prospect
 
Join Date: Jan 2007
Posts: 3
Thumbs up



Hayne, thanks for your speedy reply,

The results of that terminal test arre:

total 8
drwxrwxrwx 16 leeedwar staff 544 6 Jan 17:11 Audio Drive
lrwxr-xr-x 1 root admin 1 10 Jan 12:33 Hard Drive -> /



With regards to the samples folder showingg 24Gb , i might just move them to the Audio drive, is it simply a case of dragging the folder over from the hard drive? The only issue i have with moving the samples folder is that when i load up projects in Logic it might have probs locating the samples, this may then require a manual search for every sample, but then I would obly have to do that once i suppose, Its the price you pay for not managing your files properly i suppose!!

Anyway thanks again for your Help Hayne, it is much appreciated.
leeroylee is offline   Reply With Quote
Old 01-10-2007, 12:40 PM   #29
hayne
Site Admin
 
Join Date: Jan 2002
Location: Montreal
Posts: 32,473
[QUOTE=leeroylee;348136]
Code:
drwxrwxrwx  16 leeedwar  staff  544  6 Jan 17:11 Audio Drive
lrwxr-xr-x   1 root      admin    1 10 Jan 12:33 Hard Drive -> /
Okay, that's normal. And that shows that the 24 GB that was shown for /Volumes is just what is in your "Audio" drive.

Quote:
With regards to the samples folder showingg 24Gb , i might just move them to the Audio drive, is it simply a case of dragging the folder over from the hard drive?

Yes - that should work fine to copy the files between drives. After you have made sure that the files got copied okay, you can delete the Samples folder from your main drive. It would be best to just rename the Samples folder on your main drive and then test to see if you can use the new Samples folder on your Audio drive.


Quote:
The only issue i have with moving the samples folder is that when i load up projects in Logic it might have probs locating the samples, this may then require a manual search for every sample, but then I would obly have to do that once i suppose

I'm not familiar with the Logic program, but I would have hoped that there was a way to tell it to look in a certain folder for its samples.
If not, you could just sidestep the whole issue by making it appear that the files are still in the same place.
You could do this by creating a symbolic link at the current location of the Samples folder and having this symbolic link point to the new location of the Samples folder (on your Audio drive).
You create symbolic links in the Terminal - see the symbolic links section of this Unix FAQ for details.

For example, if you moved the Samples folder to the top level in your Audio drive, the full path to that folder would be:
/Volumes/Audio/Samples
and so you could create the desired symbolic link with the following commands:
Code:
mv /Samples /Samples_old
ln -s /Volumes/Audio/Samples /Samples
(The first of the above commands (the 'mv' command) renames the Samples folder on your main drive in case you hadn't done that already.)
__________________
hayne.net/macosx.html
hayne is offline   Reply With Quote
Old 01-10-2007, 04:08 PM   #30
leeroylee
Prospect
 
Join Date: Jan 2007
Posts: 3
Thumbs up

Hayne, Thanks alot dude, I have done everything suggested, and all is now well, I have moved the samples folder across , and created a symbol link, and all works absolutely fine.

I have just updated to 10.4 too and the mac is running better than ever, happy days..

Thanks again fella
leeroylee is offline   Reply With Quote
Old 10-03-2007, 12:26 PM   #31
peque
Registered User
 
Join Date: Oct 2007
Posts: 1
Quote:
Originally Posted by hayne
That line indicates that the 29 GB is in the Trash belonging to a user with numerical id 502.

To find out which user that is, run the following command:

id 502

Then log in as that user and empty the Trash.



Hi hayne,

first post, so apologies if this is the wrong place, please advise. Also, a big hello to you all.

I'd like to clean up my PowerBook G4 80 GB HD which is almost full, before
updating my OS 10.3.9 with Tiger 10.4.6.

Follwing this thread I hope you could help me with what terminal came up with after having entered the sudo du -h -d 1 / command:

Last login: Wed Oct 3 16:36:42 on console
Welcome to Darwin!
sudo du -h -d 1 /
Password:
0B /.Trashes
0B /.vol
6.2G /Applications
201M /Applications (Mac OS 9)
1.5K /automount
3.4M /bin
0B /Cleanup At Startup
0B /cores
0B /Desktop Folder
du: /dev/fd/3: Bad file descriptor
48G /dev
3.4G /Library
340K /Microsoft
2.0K /Network
215M /private
2.1M /sbin
923M /System
282M /Systemordner
0B /TheVolumeSettingsFolder
0B /Trash
0B /Updaters
48G /Users
315M /usr
107G /Volumes
214G /

What do line 48G /dev and the last two lines 107G /Volumes, 214G /mean?
How can I detect all the useless data waste I wanna get rid of, e.g. are there hidden or invisible files etc.?


Thanks in advance

Peque
peque is offline   Reply With Quote
Old 10-03-2007, 01:41 PM   #32
hayne
Site Admin
 
Join Date: Jan 2002
Location: Montreal
Posts: 32,473
The 48 GB for /dev is probably spurious - i.e. probably nothing to worry about.
The 107 GB for /Volumes indicates that that much space is being taken by stuff in the /Volumes folder.
Do you have another (external or networked) disk mounted?
If so, that is just indicating the space used on that other disk.
If not, it might be detritus left over from a previously mounted disk that wasn't properly unmounted.

The 214 GB for / is the total amount of space used.
__________________
hayne.net/macosx.html
hayne is offline   Reply With Quote
Old 10-05-2007, 10:17 AM   #33
topebrown7
Triple-A Player
 
Join Date: Jan 2007
Posts: 82
all u need to do is download main menu (a free app) use it to force empty trash or better yet run all tasks. This will empty the trash of all users on the system, get rid of scratch files and generally make your system faster. Please give me feedback. Cheers
topebrown7 is offline   Reply With Quote
Old 10-05-2007, 11:24 AM   #34
raymondlewisjone
Major Leaguer
 
Join Date: Feb 2007
Posts: 411
run one of the mentioned apps as the root user. Then, you will have permissions for all files and directories.
__________________
Please respond, I am desperate for human contact!
raymondlewisjone is offline   Reply With Quote
Old 10-05-2007, 11:25 AM   #35
raymondlewisjone
Major Leaguer
 
Join Date: Feb 2007
Posts: 411
Ah, yes. Main Menu.....One of my favorites. A lot of useful functions.
__________________
Please respond, I am desperate for human contact!
raymondlewisjone is offline   Reply With Quote
Old 04-13-2010, 05:05 AM   #36
INDUCE
Guest
 
Posts: n/a
My Hardrive is also FULL

I am trying to update my running system but I have no disk space, I followed the terminal thread too and this is what I got---

Last login: Tue Apr 13 02:50:05
Welcome to Darwin!
[emac:~] admin% sudo du -h -d 2 /
Password:
0B /.Trashes
0B /.vol
12G /Applications
1.5K /automount
3.4M /bin
0B /cores
du: /dev/fd/3: Bad file descriptor
29G /dev
3.4G /Library
1.5K /Network
27G /Previous Systems
185M /private
2.1M /sbin
1.1G /System
29G /Users
300M /usr
41G /Volumes
142G /
[emac:~] admin%

So I copied my previous systems to a portable HD and deleted it from main. Then Ran one for /Volumes and /dev ... here they are, I'm not sure what to do next? Any help PLEASE!

(Volumes):

Last login: Tue Apr 13 02:53:17
sudo du -h -d 1 /Volumes; exit
Welcome to Darwin!
[emac:~] admin% sudo du -h -d 2 /Volumes; exit
Password:
47M /Volumes/Firefox
38G /Volumes/My Passport
39G /Volumes
logout

(dev):

Last login: Tue Apr 13 02:53:17
sudo du -h -d 1 /Volumes; exit
Welcome to Darwin!
[emac:~] admin% sudo du -h -d 2 /dev; exit
du: /dev/fd/3: Bad file descriptor
29G /dev/fd
29G /dev
logout
  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:11 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.