LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-05-2004, 06:44 AM   #1
brumela
LQ Newbie
 
Registered: May 2004
Location: MB, Slovenia
Distribution: Fedora 1, Redhat 8, White box
Posts: 21

Rep: Reputation: 15
Size and type of linux partition?


Hi,

I upgraded (add) my RH8 box with new 160GB hard drive.
My question is how should I partition big drive? Should I make more small partitions or should I create just one big partition? What type of partition do you recomend?
I'm concerned about lost of space (slack) on big partitions?

Another question is, could I mount two different partitions on same dir? Lets say i have two partitions on two drives, and I want to mount both in /home directory.

thanks for answers

regards bruma
 
Old 05-05-2004, 08:01 AM   #2
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
I'd go with fewer partitions because its harder to plan for sizes. Here's what I have been doing (until my drive crapped and had to use a tiny one - $$$).

My drive was 40G. I use Mandrake the most and I play with the rest. I did have Widows XP installed in it for a while, but I wiped it and put it on my wife's machine instead. What I did:

8G for "/" - EXT3
500mb for swap
10G for "/home" - reiserfs
I split the remaining 21G in 1/2 and formatted one (at first, anyways)

Now, I am not a big gamer and any large media files I may have on the drive go to cd if I wish to keep them (because its not 160G after all), so YMMV. The reason I did that with the two extra partitions is so I could play.

At forst, I put the formatted(reiserfs) partition in /etc/fstab as /home/corey/extra (after creating the directory in my /home). That way, I could just surf to the directory at will. I didn't use it much for that, as I had enough space otherwise. So, I put other distros on these partitions to play with. They got "/" and I shared the swap for all of them. This worked well, but I could have used more playing space

For you, I'd suggest that you do somethng like that - 5-15G for "/", a swap partition, and "/home" for what you're working with. Be generous with your /home(10-40G) but leave most of the rest of the drive as a big partition to play with. Format it so you can use it and mount it as an extra. That way if you have plans for it pater, you'll be able to do something without changing the ones you already use.

This has worked for me. The bottom line: Fewer is better for keeping track. More subdivided is better for security (running a webserver might prompt you to have /var seperate, so a DDoS will fill only that partition with log files and you can still boot and fix that, for example)
 
Old 05-05-2004, 08:07 AM   #3
iainr
Member
 
Registered: Nov 2002
Location: England
Distribution: Ubuntu 9.04
Posts: 631

Rep: Reputation: 30
For your first question, it depends.

Big partitions are more efficient uses of space, but more likely to corrupt and take longer to recover if they do get corrupted. Small partitions are more secure, but you risk running out of space (e.g. I recently had to reinstall from scratch because I make the / partition too small).

As a minimum, have / and /home so your data is separate from the OS. Nothing wrong with leaving part of your disk empty until you need it either.

For your second question, you can't mount two partitions on the same mount point (well, technically you can, but you'll only be able to access one of them). The solution is to mount the second on a subdirectory. For example, you might have a /home partition and a /home/brumela partition, or multiple partitions under /home for different users or different purposes.

You could even have multiple partitions within your home dir, so /home/brumela/mp3, /home/brumela/britney_pics etc. as separate partitions.
 
Old 05-05-2004, 08:51 AM   #4
brumela
LQ Newbie
 
Registered: May 2004
Location: MB, Slovenia
Distribution: Fedora 1, Redhat 8, White box
Posts: 21

Original Poster
Rep: Reputation: 15
Thumbs up

thanks for both answers
 
Old 05-05-2004, 05:42 PM   #5
or1onas
Member
 
Registered: Mar 2004
Location: Athens,Greece
Distribution: Mint
Posts: 181

Rep: Reputation: 32
What is the best filesystem type you could create your partitions with?
I'm thinking of creating 4 partitions:
/, /opt, /usr and /home.
Is it a good idea to create all of them in reiserfs? Is ext3 or any other fs better in some cases?
 
Old 05-05-2004, 05:47 PM   #6
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
ext3 is ext2 with a journal. Its faster, as a rule, and better at recovery if the power is pulled accidentally. Reiserfs is a pure journalled system. They say ext3 is better for large files and reiser is better for smaller files (as far as speed is concerned). I prefer Reiserfs. I have used it since Debian Woody came out, 2 years ago. I like the fact that it keeps its journal well and never really stops to fsck. There's als JFS(IBMs) and XFS(agressive - not good for power outage prone areas), but they are more experimental.
 
Old 05-05-2004, 05:58 PM   #7
or1onas
Member
 
Registered: Mar 2004
Location: Athens,Greece
Distribution: Mint
Posts: 181

Rep: Reputation: 32
Thanx for the prompt answer..
I'll stick to reiser too! :-)
 
Old 05-12-2004, 09:48 AM   #8
majik123
LQ Newbie
 
Registered: May 2004
Location: Australia
Distribution: Mandrake 10
Posts: 11

Rep: Reputation: 0
i used linux native... i hope this is ok?
i made a 2x 20gig and a 10gig
 
Old 05-12-2004, 12:17 PM   #9
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
Its the tried and true method. The oldest and the most "tested". Without the journal, it will do a check every 20 or so bootups, though and you'll have to wait until it makes sure you're ok.
 
Old 05-12-2004, 01:18 PM   #10
brumela
LQ Newbie
 
Registered: May 2004
Location: MB, Slovenia
Distribution: Fedora 1, Redhat 8, White box
Posts: 21

Original Poster
Rep: Reputation: 15
Benchmarking Filesystems

I found page about Benchmarking Filesystems...
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing size of Partition in Linux? wardialer Linux - Newbie 4 04-22-2005 05:51 AM
root (hd 0,0)Filesystem type unknown, partition type 0x7chainloader +1 ece30675 Linux - Distributions 5 07-20-2004 09:04 AM
Total partition size - User partition size is not equals to Free partition size navaneethanj Linux - General 5 06-14-2004 12:55 PM
fdisk partition size differs from mounted partition size jimieee Linux - General 3 10-15-2003 03:10 AM
Linux Partition Size Help vishalwaghmare Linux - Newbie 9 01-01-2003 03:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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