9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] How to mount a P9 partition?
@ 2010-02-19 12:46 Jonas Amoson
  2010-02-19 14:48 ` Iruata Souza
  0 siblings, 1 reply; 5+ messages in thread
From: Jonas Amoson @ 2010-02-19 12:46 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 1406 bytes --]

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




<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>

[-- Attachment #2: Type: text/html, Size: 1880 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] How to mount a P9 partition?
  2010-02-19 12:46 [9fans] How to mount a P9 partition? Jonas Amoson
@ 2010-02-19 14:48 ` Iruata Souza
  0 siblings, 0 replies; 5+ messages in thread
From: Iruata Souza @ 2010-02-19 14:48 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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.

On 2/19/10, Jonas Amoson <jonas.amoson@home.se> wrote:
> 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
>
>
>
>
> <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>



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] How to mount a P9 partition?
@ 2010-02-19 17:47 Jonas Amoson
  0 siblings, 0 replies; 5+ messages in thread
From: Jonas Amoson @ 2010-02-19 17:47 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 1660 bytes --]

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 [quanstro@quanstro.net]
Sent: 19/2/2010 6:01:57 PM
To: 9fans@9fans.net
Subject: Re: [9fans] How to mount a P9 partition?

> 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

.



<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>

[-- Attachment #2: Type: text/html, Size: 1977 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] How to mount a P9 partition?
  2010-02-19 16:55 Jonas Amoson
@ 2010-02-19 17:01 ` erik quanstrom
  0 siblings, 0 replies; 5+ messages in thread
From: erik quanstrom @ 2010-02-19 17:01 UTC (permalink / raw)
  To: 9fans

> 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



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [9fans] How to mount a P9 partition?
@ 2010-02-19 16:55 Jonas Amoson
  2010-02-19 17:01 ` erik quanstrom
  0 siblings, 1 reply; 5+ messages in thread
From: Jonas Amoson @ 2010-02-19 16:55 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 2340 bytes --]

> 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.muzgo@gmail.com]
Sent: 19/2/2010 3:48:35 PM
To: 9fans@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.

On 2/19/10, Jonas Amoson wrote:
> 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
>


<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>

[-- Attachment #2: Type: text/html, Size: 3046 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-02-19 17:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-19 12:46 [9fans] How to mount a P9 partition? Jonas Amoson
2010-02-19 14:48 ` Iruata Souza
2010-02-19 16:55 Jonas Amoson
2010-02-19 17:01 ` erik quanstrom
2010-02-19 17:47 Jonas Amoson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).