IBook G4 and FreeBSD 9.0-RC2: unable to create four slices on hard drive?

Torfinn Ingolfsen torfinn.ingolfsen at broadpark.no
Thu Nov 17 17:35:06 UTC 2011


On Thu, 17 Nov 2011 20:50:43 +0400
"Andrey V. Elsukov" <ae at 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 at 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 at 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



More information about the freebsd-ppc mailing list