31 lines · 823 B · Shell
RawDownload
load std echo 1 > /dev/jit bind -a '#f' /devdossrv -f /dev/fd0disk echo 'Adding the master boot record...'disk/mbr -m /n/dos/mbr /dev/sdC0/dataecho 'Partitioning the first hard disk...' #disk/fdisk /dev/sdC0/datadisk/fdisk -a -b -w /dev/sdC0/dataecho 'Creating the 9fat and fs subpartitions...'disk/prep -bw -a^(9fat fs) /dev/sdC0/plan9echo 'Formatting the 9fat subpartition...'disk/format -b /n/dos/pbslba -d -r 2 /dev/sdC0/9fat unmount /n/dos echo 'Mounting the 9fat subpartition...'dossrv -f /dev/sdC0/9fatecho 'Copying files to the 9fat subpartition...'echo 'bootfile=sdC0!9fat!ipc.gz' > /n/dos/plan9.iniunmount /n/dos echo 'Creating the fs subpartition...'mount -c {disk/kfs -r /dev/sdC0/fs} /n/kfsunmount /n/kfs #sh -necho 'Now shut down (close the qemu window) and continue the installation.'