Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Nov 2011 18:35:04 +0100
From:      Torfinn Ingolfsen <torfinn.ingolfsen@broadpark.no>
To:        freebsd-ppc@freebsd.org
Subject:   Re: IBook G4 and FreeBSD 9.0-RC2: unable to create four slices on hard drive?
Message-ID:  <20111117183504.b564afd6.torfinn.ingolfsen@broadpark.no>
In-Reply-To: <4EC53B63.2020706@FreeBSD.org>
References:  <20111116224604.6403be5a.torfinn.ingolfsen@broadpark.no> <4EC4D537.4050704@FreeBSD.org> <4EC5279F.6020608@freebsd.org> <20111117173703.3c633777.torfinn.ingolfsen@broadpark.no> <4EC53B63.2020706@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 17 Nov 2011 20:50:43 +0400
"Andrey V. Elsukov" <ae@FreeBSD.org> wrote:

> You can try to boot from FreeBSD live-cd and use `gpart backup`
> command to save you partition table. Then you can change number of
> entries and restore your table.
> So, something like:
> # gpart backup ada0 > /tmp/ada0.backup
> Now edit /tmp/ada0.backup and change line "APM X" to "APM 16".
> # gpart restore -lF -f x ada0 < /tmp/ada0.backup
> Now check that all is ok and if so - commit changes
> # gpart show ada0
> # gpart commit ada0

That worked beautifully. The start position (or what the first number is) changed, but everything seems to work.
Now it looks like this:
root@kg-ibook# gpart show ada0
=>       18  117210222  ada0  APM  (55G)
         18     262190        - free -  (128M)
     262208   52626616     2  apple-hfs  (25G)
   52888824       1600     1  apple-boot  (800k)
   52890424   29358528     3  freebsd-ufs  (14G)
   82248952   34961288        - free -  (16G)

And gpart list:
root@kg-ibook# gpart list ada0
Geom name: ada0
modified: false
state: OK
fwheads: 16
fwsectors: 63
last: 117210239
first: 18
entries: 16
scheme: APM
Providers:
1. Name: ada0s2
   Mediasize: 819200 (800k)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 1309274112
   Mode: r0w0e0
   rawtype: Apple_Bootstrap
   label: (null)
   length: 819200
   offset: 27079077888
   type: apple-boot
   index: 1
   end: 52890423
   start: 52888824
2. Name: ada0s3
   Mediasize: 26944827392 (25G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 134250496
   Mode: r0w0e0
   rawtype: Apple_HFS
   label: Untitled
   length: 26944827392
   offset: 134250496
   type: apple-hfs
   index: 2
   end: 52888823
   start: 262208
3. Name: ada0s4
   Mediasize: 15031566336 (14G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 1310093312
   Mode: r1w1e1
   rawtype: FreeBSD-UFS
   label: (null)
   length: 15031566336
   offset: 27079897088
   type: freebsd-ufs
   index: 3
   end: 82248951
   start: 52890424
Consumers:
1. Name: ada0
   Mediasize: 60011642880 (55G)
   Sectorsize: 512
   Mode: r1w1e2

Much appreciated. Thanks!
-- 
Torfinn




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111117183504.b564afd6.torfinn.ingolfsen>