On Thu, Jul 03, 2008 at 12:35:19AM +0200, [EMAIL PROTECTED] wrote:
> On Wed, Jul 02, 2008 at 02:03:40PM -0400, Russ Cox wrote:
> > >  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
> 
> All of those worked fine as far as I can tell:
> term% ls -l /dev/sd00
> --rw-r----- S 0 glenda glenda   104857600 Jul  1 11:42 /dev/sd00/9fat
> --rw-r----- S 0 glenda glenda           0 Jul  1 11:42 /dev/sd00/ctl
> --rw-r----- S 0 glenda glenda 69379563520 Jul  1 11:42 /dev/sd00/fossil
> ...
> 
> 
> > 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'
> 
> but that one failed:
> term% fossil/fossil -f /dev/sd00/fossil -c 'srv -A fossil' -c 'srv -p
> fscons'
> fossil/fossil: bad config magic in /dev/sd00/fossil
> 
> then I wanted to check for something suspicious in my config:
> term% fossil/conf /dev/sd00/fossil
> config has bad header
> 
> Is that bad?
> 
> Gonna reboot to the native plan9 in the meanwhile to check if
> everything's ok...

Native plan9 still booting fine, and here's the configuration for
/dev/sdE0/fossil if it's of any relevance:
fsys main config /dev/sdE0/fossil
fsys main open -V -c 3000

Also, so far only /dev/sda was rw for disk group so I've set /dev/sda1
(which is the whole plan9 partition) to rw as well for disk group, to
no avail.

Mathieu.


Reply via email to