From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Sun, 27 Feb 2011 03:07:29 +0100 Message-ID: From: Gorka Guardiola To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [9fans] usb/disk nvram and pxeload Topicbox-Message-UUID: b52284ce-ead6-11e9-9d60-3106f5b1d025 On Sun, Feb 27, 2011 at 1:38 AM, Skip Tavakkolian 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