Subject: Re: EIDE cd-rom unde netbsd
To: Mike Long <mike.long@analog.com>
From: Tom Pavel <PAVEL@SLAC.Stanford.EDU>
List: netbsd-help
Date: 04/26/1996 19:01:24
>>>>> On Thu, 25 Apr 1996, Mike Long <mike.long@analog.com> writes:

> >Date: Thu, 25 Apr 1996 17:41:58 +0200
> >From: dante@mbox.vol.it (Dante Profeta)
> >
> >I've got an EIDE cd-rom (I'm running i386 netbsd1.1), but I'm not able to
> >access it:

I don't think anyone pointed out yet that EIDE cdroms are not
supported in 1.1.  There is, however, an "unofficial" driver for them.



> >    mount_msdos: mount: Invalid argument.
> >
> >If it is mountable, may I mount it as rw?
> 
> This no longer happens in -current.  If you want to stay at 1.1, then
> you need to create a disklabel-sized 0xA5 partition on a blank part of
> the disk, and then use the procedure from the 386BSD FAQ.

This is a sure-fire technique, but is not strictly necessary.  In 1.1,
the kernel also checks for a disklabel at block #2 (right after the
MBR block) if it can't find an 0xA5 partition.  If you're not using a
boot manager that needs that block, you can try putting the disklabel
there.

Someone posted a procedure for this in the last few months, so you
should check the archives for it, but the rough outline is (if my
memory serves):
	1.) dd the MBR block to a file
	2.) disklabel -rw the disk with a suitable label
	3.) dd the MBR back onto the disk.

[BTW, why can't disklabel leave the MBR alone automatically? ]



Tom Pavel

Stanford Linear Accelerator Center
pavel@slac.stanford.edu                 http://www.slac.stanford.edu/~pavel/