9fans archive / 1995 / 09 / 72 /    prev next

From: forsyth@pla... forsyth@pla...
Subject: How to get access scsi CDROM?
Date: Wed, 6 Sep 1995 06:12:59 -0400

see cdrom(3) and dossrv(4) for details.

9660srv can serve several CDROM devices.  you select a particular one
using a parameter to the mount command; see bind(1).

check that directory /n/cd exists: it might be called /n/cdrom.
if neither exists, just mkdir /n/cd first.  chmod 555 /n/cd .
there isn't anything special about that name, by the way.
you can mount the cdrom's contents anywhere that isn't silly.

suppose the CDROM is set to SCSI ID 6 (if not, make appropriate
substitutions in the device names below).

then:

bind -a '#R6' /dev	# note the '...' protecting the # in #R
ls -l /dev/cd6	# should show something useful

mount /srv/9660 /n/cd /dev/cd6
# now the contents of /dev/cd6 are visible under /n/cd,
# in the current name space.

you can also name the #R device directly in the mount command, without the bind:

mount /srv/9660 /n/cd '#R6/cd6'

if #R isn't known, try substituting #w6 for #R6
and #w6/sd6disk for #R6/cd6 throughout.

note that if you mount the Plan 9 CDROM this way using the 4 diskette
system, you can try:

	bind -b /n/cd/386/bin /bin
	bind -b /n/cd/rc/bin /bin

and make something nearer the full command set available.
(you might then need to do something similar for /sys and /lib
for commands that need special data files.)