9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] partitioning with prep(8)
@ 2011-06-17 23:52 Akshat Kumar
  2011-06-18  0:19 ` Akshat Kumar
  0 siblings, 1 reply; 2+ messages in thread
From: Akshat Kumar @ 2011-06-17 23:52 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

I created plan9 subpartitions on my disk and wanted
to remove one and make two new ones.
Here's the scheme (500 GB hdd, all of it plan9 partition,
512 byte sectors):

9fat 0-24800
nvram 204800-204801
fscfg 204801-204802
fs 204802-10690562
swap 10690562-11739138
empty 11739138-89904498
worm 89904498-246205986

When I go to partition the `empty' area, prep(8) decides
that it doesn't want to let me access part of it:

>>> a other
start sector: 11739138
end [11739138..78155217]

However, I can, by hand, type in

echo part other 11739138 89904498 > /dev/sdC0/ctl

and it will create that partition for me. So why is prep(8)
bugging out here? And if I need to avoid prep(8), then
how can I reclaim the partition I added by hand, on boot
(since /rc/bin/diskparts uses prep(8) with -p option, which
then doesn't recognize the partition I created by hand)?


ak



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [9fans] partitioning with prep(8)
  2011-06-17 23:52 [9fans] partitioning with prep(8) Akshat Kumar
@ 2011-06-18  0:19 ` Akshat Kumar
  0 siblings, 0 replies; 2+ messages in thread
From: Akshat Kumar @ 2011-06-18  0:19 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

I made a typo:

>>>> a other
> start sector: 11739138
> end [11739138..78155217]
>
> However, I can, by hand, type in
>
> echo part other 11739138 89904498 > /dev/sdC0/ctl

I meant:

echo part other 11739201 98804561 > /dev/sdC0/ctl

(because plan9 partition is offset 63 from the beginning of
the disk but prep(8) ignores this).

So... still, any ideas?


ak



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-06-18  0:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-17 23:52 [9fans] partitioning with prep(8) Akshat Kumar
2011-06-18  0:19 ` Akshat Kumar

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).