From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@9fans.net
Subject: Re: [9fans] Partitioning the disk
Date: Wed, 2 Apr 2014 10:28:16 -0400 [thread overview]
Message-ID: <9d726c2a3a4f351991d010066b94b18b@brasstown.quanstro.net> (raw)
In-Reply-To: <20140401215417.GA2238@thunderclap>
> As I cannot force plan 9 to use my sata disk, I've decided to buy a sata to usb convertor.
> After compiling the usb tools on 9atom, I can find my disk under /dev/sdU1.0 and now is the time to
> prepare the disk partitions in order to install plan 9. Disk which I want to use isn't empty
> (it contains some of ext4s and swap) but I want to format the entire disk. In 9atom doc's pages
> I've found some example how to initialize the blank disk:
>
> Initialize the blank disk /dev/sdC0/data.
> disk/mbr –m /386/mbr /dev/sdC0/data
> disk/fdisk –baw /dev/sdC0/data
> disk/prep –bw –a^(9fat nvram fossil cache swap) /dev/sdC0/plan9
> disk/format –b /386/pbslba –d –r 2 /dev/sdC0/9fat \
> /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 &&
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(simpler that writting rc script)?
cd /sys/src; mk install && mk clean
there is not enough room on the usb key to install all.
- erik
next prev parent reply other threads:[~2014-04-02 14:28 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-01 21:54 Szymon Olewniczak
2014-04-02 14:28 ` erik quanstrom [this message]
2014-04-02 21:48 ` Szymon Olewniczak
2014-04-02 22:02 ` erik quanstrom
2014-04-03 18:08 ` Szymon Olewniczak
2014-04-03 18:13 ` erik quanstrom
2014-04-03 18:25 ` Szymon Olewniczak
2014-04-03 18:30 ` erik quanstrom
2014-04-06 19:21 ` Szymon Olewniczak
2014-04-03 18:22 ` Alexander Kapshuk
2014-04-03 18:24 ` erik quanstrom
2014-04-07 18:18 ` Szymon Olewniczak
2014-04-07 20:05 ` erik quanstrom
2014-04-10 20:23 ` Szymon Olewniczak
2014-04-10 20:53 ` erik quanstrom
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=9d726c2a3a4f351991d010066b94b18b@brasstown.quanstro.net \
--to=quanstro@quanstro.net \
--cc=9fans@9fans.net \
/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).