Today I installed a “fascilitized” ubuntu 10.10 on a group machine, alongside the original fedora 7. I choose to use the original partition of disks and install ubuntu on a new logic volume.
Description: 4 disks, each with 500GB. Fedora is already installed on disk1.
Steps:
1. first check the disk partitions and logic volumes. (have to be root)
#fdisk -l Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 * 1 13 104391 83 Linux /dev/sda2 14 60801 488279610 8e Linux LVM Disk /dev/sdb: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdb1 * 1 60801 488384001 83 Linux Disk /dev/sdc: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdc1 * 1 60802 488386528+ 83 Linux Disk /dev/sdd: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdd1 * 1 60801 488384001 83 Linux
We see a logic partition in /dev/sda2.
2. find out the mount point of fedora and boot partition
# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup00-LogVol00 24G 16G 6.7G 71% / /dev/sdb1 459G 377G 59G 87% /usr1 /dev/sdc1 459G 85G 351G 20% /usr2 /dev/sdd1 459G 254G 182G 59% /usr3 /dev/mapper/VolGroup00-LogVol02 992M 379M 563M 41% /var /dev/mapper/VolGroup00-LogVol03 992M 761M 180M 81% /var/cache/openafs /dev/sda1 99M 45M 49M 48% /boot tmpfs 7.8G 0 7.8G 0% /dev/shm none 7.8G 32K 7.8G 1% /tkt /dev/mapper/VolGroup00-LogVol01 402G 199M 382G 1% /usr0 AFS 8.6G 0 8.6G 0% /afs
3. Resizethe logic volumes and create one volume for ubuntu. This must be done outside fedore system on disk. One easy way is to get a usb disk with Fedora 14 live (or any latest fedora). Those distribution includes LVM (logical volume manager).
Resize the /dev/VolGroup00/LogVol01, and add a new volume of 25GB. After the resize the volumes will be:
# /usr/sbin/lvscan ACTIVE '/dev/VolGroup00/LogVol00' [24.44 GB] inherit ACTIVE '/dev/VolGroup00/LogVol02' [1.00 GB] inherit ACTIVE '/dev/VolGroup00/LogVol03' [1.00 GB] inherit ACTIVE '/dev/VolGroup00/LogVol01' [408.41 GB] inherit ACTIVE '/dev/VolGroup00/LogVol04' [7.59 GB] inherit ACTIVE '/dev/VolGroup00/LogVol05' [23.22 GB] inherit
Note /dev/VolGroup00/LogVol05 is the one we will be installing ubuntu on.
4. Install the ubuntu onto the virtual partition /dev/VolGroup00/LogVol05
5. Copy the content from ubuntu’s boot partition to fedora’s boot partition
vmlinuz-2.6.35-22-generic vmcoreinfo-2.6.35-22-generic abi-2.6.35-22-generic initrd.img-2.6.35-22-generic System.map-2.6.35-22-generic
6. Modify the startup file /boot/grub/grub.conf
# grub.conf generated by kernelmgr 2.89
#
# Note that you do not have to rerun grub after making changes to this file
#boot=/dev/sda
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
default=2
title Fedora (2.6.23.1-001-PSC) * PRIMARY * LKG
root (hd0,0)
kernel /vmlinuz-2.6.23.1-001-PSC ro root=/dev/VolGroup00/LogVol00 rhgb quiet _scs_tag_=2.6.23.1-001-PSC:*LKG,*PRIMARY,PSC
initrd /initrd-2.6.23.1-001-PSC.img
title Fedora (2.6.23.1-001-GENERIC64)
root (hd0,0)
kernel /vmlinuz-2.6.23.1-001-GENERIC64 ro root=/dev/VolGroup00/LogVol00 rhgb quiet _scs_tag_=2.6.23.1-001-GENERIC64:*GENERIC,GENERIC64
initrd /initrd-2.6.23.1-001-GENERIC64.img
title Ubuntu 10.10
root (hd0,0)
kernel /vmlinuz-2.6.35-22-generic ro root=/dev/mapper/VolGroup00-LogVol05 quiet
initrd /initrd.img-2.6.35-22-generic
Note we add the entry for ubuntu, and set the default boot will be ubuntu
7. Mount the all other partitions to ubuntu
sudo cp /etc/fstab /etc/fstab_backup sudo nano /etc/fstab # /etc/fstab: static file system information. # # Use 'blkid -o value -s UUID' to print the universally unique identifier # for a device; this may be used with UUID= as a more robust way to name # devices that works even if disks are added and removed. See fstab(5). # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc nodev,noexec,nosuid 0 0 /dev/mapper/VolGroup00-LogVol05 / ext3 errors=remount-ro 0 1 /dev/mapper/VolGroup00-LogVol01 /usr0 ext3 defaults 0 2 /dev/mapper/VolGroup00-LogVol00 /fedora7-root ext3 defaults 0 2 /dev/VolGroup00/LogVol02 /fedora7-root/var ext3 defaults 0 2 /dev/VolGroup00/LogVol03 /fedora7-root/var/cache/openafs ext2 defaults 0 2 /dev/mapper/VolGroup00-LogVol04 none swap sw 0 0 /dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0 UUID=9cbeae77-8fb1-4a04-a570-2a03f5e6df86 /boot ext3 defaults 0 2 UUID=2c835369-fd37-4ef7-ba87-0ee2aca8da48 /usr1ext3 defaults 1 2 UUID=0a0f672f-242c-44db-b12a-ca4a75b2cf4c /usr2ext3 defaults 1 2 UUID=e047ea3f-3a64-4e38-9e43-48aff2e5859d /usr3ext3 defaults 1 2
8. Install support for afs and kerberos
9. Find and install printers