LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 01-03-2009, 10:16 AM   #1
gamesnepal
LQ Newbie
 
Registered: Jan 2009
Posts: 2

Rep: Reputation: 0
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?
 
Old 01-03-2009, 10:55 AM   #2
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,882

Rep: Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773
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.

Last edited by yancek; 01-03-2009 at 10:57 AM.
 
Old 01-03-2009, 11:51 AM   #3
gamesnepal
LQ Newbie
 
Registered: Jan 2009
Posts: 2

Original Poster
Rep: Reputation: 0
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:~$
 
Old 01-03-2009, 01:52 PM   #4
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,882

Rep: Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773
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.
 
Old 01-03-2009, 07:31 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,314

Rep: Reputation: 1032Reputation: 1032Reputation: 1032Reputation: 1032Reputation: 1032Reputation: 1032Reputation: 1032Reputation: 1032
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".
 
Old 01-03-2009, 08:19 PM   #6
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
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.

Last edited by billymayday; 01-03-2009 at 08:27 PM.
 
Old 01-03-2009, 08:35 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,314

Rep: Reputation: 1032Reputation: 1032Reputation: 1032Reputation: 1032Reputation: 1032Reputation: 1032Reputation: 1032Reputation: 1032
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.
 
Old 01-03-2009, 08:46 PM   #8
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Sorry Syg, went back and edited my post to insert the correct name and I guess we crossed paths.
 
Old 01-03-2009, 08:52 PM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,314

Rep: Reputation: 1032Reputation: 1032Reputation: 1032Reputation: 1032Reputation: 1032Reputation: 1032Reputation: 1032Reputation: 1032
np - next time I'll make sure I quote you ...
 
  


Reply

Tags
centos, output, ubuntu, windows


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
installing windows after Centos 4.3 nb4ait General 2 04-08-2007 12:06 PM
installing windows after Centos 4.3 nb4ait Linux - Newbie 1 04-08-2007 10:00 AM
installing windows after Centos 4.3 nb4ait Linux - Desktop 1 04-08-2007 09:15 AM


All times are GMT -5. The time now is 02:09 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration