This article is from the Macintosh system software FAQ, by Elliotte Harold firstname.lastname@example.org with numerous contributions by others.
Turn off file-sharing as described above. If the disk you can't
rename is not shared, you need to unlock the drive name. This can
be done by Kazu Yanagahira's freeware utility Unlock Folder or by
Disk First Aid 7.2. See