From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@9fans.net Subject: Re: [9fans] naive 9vx/fossil question From: "Russ Cox" Date: Wed, 2 Jul 2008 14:03:40 -0400 In-Reply-To: <20080702172816.GA3703@secousse.ipgp.jussieu.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Message-Id: <20080702180129.9A6C61E8C26@holo.morphisms.net> Topicbox-Message-UUID: d605a0ca-ead3-11e9-9d60-3106f5b1d025 > have a plan9/linux dual boot on my machine. Is there any way I can > access (i.e: read and/or write) the fossil partition of my plan9 > install from 9vx on linux? > Actually, is there any way at all I can access that partition from > linux? You should be able to start fossil from inside 9vx, though you will have to copy in some disk-related binaries from a Plan 9 install CD, since I threw out a lot of stuff to make the 9vx tree small (see next mail). Then you should be able to do echo loop rw '#Z/dev/sda' > /dev/sdctl disk/fdisk -p /dev/sd00/data >/dev/sd00/ctl disk/prep -p /dev/sd00/plan9 >/dev/sd00/ctl ls -l /dev/sd00/ctl You should see your fossil partition there. Then you can start fossil manually: fossil/fossil -f /dev/sd00/fossil -c 'srv -A fossil' -c 'srv -p fscons' mount /srv/fossil /n/fossil I haven't tried this, but it, or something like it, should work. Also you might need to replace /dev/sda with whatever Linux calls the appropriate hard disk. One could also build a 9vx binary that included the things a typical pcf kernel does and set up #S with the local disks automatically, so that you could run "9vx -b" and tell it you wanted to boot from local!#S/sd00/fossil. There are lots of possibilities, and I hope some people will explore in those dirctions and tell us what they find! Russ