9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Friedrich Psiorz <f.psiorz@gmx.de>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] Root file system from usb-hdd on raspberry pi
Date: Tue, 26 Mar 2013 14:47:21 +0100	[thread overview]
Message-ID: <5151A6E9.3010305@gmx.de> (raw)
In-Reply-To: <9f9b050f2270db9c9b9307b24913080e@brasstown.quanstro.net>

I recompiled the kernel as you said, and noticed that it doesn't
complain about missing partfs during boot anymore; however there is no
additional sd*, still only sdM0 and sdU0.0, which still doesn't show me
any partitions.

Am 26.03.2013 14:07, schrieb erik quanstrom:
> On Tue Mar 26 08:52:50 EDT 2013, f.psiorz@gmx.de wrote:
>> I'm currently trying to set up a usb-hdd as my root filesystem; I found
>> out, that I have to use partfs to actually see the partitions I create,
>> however they don't show up after the next reboot; i have to use fdisk's
>> and prep's w command (without actualy modifying the partition table), to
>> see the partitions I created in the file system. Is that normal?
>
> that is normal.  but, there is no need to fdisk your disk unless you're
> booting from dos.  you can use prep directly.  for fdisk+prep the
> normal way to do this would be
> 	disk/fdisk /dev/sdXX/data>/dev/sdXX/ctl
> 	test -f /dev/sdXX/plan9 && disk/prep /dev/sdXX/plan9>/dev/sdXX/ctl
> if you have prep only, only this would be needed
> 	disk/prep /dev/sdXX/plan9>/dev/sdXX/ctl
> this is prepackaged in /rc/bin/diskparts, and the kernel will do
> this for you on boot.
>
>> Also, I don't yet quite understand how to boot from such a partition.
>> Somehow I need to get partfs into the kernel; but I don't know how, and
>> after that, how to use it for booting form the external hdd.
>
> you need to build partfs into your kernel.  add
> 	/arm/bin/disk/partfs
> to the bootdir section of your kernel configuration file and rebuild.
> in the rpi's case, i believe the kernel config is named /sys/src/9/bcm/pi
> or picpu.
>
> - erik
>




  reply	other threads:[~2013-03-26 13:47 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-26 12:51 Friedrich Psiorz
2013-03-26 13:07 ` erik quanstrom
2013-03-26 13:47   ` Friedrich Psiorz [this message]
2013-03-26 13:56     ` erik quanstrom
2013-03-26 14:25       ` Friedrich Psiorz
2013-03-26 14:35         ` erik quanstrom
2013-03-26 15:53           ` Friedrich Psiorz
2013-03-26 22:53             ` Friedrich Psiorz
2013-03-27  7:59               ` David du Colombier
2013-03-27  9:18                 ` Friedrich Psiorz
2013-03-27 14:43                   ` Richard Miller
2013-03-27 17:37                     ` Richard Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5151A6E9.3010305@gmx.de \
    --to=f.psiorz@gmx.de \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).