Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Using "parted"
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
GentooIsFun!
n00b
n00b


Joined: 06 Apr 2004
Posts: 25

PostPosted: Fri Apr 09, 2004 8:35 am    Post subject: Using "parted" Reply with quote

Yeah I was wanting to use parted to shrink my OS X partion so I dont have to wipe the disk clean but there is no intructions on how to use it. Couldnnt find a man page either on the LiveCD.,
Back to top
View user's profile Send private message
monotux
l33t
l33t


Joined: 09 Sep 2003
Posts: 751
Location: Stockholm, Sweden

PostPosted: Fri Apr 09, 2004 9:04 am    Post subject: Reply with quote

I don't think parted can resize a non-linux partition.
_________________
Computer science is no more about computers than astronomy is about telescopes.
Back to top
View user's profile Send private message
ronmon
Veteran
Veteran


Joined: 15 Apr 2002
Posts: 1043
Location: Key West, FL

PostPosted: Fri Apr 09, 2004 3:16 pm    Post subject: Reply with quote

Oh yes it can. I used it to shrink the OS X partition on the iBook that I got just the other day (my very first Mac). Despite what it says on the GNU/parted web site, the version on the gentoo-2004.0 CDs did a fine job without any damage. I was also able to reorder the partitions using mac-fdisk and Mac OS X still boots.

If you are at all familiar with fdisk, you shouldn't have a problem. It works very much the same way. Reading the documentation linked on their site would be a really good idea.
_________________
Ask Questions the Smart Way - by ESR
Back to top
View user's profile Send private message
Jowilly
Guru
Guru


Joined: 22 Jun 2002
Posts: 319

PostPosted: Fri Apr 09, 2004 5:41 pm    Post subject: Reply with quote

There is a nice gui for parted :emerge qtparted
Back to top
View user's profile Send private message
killfire
l33t
l33t


Joined: 04 Oct 2003
Posts: 618

PostPosted: Sat Apr 10, 2004 3:13 pm    Post subject: Reply with quote

what version of parted is on the 2004.0 cd? i have a 1.4 install, and i have 1.6.8 installed on an iBook. and when i tried to resize the artition it said it was not possible, because it oculd not check the filesystem

also, i tried to resize an ext2 partition and it said the partition was set up strangly, and it couldnt resize it... whats happening.


can you describe exactkly how you got it to work?

killfire
Back to top
View user's profile Send private message
ronmon
Veteran
Veteran


Joined: 15 Apr 2002
Posts: 1043
Location: Key West, FL

PostPosted: Sat Apr 10, 2004 4:30 pm    Post subject: Reply with quote

I downloaded, burned and booted from install-minimal-ppc-2004.0.iso.

Then, I ran 'parted /dev/hda'. From there, just follow the directions. It really is that simple.
_________________
Ask Questions the Smart Way - by ESR
Back to top
View user's profile Send private message
jaspal kallar
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 194
Location: Sweden

PostPosted: Sat Apr 10, 2004 10:37 pm    Post subject: Reply with quote

My original partition looked something like (with mac-fdisk -l /dev/sda:)

Code:

dev/sda
        #                    type name                  length   base      ( size )  system
dump: name /dev/sda len 8
/dev/sda1     Apple_partition_map Apple                     63 @ 1         ( 31.5k)  Partition map
/dev/sda2               Apple_HFS Untitled           157286337 @ 64        ( 75.0G)  HFS


Do first to obtain necessary infomation
Code:
(parted) print



So to shrink /dev/sda2 to 50 G (i,e 1024 x 50 = 51200) one does :
Code:
 (parted) resize 2 000.3  51200


Note that the "2" and the "000.3" in the above is obtained from the above (parted) print command



Then afterwards if you do mac-fdisk -l you will get a new partition (the one you will install gentoo on) and it will be named /dev/sda3, saying that you have 25G. Of course back-up your stuff on OS X. I had a new powermac so the I wasn't risking loosing too much ;-)

I hope the above (perhaps over the top example) may help *newbies* like I was.
Back to top
View user's profile Send private message
frankOnPPC
Apprentice
Apprentice


Joined: 26 May 2003
Posts: 169
Location: Fulda, Hessen, Germany, Europe, Earth

PostPosted: Fri Apr 16, 2004 9:47 am    Post subject: Reply with quote

Jowilly wrote:
There is a nice gui for parted :emerge qtparted

you got it builded ?
I tried it and the (masked) build failed....
the parted part...
krgds,
Frank
_________________
always look at yellow site of Linux on the PPC.
Its PPCNUX.
Back to top
View user's profile Send private message
killfire
l33t
l33t


Joined: 04 Oct 2003
Posts: 618

PostPosted: Fri Apr 16, 2004 6:55 pm    Post subject: Reply with quote

i just realized that i have been trying to resize the disk when i have been booted up onto it (/dev/hda)

downloaded new livecd (install-universal-ppc-2004.0) and will try with it, however, my combo drive (sony 820something) on my iBook does nto burn anymore...... and am in the middle of a trimester.......


so not repair yet, but will post when, and if it works with the new livecd...

question: i have an old livecd (1.4 and 1.4 kde/gnome) does this have a version of parted that can resize my partitions? (would like to resize both hfs+ and ext2)

this will make my life easier, and not make me wait 8 weeks or so.....



killfire
Back to top
View user's profile Send private message
clar77
Apprentice
Apprentice


Joined: 02 Feb 2004
Posts: 210
Location: Charm City, MD

PostPosted: Fri Apr 16, 2004 7:32 pm    Post subject: Reply with quote

I believe parted was included on the 1.4 ppc live-cd.
_________________
Pointless screenshots
My dogs :)
Back to top
View user's profile Send private message
genfoo
Apprentice
Apprentice


Joined: 17 Apr 2003
Posts: 192

PostPosted: Fri Apr 16, 2004 9:50 pm    Post subject: Reply with quote

The one on the liveCD is probably the patched version with HFS resizing support (that one of the ppc developers made). I don't think it got applied upstream, and I'm not sure if it's in the ebuilds for parted or not as it's still 'experimental' last time I saw this ...

Look at the subject in the #gentoo-ppc room in IRC, the info was posted there for a long time .. not sure if it still is or not
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