Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Adding Ubuntu to Multiboot Drive on PPC G4 DA

  1. #1
    Join Date
    Mar 2008
    Location
    Plantation, FL
    Beans
    107
    Distro
    Ubuntu 10.04 Lucid Lynx

    Adding Ubuntu to Multiboot Drive on PPC G4 DA

    I have a 300G drive (/dev/hdi) with 100 G devoted to a booting distro of Debian
    5.04 on the first half of the drive. I want to make the drive multi-boot
    with both Debian and Ubuntu sharing the drive. I've tried several different
    methods of obtaining this the last of which has been to put on another 100G,
    ext3 fsfile partion following the 2G swap partition used in the Debian
    installation. I used the root partition from a working installation of
    Ubuntu on another drive in my system using the cp -a method of copying and
    I also changed the fstab of this copy on the /dev/hdi5 partition to which
    it was copied. Below is my present partition map:


    /dev/hdi
    # type name length base ( size ) system
    /dev/hdi1 Apple_partition_map Apple 63 @ 1 ( 31.5k) Partition map
    /dev/hdi2 Apple_Bootstrap bootstrap 1600 @ 64 (800.0k) NewWorld bootblock
    /dev/hdi3 Apple_UNIX_SVR2 / 209715200 @ 1664(100.0G) Linux native
    /dev/hdi4 Apple_UNIX_SVR2 swap 4194304 @ 209716864 ( 2.0G) Linux swap
    /dev/hdi5 Apple_UNIX_SVR2 / 209715200 @ 213911168 (100.0G) Linux native
    /dev/hdi6 Apple_Free Extra 201516080 @ 423626368 ( 96.1G) Free space

    Block size=512, Number of Blocks=625142448
    DeviceType=0x0, DeviceId=0x0


    Yaboot Menu items: debian hdg-ubuntu hdb-debian hdi-ubuntu

    Note: The fstab file of /dev/hdi5 (root partition) is using /dev/hdi4 as swap.

    I also added the Ubuntu item to the yaboot menu using ybin and yaboot.conf.
    Using this yaboot menu when starting up, it will boot all my menu items,
    but when it tries to load the Ubuntu menu item on /dev/hdi5, it returns the
    error message:

    "/pci@f2000000/ACARD,6280M@14/@2:5,/boot/vmlinux:Unknown or corrupt filesystem".

    Obviously yaboot is working correctly as it launches all the menu items
    including this one, but this file system is not to the liking of OpenFirmware
    and so it won't boot. I have the same problem trying to start using the menu
    pick from the other drives. (Their menu picks also point to the hdi5 partition.)
    I have also run the fsck utility app and everything checks fine on /dev/hdi5.

    Ideas?

    Steve


    System: /dev/hda(30G) = MacOSX10.4.11 /dev/hdb(30 G) = Debian 5.04 /dev/hdg(80G) = Ubuntu 9.04 /dev/hdi(300G) = multiboot
    466 MHz G4 DA 1.5G ram DVR-115D

  2. #2
    Join Date
    Jun 2008
    Location
    Berlin
    Beans
    784
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Adding Ubuntu to Multiboot Drive on PPC G4 DA

    Sorry, but I get confused reading your post.
    How many HD's do you have in you PowerMac?
    How many GNU/Linux OS's do you have on your Mac?
    Can you please post your file /etc/yaboot.conf?
    PowerMac G5 Debian Squeeze - MacOSX Leopard / Lenovo 3000 N200 Debian Wheezy
    PowerPCFAQ, PowerPCKnownIssues, Booting the Installer on PowerPC, Yaboot - How to configure the PPC Bootloader

  3. #3
    Join Date
    Mar 2008
    Location
    Plantation, FL
    Beans
    107
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Adding Ubuntu to Multiboot Drive on PPC G4 DA

    Please look at the bottom of my post. I describe each of the four drives I have as well as my basic computer system.

    Here is my yaboot.conf:

    ## yaboot.conf generated by debian-installer
    ##
    ## run: "man yaboot.conf" for details. Do not make changes until you have!!
    ## see also: /usr/share/doc/yaboot/examples for example configurations.
    ##
    ## For a dual-boot menu, add one or more of:
    ## bsd=/dev/hdaX, macos=/dev/hdaY, macosx=/dev/hdaZ
    ## Modified: 5/15/09

    fgcolor=yellow
    bgcolor=black

    boot=/dev/hdi2
    device=/pci@f2000000/ACARD,6280M@14/@2:
    partition=3
    root=/dev/hdi3
    timeout=100
    install=/usr/lib/yaboot/yaboot
    magicboot=/usr/lib/yaboot/ofboot
    enablecdboot
    macosx=/dev/hda3

    image=/boot/vmlinux
    label=debian
    read-only
    initrd=/boot/initrd.img
    append="quiet splash"

    # This entry automatically added by the Debian installer for an existing
    # Linux installation on /dev/hdg3.
    image=/pci@f2000000/ACARD,6280M@14/@0:3,/boot/vmlinux
    label=hdg-ubuntu
    root=/pci@f2000000/ACARD,6280M@14/@0:3
    append="root=/dev/hdg3 ro quiet splash"
    initrd=/pci@f2000000/ACARD,6280M@14/@0:3,/boot/initrd.img

    # This entry automatically added by the Debian installer for an existing
    # Linux installation on /dev/hdi5.
    image=/pci@f2000000/ACARD,6280M@14/@2:5,/boot/vmlinux
    label=hdi-ubuntu
    root=/pci@f2000000/ACARD,6280M@14/@2:5
    append="root=/dev/hdi5 ro quiet splash"
    initrd=/pci@f2000000/ACARD,6280M@14/@2:5,/boot/initrd.img

    # This entry automatically added by the Debian installer for an existing
    # Linux installation on /dev/hdb3.
    image=/pci@f2000000/mac-io@17/ata-4@1f000/disk@1:3,/boot/vmlinux
    label=hdb-debian
    root=/pci@f2000000/mac-io@17/ata-4@1f000/disk@1:3
    append="root=/dev/hdb3 ro quiet splash"
    initrd=/pci@f2000000/mac-io@17/ata-4@1f000/disk@1:3,/boot/initrd.img

  4. #4
    Join Date
    Jun 2008
    Location
    Berlin
    Beans
    784
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Adding Ubuntu to Multiboot Drive on PPC G4 DA

    Did you format /dev/hdi5 (hdi-Ubuntu) as ext4?
    Can you boot Ubuntu on /dev/hdg3 (hdg-ubuntu)?
    PowerMac G5 Debian Squeeze - MacOSX Leopard / Lenovo 3000 N200 Debian Wheezy
    PowerPCFAQ, PowerPCKnownIssues, Booting the Installer on PowerPC, Yaboot - How to configure the PPC Bootloader

  5. #5
    Join Date
    Mar 2008
    Location
    Plantation, FL
    Beans
    107
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Adding Ubuntu to Multiboot Drive on PPC G4 DA

    It's formatted as ext3 like my other Linux root partitions.

  6. #6
    Join Date
    Jun 2008
    Location
    Berlin
    Beans
    784
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Adding Ubuntu to Multiboot Drive on PPC G4 DA

    Can you please try following. Back up yaboot.conf, and then edit the entry of /dev/hdi5, adding root=/dev/hdi5 instead of the Open Firmware Path
    I know that it should be same (and that it is given as boot argument), but I noticed a difference between Debian and Ubuntu (and Fedora as well) on this point.
    Of course run 'ybin -v' after editing.
    PowerMac G5 Debian Squeeze - MacOSX Leopard / Lenovo 3000 N200 Debian Wheezy
    PowerPCFAQ, PowerPCKnownIssues, Booting the Installer on PowerPC, Yaboot - How to configure the PPC Bootloader

  7. #7
    Join Date
    Mar 2008
    Location
    Plantation, FL
    Beans
    107
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Adding Ubuntu to Multiboot Drive on PPC G4 DA

    I forgot to answer your previous post about the /dev/hdg3. I can and do launch that Ubuntu (on hdg3) using the yaboot configured menu on /dev/hdi. hdb,hdg, and hdi all have their own New World boot block on their drives and an accompanying yaboot.conf installed yaboot. All three launch their primary distro of Linux contained on them as well as have the ability to launch the distro's on the other drives. The first stage portion of yaboot on all drives launch my MacOSX on /dev/hda also.

    As far as the addition of the root=/dev/hdi5 goes, doesn't the line:
    append="root=/dev/hdi5 ro quiet splash" do just that?
    According to the info I have (yaboot is not very well documented), the append adds more options to the configuration just as if you were putting everything on one line.

  8. #8
    Join Date
    Jun 2008
    Location
    Berlin
    Beans
    784
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Adding Ubuntu to Multiboot Drive on PPC G4 DA

    Quote Originally Posted by motsteve View Post
    I forgot to answer your previous post about the /dev/hdg3. I can and do launch that Ubuntu (on hdg3) using the yaboot configured menu on /dev/hdi. hdb,hdg, and hdi all have their own New World boot block on their drives and an accompanying yaboot.conf installed yaboot. All three launch their primary distro of Linux contained on them as well as have the ability to launch the distro's on the other drives. The first stage portion of yaboot on all drives launch my MacOSX on /dev/hda also.
    Even if you have different Linux Distros on differnt HD's, usually you need only one Apple_Boostrap_Partition (it is a small partition where yaboot is placed). But it can be, that you go that way for other reasons

    As far as the addition of the root=/dev/hdi5 goes, doesn't the line: append="root=/dev/hdi5 ro quiet splash" do just that?
    According to the info I have (yaboot is not very well documented), the append adds more options to the configuration just as if you were putting everything on one line.
    I know that, but as I said, I have noticed that Ubuntu and Debian Installer work a bit different about Yaboot. Please, try as I suggested you. If it does not work, you can always restore your configuration.

    About Yaboot you can read a short how-to I wrote some time ago.
    http://ubuntuforums.org/showthread.php?t=994882
    I guess you now this
    http://www.alaska.net/~erbenson/
    http://yaboot.ozlabs.org/

    Btw, can you please tell me, why are you running 2 Debian and 2 Ubuntu System on one machine. Are they different versions?
    PowerMac G5 Debian Squeeze - MacOSX Leopard / Lenovo 3000 N200 Debian Wheezy
    PowerPCFAQ, PowerPCKnownIssues, Booting the Installer on PowerPC, Yaboot - How to configure the PPC Bootloader

  9. #9
    Join Date
    Mar 2008
    Location
    Plantation, FL
    Beans
    107
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Adding Ubuntu to Multiboot Drive on PPC G4 DA

    I'll try what you said.

    I'm learning Linux and creating and manipulating partitions, files, configurations, etc make for a good learning experience. Books and manuals are fine, but by doing one learns.

    I'll let you know what I find out.

  10. #10
    Join Date
    Mar 2008
    Location
    Plantation, FL
    Beans
    107
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Adding Ubuntu to Multiboot Drive on PPC G4 DA

    I modified the portion of my config file launching Ubuntu from hdi5 as follows:

    # Linux installation on /dev/hdi5.
    image=/pci@f2000000/ACARD,6280M@14/@2:5,/boot/vmlinux
    label=hdi-ubuntu
    root=/pci@f2000000/ACARD,6280M@14/@2:5
    # append="root=/dev/hdi5 ro quiet splash"
    root=/dev/hdi5
    initrd=/pci@f2000000/ACARD,6280M@14/@2:5,/boot/initrd.img

    I did a ybin on the config and got the following:

    # ybin -b /dev/hdi2 -v

    ybin: Finding OpenFirmware device path to `/dev/hdi2'...
    ybin: Finding OpenFirmware device path to `/dev/hda3'...
    ybin: Installing first stage bootstrap /usr/lib/yaboot/ofboot onto /dev/hdi2...
    hcopy: "/tmp/ofboot.eCScOc": write nonexistent logical block (Input/output error)
    ybin: An error occured while writing to /dev/hdi2


    It didn't like that one change. It is probably due to two root defines being made. I commented out the other root, but got the same error. It could be happy if I changed the whole section concerning /dev/hdi5 and not use the ofpath for anything. I'll put all the lines concerning the device, boot, image, ramdisk and root like is done for the first menu item (Debian, in this case). No matter what, we still have to talk to OpenFirmware.

    BTW, thanks for the references. I'll check them out when I get back to all of this later in the day.
    Last edited by motsteve; May 17th, 2009 at 02:10 PM.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •