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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-30-2010, 08:38 AM
|
#1
|
|
Member
Registered: Feb 2010
Posts: 143
Rep:
|
Why linux takes 171gb on my 500gb hard disk to install?
I have two hard disks
1. 40 Gb ide
2.500Gb sata
on ide it takes only 13 gb to install linux (of course the unpartition space) where i can even create "fdisk /dev/hda" command.
BUT on SATA HRAD DISK WHICH is 500Gb (after installing 2 xp os and win 7 os), it requires huge 171 gb to create any partition after install with this "fdisk /dev/sda" command , i can even install linux here on sata 500gb hard disk with 15gb of space but then i can not create any partion after that with "fdisk /dev/sda" command.
it directly shows "partition number [1-4] type of message. which i guess normally displayed only when disk is full.
no one has any reason for such behavior of hard disk, help me plz.
|
|
|
|
03-30-2010, 08:45 AM
|
#2
|
|
Senior Member
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,354
Rep: 
|
Quote:
Originally Posted by meandsushil
I have two hard disks
1. 40 Gb ide
2.500Gb sata
on ide it takes only 13 gb to install linux (of course the unpartition space) where i can even create "fdisk /dev/hda" command.
BUT on SATA HRAD DISK WHICH is 500Gb (after installing 2 xp os and win 7 os), it requires huge 171 gb to create any partition after install with this "fdisk /dev/sda" command , i can even install linux here on sata 500gb hard disk with 15gb of space but then i can not create any partion after that with "fdisk /dev/sda" command.
it directly shows "partition number [1-4] type of message. which i guess normally displayed only when disk is full.
no one has any reason for such behavior of hard disk, help me plz.
|
You only can have 4 primary partitions on each drive.
This has nothing to do with linux.
But in each primary partitions you can create secondary partitions.
Linux do not neat a primary partition to boot from
Last edited by ronlau9; 03-30-2010 at 08:52 AM.
|
|
|
0 members found this post helpful.
|
03-30-2010, 09:35 AM
|
#3
|
|
Senior Member
Registered: Dec 2007
Distribution: Mepis, Centos
Posts: 4,674
|
(On each drive) you can have either four primary partition and zero logical partitions, or up to three primary partitions plus many logical partitions.
Linux doesn't care whether it uses primary or logical partitions. Windows is almost impossible to install in a logical partition.
Once you used 3 primary partitions for Windows installs, you should have created an "extended" partition for the entire remainder of the drive. Then inside the extended partition, you can create multiple logical partitions for Linux and/or data (non bootable) partitions for Windows.
|
|
|
|
03-30-2010, 11:51 AM
|
#4
|
|
Member
Registered: Jul 2008
Location: Chennai, India
Distribution: RHEL5, Ubuntu
Posts: 191
Rep:
|
Now, you have 4 primary partitions.
Back up any data in the 4th partition.
#fdisk /dev/sda(substitute suitable alphabet accordingly)
press d to delete the 4th partition
now, press w to save it to partition table.
#partprobe.
Again,
#fdisk /dev/sd?
it will ask primary or extended? answer it as extended.
Dont give any values
just press enter keys for both values.
write it to partition table by issuing w command.
#partprobe
#parted -l
now you have the fourth partition as your extended partition.
#fdisk /dev/sda
Now create logical drives inside your extended partition....!!!
bye.
Last edited by saagar; 03-30-2010 at 11:58 AM.
|
|
|
1 members found this post helpful.
|
03-31-2010, 12:28 AM
|
#5
|
|
Member
Registered: Feb 2010
Posts: 143
Original Poster
Rep:
|
Thanks saagar! I will try this. but now i have already installed two xps on c: and d: and win7 on e: and given whopping 171gb for linux to create logical partition, next time when i format my pc i will do this.
|
|
|
|
03-31-2010, 12:31 AM
|
#6
|
|
Member
Registered: Feb 2010
Posts: 143
Original Poster
Rep:
|
four primary partitions means what? i installed two xp os on c: and d: and win7 on e: so is it called 3 primary partitions?
|
|
|
|
03-31-2010, 12:32 AM
|
#7
|
|
Member
Registered: Feb 2010
Posts: 143
Original Poster
Rep:
|
or is it? "/", "/boot","/usr","swap" that i created during installation?
|
|
|
|
03-31-2010, 12:42 AM
|
#8
|
|
Member
Registered: Mar 2008
Location: Bengaluru, India
Distribution: RHEL 5.5, Solaris 5.10
Posts: 184
Rep:
|
paste the output of 'fdisk -l' command
|
|
|
|
03-31-2010, 07:19 AM
|
#9
|
|
Senior Member
Registered: Dec 2007
Distribution: Mepis, Centos
Posts: 4,674
|
Quote:
Originally Posted by meandsushil
four primary partitions means what? i installed two xp os on c: and d: and win7 on e: so is it called 3 primary partitions?
|
Yes. That is three primary partitions.
The Linux partitioning tools would then let you create one more primary partition, which would be the wrong thing to do, or create one extended partition (using all the remaining space) and then create logical partitions inside the extended partition.
What distribution of Linux are you trying to install? Most beginners use some distribution that has a GUI partitioning tool available during the install process. Working with a GUI partitioning tool will make these things much easier to understand.
The fdisk -l command suggested above is one way to look at the current partitioning so that an expert could tell you the commands needed to fix it, even using a non GUI partitioning tool.
If you do all the commands correctly (that are suggested after we see fdisk -l output), the whole process should not disturb the three Windows primary partitions. Backup first is a good idea because you might misunderstand instructions or maybe someone will misunderstand your situation and give you incorrect instructions.
But if you have gparted or other GUI partitioning tool available, that should let you figure it out with less detailed instructions from the forum.
Quote:
Originally Posted by meandsushil
or is it? "/", "/boot","/usr","swap" that i created during installation?
|
"/" and "swap" should be logical partitions you create inside that extended partition.
There might be reasons to create "/boot" or "/home" or even "/usr" as more logical partitions. But it is simpler to skip that and make "/" big enough that "/boot", "/home" and "/usr" work well as directories inside "/".
If you don't understand a good reason to make any of those separate partitions, you probably don't have a good reason to do so.
Last edited by johnsfine; 03-31-2010 at 07:34 AM.
|
|
|
|
04-01-2010, 01:23 PM
|
#11
|
|
Member
Registered: Feb 2010
Posts: 143
Original Poster
Rep:
|
NOW I CANT GET THE OUTPUT OF FDISK -L CMD , i will have to fomat my pc for that.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:31 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|