LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,510

Rep: Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491
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
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,510

Rep: Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491
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: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
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
LQ 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: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
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
LQ 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: 21,128

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


Reply

Tags
centos, output, ubuntu, windows



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration