Re: [9fans] fossil file system corrupts after a power cut

2011-07-27 Thread kin loo
On Jul 26, 3:55 pm, 0in...@gmail.com (David du Colombier) wrote:
  fossil/flfmt -v da39a3ee5e6b4b0d3255bfef95601890afd80709 /dev/sdC0/fossil
  fatal error: corrupted root: vtRootUnpack

 This Venti score is wrong. This is the Venti score returned by an empty
 Fossil file system. That's why it cannot be found in Venti.

  /boot/fossil: cacheLocalData: addr=1 type got 0 exp 8: tag got 0 exp 1
  /boot/fossil: fsOpen error fsOpen: block label mismatch fsys main

 The type VtDataType was returned instead of VtDirType and the tag
 BadTag was returned instead of RootTag. Obviously, something got wrong.

 It looks like your virtual hard disk image was corrupted
 because of the the power outage. Especially since you used
 the dynamically-growing qcow2 image format.

 You should make another hard disk image and rebuild
 Fossil from your last Venti score.

 Since this score cannot be found in your Fossil super block, you
 should extract a list of your Vac scores from your Venti server
 with the script /sys/src/cmd/venti/words/dumpvacroots.

 --
 David du Colombier

Thank you David du Colombier, it works. I can now use the most recent
score produced by dumpvacroots to restore  the active and archive data
in a new qemu image. But the original 9fat partition still keeps in
the old qcow2 image.



[9fans] Ken Thompson page

2011-07-27 Thread Lluís Batlle i Rossell
Hello,

I just wanted the article about security and the self-referencing compiler from
Ken.

http://cm.bell-labs.com/who/ken/trust.html
errstr: '/usr/web/who/ken' does not exist

And the Wayback Machine from archive.org does not have it due to robots.txt

Is this normal and expected by the site owners?

Thank you,
Lluís



Re: [9fans] fossil file system corrupts after a power cut

2011-07-27 Thread Nicolas Bercher

On 27/07/2011 10:39, kin loo wrote:

Thank you David du Colombier, it works. I can now use the most recent
score produced by dumpvacroots to restore  the active and archive data
in a new qemu image. But the original 9fat partition still keeps in
the old qcow2 image.

Maybe you can copy this qcow2 image and then play on the copy to reformat the fossil 
partition.


Nicolas



Re: [9fans] Ken Thompson page

2011-07-27 Thread Iruatã Souza
works for me.

2011/7/27 Lluís Batlle i Rossell virik...@gmail.com:
 Hello,

 I just wanted the article about security and the self-referencing compiler 
 from
 Ken.

 http://cm.bell-labs.com/who/ken/trust.html
 errstr: '/usr/web/who/ken' does not exist

 And the Wayback Machine from archive.org does not have it due to robots.txt

 Is this normal and expected by the site owners?

 Thank you,
 Lluís





Re: [9fans] Ken Thompson page

2011-07-27 Thread Lluís Batlle i Rossell
On Wed, Jul 27, 2011 at 10:49:03AM -0300, Iruatã Souza wrote:
 works for me.

Right. Now it works for me too.

 2011/7/27 Lluís Batlle i Rossell virik...@gmail.com:
  http://cm.bell-labs.com/who/ken/trust.html
  errstr: '/usr/web/who/ken' does not exist



Re: [9fans] fossil file system corrupts after a power cut

2011-07-27 Thread Iruatã Souza
On Wed, Jul 27, 2011 at 5:39 AM, kin loo kinlo...@gmail.com wrote:
 On Jul 26, 3:55 pm, 0in...@gmail.com (David du Colombier) wrote:
  fossil/flfmt -v da39a3ee5e6b4b0d3255bfef95601890afd80709 /dev/sdC0/fossil
  fatal error: corrupted root: vtRootUnpack

 This Venti score is wrong. This is the Venti score returned by an empty
 Fossil file system. That's why it cannot be found in Venti.

  /boot/fossil: cacheLocalData: addr=1 type got 0 exp 8: tag got 0 exp 1
  /boot/fossil: fsOpen error fsOpen: block label mismatch fsys main

 The type VtDataType was returned instead of VtDirType and the tag
 BadTag was returned instead of RootTag. Obviously, something got wrong.

 It looks like your virtual hard disk image was corrupted
 because of the the power outage. Especially since you used
 the dynamically-growing qcow2 image format.

 You should make another hard disk image and rebuild
 Fossil from your last Venti score.

 Since this score cannot be found in your Fossil super block, you
 should extract a list of your Vac scores from your Venti server
 with the script /sys/src/cmd/venti/words/dumpvacroots.

 --
 David du Colombier

 Thank you David du Colombier, it works. I can now use the most recent
 score produced by dumpvacroots to restore  the active and archive data
 in a new qemu image. But the original 9fat partition still keeps in
 the old qcow2 image.


If you want the old 9fat, you can try converting the qcow2 to raw
format and mounting new image as fat in the host operating system.



[9fans] encrypting 9P traffic

2011-07-27 Thread John Floren
I'm preparing to go to Defcon next week, and to help avoid getting
owned I'm planning to bring along a Plan 9 laptop. I'd like to be able
to mount, say, my home fileserver while I'm there, but 9P traffic goes
out unencrypted if you use srv rather than import -E ssl. This got
me to fiddling with tlssrvtunnel and tlsclienttunnel, but I've run
into some problems:

(gozer is the cpu server, x61 is the terminal)

gozer% tlssrvtunnel tcp!gozer!564 tcp!*!12345 cert.pem # I created
cert.pem using auth/rsagen, rsa2x509, and pemencode
listen started
gozer%

# I did sha1sum of cert.pem and, on the client side, created thumb
containing x509 sha1=hash cn=*.myauthdomain where myauthdomain
is the same domain I used to create the cert
x61% tlsclienttunnel tcp!gozer!12345 tcp!*!564 thumb
x61% srv net!x61!564 x61
x61% mount /srv/x61 /n/x61
mount: mount /n/x61: EOF receiving fversion reply


I can't seem to find any mention of these programs in 9fans except for
the initial announcement of their creation. Did I do something wrong
along the way? I'm not very familiar with TLS so it's definitely
possible.

On a more general note, I've decided that probably the smartest option
will be to import -E ssl myhomesystem /net (because after 9 years,
import still doesn't support TLS or SSL v3) so I can essentially
tunnel all communication out that way... I'll have to use the open
wifi, since Plan 9 doesn't do WPA, and I wouldn't trust Defcon's WPA
network either in any case. Can anyone think of a problem with this
plan, besides the fact that anyone sniffing packets will figure out
that the owner of jfloren.net is quite probably in attendance?


John



Re: [9fans] encrypting 9P traffic

2011-07-27 Thread Lyndon Nerenberg

Shouldn't import and srv just default to tls?



Re: [9fans] encrypting 9P traffic

2011-07-27 Thread John Floren
On Wed, Jul 27, 2011 at 4:49 PM, Lyndon Nerenberg lyn...@orthanc.ca wrote:
 Shouldn't import and srv just default to tls?



x61% import -E tls gozer / /n/gozer
import: gozer: tls has not yet been implemented

As far as I can tell, srv doesn't even have an encryption option. Do a
9fs gozer, fire up snoopy, and start reading some files--you'll see
the plaintext of the files (and all the rest of the 9p messages)
whizzing past.

John



Re: [9fans] encrypting 9P traffic

2011-07-27 Thread erik quanstrom
On Wed Jul 27 19:52:55 EDT 2011, j...@jfloren.net wrote:
 On Wed, Jul 27, 2011 at 4:49 PM, Lyndon Nerenberg lyn...@orthanc.ca wrote:
  Shouldn't import and srv just default to tls?
 
 
 
 x61% import -E tls gozer / /n/gozer
 import: gozer: tls has not yet been implemented
 
 As far as I can tell, srv doesn't even have an encryption option. Do a
 9fs gozer, fire up snoopy, and start reading some files--you'll see
 the plaintext of the files (and all the rest of the 9p messages)
 whizzing past.

this works for me.  i've been using it for years.

; import -k 'user=hostowner' -E ssl minooka.coraid.com / /n/coraid
; echo bind /net/ether0/n/coraid/dev/aoe/ctl  # ouch

- erik



Re: [9fans] encrypting 9P traffic

2011-07-27 Thread erik quanstrom
On Wed Jul 27 19:50:05 EDT 2011, lyn...@orthanc.ca wrote:
 Shouldn't import and srv just default to tls?

import, yes*.  srv, no.

- erik

---
*  thanks to its undocumented** protocol for negotiating encryption, etc.

---
** unless you count documentation like hardware vendors do.  read the
source code.



Re: [9fans] encrypting 9P traffic

2011-07-27 Thread John Floren
On Wed, Jul 27, 2011 at 6:27 PM, erik quanstrom quans...@quanstro.net wrote:
 On Wed Jul 27 19:50:05 EDT 2011, lyn...@orthanc.ca wrote:
 Shouldn't import and srv just default to tls?

 import, yes*.  srv, no.

 - erik

 ---
 *  thanks to its undocumented** protocol for negotiating encryption, etc.

 ---
 ** unless you count documentation like hardware vendors do.  read the
 source code.



Import defaults to unencrypted, at least for me. Import and srv
*should* default to TLS but it's not implemented. SSL is implemented
for import but it's not the default.


John



[9fans] laptops T60/T61

2011-07-27 Thread EBo
A couple of laptops have come available (modes T60 and T61's).  Ron 
noted that he got all but the wifi working on a T61, but the T60 comes 
with more ram and larger drive.  Searching the net I see a couple of 
people asking, circa 2007, if anyone has gotten the T60's video drivers 
working, but I have not found any responses.  So, I thought I would ask 
again before buying one of these machines.


  EBo --