LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 04-13-2010, 02:32 AM   #1
charlie_lab
Member
 
Registered: Nov 2006
Posts: 255

Rep: Reputation: 30
partition question


Hello,

Im now trying to install LFS.
In the book there is stated that LFS works the best if you use these directory's have thier own partitions. (boot, home, usr, opt, tmp, usr/src and swap.

That are 7 partitions and I know that you can only have 4 primary partitions.

Which "must" be primary and which can be extented partitions ?

Roelof
 
Old 04-13-2010, 03:16 AM   #2
server2008
LQ Newbie
 
Registered: Oct 2008
Posts: 1

Rep: Reputation: 0
Lightbulb Linux filesystem

Quote:
Originally Posted by charlie_lab View Post
Hello,

Im now trying to install LFS.
In the book there is stated that LFS works the best if you use these directory's have thier own partitions. (boot, home, usr, opt, tmp, usr/src and swap.

That are 7 partitions and I know that you can only have 4 primary partitions.

Which "must" be primary and which can be extented partitions ?

Roelof
/boot and /root must be in primary others u can make it as extended partitions.
 
Old 04-13-2010, 03:41 AM   #3
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Quote:
Originally Posted by server2008 View Post
/boot and /root must be in primary others u can make it as extended partitions.
Take this with a grain of salt. This holds true only for old hardware. Old means something like 10 years old. Reason is that the bios can not access files on partitions after 1024 blocks (Not sure about the number but something like this).

Maybe just rephrase to "/boot and /root should be".

*smartass off*

Have /boot as the first primary, /tmp as the second primary, /root as third and the rest goes into the extended partitions. Which of whom you can have 64.
 
Old 04-13-2010, 04:43 AM   #4
charlie_lab
Member
 
Registered: Nov 2006
Posts: 255

Original Poster
Rep: Reputation: 30
Oke,

Thank you all for the help.
Im going to partition and install LFS.

Roelof
 
Old 04-13-2010, 07:51 AM   #5
moonfrog
Member
 
Registered: Oct 2008
Location: San Diego County, CA
Distribution: LFS, Gentoo
Posts: 64

Rep: Reputation: 23
It's true that there are valid reasons for using different partitions,
but I've built LFS many times and always used just one.

That's just one option but it's a simple one and I've never regretted doing it that way.

Seven partitions seems a bit extreme, but you can have them if you want.

Edit to add : Swap has to be its own partition,
I forget it's there because all my linuxs share one.

Last edited by moonfrog; 04-13-2010 at 07:58 AM. Reason: brain fart
 
Old 04-13-2010, 08:04 AM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Water under the bridge maybe, but when you say "/root", I think you mean "/"

I concur that you do not need all those partitions. Personally, I have:
/
swap
one or two for shared data--typically mounted at /home/data, and then linked as required

When I set up Windows on VirtualBox, I created a partition for the purpose and mounted it at ~/.virtualbox
 
Old 04-13-2010, 08:33 AM   #7
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Totaly right Pixellany. /root == /.
Also I meant swap as the second partition like moonfrog suggested.

As always fingers are way behind brain
 
Old 04-13-2010, 09:54 AM   #8
charlie_lab
Member
 
Registered: Nov 2006
Posts: 255

Original Poster
Rep: Reputation: 30
Oke,

Now I wonder how big root (/) must be.
I have a 60G disk which i can entirly use for LFS.

Roelof
 
Old 04-14-2010, 01:46 AM   #9
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
If you go with the every-directory-one-partition idea root (/) just needs 15 (directories) * 4K of size. Just give it 100MB.
Else I'd go with 2G.
 
  


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
partition question charlie_lab Slackware - Installation 12 02-26-2009 01:59 PM
Another Partition Question obnascar Linux - General 6 09-01-2006 04:28 PM
partition question linuxtesting2 Solaris / OpenSolaris 9 04-25-2006 08:12 AM
Question about new partition. jimmmac Linux - General 3 07-05-2003 07:32 AM
Partition question spunkydoo Linux - Newbie 5 01-21-2003 09:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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