LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Installing CentOs (when i already have windows and ubuntu) (https://www.linuxquestions.org/questions/linux-newbie-8/installing-centos-when-i-already-have-windows-and-ubuntu-694691/)

gamesnepal 01-03-2009 10:16 AM

Installing CentOs (when i already have windows and ubuntu)
 
Hi, I have four partitions in my hard drive. My drives are C: , D: , E: and F:

I have windows XP installed in C, I have ubuntu installed in D. What I want to do is install CentOs is my drive e: . How do I do it? Will all my files in other drives be erased? Or can i simply add centos to my computer?

yancek 01-03-2009 10:55 AM

Should be easy enough to do if you have room on your drive. I'd suggest you boot into Ubuntu and run the command: "sudo fdisk -l" (Lower case Letter L) and post the output. This will give partition information as seen by Linux so someone can advise you on which partition to install CentOS.

gamesnepal 01-03-2009 11:51 AM

When I do sudo fdisk -l my output is as follows:

Quote:

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x2a0029ff

Device Boot Start End Blocks Id System
/dev/sda1 * 1 4462 35840983+ 7 HPFS/NTFS
/dev/sda2 4463 19456 120439305 f W95 Ext'd (LBA)
/dev/sda5 4463 9561 40957686 7 HPFS/NTFS
/dev/sda6 9562 14405 38909398+ 7 HPFS/NTFS
/dev/sda7 14406 19456 40572126 7 HPFS/NTFS
ashish@ashish-desktop:~$

yancek 01-03-2009 01:52 PM

I've never used CentOS but most Linux installs work the same way. The partition information you posted shows one primary partition active/bootable with an ntfs filesystem, that would be sda1. sda2 is an extended partition which holds three ntfs logical partitions, sda5, sda6, sda7. During your installation, you will need to install somewhere other than to one of these partitions.

I would suggest that you run Disk Defragmenter from xp before beginning any installation. During the installation, you will be asked how you want to install. Be certain you do not choose the option "use the whole disk" as that will overwrite everything. Create another logical partition, sda8, format it as ext3 filesystem and install CentOS. Or, you could create a primary partition as you have only used two.

You indicated that you have Ubuntu installed in your "D" drive yet the fdisk output shows no Linux partitions?? How many physical hard drives do you have? Are they attached/plugged in??

You'll also need to do some reading to understand the Grub bootloader if you plan to use it or how to use the xp bootloader to boot CentOS.

syg00 01-03-2009 07:31 PM

You will need to make some (non partitioned) free space for Centos - and it will want to replace the bootloader. Which doesn't play nicely as it happens.

That fdisk list is a bit odd - let's see the output from "df -hT".

billymayday 01-03-2009 08:19 PM

How did you install Ububtu? Do you run it under Windows using Wubi?

If so, you will most likely need to find a different way to install CentOS.

syg00 01-03-2009 08:35 PM

I think you're thinking of wubi - I'd doubt that would be able to see the real disk.
The partition type in the partition table is not a definitive indicator of the filesystem used - hence my request for the df output.

billymayday 01-03-2009 08:46 PM

Sorry Syg, went back and edited my post to insert the correct name and I guess we crossed paths.

syg00 01-03-2009 08:52 PM

np - next time I'll make sure I quote you ... ;)


All times are GMT -5. The time now is 05:16 AM.