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 02-07-2002, 11:16 AM   #1
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Creating partitions during LFS.


Alright, might as well ask, but is there an easy way to build the LFS on multiple partitions instead of starting out on one large partition ??

I was wondering if I should just build it on one partition then move them to their new partition or if there is an easy way to go ahead and build them along other partitions during the creation process... ?
 
Old 02-08-2002, 02:56 AM   #2
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 46
What I did was build the base LFS all on one partition. It really isn't that big so it will all easily fit. And after it was done I copied each part to the proper partition made the right fstab file and booted the machine.
But it wouldn't be that much harder to get everything on the right partition when you are creating the directory structure. Just a bug if you don't do the whole LFS system in one go because you'll have to mount all the partitions each time you want to continue. But a simple script will mount the all the partitions. So I guess it's basically up to you how you do it. Kinda of how all of LFS is, it's all up to you. Do what you feel is best.
 
Old 02-08-2002, 03:01 AM   #3
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
It should not matter, I just mounted the various partitions in the folders under $LFS
 
Old 02-08-2002, 09:41 AM   #4
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Original Poster
Rep: Reputation: 199Reputation: 199
Yeah I decided I don't feel like messing with mounting and should just be able to fly right thru it on one partition, then copy/mv to the other one's respectively after I am done..

Thanks for the input.

-trickykid
 
Old 02-08-2002, 01:11 PM   #5
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
Re: Creating partitions during LFS.

Quote:
Originally posted by trickykid
Alright, might as well ask, but is there an easy way to build the LFS on multiple partitions instead of starting out on one large partition ??

I was wondering if I should just build it on one partition then move them to their new partition or if there is an easy way to go ahead and build them along other partitions during the creation process... ?
Multiple partitions are very easy, really.

Say you have a disk hdb for use with LFS. hdb1 will be / hdb2 will be /usr hdb3 will be /home and hdb4 will be /var

Create those partitions and put file systems on them (use mke2fs, mkreiserfs or whatever) and mount them like this:

mkdir /mnt/lfs
mount /dev/hdb1 /mnt/lfs
mkdir /mnt/lfs/usr /mnt/lfs/home /mnt/lfs/var
mount /dev/hdb1 /mnt/lfs/usr
mount /dev/hdb2 /mnt/lfs/home
mount /dev/hdb3 /mnt/lfs/var

When you run the commands later in the book to create the subdirectories on $LFS you'll get some errors that certain directories already exist but that's fine, it won't have bad side-effects, so just ignore the messages.
 
  


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
creating partitions simcox1 Mandriva 1 04-22-2005 05:49 AM
creating a bootsplash for LFS ParticleHunter Linux From Scratch 6 10-20-2004 10:20 PM
partitions/making room for LFS silverback011 Linux From Scratch 6 08-15-2004 11:22 AM
creating a custom linux, not meaning lfs... czarherr Linux - Software 4 04-25-2004 10:53 AM
lfs 5.0 Creating the temp sys {Installing Tcl-8.4.4} x3m.seth Linux From Scratch 0 11-12-2003 09:13 PM


All times are GMT -5. The time now is 01:49 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration