From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Message-Id: <20080302113221.6D542581@resin17.mta.everyone.net> Date: Sun, 2 Mar 2008 11:32:21 -0800 From: "Phil Kassner" To: <9fans@cse.psu.edu>, <9fans@cse.psu.edu> Subject: [9fans] Another new user question Topicbox-Message-UUID: 6c812a98-ead3-11e9-9d60-3106f5b1d025
I've been using Plan 9 for one week now and have gotten FTP working. Installed Abaco and gotten that working, plus have Inferno installed
but have more questions of course.
 
1) Is there a way one can write to a mounted filesystem?
 
Just for example, if I wanted to put an executable in /bin ...how would that be done?
 
 
2) To mount a cdrom I know I can start 9660srv...
but how would I mount another HD? I did not see any other filesystem servers.
 
Thanks

 

-. www.tuol.org .-
From mboxrd@z Thu Jan 1 00:00:00 1970 Mime-Version: 1.0 (Apple Message framework v753) In-Reply-To: <20080302113221.6D542581@resin17.mta.everyone.net> References: <20080302113221.6D542581@resin17.mta.everyone.net> Content-Type: multipart/alternative; boundary=Apple-Mail-1-695326376 Message-Id: From: Pietro Gagliardi Subject: Re: [9fans] Another new user question Date: Sun, 2 Mar 2008 15:05:09 -0500 To: Philo565@tuol.org, Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Cc: Topicbox-Message-UUID: 6c9acec6-ead3-11e9-9d60-3106f5b1d025 --Apple-Mail-1-695326376 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On Mar 2, 2008, at 2:32 PM, Phil Kassner wrote: > I've been using Plan 9 for one week now and have gotten FTP > working. Installed Abaco and gotten that working, plus have Inferno > installed > but have more questions of course. > > 1) Is there a way one can write to a mounted filesystem? You usually mount a filesystem to a folder in /n. Just use that folder as you would do the rest of the filesystem. > > Just for example, if I wanted to put an executable in /bin ...how > would that be done? > /bin is NOT a mounted directory. It is a bound directory. /bin would be bound to four places: - /$objtype/bin - system executables - /rc/bin - system shell scripts - $home/bin/$objtype - user executables - $home/bin/rc - user shell scripts You choose. See bind(1) for details. > > 2) To mount a cdrom I know I can start 9660srv... > but how would I mount another HD? I did not see any other > filesystem servers. > Depends on the filesystem. If it's fossil, see fossil(4). If it's FAT on USB, use usbfat: The choices are endless, if you know how. > Thanks > > > -. www.tuol.org .- --Apple-Mail-1-695326376 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1
On Mar 2, 2008, at = 2:32 PM, Phil Kassner wrote:

I've been = using Plan 9 for one week now and have gotten FTP working. Installed = Abaco and gotten that working, plus have Inferno installed
=
but have more questions of course.
=A0
1) Is = there a way one can write to a mounted = filesystem?

You usually mount a = filesystem to a folder in /n. Just use that folder as you would do the = rest of the filesystem.

=A0
=
Just for example, if I wanted to put an executable in /bin ...how = would that be done?
=A0
/bin is = NOT a mounted directory. It is a bound directory. /bin would be bound to = four places:
- /$objtype/bin - system = executables
- /rc/bin = - system shell scripts
- = $home/bin/$objtype - user executables
- = $home/bin/rc - user shell scripts
You choose. See bind(1) = for details.

=A0
=
2) To mount a cdrom I know I can start 9660srv...
but = how would I mount another HD? I did not see any other filesystem = servers.
=A0

Depends on the filesystem. = If it's fossil, see fossil(4). If it's FAT on USB, use usbfat: The = choices are endless, if you know how.

Thanks

=A0

-. www.tuol.org = .-

= --Apple-Mail-1-695326376-- From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <16a4c7f5c088b5c3081a141bcd6a187d@terzarima.net> To: Philo565@tuol.org, 9fans@cse.psu.edu Subject: Re: [9fans] Another new user question From: Charles Forsyth Date: Sun, 2 Mar 2008 20:32:02 +0000 In-Reply-To: <20080302113221.6D542581@resin17.mta.everyone.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Cc: Topicbox-Message-UUID: 6caf4338-ead3-11e9-9d60-3106f5b1d025 > 1) Is there a way one can write to a mounted filesystem? > > Just for example, if I wanted to put an executable in /bin...how would > that be done? /bin is an empty directory that is then populated by a sequence of binds (you can find them in /lib/namespace and your own lib/profile). so first you work out which one of those you'd like to hold the file (ie, global or just your own private bin). it will typically be one of /$objtype/bin or $home/bin/$objtype for compiled programs and /rc/bin or $home/bin/rc for rc scripts. copy the new command to one of those. in general, given a union mount, files are created in the top-most bind or mount that was bound or mounted using the -c option to allow creation. none of the files bound to /bin have that option so the resulting directory disallows creation. having typed all that in i see that pietro gagliardi has already answered but i'll send this anyway. > 2) To mount a cdrom I know I can start 9660srv... > but how would I mount another HD? I did not see any other > filesystem servers. if a program's primary purpose is to act as a file server, it can be found in section 4 of the manual, so have a browse through that. some others, including those in ndb(8) provide a service by serving some files, but that's just the interface so they are documented wherever the service would naturally belong. (section 8 is admin, which must surely include DNS.) From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Message-Id: <20080302125841.66643E4A@resin11.mta.everyone.net> Date: Sun, 2 Mar 2008 12:58:41 -0800 From: philo To: "Charles Forsyth" Subject: Re: [9fans] Another new user question Cc: 9fans@cse.psu.edu Topicbox-Message-UUID: 6cd3c082-ead3-11e9-9d60-3106f5b1d025 --- forsyth@terzarima.net wrote: From: Charles Forsyth To: Philo565@tuol.org, 9fans@cse.psu.edu Subject: Re: [9fans] Another new user question Date: Sun, 2 Mar 2008 20:32:02 +0000 > 1) Is there a way one can write to a mounted filesystem? > > Just for example, if I wanted to put an executable in /bin...how would > that be done? /bin is an empty directory that is then populated by a sequence of binds (you can find them in /lib/namespace and your own lib/profile). so first you work out which one of those you'd like to hold the file (ie, global or just your own private bin). it will typically be one of /$objtype/bin or $home/bin/$objtype for compiled programs and /rc/bin or $home/bin/rc for rc scripts. copy the new command to one of those. in general, given a union mount, files are created in the top-most bind or mount that was bound or mounted using the -c option to allow creation. none of the files bound to /bin have that option so the resulting directory disallows creation. having typed all that in i see that pietro gagliardi has already answered but i'll send this anyway. > 2) To mount a cdrom I know I can start 9660srv... > but how would I mount another HD? I did not see any other > filesystem servers. if a program's primary purpose is to act as a file server, it can be found in section 4 of the manual, so have a browse through that. some others, including those in ndb(8) provide a service by serving some files, but that's just the interface so they are documented wherever the service would naturally belong. (section 8 is admin, which must surely include DNS.) Thank you I have now downloaded the manual _____________________________________________________________ -. www.tuol.org .-