"Hi. I am trying to run find to look for any files belonging to user gid 501. I run the command. It takes ages and eventually starts checking my floppy drive. I have checked in /etc/group and user 501 exists. Any advice? The whole script is below."
You are checking for group id 501 and I think that you intend to check for user id 501. So change find / -gid 501 to
find / -uid 501
Also, do you expect to find any of these files anywhere other than in /home? If not then you can save a lot of time with:
find /home -uid 501
Be prepared. Create a LifeBoat CD.