LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Building a boot disk from a boot disk/virtual machine, possible? (https://www.linuxquestions.org/questions/linux-from-scratch-13/building-a-boot-disk-from-a-boot-disk-virtual-machine-possible-4175557190/)

b00ms1ang 10-26-2015 09:34 AM

Building a boot disk from a boot disk/virtual machine, possible?
 
So I have been attempting to create a Linux From Scratch. I have Windows 7 running on my computer, and do not want to dual boot a linux distro (as I have done so in the past and didn't find a lot of use for it, and instead have been running Kali from a VM)

I am trying to build LFS on a 24gb flash drive (which I'm not sure is even possible on it's own) using an Ubuntu Boot Disk flash drive (making things even weirder). I've tried several things, and nothing seems to work quite right, likely my own fault
My question is, is what I'm doing even possible? And if it is, what would have to change from the original LFS instructions? And even more favorable... would building from an Ubuntu Virtual Machine work to get LFS booting and functioning on a flash drive? Thank you all for your time! I'm still very green to all of this, but want to learn as much as I can to become proficient!

Note: I have tried making an LFS boot disk using the ISOs from LFS, even though the boot-disk project is no longer supported. None of the ISOs would burn properly or boot from my flash drives. If I could get at least one ISO to work, this whole thing would be a nonissue!

oblo 10-26-2015 10:18 AM

You can build lfs in your hd and boot from usb using yumi: http://www.pendrivelinux.com/yumi-mu...t-usb-creator/
You need a /boot/grub/grub.cfg and you can skip the grub step into the book (6.54. GRUB-2.02~beta2 package no needed).
In chapter "8.4. Using GRUB to Set Up the Boot Process" jump directly to the last step.. 8.4.4. Creating the GRUB Configuration File.
Therefore you have yumi on usb stick and it reads your grub.cfg on the lfs partition.

b00ms1ang 10-26-2015 02:20 PM

That's awesome! I will definitely be trying that! Thank you very much for your promptness. I'll run it tomorrow and see what happens!

Wayne Sallee 10-27-2015 03:04 PM

What I did, was to install my linux distro of choice inside Virtualbox. Created another virtual drive for the lfs to be installed in. I built it that way. Then later when I was ready to move it to a real computer, I used a clonezilla ISO to clone the virtual drive to a real drive.

Wayne Sallee
Wayne@WayneSallee.com


All times are GMT -5. The time now is 02:12 AM.