Re: Monitoring program

2000-07-17 Thread Ashley Clark
* Brian Schramm in "Monitoring program" dated 2000/07/17 14:25 wrote: > Is there a program that I can run in Linux that will tell me if there > is a disk in a floppy or a cd in a cdrom drive on a machine? I > control machines remotly and it would be nice to know if someone > stuck a disk in a dri

Re: Monitoring program

2000-07-17 Thread Bob McGowan
You could try mounting, if that fails then use dd to try and read the device. If it succeeds, then there is a disk there but without a normal filesystem. You might then assume it is a special boot image floppy, or if you know what sort of magic information to look for, you could try checking for

Re: Monitoring program

2000-07-17 Thread Ron Rademaker
How about cat /dev/fd0 will that work? Ron Rademaker On Mon, 17 Jul 2000, Brian Schramm wrote: > That only works on normal floppies. If I have a boot floppy in there that > was created a special way most systems will not mount them directly. But > they will still boot from them. > > > Bria

Re: Monitoring program

2000-07-17 Thread Brian Schramm
That only works on normal floppies. If I have a boot floppy in there that was created a special way most systems will not mount them directly. But they will still boot from them. Brian Schramm [EMAIL PROTECTED] www.linuxexpert.org On Mon, 17 Jul 2000, Ron Rademaker wrote: >

Re: Monitoring program

2000-07-17 Thread Ron Rademaker
Why don't you try to mount the floppy or the cd, if it succeeds, there's a disk / cdrom, if it fails, there not... Ron Rademaker On Mon, 17 Jul 2000, Brian Schramm wrote: > Is there a program that I can run in Linux that will tell me if there is a > disk in a floppy or a cd in a cdrom drive on a