Yellow Dog Solutions

TOPIC: Installing YDL 2.1 on a 2.0 machine



Introduction
It is important to note that this document is intended to provide guideance ONLY to experienced Linux-users. USE AT YOUR OWN RISK!

In the following I will describe the steps needed to install a YDL 2.1 system on a YDL 2.0 system without killing the already installed OS 9.x, OS X and /home. Note that the data of /home has to be on a separate partition. So my partition table looks like this:

Partition map (with 512 byte blocks) on '/dev/hda'
 #:                type name              length   base     ( size )
 1: Apple_partition_map Apple                 63 @ 1
 2:      Apple_Driver43*Macintosh             54 @ 64
 3:      Apple_Driver43*Macintosh             74 @ 118
 4:    Apple_Driver_ATA*Macintosh             54 @ 192
 5:    Apple_Driver_ATA*Macintosh             74 @ 246
 6:      Apple_FWDriver Macintosh            200 @ 320
 7:  Apple_Driver_IOKit Macintosh            512 @ 520
 8:       Apple_Patches Patch Partition      512 @ 1032
 9:     Apple_Bootstrap untitled          524288 @ 1544     (256.0M)
10:           Apple_HFS "Macintosh HD"   4194304 @ 525832   (  2.0G)
11:           Apple_HFS "MacOS X"       10240000 @ 4720136  (  4.9G)
12:     Apple_UNIX_SVR2 swap              524289 @ 14960136 (256.0M)
13:     Apple_UNIX_SVR2 untitled         1024001 @ 15484425 (500.0M)
14:     Apple_UNIX_SVR2 untitled        10485761 @ 16508426 (  5.0G)
15:     Apple_UNIX_SVR2 untitled         1024001 @ 26994187 (500.0M)
16:     Apple_UNIX_SVR2 untitled         8388609 @ 28018188 (  4.0G)
17:     Apple_UNIX_SVR2 untitled         1048577 @ 36406797 (512.0M)
18:     Apple_UNIX_SVR2 untitled        21149746 @ 37455374 ( 10.1G)

... which is used under linux as follows:
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/hda13              495844     45885    424359  10% /
/dev/hda17              507748     94592    386942  20% /var
/dev/hda14             5160576   1410612   3487820  29% /usr
/dev/hda18            10408912   7273752   2606420  74% /data
/dev/hda16             4128448   2231528   1687208  57% /home
/dev/hda15              495844     50000    420244  11% /usr/local

(Note that the special-files /dev/hda16, /dev/hda17, /dev/hda18 normally not exist under YDL 2.1. Simply use mknod (see man mknod) to create them after finishing the steps below. For this use the rescue-system on the second CD, mount the newly created root (/) and make the special-files with mknod.).
  1. Make a backup of all of your data.

  2. Make a printout of /etc/fstab and /etc/yaboot.conf.

  3. Start the normal installation process for YDL 2.1.

  4. Before you edit the partitions in the installer switch to a text-console by using the CTRL-ALT-Fxx combination.

  5. Create a directory (e.g. /old)

  6. Mount the old root-dir to /old (e.g. mount /dev/hda13 /old).

  7. Copy mke2fs to /sbin (e.g. cp /old/sbin/mke2fs /sbin/mke2fs)

  8. Umount /old (umount /old).

  9. Wipe out all unneeded linux-data (here everything but /home and /data) by the following commands /sbin/mke2fs /dev/hda13, /sbin/mke2fs /dev/hda14, /sbin/mke2fs /dev/hda15, /sbin/mke2fs /dev/hda17 (Maybe you want to preserve /usr/local. So don't do /sbin/mke2fs /dev/hda15).

  10. Reboot (e.g. by reboot or halt).

  11. Start the normal installation process.

  12. Don't write a new partition-table on you disk (Simply skip this point in the installation process).

  13. Assign the mount-point as in the old system (see above).

  14. Finish the installation.

  15. Maybe you have to fix the generated /etc/yaboot.conf (use your printout for that). I had some trouble with my MacOS X partition.

  16. Have fun :-)
This HOWTO was brought to you by Steffen Reith, available for questions and assistance at ydl@streit.cc



 
          Copyright ® 1999-2010. Fixstars Corporation. All rights reserved.
YDL.net Fixstars Corporation