LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Booting LFS from Hard Drive ?? (https://www.linuxquestions.org/questions/linux-from-scratch-13/booting-lfs-from-hard-drive-894626/)

druuna 08-05-2011 02:32 PM

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.

mbzadegan 08-05-2011 11:05 PM

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...

druuna 08-06-2011 07:53 AM

You're welcome :)

frieza 08-06-2011 11:06 AM

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?

mbzadegan 08-07-2011 06:40 AM

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

druuna 08-07-2011 07:31 AM

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.

druuna 08-07-2011 08:01 AM

Hi again,

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

Quote:

Originally Posted by mbzadegan (Post 4435870)
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.

mbzadegan 08-08-2011 12:29 AM

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 .

druuna 08-08-2011 06:12 AM

Hi,
Quote:

Originally Posted by mbzadegan (Post 4436463)
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!


All times are GMT -5. The time now is 05:07 PM.