[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: resizing hfs+ partition
From: |
K.G. |
Subject: |
Re: resizing hfs+ partition |
Date: |
Sat, 15 Jan 2005 22:33:07 +0100 |
On Sat, 15 Jan 2005 14:41:40 -0600
dotgl1970 <address@hidden> wrote:
> On Saturday 15 January 2005 14:26, K.G. wrote:
> > On Sat, 15 Jan 2005 13:12:05 -0600
> >
> > dotgl1970 <address@hidden> wrote:
> > > I installed parted-1.6.20.tar.gz
> > > from http://ftp.gnu.org/gnu/parted/
> > >
> > > And I am trying to resize a hfs partition,
> > > I have had no success because of:
> > >
> > > no support hfs+ partition yet.
> > >
> > > Well how I could get that support? in parted
> >
> > You need a patch :
> > http://xilun.nerim.net/Projet/Parted/parted-1.6.19-hfs-16.patch.gz
> >
> > It can be quite difficult to apply and build it properly with
> > Parted 1.6.20 instead of 1.6.19, so unless you're a hacker
> > maybe you should try to apply it to 1.6.19, or even use
> > http://xilun.nerim.net/Projet/Parted/parted-1.6.19-hfs-16.tar.bz2
> > which is an already patched version of Parted, with also a
> > quick hack that greatly increase HFS resize speed on some
> > computers.ç
>
> Yes I imagine, later I found
> parted-1.6.19-hfs-16
>
> But still does not works, this one needs the /parted-1.6.19-hfs-16.patch.gz??
>
> I got this results
> 2fundacion:~/par/parted-1.6.19-hfs-16# parted -v
> GNU Parted 1.6.19 with HFS shrink patch 16
> 2fundacion:~/par/parted-1.6.19-hfs-16# parted /dev/hdd
> GNU Parted 1.6.19 with HFS shrink patch 16
> Copyright (C) 1998 - 2004 Free Software Foundation, Inc.
> This program is free software, covered by the GNU General Public License.
>
> This program is distributed in the hope that it will be useful, but WITHOUT
> ANY
> WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
> A
> PARTICULAR PURPOSE. See the GNU General Public License for more details.
>
> Usando /dev/hdd
> (parted) print
> Geometría de disco para /dev/hdd: 0.000-6179.906 megabytes
> Tipo de etiqueta de disco: mac
> Minor Inicio Fin Sistema de ficheros Nombre Banderas
> 1 0.000 0.031 Apple
> 2 0.031 0.062 Macintosh
> 3 0.062 0.093 Macintosh
> 4 0.094 0.343 Patch Partition
> 5 0.344 6149.877 hfs+ MacOS
> (parted) resize 5 0.344 600
> Aviso: Pidió redimensionar la partición para 0.344-600.000Mb. Lo más cerca que
> Parted puede manejar es 0.344-665.590Mb.
> De acuerdo/OK/Cancelar/Cancel? resize 5 0.344 700
> De acuerdo/OK/Cancelar/Cancel? OK
> No implemented: The support for check fs hfs+ is not yet implemented
>
> How do I implement the hfs+ support??
It's about the code that should check fs before starting the resize operation.
I haven't written such code and consider that a cleanly unmounted file system
has no error. Also, patch16 doesn't have journal support, so if your HFS+
is journaled you should try to desactivate the journal. Patch17 which has this
support is still under developpement and experimental.
So :
0) Save any valuable data of course
1) Boot Mac OS
2) Mac OS <= 9 => launch Disk Fist Aid and scan the FS.
or Mac OS X => launch Disk Utils and scan the FS, desactivate the Journal
if there's one, using the apropriate entry in the menu.
3) Shut down the computer properly
4) Boot Linux and run Parted, try to resize, if anything is fine
this is great :)
5) You can reactivate the journal if you want ( Warning : I don't know if
Linux HFS+ support is journal aware, but this shouldn't be a problem if
you don't boot Linux directly after a crash under OS X (power failure,
...) Launch OS X and shutdown then run Linux in that case )
Cheers,
Guillaume