LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-12-2003, 03:29 AM   #1
iLLuSionZ
Member
 
Registered: Oct 2003
Location: MI
Distribution: Knoppix 3.3 = XP = Mandrake 9.2
Posts: 343

Rep: Reputation: 30
recommended partitions/sizes for manual part. redhat install.


hey guys... what part.'s and sizes do i have to make?

1) / ?

2) ext 3 ?

3) 512 mb swap ?
 
Old 11-12-2003, 03:48 AM   #2
Chu
Member
 
Registered: Nov 2003
Location: Australia
Distribution: Slackware 9.1
Posts: 166

Rep: Reputation: 30
Heh, in my opinion, you shouldn't try Gentoo so early..
Should maybe try Debian first. (I believe Debian is closest distro to Gentoo?)

Now about your question.
I would create a boot partition (Usually about 250mb, well depending on your hard drive size really..)
Then create a /home/ partition (You should make this about 10gb [Again depending on HDD Size..] This is essential for non-BSD Porting distros, as it means you don't have to delete your /home/ directory when you upgrade kernel, unless there's a way to upgrade, that I am unfamiliar with?)
Possibly a /media/ partition where you store everything like mp3s, oggs and whatever other media files you use. (Maybe make it also about 10gb [Again depends on your HDD])
Create a partition for / (Just put whatever's remaining in here, as long as there's at least 4gbs here it should be ok, I would usually aim for about 10gbs at least though..)
And finally create a swap partition (This is when your computer has used all it's RAM, it trades RAM for swap drive space? I'm not really sure about this..)
For swap partition you have 512mg RAM? I don't think you'd need anything more than say 512mb HDD.

(This is based on a 40gb hard drive. If you have less, well obviously you will have to improvise.)
Hope this helps.

Oh about your ext 3 question.
I dunno, I always use ext 3.
And then choose the 1024 block check (It takes the longest, but it does it job, and if you're anything like me, you have the time.)




Last edited by Chu; 11-12-2003 at 03:54 AM.
 
Old 11-12-2003, 03:52 AM   #3
iLLuSionZ
Member
 
Registered: Oct 2003
Location: MI
Distribution: Knoppix 3.3 = XP = Mandrake 9.2
Posts: 343

Original Poster
Rep: Reputation: 30
i dont see that option for /boot part.. i see a "/" im installing redhat on my 2nd part. after xp.. and i cant use auto part. i have to manually do it and im only using 10 gigs..

should i just make a
1) / =boot ? what size?
2)/home ? =8 gigs
3)swap 500 mbs?
 
Old 11-12-2003, 04:00 AM   #4
Chu
Member
 
Registered: Nov 2003
Location: Australia
Distribution: Slackware 9.1
Posts: 166

Rep: Reputation: 30
The /boot doesn't exist, you have to "flag" a partition as boot (Don't know if you're using fdisk for partitioning?)

You just create one primary partition, say 250mb, then find the options and tag it as boot. (I believe this is #83?)
You create another primary partition, say 4gb, this will be your /home/ partition. (You have to tag this as #83?)
Create another primary partition, say 6gb, this will be your / partition (You tag this as #83 also?)
Then finally create another partition (I'm not sure, maybe make this one secondary?) at size 512mb (You tag this as #82?)

Then after that write the partition table, then when setting it up, choose ext 3 and 1024 block checks

I hope I got it right.
 
Old 11-12-2003, 04:03 AM   #5
iLLuSionZ
Member
 
Registered: Oct 2003
Location: MI
Distribution: Knoppix 3.3 = XP = Mandrake 9.2
Posts: 343

Original Poster
Rep: Reputation: 30
noo... i just manualy do the part. with the redhat cd... it gives me some otions to make diff part.'s

i see
/
/home
/ext3
/root
and others...

im not sure which to chose.. i have no clue of any #83's or anything

i just made a 250 mb / for boot
/home with 8 gigs for hd size
and a 512 /swap at the end but it didnt work
 
Old 11-12-2003, 04:12 AM   #6
Chu
Member
 
Registered: Nov 2003
Location: Australia
Distribution: Slackware 9.1
Posts: 166

Rep: Reputation: 30
Well unfortunately I can't help.
The second partition style I showed you is the same partition table I set up on my computer, using fdisk Partitioning. (I have a 12gb Hard drive :P)

Of course I used the Slackware setup
I could *try* and set up a RedHat installation and see what I can do, but I'm pretty sure I would use fdisk, if you can use fdisk (There's a graphical version of fdisk I believe, I wasn't very fond of it, so I just chose fdisk..) use it, as the stye I mentioned was for use with fdisk,




Last edited by Chu; 11-12-2003 at 04:15 AM.
 
Old 11-12-2003, 04:13 AM   #7
iLLuSionZ
Member
 
Registered: Oct 2003
Location: MI
Distribution: Knoppix 3.3 = XP = Mandrake 9.2
Posts: 343

Original Poster
Rep: Reputation: 30
bah.... thanks thogh
 
Old 11-12-2003, 05:30 AM   #8
Arenba
Member
 
Registered: Sep 2003
Location: India
Distribution: Red Hat 8
Posts: 51

Rep: Reputation: 16
Hi,
Here's my suggestion. Manually partition with Disk Druid.
Create partitions:
/boot
/
/home
/var
/tmp
/swap

For the /boot partition, a 100 MB will do.
For / partition, set it up to about 7 GB
For /home, about 1 GB
For /var, about 1 GB
For /swap, 512 MB
Leave the rest to /tmp

The /home partition actually depends on your usage. I am a single-user and don't download/save much stuff. If you do save plenty of stuff, then reduce your / partition to 6 GB and increase your /home partition.
For the /var partition, the minimum is about 400 MB. So you can adjust around if you feel some partition sizes are less.
I used ext3fs for all.
Hope it helps.
 
Old 11-12-2003, 07:02 AM   #9
timmywo
Member
 
Registered: Nov 2003
Location: London UK
Distribution: CentOS 5
Posts: 68

Rep: Reputation: 15
Just on the swap partition. From what i understand, is that it should be twice the size of your ram.

eg...

Ram = 128MB
Swap = 256MB
 
Old 11-12-2003, 10:02 AM   #10
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
IMHO Arenba shows a better partition layout, but I think the values could be tweaked a bit more, besides I like to split up some because then it's easier to work with quota and adds a layer of protection to the system. It then looks like this:

/boot: min 50MB. Only holds kernels and system.maps and GRUB if you use it.
/: 500MB max if you split off /usr. Holds only /etc, /dev, /proc, /root, /bin, /sbin, /lib.
/usr: min 2, 4GB for installing aprox half of the packages, depending on what you install. You could also mount --bind /opt in this tree.
/home: min 1GB. You'll accumulate lotsa stuff here.
/var: min 1GB. Lotsa logs, the rpm database, mail spool, etc etc.
/tmp: min 500MB.
/swap: half your mem or 1 time your mem. If you tweak your VM sysctl's and have >= 256MB RAM you won't see much usage unless you have apps with exceptional memory requirements.

Some notes:
1. Do NOT install what you don't need NOW: that's a good rule of thumb to curb vulnerability risks.
2. Please take some time and harden your box.
3. When you're done and your system is "stabilised", you can "mount /<partition> -o remount,ro" which protects the system against deleting stuff in /<partition>. Not all can be ro, /boot and /usr can. In addition /boot and /var can have the "nosuid,noexec,nodev" mount flags, /tmp can have "nosuid,nodev". You can set /tmp to have "noexec", but that will break script stuff from like "mc" (Midnight commander) or stop UPX-compressed binaries from running. Of course you have to reset mount flags before installing/removing stuff.
4. Since you'll be running ext3, you can protect crucial binaries (/sbin, /bin) and configs (/etc) with "chattr -R =i /<dir>" which makes them unchangable (immutable).
5. Add a "blank" unmounted partition. Always comes in handy as spill disk, or for /media, like Chu already suggested.
 
Old 11-12-2003, 10:26 AM   #11
Lostman
Member
 
Registered: Nov 2003
Location: Chicago, IL
Posts: 239

Rep: Reputation: 30
That's a lot of partitions.

Can't he just do a

/
swap
/home

Why all the extra partitions? /tmp and all the others will fall into / anyway. So just make / that much bigger. Am I missing something?
 
Old 11-12-2003, 10:57 AM   #12
yngwin
Member
 
Registered: Dec 2002
Location: China
Distribution: Arch
Posts: 359

Rep: Reputation: 33
I agree, for a beginner anyway, and for a desktop system, there is no need for multiple partitions. Basically you only need / (the root filesystem) and swap. With your configuration a swap partition of about 250MB will do (the old rule of swap = 2 * RAM no longer applies), although you could make it bigger (up to 2GB actually) if there would be need for memory-hungry apps.

To have your /home partition separately could be useful for keeping your files when you change distro. To move other things to separate partitions is only really necessary for servers, or if you are very concerned about security.

You could also make a separate partition for storing data to be used by & exchanged with Windows if you dual-boot. This partition should be of type FAT32 then (Windows can't read Linux filesystems and Linux' support of NTFS write is still shaky).

About filesystem type I would recommend ReiserFS, which is very good with small files, although there is nothing serious against ext3, which is fine as well.

I disagree with the advice not to try Gentoo early. Gentoo is a very fine distro and has very good documentation, as well as a lively community to help you out. It's just that you shouldn't be afraid to work on the commandline and to learn a few things.
 
Old 11-12-2003, 02:22 PM   #13
iLLuSionZ
Member
 
Registered: Oct 2003
Location: MI
Distribution: Knoppix 3.3 = XP = Mandrake 9.2
Posts: 343

Original Poster
Rep: Reputation: 30
is gentoo easy like redhat?
or is it harder?

your right.. i dont want or need all those partitions.. thats why i was asking about the /, /home and /swap partitions...

so i should make the
/ = 250 mbs
/home = 9 gigs
and /swap 512 or 256 mb's ?
 
Old 11-12-2003, 05:19 PM   #14
nugui
LQ Newbie
 
Registered: Nov 2003
Location: Decatur AL USA
Distribution: RH9
Posts: 12

Rep: Reputation: 0
Warning First Post!

Disclaimer: New with very little experience. The following assumes a clean drive.
I havn't tried a dual boot setup yet.

I just set up RH9.
I used the "Disk Druid" on the install disk.
On a 128 ram / 20 GB HD machine I used:

/boot - ext3 - fixed size - 100mb
swap - fixed size - 256mb
/ - ext3 - fill up to - 9000mb

or if you don't need space for a second future OS

/ - ext 3 - fill to maximum size

I found disk druid actually set me up with something like 102 / 259 / 8996 in the partitions. Disk druid may swap around the order of the partitions in order to reduce
wasted space but it wont hurt anything.

BTW I don't know how much space your setup will require but with
a 1.6 GB install I only ended up with 9.1mb in that 100mb /boot partition.
Why is 100mb the usual boot partition size?

Last edited by nugui; 11-12-2003 at 06:24 PM.
 
Old 11-14-2003, 03:00 AM   #15
Arenba
Member
 
Registered: Sep 2003
Location: India
Distribution: Red Hat 8
Posts: 51

Rep: Reputation: 16
Quote:
Originally posted by Lostman
That's a lot of partitions.

Can't he just do a

/
swap
/home

Why all the extra partitions? /tmp and all the others will fall into / anyway. So just make / that much bigger. Am I missing something?
Nope. You are not missing anything. You can do it that way if you want to. The reason why I keep the /var partition is that it stores my log files (among other things). So, supposing my / partition goes bad and the only remedy happens to be to format and reinstall the whole damn thing, then I wouldn't format my /var (and of course, /home) partitions coz' I would like to find out what went wrong. At least, that's how I reasoned. Linux has so far, not gone down on me, so I didn't have the chance to check it out.
As for the /tmp file, I keep it around just for the heck of it.
Actually, I wanted to see what's going on in there. It can be in the main partition too.
 
  


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
Recommended Partition Sizes vmanivan Slackware - Installation 4 08-17-2005 04:53 AM
[SOLVED] FC3 - Recommended Partitions ? testguyct Fedora - Installation 3 03-22-2005 06:55 PM
partitions sizes? rontopia Linux - Newbie 10 12-10-2004 12:28 PM
partitions recommended for linux ? JMK Linux - Newbie 9 03-10-2004 04:10 AM
Partitions sizes eweborg Linux - Software 1 03-09-2002 10:43 AM

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

All times are GMT -5. The time now is 02:22 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
Open Source Consulting | Domain Registration