PDA

View Full Version : [ubuntu] Help installing Ubuntu 9.10 on comp with CentOS on SW RAID 1



mg2plus
March 4th, 2010, 06:30 PM
Hello!

I need some halp with installing ubuntu 9.10 (x86-64), but I'm not too much comfortable with linux, so I don't want to mess something up.

The story goes like this:
I have CentOs already installed. The computer has 2 identical 1TB HDD and CentOs
is installed using software raid 1, with 500 GB per HDD used.

When I try to run Ubuntu 9.10 CD installer, it recognizes the partitions,
but does not recognize that CentOS is already installed.

I need the Ubuntu 9.10 just for testing, so I am looking at the simplest method
to reliably install it without messing up the CentOS. I don't need RAID 1
for Ubuntu 9.10 partitions, although I wouldn't mind having RAID 1.
But the simplicity of installing is the priority.

I also downloaded the 'ubuntu 9.10 alternate CD', but didn't try it.

From what I read at the forums, I should probably install Ubuntu without
the bootloader, then point the CentOs's bootloader to run
Ubuntu when appropriate menu item is selected. Or install Ubuntu with bootloader,
then point this bootloader to run CentOs.

Anyway, I don't even know whether my CentOs has the bootloader,
because my friend did the install of CentOS.

Anyway, the kind of help that I need is very specific, like what Ubuntu installer to use
what lines to insert in which file etc... (I know how to create partititions, that's not a problem)

Here is some info that might be helpfull (all from CentOS):

[xxx@ws ~]$ cat /proc/version
Linux version 2.6.18-164.el5 (mockbuild@builder10.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)) #1 SMP Thu Sep 3 03:28:30 EDT 2009

[xxx@ws ~]$ cat /proc/partitions
major minor #blocks name

8 0 976762584 sda
8 1 524288 sda1
8 2 512000000 sda2
8 16 976762584 sdb
8 17 524288 sdb1
8 18 512000000 sdb2
9 1 511999936 md1
9 0 524224 md0
253 0 40960000 dm-0
253 1 468975616 dm-1
253 2 2031616 dm-2

[xxx@ws boot]$ ls -al
total 13094
drwxr-xr-x 4 root root 1024 Oct 20 19:23 .
drwxr-xr-x 24 root root 4096 Mar 4 17:42 ..
-rw-r--r-- 1 root root 64994 Jan 21 2009 config-2.6.18-128.el5
-rw-r--r-- 1 root root 65937 Sep 3 09:53 config-2.6.18-164.el5
drwxr-xr-x 2 root root 1024 Oct 20 19:23 grub
-rw------- 1 root root 3318212 Oct 19 23:43 initrd-2.6.18-128.el5.img
-rw------- 1 root root 3330788 Oct 20 19:23 initrd-2.6.18-164.el5.img
drwx------ 2 root root 12288 Oct 19 23:34 lost+found
-rw-r--r-- 1 root root 80032 Mar 16 2009 message
-rw-r--r-- 1 root root 102182 Jan 21 2009 symvers-2.6.18-128.el5.gz
-rw-r--r-- 1 root root 108707 Sep 3 09:53 symvers-2.6.18-164.el5.gz
-rw-r--r-- 1 root root 1188481 Jan 21 2009 System.map-2.6.18-128.el5
-rw-r--r-- 1 root root 1225101 Sep 3 09:53 System.map-2.6.18-164.el5
-rw-r--r-- 1 root root 1889308 Jan 21 2009 vmlinuz-2.6.18-128.el5
-rw-r--r-- 1 root root 1932284 Sep 3 09:53 vmlinuz-2.6.18-164.el5
-rw-r--r-- 1 root root 158 Sep 3 09:53 .vmlinuz-2.6.18-164.el5.hmac

[xxx@ws grub]$ ls -al
total 261
drwxr-xr-x 2 root root 1024 Oct 20 19:23 .
drwxr-xr-x 4 root root 1024 Oct 20 19:23 ..
-rw-r--r-- 1 root root 82 Oct 19 23:48 device.map
-rw-r--r-- 1 root root 7584 Oct 19 23:48 e2fs_stage1_5
-rw-r--r-- 1 root root 7456 Oct 19 23:48 fat_stage1_5
-rw-r--r-- 1 root root 6720 Oct 19 23:48 ffs_stage1_5
-rw------- 1 root root 760 Oct 20 19:23 grub.conf
-rw-r--r-- 1 root root 6720 Oct 19 23:48 iso9660_stage1_5
-rw-r--r-- 1 root root 8224 Oct 19 23:48 jfs_stage1_5
lrwxrwxrwx 1 root root 11 Oct 19 23:48 menu.lst -> ./grub.conf
-rw-r--r-- 1 root root 6880 Oct 19 23:48 minix_stage1_5
-rw-r--r-- 1 root root 9248 Oct 19 23:48 reiserfs_stage1_5
-rw-r--r-- 1 root root 55808 Mar 16 2009 splash.xpm.gz
-rw-r--r-- 1 root root 512 Oct 19 23:48 stage1
-rw-r--r-- 1 root root 104956 Oct 19 23:48 stage2
-rw-r--r-- 1 root root 7072 Oct 19 23:48 ufs2_stage1_5
-rw-r--r-- 1 root root 6272 Oct 19 23:48 vstafs_stage1_5
-rw-r--r-- 1 root root 8832 Oct 19 23:48 xfs_stage1_5

[root@ws grub]# cat grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/md0
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-164.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-164.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.18-164.el5.img
title CentOS (2.6.18-128.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-128.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.18-128.el5.img