LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 08-05-2011, 02:32 PM   #16
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371

Hi,

I partially understand the above and I do have a question: What did you use to start with (step 1 from the article: 1. Boot from an existing Linux distro or any live-cd)?

I'm asking because I'm not sure if steps 15, 16 and 17 mentioned in the article will work when using a (LFS) liveCD.

I just created a blog entry about all this, you might want to have a look.

Hope this helps.
 
1 members found this post helpful.
Old 08-05-2011, 11:05 PM   #17
mbzadegan
Member
 
Registered: Jul 2011
Location: Beside of Andromeda !
Distribution: ♥♥ Just Kernel ♥♥ ( LFS )
Posts: 76

Original Poster
Rep: Reputation: Disabled
Dear druuna ,

I used BackTrack ( ubuntu base ) for step 1 and you guessed correct for steps 15,16,17 .
I appreciate you because of your excellent blog entry because i saw a helpful texts about LFS by hard booting .
I'm downloading your suggest blog iso and then will boot from it and test it , Maybe solved my problem .

TNX alot...

Last edited by mbzadegan; 08-05-2011 at 11:10 PM.
 
Old 08-06-2011, 07:53 AM   #18
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
You're welcome
 
1 members found this post helpful.
Old 08-06-2011, 11:06 AM   #19
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,088

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
just a question, why are you copying the lfs live cd to the hard drive? the point of the lfs live cd isn't to be an installable system, but rather to provide a platform to bootstrap an lfs installation, that is:

1) partition/format hard drive
2) mount hard drive
3) build temporary system
4) chroot into temporary system
5) build/install actual system
6) build/install kernel/boot loader
7) reboot, customize, build/install any additional software (BLFS)

the LFS live cd really only has enough just to do that, nothing more, nothing less.

if building an lfs system isn't what you're after wouldn't a binary based minimum distribution be a better solution?
 
Old 08-07-2011, 06:40 AM   #20
mbzadegan
Member
 
Registered: Jul 2011
Location: Beside of Andromeda !
Distribution: ♥♥ Just Kernel ♥♥ ( LFS )
Posts: 76

Original Poster
Rep: Reputation: Disabled
Dear druuna :

when i booted from LFS_livecd and follow your blog steps while i run bellow command i get an ERROR :

mount -o ro,loop lfslivecd-x86-6.3-r2145-nosrc.iso /mnt/LFS.cd2hd/iso

ERROR :
mount: unknown filesystem type 'iso'


and then i added -t iso9660 but still have ERROR :


ERROR :
mount: wrong fs type
 
Old 08-07-2011, 07:31 AM   #21
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Hi,

What linux distro are you using to do these steps? I tried the procedure using lfs (6.8) and just now tried it using Debian (6.0.2) and both work.

Does your kernel have iso9660 support? (cat /proc/filesystems and check if iso9660 is present)

One other thing that comes to mind: Is your lfs image corrupt? Run the following command: md5sum lfslivecd-x86-6.3-r2145-nosrc.iso the output created should be: 763faec4c00647a41b3987fc371e3821 (LFS liveCD md5 sums). If the output differs: You have a corrupt image, re-dwonload it.

Hope this helps.
 
Old 08-07-2011, 08:01 AM   #22
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Hi again,

I just noticed the following (overlooked that in my previous reply):

Quote:
Originally Posted by mbzadegan View Post
when i booted from LFS_livecd and follow your blog steps while i run bellow command i get an ERROR :
As stated multiple times in my blog article and in post #16: The procedure will _not_ work when you use a liveCD as host.

Hope this helps.

BTW: I do hope you understood what was said in post #6 and #19. To quote frieza
Quote:
.. the point of the lfs live cd isn't to be an installable system, but rather to provide a platform to bootstrap an lfs installation ..
I assume you have a (good) reason to want to "install" the LFS liveCD onto a HD, but that isn't clear from your posts.

Last edited by druuna; 08-07-2011 at 08:03 AM. Reason: fixed typo
 
1 members found this post helpful.
Old 08-08-2011, 12:29 AM   #23
mbzadegan
Member
 
Registered: Jul 2011
Location: Beside of Andromeda !
Distribution: ♥♥ Just Kernel ♥♥ ( LFS )
Posts: 76

Original Poster
Rep: Reputation: Disabled
Dear druuna ,

I booted from your lfslivecd-x86-6.3-r2145-nosrc.iso and its MD5 is TRUE .
I did't want to install LFS on my Hard AT ALL , My project goal is to set LFS on a PXE server that my LAN clients could booted from Lan boot rom and load LFS .
Also , if i can load LFS ( [ kernel+initramfs+root.ext2 ] on my hard partition ) , i solved my problem .

because the solve of PXE server depend on hard disk booting of LFS .

Anyways , I'm so glad if you have an idea to solve my goal ( Boot from PXE ) .
Thanks so much .
 
Old 08-08-2011, 06:12 AM   #24
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Hi,
Quote:
Originally Posted by mbzadegan View Post
I did't want to install LFS on my Hard AT ALL , My project goal is to set LFS on a PXE server that my LAN clients could booted from Lan boot rom and load LFS .

Anyways , I'm so glad if you have an idea to solve my goal ( Boot from PXE )
This is a different problem then the one I understood when looking at your thread title and posts you made thus far. My PXE knowledge is basic at best and therefore I cannot help you with that.

My feeling says that what you want to do is not possible. You cannot install LFS using the LFS liveCD. It, the LFS liveCD, is meant to be a perfect platform to build(!) LFS. I'm not sure if this is possible when the liveCD resides on your PXE machine. But like I said before, that is a feeling, not based on facts!

I hope for you that someone else sees this thread and proves me wrong!
 
1 members found this post helpful.
  


Reply

Tags
boot from hd, lfs, livecd


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
Load nvidia Linux driver manually, not by using X-server, possible ? Vilius Linux - Hardware 2 02-02-2009 12:36 AM
Possible to load apps manually, offline? Jeromeee Linux - Software 4 03-27-2008 07:42 PM
can't load ethernet modules manually varun_saa Mandriva 5 03-14-2007 09:16 PM
manually load m0n0wall Modules Codegen *BSD 0 03-13-2006 09:08 AM
alsa loads manually but will not load in run level kawinter Linux - Software 4 09-17-2005 02:53 PM


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