Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[9fans] How to mount a P9 partition?

523 views
Skip to first unread message

Jonas Amoson

unread,
Feb 19, 2010, 7:50:53 AM2/19/10
to
Hello!

I am trying to access files that I have on a harddrive
on which the Plan 9 installation refuses to boot. I am
now booting from a new harddisk (sdC0) and would like
to mount the file system of the problematic disk (now
sdD0) in a directory (say /n/olddisk). I have succeeded
to mount CD:s (sdD1) by starting  9660srv and mounting
it from /srv:

9660srv -f /dev/sdD1/data
mount /srv/9660 /n/cdrom

My guess is that I have to start a file server in a similar
fashion, and it does not complain when I write:

fossil/fossil -f /dev/sdD0/fossil

I was expecting some new entry named /srv/fossil that I
could mount in a directory, but that does not seem to
how it works. Running "ls /dev/sd*" gives the following:

/dev/sdC0/9fat
/dev/sdC0/ctl
/dev/sdC0/data
/dev/sdC0/fossil
/dev/sdC0/nvram
/dev/sdC0/plan9
/dev/sdC0/raw
/dev/sdC0/swap
/dev/sdD0/9fat
/dev/sdD0/ctl
/dev/sdD0/data
/dev/sdD0/fossil
/dev/sdD0/nvram
/dev/sdD0/plan9
/dev/sdD0/raw
/dev/sdD0/swap
/dev/sdD1/ctl
/dev/sdD1/raw
/dev/sdctl


_______________________________________________________________
SprayAffinity.se - Tr�ffa bara personer som passar dig!

Iruata Souza

unread,
Feb 19, 2010, 9:51:38 AM2/19/10
to
fossil/fossil -f /dev/sdD0/fossil -c 'srv fossil'

this should post /srv/fossil as you want. then you can proceed to
mounting as you did with the cd.

> <P><p><font face="Arial, Helvetica, sans-serif" size="2"
> style="font-size:13.5px">_______________________________________________________________<BR><a
> style="font-family: Tahoma, sans-serif; font-size: 12px; color: #00f"
> href="http://spray.matchaffinity.se/?mtcmk=614114"><strong>SprayAffinity.se</strong>
> - Träffa bara personer som passar dig!</a></font>

Jonas Amoson

unread,
Feb 19, 2010, 12:00:42 PM2/19/10
to
> fossil/fossil -f /dev/sdD0/fossil -c 'srv fossil'

Thanks for the advice! It complained about security, and
have yet to learn how it works, but adding the option -A
after 'srv' made it happier. So what I wrote was:

fossil/fossil -f /dev/sdD0/fossil -c 'srv -A fossil'
mount /srv/fossil /n/olddisk

This seemed to work out very fine, but I soon relised that
the content of /n/olddisk now was the filesystem on sdC0,
instead of sdD0 as one might have expected?

/Jonas

<-----Ursprungligt Meddelande----->
  From: Iruata Souza [iru....@gmail.com]
Sent: 19/2/2010 3:48:35 PM
To: 9f...@9fans.net
Subject: Re: [9fans] How to mount a P9 partition? 


fossil/fossil -f /dev/sdD0/fossil -c 'srv fossil'

this should post /srv/fossil as you want. then you can proceed to
mounting as you did with the cd.

_______________________________________________________________
SprayAffinity.se - Tr�ffa bara personer som passar dig!

erik quanstrom

unread,
Feb 19, 2010, 12:05:37 PM2/19/10
to
> This seemed to work out very fine, but I soon relised that
> the content of /n/olddisk now was the filesystem on sdC0,
> instead of sdD0 as one might have expected?

if these are actually sata drives, without a detailed
motherboard manual or creative interpretation of the
silkscreening on the motherboard in addition to some
information on how bios is mapping sata ports, there's
no telling where you're drive will end up.

if you run in ahci mode, you can eliminate the bios
mapping problem. then you'll be back to the previous
situation where you only need to know how the ports on
the motherboard are numbered.

generally the motherboard manual will tell you which
ports are which. that failing, sometimes you can see enough
of the silkscreening to tell you which port is which.

- erik

Jonas Amoson

unread,
Feb 19, 2010, 12:50:20 PM2/19/10
to
I interpret you as:
(1) the commands that I issued should work, at least
on some machines.
(2) the reason they don't work might depend on HW.

The machine is an old Dell Pentium III and the disks
are regular PATA-drives. I also tried to mount sdC0
with the same outcome.

/jonas

<-----Ursprungligt Meddelande----->
  From: erik quanstrom [quan...@quanstro.net]
Sent: 19/2/2010 6:01:57 PM

To: 9f...@9fans.net
Subject: Re: [9fans] How to mount a P9 partition? 

.
0 new messages