On Sun, Feb 27, 2011 at 1:38 AM, Skip Tavakkolian
<skip.tavakkol...@gmail.com> wrote:
> if i pxeload a cpu and want to be able to use an nvram partition on a
> usb disk (i.e. nvram=/dev/sdXX/nvram - once it is partitioned &
> formated). it seems i also must change boot/boot.c to add the 'partfs
> && fdisk -p && prep -p' after usbd has started. is this correct?
>
>

There are two alternatives.
Be wary, I am writing this by looking at the manual and from
what I remember from the code, but they should be *almost* right.

One is run
usb/usbd
mount /srv/usb /n/usb
#now you have /n/usb/sdU0.0 for example there
#here there are two alternatives, you can use partfs or fs, depending
#on your needs.

#with partfs *simpler but slower*
disk/partfs /n/usb/sdU0.0
cd /dev/sdXX
disk/fdisk -p data > ctl
disk/prep -p plan9 > ctl

#alternatively to partfs
#with fs
{
    echo disk sdXX 512 /n/usb/sdU0.0/data
   disk/fdisk -p /n/usb/sdU0.0/data
   disk/prep -p /n/sdXX/plan9

} > /dev/fs/ctl


G.

-- 
- curiosity sKilled the cat

Reply via email to