Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Jun 1999 19:18:13 -0400
From:      "Christopher J. Michaels" <cjm2@earthling.net>
To:        <vagner@www.timandpatrick.com>
Cc:        "FreeBSD Mailing List" <questions@FreeBSD.org>
Subject:   RE: sharing drives
Message-ID:  <000001beb9e0$d644d280$0200000a@shithead.weeble.dyndns.org>
In-Reply-To: <XFMail.990618160337.vagner@vagner.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Noo... that IS supposed to work.  You misunderstood me.

What i meant is this.. lets say you have 2 drives mounted, one is on /usr
and one is on /usr/local

What i meant is that if you exported /usr, and then looked at /usr/local,
that would be empty, you would have to separately export /usr/local.

What you did is correct.  Sorry for the confusion.

-Chris

-----Original Message-----
From: root@vetex.dhis.org [mailto:root@vetex.dhis.org]On Behalf Of
vagner@www.timandpatrick.com
Sent: Friday, June 18, 1999 7:04 PM
To: Christopher Michaels
Subject: RE: sharing drives


ok,here is what i want to do, I have an optical disk
it is mounted as /optical, i want to read and write to it
as the current user I am logged in as, basically for
backing up stuff.

so i exported it like you said

/optical -network 192.168.0

and mounted it on /optical of my other machine
so now both /optical directories are identical
to each machine.


although you said the directories would be empty
if i mounted already mounted directories i can get
a listing.


you can see below its seems to be working!
copy and paste may be a little mixed up...oops

ahah! HERE IS A PROBLEM. looks like no write access.


ginger# cp * /optical
cp: /optical/resume.doc: Permission denied
cp: /optical/1-25-99.doc: Permission denied
ginger#

$ ls -la /optical
total 2306
drwxr-xr-x   2 root  wheel      512 Jun 17 22:12 .
drwxr-xr-x  20 root  wheel      512 Jun 17 20:17 ..
-r-xr-xr-x   1 root  wheel  2345293 Jun 17 22:12 kernel
$ df
Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
/dev/da0s1a    496111    21332   435091     5%    /
/dev/da0s1f   7313739   610922  6117718     9%    /usr
/dev/da0s1e    496111     4217   452206     1%    /var
procfs              4        4        0   100%    /proc
/dev/da1       279554     2305   254885     1%    /optical
$


ginger# mount
/dev/da1s1a on / (local, writes: sync 76 async 323)
/dev/da1s1f on /usr (local, writes: sync 6 async 215)
/dev/da1s1e on /var (local, writes: sync 141 async 252)
procfs on /proc (local)
192.168.0.1:/optical on /optical
ginger#

$ mount
/dev/da0s1a on / (local, writes: sync 7 async 36)
/dev/da0s1f on /usr (local, writes: sync 2 async 19)
/dev/da0s1e on /var (local, writes: sync 114 async 173)
procfs on /proc (local)
/dev/da1 on /optical (NFS exported, local, writes: sync 2 async 2)
$

ginger# ls -la /optical
total 2306
drwxr-xr-x   2 root  wheel      512 Jun 17 15:12 .
drwxr-xr-x  29 root  wheel     1024 Jun 18 15:40 ..
-r-xr-xr-x   1 root  wheel  2345293 Jun 17 15:12 kernel
ginger# df
Filesystem           1K-blocks     Used    Avail Capacity  Mounted on
/dev/da1s1a             496111    30521   425902     7%    /
/dev/da1s1f            7114987  2093155  4452634    32%    /usr
/dev/da1s1e             496111    16639   439784     4%    /var
procfs                       4        4        0   100%    /proc
192.168.0.1:/optical    279554     2305   254885     1%    /optical
ginger#



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000001beb9e0$d644d280$0200000a>