[comp.sys.mac] Hard Disk Icon

eckert@lll-lcc.UUCP (03/20/87)

I have been changing my icons using resedit. Yesterday I decided it would be 
nice to change the icon for my hard disk.  However; when I searched for it,
it was nowhere to be found.

Can anyone tell me where it is hidden and if I can change it.  Thank you.

tim@ism780c.UUCP (04/02/87)

It's in the disk driver.  The Mac asks the disk what it would like
to use for an icon, and the disk gives the Mac the icon.
-- 
Tim Smith			"And if you want to be me, be me
uucp: sdcrdcf!ism780c!tim	 And if you want to be you, be you
Compuserve: 72257,3706		'Cause there's a million things to do
Delphi or GEnie: mnementh	 You know that there are"

robiner@ganelon.usc.edu (Steve) (07/12/88)

Can anyone out there tell me where the icon for the hard disk is located?
Someone told me its in ROM, but our Jasmine hard disk has a different icon 
than the regular Mac HD, so where is it?

I looked in all the logical places - Finder, System, Desktop, Invisible
hard disk files, but I can't find it.

Anyone know where it is?

=Steve=

chari@killer.UUCP (Chris Whatley) (07/12/88)

In article <10623@oberon.USC.EDU>, robiner@ganelon.usc.edu (Steve) writes:
> Can anyone out there tell me where the icon for the hard disk is located?
> [stuff deleted]  
> Anyone know where it is?
> 
> =Steve=


The HD Icon resides in the disk driver which is on a separate area of the disk
from your files. If you use the new HD-SC setup in System Tools 6.0, it will 
show you the various partitions of your drive including 4mb of free space.

Chris
-- 
___________________________________________________________
"Henry, have you and Mary had sexual intercourse?"  -Mrs. X
chari@killer.UUCP
CI$:71370,1654

Mark_Peter_Cookson@cup.portal.com (07/13/88)

The icon for a HD is in the HD's ROM.  I have an INIT that will put up a
different icon for SCSI drives (it is a checkerboard with a little ball above
it).  You might be able to change the picture in ResEdit (I am going to try
soon), but that is the only way I know of to change the icon of a hard disk.

Mark Cookson

sinteur@uvabick.UUCP (John Sinteur) (07/13/88)

rd disk icon can be found (shudder) in the driver. It's not
there as a  resource, but as some solid hex somewhere in the code!
 
--John

thecloud@pnet06.cts.com (Ken Mcleod) (07/14/88)

 The hard disk icon is installed by the HD SC Setup program (in the case
of Apple hard disks), the Jasmine Install and Jasmine Format programs
(in the case of Jasmine drives), or whatever program your hard disk
comes with to install the SCSI driver. Wherever the SCSI driver resides
on disk, so does the icon.
 The best way to change the icon (if your driver installation software
doesn't let you-- CMS, for one, does...nice touch) is to hack the installer
program! What I did (I have a Jasmine 20 with version 2.34 of the Format
and Install programs) was to open the 'SDRV' resource (yours may vary)
and find the offset to the start of the icon data, then I cut it and
replaced it with icon data of my own.
 Warning, disclaimer, etc.--don't try this unless you're pretty damn
sure of yourself!
  -- Take a screen dump of your HD icon, or use IconMaker/IconGrabber
     to get a copy, then get it into an ICN# resource.
  -- In ResEdit, 'open general' this icon (get the hex editing window)
  -- Open [a copy of] your HD scsi installer application (i.e. Jasmine
     Install) and find the resource containing the driver.
  -- Compare the two windows to determine where the icon resides in the
     driver.
  -- Cut 'n paste appropriately and carefully. Check and doublecheck
     offsets to start and end of icon data, and be sure the resource
     is the same length once you've finished.
  -- Close up, save changes, then reinstall the driver on your HD.

Note#1: The new Jasmine "flower" icon dumps the SCSI ID# on top of the
flower (if you have it, you know what I mean), so any changes you make
to this icon must take that into consideration.

Note#2: This whole procedure takes a bit of time and is not easy! I kept
at it because I hated the sight of the ugly thing on my desktop, but if
your sensibilities are not too easily offended, or you don't completely
understand what you are doing, DON'T TRY THIS!

Having said that, go for it!

Ken McLeod =========================     .......     ======================
UUCP: {crash uunet}!pnet06!thecloud     :.     .:    Chief Weapons of UNIX:
ARPA: crash!pnet06!thecloud@nosc.mil   :::.. ..:::   "Fear, surprise, and
INET: thecloud@pnet06.cts.com             ////        ruthless efficiency."

fjo@ttrdf.UUCP (Frank Owen ) (07/14/88)

in article <10623@oberon.USC.EDU>, robiner@ganelon.usc.edu (Steve) says:
> 
> Can anyone out there tell me where the icon for the hard disk is located?
> Someone told me its in ROM, but our Jasmine hard disk has a different icon 
> than the regular Mac HD, so where is it?
> 
> I looked in all the logical places - Finder, System, Desktop, Invisible
> hard disk files, but I can't find it.
> 
> Anyone know where it is?

The hard disk icons are usually hard-coded in the driver for the particuliar
hard disk. The driver is usually located on the low tracks of the hard
disk, not within the normal data area of the disk, or in any particuliar
file.  A copy of the driver is also probably in the resource fork of any
Installer/Formatter program provided by the manufacturer.  The only way to
change the icon would be to search for data that "looks like" the icon
either in the DRVR resource in the Installer/Formatter program or the
driver itself on the hard disk, and change it by alterring the BINARY DATA
with something like MacSnoopy or DiskTools or something like that. 
(can't use ResEdit for this folks!). Most times the icon is located
just after the Pascal-style string that contains the drive's name, so
this makes it a little easier, but all in all, it's not an easy task, 
and can lead to real problems if you screw up. 
I wouldn't try it.
-- 
Frank Owen (fjo@ttrdf)  312-982-2182
AT&T Information Systems
Computer Systems Division, 5555 Touhy Ave., Skokie, IL  60077
PATH:  ...!att!ttrdf!fjo

ephraim@think.COM (ephraim vishniac) (07/14/88)

In article <698@ttrdf.UUCP> fjo@ttrdf.UUCP (Frank Owen ) writes:

>The hard disk icons are usually hard-coded in the driver for the
>particuliar hard disk. The driver is usually located on the low
>tracks of the hard disk, not within the normal data area of the disk,
>or in any particuliar file.  A copy of the driver is also probably in
>the resource fork of any Installer/Formatter program provided by the
>manufacturer.

All true, so far.

>The only way to change the icon would be to search for data that
>"looks like" the icon either in the DRVR resource in the
>Installer/Formatter program or the driver itself on the hard disk,
>and change it by alterring the BINARY DATA with something like
>MacSnoopy or DiskTools or something like that.  (can't use ResEdit
>for this folks!).

Not so.  You can use ResEdit to construct the new icon (actually an
ICN# resource), close it, then option-open it to get the hex data.  Go
to the resource with the old icon, cut out that data, and paste in the
data for your new icon.  ResEdit's actually very good for this.

>Most times the icon is located just after the Pascal-style string
>that contains the drive's name,

That's backwards.  It's immediately *before* the "Where:" string, not
after it. 

>so this makes it a little easier,

In the Jasmine driver, it's much easier, because I got tired of
Jasmine bugging me about icon changes.  To find the icon in your
Jasmine formatter, open the SDRV (SCSI Driver) resource, and search
for the string 'ICON'.  From there to the "Where:" string is the icon
data.  I suppose I should have put it in a resource and patched the
driver at installation time, but that's all hindsight now.

>but all in all, it's not an easy task, and can lead to real problems
>if you screw up.

So true.

>I wouldn't try it.

I would!

Ephraim Vishniac					  ephraim@think.com
Thinking Machines Corporation / 245 First Street / Cambridge, MA 02142-1214

     On two occasions I have been asked, "Pray, Mr. Babbage, if you put
     into the machine wrong figures, will the right answers come out?"

thecloud@pnet06.cts.com (Ken Mcleod) (07/14/88)

 Mark_Peter_Cookson@cup.portal.com (Mark Cookson) writes:
>
>The icon for a HD is in the HD's ROM.
>
   Are you sure? Is this true for certain brands of HDs?

> I have an INIT that will put up a
>different icon for SCSI drives (it is a checkerboard with a little ball
above it).

   Oooh! Can you mail it to me please??? thanks!

Ken McLeod =========================     .......     ======================
UUCP: {crash uunet}!pnet06!thecloud     :.     .:    Chief Weapons of UNIX:
ARPA: crash!pnet06!thecloud@nosc.mil   :::.. ..:::   "Fear, surprise, and
INET: thecloud@pnet06.cts.com             ////        ruthless efficiency."

lsr@Apple.COM (Larry Rosenstein) (07/15/88)

In article <698@ttrdf.UUCP> fjo@ttrdf.UUCP (Frank Owen ) writes:
>Installer/Formatter program provided by the manufacturer.  The only way to
>change the icon would be to search for data that "looks like" the icon
>either in the DRVR resource in the Installer/Formatter program or the

There is an INIT floating around called FaceLift that changes the icon.  (It
was one of the entries in the hack contest at MacHack '88 and will be
described in the next issue of MacTutor.)

It doesn't change the driver on the disk, but instead intercepts the Control
call that the Finder makes to find out the icon, and substitutes the new
icon instead.  (Earlier versions made the control call and stuffed a new
icon into the driver AFTER it was loaded into RAM.  This worked for all but
ROM-based drivers.)

It picks the icon by matching up the name of the disk with the name of the
icon, so each disk can have a different icon.

		 Larry Rosenstein,  Object Specialist
 Apple Computer, Inc.  20525 Mariani Ave, MS 27-AJ  Cupertino, CA 95014
	    AppleLink:Rosenstein1    domain:lsr@Apple.COM
		UUCP:{sun,voder,nsc,decwrl}!apple!lsr

Mark_Peter_Cookson@cup.portal.com (07/16/88)

I don't know how to post to the net, so I always reply.  Sorry, maybe someone
will tell me how, but for now this works well.  Anyway, a lot of people have
asked me for the SCS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rrrrrrrrrrrrrrrrrrrrrrrrr
rrrrrrrm!!!%!!!!#h!!!!G`!!!"D!!G0b!&k!!!!(!"D!!**6NP8!!!!'LT039!
!!!!Q5801)`!!!$)!J2rr%!!!!!!(6M3!!2rr!!!!B!!!!!!!!2rr)!!!f!!(6G`
'c!:

Well, I hope that this came out alright.

Mark Cookson

Mark_Peter_Cookson@cup.portal.com (07/16/88)

Well, given that so many people have said otherwise, I guess not.  However, it
is on my Paradise HD (an old serial HD).  That was where I originally found it.
It was in the manual of all places.  So, I guess that on newer drives it is in
the driver and on other drives it is in the ROMs.  Also, I remember reading
in some tech note that when the finder detects some drive that is not an
external floppy it will ask for an icon that should be stored in the drives
ROM.  I guess that has changed, or I am just plain wrong (won't be first time,
and I am sure it will not be the last (always hoping though)).

Mark Cookson

P.S.  I already uploaded the Binhex of the SCSI icon changer INIT, I hope you
find it and like it.