Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Resize existing partition?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
Sodom
n00b
n00b


Joined: 02 Jun 2004
Posts: 58
Location: Dusseldorf, Germany

PostPosted: Thu Aug 17, 2006 2:39 pm    Post subject: Resize existing partition? Reply with quote

Hi Forums

I want to install gentoo on a G4 powerbook and before doing anything I got some questions:

The powerbook is not mine, and the entire harddisk of 30 gb is full with mac os x and data. Is it possible to make the partition smaller, as for example partition magic does? If not - is it possible to copy the whole os to another computer (like cp -a / /mnt/partition/ ), fomat, writing new partitions with enough space for gentoo and copying mac os x back?
I booted the install live cd successfully and mac-fdisk -l gives
Quote:

/dev/hda
# type name length base ( size ) system
/dev/hda1 Apple_partition_map Apple 63 @ 1 ( 31.5k) Partition map
/dev/hda2 Apple_Driver_ATA Macintosh 64 @ 64 ( 32.0k) Unknown
/dev/hda3 Apple_Driver_ATA Macintosh 64 @ 128 ( 32.0k) Unknown
/dev/hda4 Apple_Patches Patch Partition 512 @ 192 (256.0k) Unknown
/dev/hda5 Apple_HFS MacOS 58603634 @ 704 ( 27.9G) HFS
/dev/hda6 Apple_Free 782 @ 58604338 (391.0k) Free space

Block size=512, Number of Blocks=58605120
DeviceType=0x0, DeviceId=0x0
Drivers-
1: @ 64 for 21, type=0x701
2: @ 128 for 34, type=0xf8ff

/dev/hdc
# type name length base ( size ) system
/dev/hdc1 Apple_partition_map Apple 2 @ 1 ( 1.0k) Partition map
/dev/hdc2 Apple_HFS Gentoo Linux 2006.0 PPC 105560 @ 16 ( 51.5M) HFS

Block size=512, Number of Blocks=105576
DeviceType=0x1, DeviceId=0x1


Thanks!
_________________
"The only way...to avoid moral corruption would be to have an OS that is free." Richard M. Stallman
Back to top
View user's profile Send private message
gentop
l33t
l33t


Joined: 29 Nov 2004
Posts: 639

PostPosted: Thu Aug 17, 2006 2:53 pm    Post subject: Reply with quote

Hi,

just have a look at partimage. You can save your partition data with it. After that, you can edit your partition table with fstab and restore the partition data. partimage has very nice network functionality ;-)

//gentop
Back to top
View user's profile Send private message
Sodom
n00b
n00b


Joined: 02 Jun 2004
Posts: 58
Location: Dusseldorf, Germany

PostPosted: Sat Aug 19, 2006 8:06 am    Post subject: Reply with quote

Hmm partimage is a nice application, but its not on the gentoo minimal ppc install cd, which contains with 52mb only the most important tools. I still solved the problem:
You can use parted to resize hfs+ partitions.
I had to disable journaling, so I booted mac osx:
Code:
cd /Volumes/
ls # get name of your partition, in my case  Macintosh\ HD
diskutil disableJournal Macintosh\ HD/

after reboot into gentoo live, start parted. parted will do the job with
Code:
resize # START END

where # is the number of the partition you want to modify.
Get the number with print or p.
In my case:
Code:
resize 5 1mb 9gb
and I shrinked the partition from 30 GB down to 9 GB.

Bye
_________________
"The only way...to avoid moral corruption would be to have an OS that is free." Richard M. Stallman
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum