From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Wed, 2 Apr 2014 10:28:16 -0400 To: 9fans@9fans.net Message-ID: <9d726c2a3a4f351991d010066b94b18b@brasstown.quanstro.net> In-Reply-To: <20140401215417.GA2238@thunderclap> References: <20140401215417.GA2238@thunderclap> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] Partitioning the disk Topicbox-Message-UUID: d4b373d2-ead8-11e9-9d60-3106f5b1d025 > As I cannot force plan 9 to use my sata disk, I've decided to buy a sat= a to usb convertor. > After compiling the usb tools on 9atom, I can find my disk under /dev/s= dU1.0 and now is the time to=20 > prepare the disk partitions in order to install plan 9. Disk which I wa= nt to use isn't empty > (it contains some of ext4s and swap) but I want to format the entire di= sk. In 9atom doc's pages > I've found some example how to initialize the blank disk: >=20 > Initialize the blank disk /dev/sdC0/data. > disk/mbr =E2=80=93m /386/mbr /dev/sdC0/data > disk/fdisk =E2=80=93baw /dev/sdC0/data > disk/prep =E2=80=93bw =E2=80=93a^(9fat nvram fossil cache swap) /dev/sd= C0/plan9 > disk/format =E2=80=93b /386/pbslba =E2=80=93d =E2=80=93r 2 /dev/sdC0/9f= at \ > /386/9load /386/9pcf /tmp/plan9.ini unfortunately usb disk devices are not directly partitionable. this can be solved on 9atom with sdloop addloop u /dev/sdU1.0/data this will create /dev/sdu0/^(ctl data) which you can then partition with diskparts. (if using the standard distribution use diskparts(8) and the file will be /dev/sdXX/data) if you do a pull as glenda, or alternately mount /srv/boot /n/root && 9fs atom &&=20 disk/mkfs -vkU -s /n/atom/plan9^`{pwd} -d . <{echo +} you can then try "mkusbboot -p `{echo +}". this may actually work. let me know if it has not, as i haven't had a chance to test it. > BTW. If there is any method to compile all the 9atom sources at once(si= mpler that writting rc script)? cd /sys/src; mk install && mk clean there is not enough room on the usb key to install all. - erik