Internal IDE ZIP drive

I have an internal IDE/ATAPI ZIP drive on my portable. The OS detects it as
/dev/hd1. If there is a DOS formatted disk in the drive on boot the disk is
automounted as /fs/hd1-dos. I have other ZIP disks on which I altered the
partition under QNX4 to type 77 and these automount (on boot) as
/fs/hd1-qnx4.

However, if there is no disk in the drive on boot-up I cannot attach the
filesystem using the ‘mount’ command.

mount -tdos /dev/hd1 /fs/hd1-dos

fails miserably.

Under QNX4 the mount procedure is the same as a hard disk i.e. you have to
mount the partition with a ‘-p’ option before mounting the filesystem. The
‘-p’ option has disappeared under QNX6.

I have the feeling the solution is there under my nose, but I can’t see it!
Can anyone help?

TIA
Jim Douglas

if there is a solution i haven’t found it yet…
the developers in their infinite wisdom decided to remove the -p
functionality from mount, so until they decide to put it back im
afraid your SOL, just like me…

one of the ways i ve tried with limited success is to slay devb-eide
and restart it… unfortunately that kinda like yanking the foundation
out from under a skyscraper, it comes crashing down around you.


vince


On Tue, 6 Mar 2001 15:16:11 -0000, “Jim Douglas” <jim@dramatec.co.uk>
wrote:

I have an internal IDE/ATAPI ZIP drive on my portable. The OS detects it as
/dev/hd1. If there is a DOS formatted disk in the drive on boot the disk is
automounted as /fs/hd1-dos. I have other ZIP disks on which I altered the
partition under QNX4 to type 77 and these automount (on boot) as
/fs/hd1-qnx4.

However, if there is no disk in the drive on boot-up I cannot attach the
filesystem using the ‘mount’ command.

mount -tdos /dev/hd1 /fs/hd1-dos

fails miserably.

Under QNX4 the mount procedure is the same as a hard disk i.e. you have to
mount the partition with a ‘-p’ option before mounting the filesystem. The
‘-p’ option has disappeared under QNX6.

I have the feeling the solution is there under my nose, but I can’t see it!
Can anyone help?

TIA
Jim Douglas

Thanks Vince,

Nice to know I’m not stupid after all. Would anyone from QSSL care to
comment on this one? Please. Oh go on, just a few words. It won’t hurt…

Jim


“vince” <vgeisler@engineer.com> wrote in message
news:h1mdatcr94grfce99r0k5pm5ka974l9pga@4ax.com

if there is a solution i haven’t found it yet…
the developers in their infinite wisdom decided to remove the -p
functionality from mount, so until they decide to put it back im
afraid your SOL, just like me…

one of the ways i ve tried with limited success is to slay devb-eide
and restart it… unfortunately that kinda like yanking the foundation
out from under a skyscraper, it comes crashing down around you.


vince


On Tue, 6 Mar 2001 15:16:11 -0000, “Jim Douglas” <> jim@dramatec.co.uk
wrote:

I have an internal IDE/ATAPI ZIP drive on my portable. The OS detects it
as
/dev/hd1. If there is a DOS formatted disk in the drive on boot the disk
is
automounted as /fs/hd1-dos. I have other ZIP disks on which I altered the
partition under QNX4 to type 77 and these automount (on boot) as
/fs/hd1-qnx4.

However, if there is no disk in the drive on boot-up I cannot attach the
filesystem using the ‘mount’ command.

mount -tdos /dev/hd1 /fs/hd1-dos

fails miserably.

Under QNX4 the mount procedure is the same as a hard disk i.e. you have
to
mount the partition with a ‘-p’ option before mounting the filesystem.
The
‘-p’ option has disappeared under QNX6.

I have the feeling the solution is there under my nose, but I can’t see
it!
Can anyone help?

TIA
Jim Douglas

Jim Douglas wrote:

Nice to know I’m not stupid after all. Would anyone from QSSL care to
comment on this one? Please. Oh go on, just a few words. It won’t hurt…

Well, I’m not from QNX, but I’ll give it a go … you say that the

ZIP drive has a partition table (well, I assume that from your comments
regarding partitions and ‘mount -p’). So your attempts to mount
/dev/hd1 as a DOS filesystem should fail (EBADFSYS). But, you should
be able to mount ‘phantom’ partitions on removable devices using the
“automount=” option of dev-eide. You can’t do this with “mount”,
because in the case when the device is not loaded, there is nothing
to mount on top of. But giving it directly to io-blk allows it
to know that at some point in the future you will insert a device
with a partition that you’d like to be DOS. So, when you start up
the disk driver, use “devb-eide blk automount=hd1t6:/dos/c …”
(or whatever the partition number is - 1, 4, 6, 11, 12, 14). This
will create an anticipatory /dev/hd1t6 pathname, which will ENXIO
until you insert a media, at which point the mount will be performed
automatically at the next access to /dos/c, and away you go …