Welcome, Guest. Please login or register.

Author Topic: CD0 Auto-Mount  (Read 2023 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline adolescentTopic starter

  • Hero Member
  • *****
  • Join Date: Sep 2003
  • Posts: 3056
    • Show only replies by adolescent
CD0 Auto-Mount
« on: June 18, 2004, 06:43:00 AM »
I don't always have my CD-ROM attached or powered due to desk space, and the fact that I don't use a lot of CDs.  What I'd like to do is conditionally mount CD0 only if the device is present.  

Anyone?

My setup is A1200, Blizzard SCSI, external SCSI CD-ROM, OS3.9BB2 + CacheCDFS
Time to move on.  Bye Amiga.org.  :(
 

Offline Orjan

  • Hero Member
  • *****
  • Join Date: Sep 2003
  • Posts: 515
    • Show only replies by Orjan
Re: CD0 Auto-Mount
« Reply #1 on: June 18, 2004, 06:51:42 AM »
Open CLI, and type "Mount cd0"... :)
\\"Memory is like an orgasm. It\\\'s a lot better if you don\\\'t have to fake it.\\"
- Seymore Cray, on virtual memory.
 

Offline Spidey

  • Full Member
  • ***
  • Join Date: Jun 2002
  • Posts: 166
    • Show only replies by Spidey
Re: CD0 Auto-Mount
« Reply #2 on: June 18, 2004, 06:53:50 AM »
Hello adolescent,

Do you get error-messages when you don't have your CD-ROM connected? (this would be strange!)

Anyway, you could drag CD0 from your Devs:DOSDrivers dir into Workbench.
In this way CD0 will not be activated untill you doubleclick on the icon in Workbench.

Bye,

Spidey  
 

Offline Naeem

  • Jr. Member
  • **
  • Join Date: Jun 2004
  • Posts: 56
    • Show only replies by Naeem
Re: CD0 Auto-Mount
« Reply #3 on: June 18, 2004, 09:54:14 AM »
do you have a HD in your setup - just wondered.

I seem to recall something on aminet that said it'd mount the Cd device if it existed or boot as normal if it didnt.

Have a look in the the cdrom dir of aminet.
 

Offline adolescentTopic starter

  • Hero Member
  • *****
  • Join Date: Sep 2003
  • Posts: 3056
    • Show only replies by adolescent
Re: CD0 Auto-Mount
« Reply #4 on: June 18, 2004, 06:50:37 PM »
@Orjan

Obviously this works, but it's not "auto" like I asked for.

@Spidey

Yes, I get an error saying the device is not found at bootup if the CD0 device is in DEVS:DOSDrivers.  (Note:  the CD-ROM drive itself is turned off or disconnected, this is the standard behavior I've seen on all of my Amigas)

@Naeem

I'll go check again.  If you remember the name, then post it up here.
Time to move on.  Bye Amiga.org.  :(
 

Offline mgerics

  • Sr. Member
  • ****
  • Join Date: Jun 2002
  • Posts: 294
    • Show only replies by mgerics
Re: CD0 Auto-Mount
« Reply #5 on: June 18, 2004, 08:10:57 PM »
P**p, I'm at work so I can't check what it is; I have an executable that checks for the presenece of a device; it returns an error code you can check to load the driver or not. Will check when I get home. Used in user-startup.
 

Offline adolescentTopic starter

  • Hero Member
  • *****
  • Join Date: Sep 2003
  • Posts: 3056
    • Show only replies by adolescent
Re: CD0 Auto-Mount
« Reply #6 on: June 18, 2004, 08:32:32 PM »
I just found it.  Limiting my Aminet search to just the CDROM tree was the problem.  The utility I'm using is ExistsSCSIDEV.  Works like a charm, will also work with my Zip drive if I choose to hook it up.
Time to move on.  Bye Amiga.org.  :(