9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Latchesar Ionkov <lucho@gmx.net>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] WORM recomendations?
Date: Thu, 18 Jan 2001 11:12:21 -0500	[thread overview]
Message-ID: <20010118111221.A3854@gmx.net> (raw)
In-Reply-To: <02f601c08029$c3ea4aa0$0ab9c6d4@cybercable.fr>; from boyd@planete.net on Wed, Jan 17, 2001 at 03:04:02AM +0100

On Wed, Jan 17, 2001 at 03:04:02AM +0100, Boyd Roberts said:
> > I'd love to have USB support in Plan 9.
> 
> i'd just like to be able to boot off my USB
> floppy and then install using the stuff on c:
> 
> i don't think that's possible -- no plan 9
> installed, no hacks to get it to boot.

I believe you can install it without plan9 machine. I never install it that
way, but that's what I am planning to do if I screw the installation on my
usb-floppy-only laptop (I have linux and use it as example. I believe you
can do the same in Windows with the right tools)

1. Download plan9 boot disk and copy it to a floppy disk.
2. Create partition for Plan9 install with the right partition type (0x39)
3. Create Plan9 partition image in a file

	dd if=/dev/zero of=9fat bs=1024 count=1440
	mkdosfs -R 2 9fat
	mount /dev/fd0 /mnt/floppy
	mount -o loop=/dev/loop0 9fat /mnt/9fat
	cp /mnt/floppy/* /mnt/9fat/
	umount /mnt/9fat/
	dd if=/dev/zero of=part9 bs=512 count=1
	(echo part 9fat 0 2880 ; echo part nvram 2880 2881; dd if=/dev/zero bs=1 count=474) > 9ptbl
	cat 9fat /mnt/floppy/plan9.nvr > 9part0
	(dd if=9part0 count=1 ; dd if=9ptbl ; dd if=9part skip=2) > 9part
	
   This should create Plan9 partition with 9fat (size 1440M) and nvram (size
   512 bytes) subpartitions in 9part file. It will also copy all the files
   from the boot floppy to the 9fat subpartition.
   
   Note 1: standard mkdosfs misteriously doesn't recognize -R option even if
   it presents in the man page. You have to modify mkdosfs source (add "R:"
   at in the getopt function at mkdosfs.c:1410)
   
   Note 2: In theory there is no guarantee that copying files from the
   floppy to the newly created FAT filesystem will not fragment the files.
   In practice it doesn't happen -- I don't see any reason files will be
   fragmented if they are copied to a blank filesystem.
   
4. Copy 9part file in the real Plan9 partition

	dd if=9part of=/dev/hdaX
	
5. Modify plan9.ini in the floppy disk to read the kernel and the kfs
   filesystem from 9fat partition

   	bootargs=local!#S/sdC0/9fat
	bootfile=sdC0!9fat!9pcflop.gz

6. Reboot. 

If you are lucky, you'll have running shell. Installation scripts are
designed to work booting from floppy and you have to modify them to continue
the installation. I didn't go that far and I don't guarantee that you can
install that way.
	
I can email you 9part file if you cannot create it using the OS you have.

	Lucho


  reply	other threads:[~2001-01-18 16:12 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-17  1:52 okamoto
2001-01-17  2:04 ` Boyd Roberts
2001-01-18 16:12   ` Latchesar Ionkov [this message]
2001-01-18 20:35     ` Boyd Roberts
2001-01-18 20:55       ` Latchesar Ionkov
2001-01-18 21:00         ` Boyd Roberts
  -- strict thread matches above, loose matches on Subject: below --
2001-01-18 21:08 Russ Cox
2001-01-18 22:07 ` Boyd Roberts
2001-01-18 22:08 ` Boyd Roberts
2001-01-18 22:29   ` Boyd Roberts
2001-01-18 23:10     ` matt heath
2001-01-18 23:17       ` Boyd Roberts
2001-01-18 23:24       ` Boyd Roberts
2001-01-17  4:55 okamoto
2001-01-17  4:16 rob pike
2001-01-17  2:15 okamoto
2001-01-16 20:55 jmk
2001-01-16 19:18 Richard Miller
2001-01-17  3:07 ` Eric Dorman
2001-01-16 18:25 jmk
2001-01-16 17:58 rob pike
2001-01-16 18:08 ` Boyd Roberts
2001-01-16 15:13 rob pike
2001-01-16 14:59 nigel
2001-01-16 17:52 ` Boyd Roberts
2001-01-16 22:06   ` William K. Josephson
2001-01-16 14:39 rob pike
2001-01-16 14:29 forsyth
2001-01-16 14:06 Ed

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=20010118111221.A3854@gmx.net \
    --to=lucho@gmx.net \
    --cc=9fans@cse.psu.edu \
    /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).