From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@9fans.net
Subject: Re: [9fans] Root file system from usb-hdd on raspberry pi
Date: Tue, 26 Mar 2013 09:07:15 -0400 [thread overview]
Message-ID: <9f9b050f2270db9c9b9307b24913080e@brasstown.quanstro.net> (raw)
In-Reply-To: <515199E1.7070606@gmx.de>
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
next prev parent reply other threads:[~2013-03-26 13:07 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 [this message]
2013-03-26 13:47 ` Friedrich Psiorz
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=9f9b050f2270db9c9b9307b24913080e@brasstown.quanstro.net \
--to=quanstro@quanstro.net \
--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).