LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 08-30-2004, 12:06 PM   #1
jdmml
Member
 
Registered: Jul 2004
Location: Canada
Distribution: Fedora Core 2
Posts: 89

Rep: Reputation: 15
Question Installing more than one LInux Distro


I installed Fedora Core 2 on my hard drive on one large partition however I would like to now install different Distrobutions at the same time. I was wondering if someone could help me by giving me a step-by-step explanation of partitioning the hard drive and later editing the GRUB boot setup so that the diff Distros appear

Last edited by jdmml; 08-30-2004 at 12:07 PM.
 
Old 08-30-2004, 12:12 PM   #2
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,152

Rep: Reputation: 60
assuming you have enough space (and that you've not committed entire space to fedora) you can run

#fdisk /dev/hdX
X-stands for your harddrive

select a primary or extended partition. Most probably you'll have to select an extended partition, this could be the case if you've followed default fedora installation (/boot, swap and / partitions).

Select the extended partition to cover the entire drive.

Once you've done that, you can create required partition inside the extended partition.

Once you've created a necessary partition inside the extended partition, you can just go ahead and install your distro. Installation will take care of filesystem.

Good luck!

Tux,
 
Old 08-30-2004, 12:15 PM   #3
jdmml
Member
 
Registered: Jul 2004
Location: Canada
Distribution: Fedora Core 2
Posts: 89

Original Poster
Rep: Reputation: 15
sorry if this is a dumb question but I do not seem to have a program/script called fdisk... and just for clarification. I am making a partition inside of a partition and could install windows or any linux distro onto this partition?
 
Old 08-30-2004, 12:23 PM   #4
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,152

Rep: Reputation: 60
No its not a dumb question. First, you will have to be root in order to run fdisk. Second, fdisk program must not be in your path, meaning your shell doesn't search in the directory where this programs is most usually located.

try

# su -
enter your password

#/usr/sbin fdisk /dev/hdX

I would also suggest you read up on fdisk since this program can alter your disk for bad if you are not careful.

Quote:
I am making a partition inside of a partition and could install windows or any linux distro onto this partition?
IDE disks only allow 4 primary partitions or 3 primary partitions and one extended partitions. Extended partition is a work around the constraint of 4 primary partitions. And yes you can created a large extended partition (like a large bin to hold many smaller bins) and then partitions in it.

Last edited by tuxrules; 08-30-2004 at 12:25 PM.
 
Old 08-30-2004, 12:24 PM   #5
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
seems that first of all you need a partition handler : type ' parted 'in google.....
you will need to shrink your large part. to make space for the others....

egag
 
Old 08-30-2004, 12:32 PM   #6
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,152

Rep: Reputation: 60
it would be worthwhile if you tell us how much space do you have on the disk.
 
Old 08-30-2004, 12:34 PM   #7
ercarlso
LQ Newbie
 
Registered: Aug 2004
Location: Sunnyvale, CA
Distribution: Slackware, SuSE & HP-UX
Posts: 3

Rep: Reputation: 0
fdisk not always needed

Depending on the distro, you may not need to use fdisk. You can insert your new distro CD and boot off it. It should ask if you want to create a new partition to install on or select an existing partition. Just be aware of your existing paritions (probably something like /dev/hda1 for windoze, /dev/hda2 for linux #1) to not clobber. Otherwise, IF you did the fdisk command ahead of time, you would know the name of the new one to select. I've gone out as far as /dev/hda13 with new Linux distros.

Clear as mud?

The only gotcha to installing a second Linux partition is making your lilo or grub bootloader aware of both linux partitions and kernel locations. All distros are careful about detecting a windoze partition, but not usually good with other Linuxes. If you select lilo bootloader, I can give details. Someone else would have to describe how to do the same with grub.

Erin
 
Old 08-30-2004, 12:37 PM   #8
jdmml
Member
 
Registered: Jul 2004
Location: Canada
Distribution: Fedora Core 2
Posts: 89

Original Poster
Rep: Reputation: 15
i have 89 GB free on /dev/sda2

I think my computer refers to the partitions as sda1 and sda2 instead of hda1 and hda2, does that make sense? and how do I know if a partition is an extended partition?

Last edited by jdmml; 08-30-2004 at 12:41 PM.
 
Old 08-30-2004, 12:48 PM   #9
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,152

Rep: Reputation: 60
#fdisk -l (lowercase L) should give you the partition info or you can try

# cat /proc/partitions (don't know if thats right but you may try). I dont use anything other than fdisk so no idea. You can also try

#man parted for more info on parted. Its a program like fdisk.

/dev/sda2 might mean you have a scsi-hard drive or you're using scsi-emulation. Correct me if i'm wrong.

Tux,
 
Old 08-30-2004, 01:32 PM   #10
jdmml
Member
 
Registered: Jul 2004
Location: Canada
Distribution: Fedora Core 2
Posts: 89

Original Poster
Rep: Reputation: 15
root@ttyp1[sbin]# fdisk -l

Disk /dev/hda: 120.0 GB, 120000000000 bytes
255 heads, 63 sectors/track, 14589 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 14335 115041465 83 Linux
/dev/hda3 14336 14589 2040255 82 Linux swap


this is how far i have gotten :P, cant you tell im a lol

how would i shrink /dev/hda2 ?

Last edited by jdmml; 08-30-2004 at 01:35 PM.
 
Old 08-30-2004, 01:57 PM   #11
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,152

Rep: Reputation: 60
If you have partition magic, use that to resize partition. If you dont have it, take a look at parted

# man parted

parted's man page is easy to follow and would let you resize. Depending on your RAM, you wont need such a big swap partition but thats another story. Also I would suggest you create a home partition so that you can safely house all your important files.

Dont forget to backup before you resize.
 
Old 08-30-2004, 02:05 PM   #12
jdmml
Member
 
Registered: Jul 2004
Location: Canada
Distribution: Fedora Core 2
Posts: 89

Original Poster
Rep: Reputation: 15
parted doesnt seem to be working!!!!

this is what i tried

(parted) print
Disk geometry for /dev/hda: 0.000-114440.917 megabytes
Disk label type: msdos
Minor Start End Type Filesystem Flags
1 0.031 101.975 primary ext3 boot
2 101.975 112447.155 primary ext3
3 112447.156 114439.592 primary linux-swap
(parted) resize 2
Start? [101.9751]?
End? [112447.1553]? 60000
Error: Filesystem has incompatible feature enabled


what incompatible feature is this? and how can i disable it?
 
Old 08-30-2004, 02:07 PM   #13
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,152

Rep: Reputation: 60
if you dont have too much on fedora i.e. you've recently installed and want to avoid all the stuff described till now, you can also reinstall fedora by manually partitioning and selecting only required space for root directory

my configuration is here for reference

/dev/hdb1 - 100 mb /boot
/dev/hdb2 - 512 mb swap
/dev/hdb3 - 15 GB fedora
/dev/hdb5 - 15 GB slackware
/dev/hdb6 - 12 gb vfat
still have free space left. I've installed everything in fedora and still it only covers 40% of space.

the entire harddrive is 80 gb.
 
Old 08-30-2004, 02:08 PM   #14
jdmml
Member
 
Registered: Jul 2004
Location: Canada
Distribution: Fedora Core 2
Posts: 89

Original Poster
Rep: Reputation: 15
problem is I have been using Fedora for a while and I dont have a way to back up the entire hard drive!
 
Old 08-30-2004, 02:14 PM   #15
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,152

Rep: Reputation: 60
this might explain a bit about your problem.

http://www.redhat.com/archives/fedor.../msg05154.html

If you are using the default installation of fedora i.e you havent installed programs other than your fedora installation, you just have to backup any work files or text files you feel are important. As far as the error is concerned, its something in parted which i am unaware of.
 
  


Reply


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
User experience in installing a Linux distro impeteperry LQ Suggestions & Feedback 2 11-10-2005 06:08 PM
which distro is a Gnu/Linux distro masand Linux - General 24 09-14-2005 05:26 PM
Looking for a Linux distro with EASY approach to installing programs Cinematography Linux - Distributions 26 06-29-2005 01:14 PM
installing more than 1 linux distro! IS IT POSSIBLE naveentpr Linux - Software 1 12-22-2003 12:58 AM
Installing a Linux distro without using CDs e0n Linux - General 3 04-01-2003 04:58 AM

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

All times are GMT -5. The time now is 07:25 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration