LinuxQuestions.org
Visit Jeremy's Blog.
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 05-21-2003, 05:37 AM   #1
roofy
Member
 
Registered: Apr 2003
Location: Florida
Distribution: Redhat 7.2
Posts: 222

Rep: Reputation: 30
bootable cd shell?


i want to build an lfs system in a vmware machine....ive read the book on linuxfromscratch.org and you need to be inside of a temporary shell to create the filesystem and format it and load packages and what not....how can i make a bootable shell cd? i tried reading this http://hints.linuxfromscratch.org/hints/bootlfscd.txt
and still for that i need 2 LFS systems, please help! thanks

Last edited by roofy; 05-21-2003 at 06:03 AM.
 
Old 05-21-2003, 05:40 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
please please please please use useful thread titles...... please!
 
Old 05-21-2003, 06:03 AM   #3
roofy
Member
 
Registered: Apr 2003
Location: Florida
Distribution: Redhat 7.2
Posts: 222

Original Poster
Rep: Reputation: 30
lol extremely sorry...lemme try an change it
 
Old 05-21-2003, 01:16 PM   #4
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
You don't need two LFS systems perse. You can simply build one LFS system in /mnt/lfs for example and write all of /mnt/lfs to a CDROM and make it bootable.

I can't include an attachment to this reply so download my bootcd.tar.bz2 file from http://linuxfromscratch.org/~gerard/bootcd.tar.bz2 - it's about 16 KB in size and contains my bootcd creation scripts. Unpack it, cd into the "bootcd" directory and mount your LFS system at the cdtree directory like so:

mount --bind /mnt/lfs cdtree

(--bind simply makes a directory available someplace else as well. Doesn't have to be a partition perse, you could type mount --bind /bin cdtree too. It's pretty much like creating a symlink).

Then simply run the ./build.sh script and it'll create an ISO in /usr/misc/iso/bootcd.iso (change this path of course to match a suitable location on your own system) which contains your newly compiled LFS system and it'll be bootable as well.

The build.sh script expects a $LFS/boot/kernel-image file rather than boot/lfskernel (as is the name of the file used in Chapter 8 of the LFS book - this diff. name is simply because of the fact that I also create non-LFS CDs so "kernel-image" is more generic than "lfskernel").

Have fun with it.
 
Old 05-21-2003, 01:25 PM   #5
roofy
Member
 
Registered: Apr 2003
Location: Florida
Distribution: Redhat 7.2
Posts: 222

Original Poster
Rep: Reputation: 30
woooof thats way over my head...first of all im on windows now..but im dual booting with red hat 9...and i dont get what you mean by build an lfs system in /mnt/lfs
 
Old 05-21-2003, 01:46 PM   #6
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
You posted in the LFS forum so I assume you know how to build an Linux From Scratch system. If you read the book you know what /mnt/lfs is about. Maybe you should read the book first.
 
Old 05-21-2003, 01:55 PM   #7
roofy
Member
 
Registered: Apr 2003
Location: Florida
Distribution: Redhat 7.2
Posts: 222

Original Poster
Rep: Reputation: 30
i am...ive never built and lfs system b4...but i realy want to do it...and hopefully build my own distro one day...ive read the book but the book assumes you have a shell on the system your going to build...i was inquiring how they got that shell?
 
Old 05-21-2003, 02:35 PM   #8
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
Ok I understand now.

What you need to install LFS is an already existing Linux distribution. This can be one on your harddisk like RedHat or something, or a bootable CDROM that contains all. I recommend using a normal harddisk based distribution if it's your first time. Get a copy of Redhat or Mandrake or whatever you want, install it and then install LFS afterwards. It's by far the easiest way.
 
Old 05-21-2003, 08:26 PM   #9
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
Another option would be to use a Live Linux CDROM (such as Knoppix ). You can use Knoppix to boot and partition/format a pristine, new drive and compile your static partition. It would work just as well with drives that have stuff already on it too obviously.

However, if that's not an option either, then you'll have to do some searching for a suitable distribution. There are some distros that will install into an existing Windows filesystem (at least, that was the impression I got), but I can't remember any of their names off-hand. You could do some snooping around at www.linuxiso.org.

I would have to imagine running Linux from within a FAT/VFAT/NTFS partition would be horribly slow, nasty, and (in general) just plain BAD. If it's the only option you've got, then it's better than nothing I guess.

Last edited by Dark_Helmet; 05-21-2003 at 08:29 PM.
 
Old 05-21-2003, 11:57 PM   #10
roofy
Member
 
Registered: Apr 2003
Location: Florida
Distribution: Redhat 7.2
Posts: 222

Original Poster
Rep: Reputation: 30
thanks

thank you guys very much...a cd based distro sounds like a good idea...i think i have an iso of demolinux somewhere...but il try out knoppix..i have linux on the dualboot..but ill just use knoppix thru vmware...thanks guys
 
Old 05-22-2003, 03:33 PM   #11
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
Knoppix will work. I myself still prefer a Live LFS CDROM instead of course. There is a pre-made ISO you can download from http://www.stockwith.co.uk/iso. This'll save the hassle of creating your own, especially if you don't have some kind of Linux installed yet.

Last edited by lfslinux; 05-22-2003 at 03:41 PM.
 
Old 05-23-2003, 12:15 AM   #12
roofy
Member
 
Registered: Apr 2003
Location: Florida
Distribution: Redhat 7.2
Posts: 222

Original Poster
Rep: Reputation: 30
im going to give the LFS cd a whirl...i just finished dling all 100 packages...i just noticed the iso is in .bz2 format...i hope winRAR can handle that...
 
Old 05-23-2003, 02:37 AM   #13
roofy
Member
 
Registered: Apr 2003
Location: Florida
Distribution: Redhat 7.2
Posts: 222

Original Poster
Rep: Reputation: 30
lfs cd is good

Last edited by roofy; 05-23-2003 at 12:00 PM.
 
  


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
Question, Apples Contribution to Open Source + MacOs file structure question Higgy3k Other *NIX 5 07-25-2005 04:23 AM
Not your regular GRUB question - just a short question for a fried MBR!! ziphem Linux - General 3 01-31-2005 01:51 PM
2 part question: Speeding up MDK9.1/GNOME question wardialer Linux - Newbie 6 10-14-2004 03:16 PM
login prompt question & kde scheme question JustinCoyan Slackware 2 06-09-2004 02:02 PM
RE: Suse 8.0 hardware question {newbie question, pls help} Radiouk Linux - Distributions 2 06-04-2002 12:53 PM

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

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