LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-22-2004, 04:35 AM   #1
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
Necessary partitions


I'm posting this here 'cos it's a question that's being asked a lot,butI haven't been able to find any satisfactory answer, and it's a pretty basic thing.

Whenever somebody asks about partitioning a dozen different suggestions are given, ranging from "one single partition" to about 10 different ones depending on your needs.

Now I know that it's a good idea to have a separate swap partition (not sure why though) and that /home gives you the advantage of not losing any of your personal files if you do a new installon top of the older one.

A seperate /usr or /usr/local isto keep apps seperatefromthemain system although I'm not sure about the advantages of this. /var seems to have to do with servers and FTP.

Why do many insist /boot should be on a separate partition?

Please amplify on any of the above.Why are certain partitions necessary, recomendable, under what circumstances, etc?
 
Old 07-22-2004, 04:47 AM   #2
Frustin
Member
 
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Rep: Reputation: 30
you dont _have_ to partion like that. I do at work but at home i just have the main fs on root and the swap.
 
Old 07-22-2004, 06:59 AM   #3
bluemak
LQ Newbie
 
Registered: Mar 2003
Distribution: FC2
Posts: 13

Rep: Reputation: 0
Having a seperate boot partition is useful if your linux partition goes over the "8GB limit". Some disk drives/ BIOS will not boot the operating system if the linux partition extends beyond 1024 cylinders. (As I understand, im not an expert)
 
Old 07-22-2004, 08:11 AM   #4
linuxprogrammer
LQ Newbie
 
Registered: Jul 2004
Posts: 26

Rep: Reputation: 15
The swap partition is required, because at the time of booting, the OS does some swappings, and as sometime your other partition may not have sufficient space for this swapping. So a swap partition is reserved for this purpose.
 
Old 07-22-2004, 08:37 AM   #5
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
I'll share my experience with you...and hopefully it will clear out some of your doubts about partitions.

when I started out with linux few months back, I had those usual partitions, /boot, / and swap. / partition covered almost entire harddisk. I soon felt the need to try out a new distro. Also as a newbie i played with the system and had my share of install and formatting.

Although i backed up my /home it was a pain to load files from a cd after a fresh install. So as of now, I have 10 partitions on my hd*.

hda - winxp - 120 gb ntfs

hdb1 - /boot - 100 mb
hdb2 - / for RH9 - 5GB
hdb 3 - swap - 1 gb
hdb4 - extended
hdb5 - / for FC2 - 5 gb
hdb6 - / for slackware 10 - 5 gb
hdb7 - /opt - optional software that i install - 2 gb
hdb8 - /var - for http, ftp and logs (i want to run ftp and http server)
hdb9 - /usr - 5 gb
hdb10 - /home - vfat to share with windows - 12 gb

i recently created hdb10 as vfat to share between linux and winxp since i didnt want to mess with my windows drive (i dont want to buy a costly partition magic )

This may seem to be a bit intriguing thats what i think i want. One more reason for more partitions, I might want to add more packages from install cd's or web and this way I can be sure i have the space and dont have to resize partitions.

I hope i've given you a clue
 
Old 07-22-2004, 08:45 AM   #6
Frustin
Member
 
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Rep: Reputation: 30
"hdb7 - /opt - optional software that i install - 2 gb
hdb8 - /var - for http, ftp and logs (i want to run ftp and http server)
hdb9 - /usr - 5 gb
"

are you saying that redhat, FC2 and slackware all share the same partions mentioned above? that optional software, i presume is compiled by you, what do you do if its not compatable with the distro you are using? recompile?

the logs in /var all get overwritten by the distros as well which may get confusing the long term because of the backup logs i.e. those that end with .1 and .2 will belong to different distros.
 
Old 07-22-2004, 08:58 AM   #7
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
I mainly use RH9 since it fits my system the best in terms of recognizing hardware(even FC2 but sound is touch problem). I will not use those partitions for slackware since on slackware i just want to learn kernel compile and all compiling stuff. RH9 would be my primary system (i mean running a web server and ftp).

Although /home would be shared with every distro.
 
Old 07-22-2004, 11:10 AM   #8
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993

Original Poster
Blog Entries: 1

Rep: Reputation: 46
Bluemak that explains part of the /boot mistery. Thanks, I thought of that, but wasn't sure about Grub. Can it boot above the 1024 cylinder or the 8Mb mark you mentioned? (BTW never heard that before. Isn't that size different depending on disk geometry?)

Tuxrules I hope you're using different user names on the distro's. If not, how do you cope with the differences in config files and shortcuts to programs??

Linuxprogrammer Wouldn't a swapfile do the same thing for you?
 
Old 07-22-2004, 11:19 AM   #9
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993

Original Poster
Blog Entries: 1

Rep: Reputation: 46
Read something at this thread about using /boot for starting the same kernel in different distros. Not sure how to go about that though. Isn't /boot just a pointer to the kernel location?
 
Old 07-22-2004, 11:42 AM   #10
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
As of now, I just use one user name for all distro (i'm the only one using linux).

I am not sure what you are trying to point out but to answer your question in part, I will be using /home only for storing documents, pictures, music and videos.

Now to install third party software or additional programs i can use different directories in /opt and then mount those directories in respective distros. I am not sure if this will work as I havent done it yet but I believe it can be done.
 
Old 07-22-2004, 11:45 AM   #11
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Quote:
Originally posted by linmix
Linuxprogrammer Wouldn't a swapfile do the same thing for you?
Using a swapfile (versus a swap partition) also has the added overhead of the filesystem writes.
 
Old 07-22-2004, 01:31 PM   #12
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993

Original Poster
Blog Entries: 1

Rep: Reputation: 46
Quote:
Originally posted by stickman
Using a swapfile (versus a swap partition) also has the added overhead of the filesystem writes.
meaning... that it makes the system slower(?)
 
Old 07-22-2004, 01:35 PM   #13
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993

Original Poster
Blog Entries: 1

Rep: Reputation: 46
Tuxrules Not sure I understand everything you're saying. My main concern regarding using the same user name is that there are numerous hidden files on your home partition that indicate your favourite desktop how to function, where to look for programs, etc.

This means that (theoretically?) you might have a link to a certain program on your desktop, but it will only work if you use the distro it is meant for. Otherwise it will come up blank or with an error message.
 
Old 07-23-2004, 09:59 AM   #14
bluemak
LQ Newbie
 
Registered: Mar 2003
Distribution: FC2
Posts: 13

Rep: Reputation: 0
Quote:
Originally posted by linmix
[B]Bluemak that explains part of the /boot mistery. Thanks, I thought of that, but wasn't sure about Grub. Can it boot above the 1024 cylinder or the 8Mb mark you mentioned? (BTW never heard that before. Isn't that size different depending on disk geometry?)
If grub is on the MBR it might be able to boot from a partition that goes over the 8Gb mark, I think I got it to work like this once.

However on the system I just installed I had bootmagic on the MBR and grub on the linux root partition. This was working until i resised the root partition over the 1024 cyclinder limit. I fixed this by reinstalling with a seperate boot partition under the limit.
 
Old 07-23-2004, 11:45 AM   #15
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993

Original Poster
Blog Entries: 1

Rep: Reputation: 46
Ok, that makes sense.

Are there other sytem parts that are put on different partitions, and for what purpose?
 
  


Reply



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
/proc/partitions showing wrong partitions netstv Linux - General 1 07-10-2006 01:11 PM
How many partitions should I use? fishybawb Slackware - Installation 4 07-23-2004 02:53 AM
Create software RAID partitions first, then create filesystem partitions on top of th stefanlasiewski Linux - Software 1 04-28-2004 04:12 PM
Partitions twinkers Linux - General 26 08-24-2003 10:51 AM
How many partitions dark_light Linux - General 7 05-08-2002 04:37 PM

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

All times are GMT -5. The time now is 03:44 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