LinuxQuestions.org
Help answer threads with 0 replies.
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 11-17-2010, 06:38 PM   #16
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682

A separate /boot partition is needed if you use LVM or RAID. The kernel needs to be used to access the other partitions on an LVM or RAID volume.

A separate /home partition makes clean upgrades, or distro changes easy. By not formatting the old /home partition, you can retain your old files. I will rename my $HOME directory just before a reinstall, and move files I want to keep from the old directory to the new one.

Separate partitions can be mounted with different mount options. This is more often done for servers, to enhance security. For example:
A server will have a separate partition for /tmp and /usr/tmp. This allows mounting with the noexec, nosuid, and nodev. This helps enhance security, because these directories are world writable.

A server will have a separate partition for /var/log/. If an attacker can fill up the /var/log/ directory, the rest of the filesystem still has free space.

The /boot, /etc, /lib directories can be mounted read-only. Look in the Linux Filesystem Standard on which directories can be static. Mounting them read-only helps protect servers from having files modified.
 
Old 11-17-2010, 06:53 PM   #17
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,299
Blog Entries: 61

Rep: Reputation: Disabled
I'm still a relative newbie, and I haven't delved into LVM or RAID. There's a hell of a lot of interesting stuff to learn!
 
Old 11-17-2010, 07:11 PM   #18
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,906

Rep: Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026
Quote:
Originally Posted by brianL View Post
I'm still a relative newbie, and I haven't delved into LVM or RAID. There's a hell of a lot of interesting stuff to learn!
And just when you think you're getting the hang of it all, someone goes and invents something new!
 
Old 11-17-2010, 07:17 PM   #19
hilyard
Member
 
Registered: Jan 2010
Location: Inland PNW
Distribution: Lite | siduction
Posts: 291

Rep: Reputation: 66
Yeah! Great discussion , people. Thanks to all!
 
Old 11-18-2010, 05:05 AM   #20
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,299
Blog Entries: 61

Rep: Reputation: Disabled
Quote:
Originally Posted by GazL View Post
And just when you think you're getting the hang of it all, someone goes and invents something new!
My problem is I'm too easily distracted. I'll start reading up about something, then something else grabs my attention. So I end up knowing a bit about lots of things, but a lot about nothing. If that makes any sense.
 
Old 11-18-2010, 05:22 AM   #21
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Strictly speaking, you don't even need a partition for /. Just mkfs /dev/sda instead of /dev/sda1. Linux doesn't need a "partition". It only needs an fs to live into.

So, the lesser number of required partitions to run linux is exactly zero.

Some individual apps might get confused though, but that's their problem, not linux's problem.

You don't even need a swap partition, nowadays the kernel bypasses the fs when working with swap, so there's no penalty derived from having the swap space inside a file living in, let's say, /myswapfile.img

There are lots of situations where having separate partitions help, though. For example, having a single /boot partition allows for fancy things like sharing your kernel amongst distros (in most cases there's really no point in having a different kernel for each, they all are linux, and it eases a lot of work), or when you want encryption. You will also needs a separate boot partition probably when your boot loader doesn't support the fs you use for /, that happens with newer fs's usually.

Having a separate /home eases the rare cases when you have to reinstall or update your OS.

You can have as many separate partitions as you want, using different fs's. The question here is are you looking for a solution for a problem or are you looking for a problem for your solution?
 
  


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
openSolaris hosed the partition table. Why? Changing primary to secondary partition? JZL240I-U Solaris / OpenSolaris 9 10-16-2008 10:48 AM
[SOLVED] Safety: Primary Partition and Extended (Logical) Partition MBA Whore Linux - Security 11 01-03-2007 02:05 PM
Partition Problems: Bad primary partition 1: logical partitions overlap rovitotv Slackware 6 01-08-2006 06:55 PM
Primary Partition cbriscoejr Fedora 1 04-12-2005 01:33 PM
Moving from extended partition to primary partition joelbudgor Linux - General 5 05-26-2004 06:08 PM

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

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