9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] mount problems
@ 2002-05-17 14:09 Peter A. Cejchan
  0 siblings, 0 replies; 5+ messages in thread
From: Peter A. Cejchan @ 2002-05-17 14:09 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 283 bytes --]

> Can you try running ns after you have mounted
> one image and then another?  Perhaps that will
> show us what is really going on.

Yes. Appended below.
--
++pac.

Peter A. Cejchan
Paleobiology Lab, GLU Acad. Sci. CZ
<pac@next.gli.cas.cz>
[http | ftp]://next.gli.cas.cz

[-- Attachment #2: ns --]
[-- Type: text/plain, Size: 3446 bytes --]

term%
term% ns
bind  /root /root
mount -aC '#s/boot' /root
bind  / /
bind -a /root /
mount -a '#s/boot' /
bind -c /root/mnt /mnt
bind  '#c' /dev
bind  '#d' /fd
bind -c '#e' /env
bind  '#p' /proc
bind -c '#s' /srv
bind -a '#¤' /dev
mount -a '#s/factotum' /mnt
bind  /386/bin /bin
bind -a /rc/bin /bin
bind  /net /net
bind -a '#l' /net
bind -a '#I' /net
bind -a '#D' /net
mount -a '#s/cs' /net
bind -a '#f' /dev
bind -a '#t' /dev
bind -a '#m' /dev
bind -a '#v' /dev
bind -a '#L' /dev
bind -a '#S' /dev
bind -a '#P' /dev
bind -a '#U' /dev
bind -a '#$' /dev
mount -c '#s/dos' /n/c: /dev/sdD1/dos
mount -c '#s/dos' /n/c /dev/sdD1/dos
bind -a /usr/pac/bin/rc /bin
bind -a /usr/pac/bin/386 /bin
mount -c '#|/data1' /tmp
mount  '#|/data1' /mail/fs
mount  '#s/plumb.pac.83' /mnt/plumb
bind -a '#i' /dev
mount  '#s/rio.pac.12' /mnt/wsys N134,20,140,610,450
mount -b '#s/rio.pac.12' /dev
cd /usr/pac
term%
term%
term% 9660srv
9660srv 174: serving /srv/9660
term% mount /srv/9660 /n/dist /usr/pac/burn/9new/mosml.iso
term%
term% ns
bind  /root /root
mount -aC '#s/boot' /root
bind  / /
bind -a /root /
mount -a '#s/boot' /
bind -c /root/mnt /mnt
bind  '#c' /dev
bind  '#d' /fd
bind -c '#e' /env
bind  '#p' /proc
bind -c '#s' /srv
bind -a '#¤' /dev
mount -a '#s/factotum' /mnt
bind  /386/bin /bin
bind -a /rc/bin /bin
bind  /net /net
bind -a '#l' /net
bind -a '#I' /net
bind -a '#D' /net
mount -a '#s/cs' /net
bind -a '#f' /dev
bind -a '#t' /dev
bind -a '#m' /dev
bind -a '#v' /dev
bind -a '#L' /dev
bind -a '#S' /dev
bind -a '#P' /dev
bind -a '#U' /dev
bind -a '#$' /dev
mount -c '#s/dos' /n/c: /dev/sdD1/dos
mount -c '#s/dos' /n/c /dev/sdD1/dos
bind -a /usr/pac/bin/rc /bin
bind -a /usr/pac/bin/386 /bin
mount -c '#|/data1' /tmp
mount  '#|/data1' /mail/fs
mount  '#s/plumb.pac.83' /mnt/plumb
bind -a '#i' /dev
mount  '#s/rio.pac.12' /mnt/wsys N134,20,140,610,450
mount -b '#s/rio.pac.12' /dev
mount  '#s/9660' /n/dist /usr/pac/burn/9new/mosml.iso
cd /usr/pac
term%
term% ls /n/dist
/n/dist/386
/n/dist/README
/n/dist/mosml
/n/dist/mosml.db
/n/dist/mosml.log
/n/dist/mosml.setup
/n/dist/rc
/n/dist/sys
term%
term% unmount /n/dist
term%
term% mount /srv/9660 /n/dist /usr/pac/burn/9new/python.iso
term%
term% ns
bind  /root /root
mount -aC '#s/boot' /root
bind  / /
bind -a /root /
mount -a '#s/boot' /
bind -c /root/mnt /mnt
bind  '#c' /dev
bind  '#d' /fd
bind -c '#e' /env
bind  '#p' /proc
bind -c '#s' /srv
bind -a '#¤' /dev
mount -a '#s/factotum' /mnt
bind  /386/bin /bin
bind -a /rc/bin /bin
bind  /net /net
bind -a '#l' /net
bind -a '#I' /net
bind -a '#D' /net
mount -a '#s/cs' /net
bind -a '#f' /dev
bind -a '#t' /dev
bind -a '#m' /dev
bind -a '#v' /dev
bind -a '#L' /dev
bind -a '#S' /dev
bind -a '#P' /dev
bind -a '#U' /dev
bind -a '#$' /dev
mount -c '#s/dos' /n/c: /dev/sdD1/dos
mount -c '#s/dos' /n/c /dev/sdD1/dos
bind -a /usr/pac/bin/rc /bin
bind -a /usr/pac/bin/386 /bin
mount -c '#|/data1' /tmp
mount  '#|/data1' /mail/fs
mount  '#s/plumb.pac.83' /mnt/plumb
bind -a '#i' /dev
mount  '#s/rio.pac.12' /mnt/wsys N134,20,140,610,450
mount -b '#s/rio.pac.12' /dev
mount  '#s/9660' /n/dist /usr/pac/burn/9new/python.iso
cd /usr/pac
term% ls /n/dist
/n/dist/386
/n/dist/README
/n/dist/mosml
/n/dist/mosml.db
/n/dist/mosml.log
/n/dist/mosml.setup
/n/dist/rc
/n/dist/sys
term%
term%
term%


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] mount problems
@ 2002-05-20 10:05 Peter A. Cejchan
  0 siblings, 0 replies; 5+ messages in thread
From: Peter A. Cejchan @ 2002-05-20 10:05 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 32 bytes --]

See attached file.
--
++pac.

[-- Attachment #2: problem --]
[-- Type: text/plain, Size: 2526 bytes --]

##########################
1st: sorry for posting previous two idiotic questions -those about quickblank and cd-writer slowdown: I read the manual and took a rest...
##########################
# however, the mounting problem persists:
#
#
term% 9660srv
9660srv 231: /srv/9660: srv file already exists
term% p=`{ps|grep 9660srv|awk '{print $2}'}
term% mount /srv/9660 /n/dist /usr/pac/burn/9new/mosml.iso
term% grep iso /proc/$p/fd
  7 rw M    8 (0000000000006b4f 1636 00)  8192        0 /usr/pac/burn/9new/mosml.iso
term% unmount /n/dist
term% grep iso /proc/$p/fd
term% mount /srv/9660 /n/dist /usr/pac/burn/9new/python.iso
term% grep iso /proc/$p/fd
  6 rw M    8 (0000000000005fac 3082 00)  8192        0 /usr/pac/burn/9new/python.iso
term%


#########################
## the problem persists even with cdroms:
#
term% mntcd
ls /n/cd/pc0016
term% ls /n/cd/pc0016
/n/cd/pc0016/CONTENTS
/n/cd/pc0016/lit
/n/cd/pc0016/ls-lR
term% ls /n/cd/pc0016/lit/bio/journals/bio/1
/n/cd/pc0016/lit/bio/journals/bio/1/0077a.pdf
/n/cd/pc0016/lit/bio/journals/bio/1/0079a.pdf
/n/cd/pc0016/lit/bio/journals/bio/1/0080a.pdf
.....
term% page -p 140 /n/cd/pc0016/lit/bio/journals/bio/1/0077a.pdf
reading through pdf...
term% um # unmount all

### changing cd to pc0005
term% ls /n/cd
term% mntcd
/n/cd/pc0016
term% halt
# Ctl-T Ctl-T R

term% mntcd
/n/cd/pc0005
term% #now changing it back to 0016, without reboot
term% um
term% mntcd
/n/cd/pc0005
term% ls /n/cd/pc0005/lit/bio/complexity
/n/cd/pc0005/lit/bio/complexity/CONTENTS
/n/cd/pc0005/lit/bio/complexity/bs-1999-50-001.pdf
term% page /n/cd/pc0005/lit/bio/complexity/bs-1999-50-001.pdf
reading through pdf...  ## perfectly readable, although IT ISN'T ON CD, see below
term% ## now going down to reboot
term% halt
# Ctl-T Ctl-T R

term% mntcd ## the same one
/n/cd/pc0016
term% ls /n/cd/pc0005/lit/bio/complexity/bs-1999-50-001.pdf
ls: /n/cd/pc0005/lit/bio/complexity/bs-1999-50-001.pdf: '/n/cd/pc0005' file does not exist
term%


I am curious. Nobody else met this behaviour?

And yes, here is the "mntcd" script
term% cat /bin/mntcd
#!/bin/rc
if(! test -f /srv/9660)
	9660srv  >/dev/null </dev/null >[2]/dev/null
if(! test -d /n/cd)
	{allow; mkdir /n/cd; disallow}
if(! test -f /mnt/cd/wd)
	cdfs -d /dev/sdC1 >/dev/null </dev/null >[2]/dev/null
unmount /n/cd >[2]/dev/null
if (mount -c /srv/9660  /n/cd  /mnt/cd/d000)
	ls /n/cd
if not (echo  ERROR MOUNTING CD)
#
# -eof-Thu May 16 14:34:59 EDT 2002



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] mount problems
@ 2002-05-17 14:11 rsc
  0 siblings, 0 replies; 5+ messages in thread
From: rsc @ 2002-05-17 14:11 UTC (permalink / raw)
  To: 9fans

how about this?

	9660srv
	p=`{ps|grep 9660srv|awk '{print $2}'}
	mount /srv/9660 /n/dist /usr/pac/burn/9new/mosml.iso
	grep iso /proc/$p/fd
	unmount /n/dist
	grep iso /proc/$p/fd
	mount /srv/9660 /n/dist /usr/pac/burn/9new/python.iso
	grep iso /proc/$p/fd
	ls -lq /usr/pac/burn/9new/^(mosml python)^.iso

the greps will tell us what files 9660srv thinks
it is using.

the ls -lq will show us the qids of the files.
perhaps somehow they got the same qid
and that's messing up 9660srv's idea of
what different files are.

or perhaps somehow they really are the
same file, and python.iso contains mosml.

russ



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] mount problems
@ 2002-05-16  8:56 Russ Cox
  0 siblings, 0 replies; 5+ messages in thread
From: Russ Cox @ 2002-05-16  8:56 UTC (permalink / raw)
  To: 9fans

Can you try running ns after you have mounted
one image and then another?  Perhaps that will
show us what is really going on.

Russ


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [9fans] mount problems
@ 2002-05-16  6:25 Peter A. Cejchan
  0 siblings, 0 replies; 5+ messages in thread
From: Peter A. Cejchan @ 2002-05-16  6:25 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 233 bytes --]

I've encountered problems while mounting/unmounting iso images, see below. What am I doing wrong?
Regards,
--
++pac.

Peter A. Cejchan
Paleobiology Lab, GLU Acad. Sci. CZ
<pac@next.gli.cas.cz>
[http | ftp]://next.gli.cas.cz

[-- Attachment #2: mount --]
[-- Type: text/plain, Size: 1653 bytes --]

term% 9660srv
9660srv 315: /srv/9660: srv file already exists
term% mount /srv/9660 /n/dist /usr/pac/burn/9new/mosml.iso
mount: mount /n/dist: file does not exist
term% mount /srv/9660 /n/dist /usr/pac/burn/9new/mosml.iso
term% ls /n/dist
### still shows the previously mounted perl.iso:
/n/dist/386
/n/dist/README
/n/dist/perl
/n/dist/perl.db
/n/dist/perl.log
/n/dist/perl.setup
/n/dist/sys
term% unmount /n/dist
term%  ls /n/dist
term% mount /srv/9660 /n/dist /usr/pac/burn/9new/python.iso
term%  ls /n/dist
### still shows the previously mounted perl.iso, again
/n/dist/386
/n/dist/README
/n/dist/perl
/n/dist/perl.db
/n/dist/perl.log
/n/dist/perl.setup
/n/dist/sys
term% unmount /n/dist
### restart
term% ls /n/dist
term%
term% cd /usr/pac/burn/9new/
term% mount /srv/9660 /n/dist /usr/pac/burn/9new/mosml.iso
term% ls /n/dist
/n/dist/386
/n/dist/README
/n/dist/mosml
/n/dist/mosml.db
/n/dist/mosml.log
/n/dist/mosml.setup
/n/dist/rc
/n/dist/sys
term% /n/dist/mosml.setup
/n/kfs/dist/replica/client/mosml.db: rc (mosml.setup): can't open: '/n/kfs/dist' does not exist
term% mount /srv/kfs /n/kfs
term% /n/dist/mosml.setup
/n/kfs/dist/replica/client/mosml.db: rc (mosml.setup): can't open: access permission denied
term% allow
term% /n/dist/mosml.setup
term% replica/pull /n/dist/mosml
term% unmount /n/dist
term% ls /n/dist
term% mount /srv/9660 /n/dist /usr/pac/burn/9new/python.iso
term% ls /n/dist
### seems like it shows the first mounted image everytime....
/n/dist/386
/n/dist/README
/n/dist/mosml
/n/dist/mosml.db
/n/dist/mosml.log
/n/dist/mosml.setup
/n/dist/rc
/n/dist/sys
term%

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-05-20 10:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-17 14:09 [9fans] mount problems Peter A. Cejchan
  -- strict thread matches above, loose matches on Subject: below --
2002-05-20 10:05 Peter A. Cejchan
2002-05-17 14:11 rsc
2002-05-16  8:56 Russ Cox
2002-05-16  6:25 Peter A. Cejchan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).