Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mklos

macrumors 68000
Original poster
Dec 4, 2002
1,896
0
My house!
On my FP iMac I have my hard drive partitioned. The first partition is named swap, which is where I've moved my swap file to after intalling Panther. I want to rename this partition to .swap so its not shown on the desktop, but when I do that it tells me that you cannot use a file name with a dot in front because theya rereserved for system use only. Does anyone know if there is a way to do this anyway. I've done it before when I partitioned my drive, but it wouldn't let me in the Panther version of Drive Utility.

I've even tried loggin in as "root" and it still would allow me to put a dot in front of the file name. Is there something I can do in the Terminal that will allow me to change the swap partition to .swap, or is there another way to make it so that the swap partition doesn't show on my desktop?

Thanks!
 

rainman::|:|

macrumors 603
Feb 2, 2002
5,438
2
iowa
i do not believe you can make a volume invisible in such a way. files and directories, but not volumes. you may be stuck with it on your desktop... i just ignore my swap partition.

pnw
 

Horrortaxi

macrumors 68020
Jul 6, 2003
2,240
0
Los Angeles
In Finder preferences you can tell it to stop displaying all hard drives on the desktop. This might not be what you had in mind though. I have my hard drive in the dock now and with 1 click I have access to everything. To me it's more convenient than having drives on the desktop.
 

mklos

macrumors 68000
Original poster
Dec 4, 2002
1,896
0
My house!
I could do this in Jaguar. Before when I intstalled Jaguar I would go to Disk Utility and partition my drives. There it would let me name my swap partition .swap, but now in Panther when I go to Disk Utility and try to name my swap partition .swap it won't let me put a dot in front of the swap so I left it and figured that I could maybe change it after OS X.3 installed, but apparently not. Maybe I'll boot from my Jaguar CD and use that Disk Utility and then reboot with the Panther CD and then install Panther. But then I can't use the Journaling file system. Poop! Anyone else got any suggestions?
 

Nermal

Moderator
Staff member
Dec 7, 2002
20,621
3,982
New Zealand
This is just a guess, I have no responsibility if it stops your system from booting, etc etc...

Open up a terminal and type

cd /Volumes
sudo mv swap .swap

See whether that works.
 

cb911

macrumors 601
Mar 12, 2002
4,128
4
BrisVegas, Australia
Nermal, i'm just curious what that command would do?

isn't there a 'rename' command that could do it?

isn't 'mv' the move command? or am i a bit messed up?? :p
 

GeeYouEye

macrumors 68000
Dec 9, 2001
1,669
10
State of Denial
Originally posted by cb911
Nermal, i'm just curious what that command would do?

isn't there a 'rename' command that could do it?

isn't 'mv' the move command? or am i a bit messed up?? :p

mv is rename and move. why have both commands if you only need one?

A question though: how do you set which partition is the swap partition?
 

mklos

macrumors 68000
Original poster
Dec 4, 2002
1,896
0
My house!
I can use a program called SwapCop to change where the swap file goes. FYI...thats on VersionTracker and works with Mac OS 10.0-10.3
 

FattyMembrane

macrumors 6502a
Apr 14, 2002
966
154
bat country
if you change the name of the partition, you will have to change the way your swapfile is set up. i would suggest trying the "SetFile" utility included in the developer tools. i think "SetFile -V thing" lets you set the visibility of a file or folder. you will probably have to run it as root.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.