View previous topic :: View next topic |
Author |
Message |
Massimo B. Veteran


Joined: 09 Feb 2005 Posts: 1893 Location: PB, Germany
|
Posted: Sun Nov 29, 2009 7:11 pm Post subject: Splitting root partition [solved] |
|
|
Hello.
I'd like to move to ext4. Since yaboot doesn't understand ext4 it's required to have kernel stuff /boot on ext3 so I need to split my current root partition.
Currently I have /dev/hda[1-7] while hda4 is root. I'd like to split hda4 into 2 partitions, ext3 for /boot and ext4 for the rest/. Will the hda[5-7] become hda[6-8] then?
mac-fdisk -l: | # mac-fdisk -l
/dev/hda
# type name length base ( size ) system
/dev/hda1 Apple_partition_map Apple 63 @ 1 ( 31.5k) Partition map
/dev/hda2 Apple_Bootstrap bootstrap 1600 @ 64 (800.0k) NewWorld bootblock
/dev/hda3 Apple_UNIX_SVR2 swap 3072000 @ 1664 ( 1.5G) Linux swap
/dev/hda4 Apple_UNIX_SVR2 root 31457280 @ 3073664 ( 15.0G) Linux native
/dev/hda5 Apple_UNIX_SVR2 home 269557384 @ 34530944 (128.5G) Linux native
/dev/hda6 Apple_HFS Apple_HFS_Untitled_2 8493464 @ 304088328 ( 4.0G) HFS
/dev/hda7 Apple_Free Extra 16 @ 312581792 ( 8.0k) Free space
Block size=512, Number of Blocks=312581808
DeviceType=0x0, DeviceId=0x0 |
Can parted do the job?
As the only Live CD for ppc providing ext4 together with cryptsetup and parted I found the Ubuntu ppc port.
Unfortunately our current install-powerpc-minimal-20091018.iso doesn't provide cryptsetup nor ext4. The install-powerpc-universal-2008.0.iso is said to be deprecated. _________________ HP ZBook Power G9 i7-12700H|HP ProDesk 600 G5 i7-9700|HP EliteDesk 800 G1 i7-4790|HP Compaq Pro 6300 i7-3770
Last edited by Massimo B. on Tue Jan 05, 2010 11:46 am; edited 1 time in total |
|
Back to top |
|
 |
luispa Guru

Joined: 17 Mar 2006 Posts: 359 Location: España
|
Posted: Sun Nov 29, 2009 8:12 pm Post subject: |
|
|
What if you reduce a bit your swap (hda3) ? with 50MB you'll have enough for boot. I guess it will renumber the partitions though.
Luis |
|
Back to top |
|
 |
Massimo B. Veteran


Joined: 09 Feb 2005 Posts: 1893 Location: PB, Germany
|
Posted: Mon Nov 30, 2009 9:49 am Post subject: |
|
|
Good advice, anyway, doesn't change the question about renumbering and if that breaks something (of course the renumbering would need some file to be changed...)
On x86 partition tables have the restriction about primary being not more than 4 and extended partitions being one of the 4 containing secondary partitions.
Does that apply to ppc too? Considering my mac-fdisk result I don't think so... _________________ HP ZBook Power G9 i7-12700H|HP ProDesk 600 G5 i7-9700|HP EliteDesk 800 G1 i7-4790|HP Compaq Pro 6300 i7-3770 |
|
Back to top |
|
 |
luispa Guru

Joined: 17 Mar 2006 Posts: 359 Location: España
|
Posted: Mon Nov 30, 2009 12:01 pm Post subject: |
|
|
Massimo B. wrote: | Good advice, anyway, doesn't change the question about renumbering and if that breaks something (of course the renumbering would need some file to be changed...)
|
You'll have renumbering as I guess. This will impact your /etc/fstab and your boot loader config (new root partition) (grub?).
Massimo B. wrote: | On x86 partition tables have the restriction about primary being not more than 4 and extended partitions being one of the 4 containing secondary partitions.
Does that apply to ppc too? Considering my mac-fdisk result I don't think so... |
I had a MBP once with Gentoo, but I don't remember about this, btw, it surprised me when I saw your setup. I've never seen it before .
Luis |
|
Back to top |
|
 |
ddc Guru

Joined: 29 Aug 2006 Posts: 521
|
Posted: Mon Dec 07, 2009 12:41 pm Post subject: |
|
|
luispa wrote: |
On x86 partition tables have the restriction about primary being not more than 4 and extended partitions being one of the 4 containing secondary partitions.
[u]Does that apply to ppc too? |
no
mac partition table is different from pc partition table
with mac you can have more than 4 partitions
also there is not "primary" and "extended", with mac there are only "partitions" |
|
Back to top |
|
 |
Massimo B. Veteran


Joined: 09 Feb 2005 Posts: 1893 Location: PB, Germany
|
Posted: Tue Dec 15, 2009 9:46 am Post subject: |
|
|
Worked.
I was able to split ~70M from /dev/hda3 which is swap. This is now used for boot and became /dev/hda7.
Booting from ext4 works now, see 6097347. _________________ HP ZBook Power G9 i7-12700H|HP ProDesk 600 G5 i7-9700|HP EliteDesk 800 G1 i7-4790|HP Compaq Pro 6300 i7-3770 |
|
Back to top |
|
 |
|