LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 10-26-2015, 09:34 AM   #1
b00ms1ang
LQ Newbie
 
Registered: Oct 2015
Posts: 2

Rep: Reputation: Disabled
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!
 
Old 10-26-2015, 10:18 AM   #2
oblo
Member
 
Registered: May 2014
Location: Rome, Italy
Distribution: LFS 7.6
Posts: 55

Rep: Reputation: Disabled
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.
 
Old 10-26-2015, 02:20 PM   #3
b00ms1ang
LQ Newbie
 
Registered: Oct 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
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!
 
Old 10-27-2015, 03:04 PM   #4
Wayne Sallee
Member
 
Registered: Jun 2011
Location: Florida
Distribution: The one that I built. (lfs)
Posts: 269

Rep: Reputation: 17
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
 
  


Reply



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
grub boot virtual disk images ac_kumar Linux - Newbie 1 12-28-2011 05:58 PM
New machine with old disk fails to boot - SATA / IDE problem? JZL240I-U Linux - Hardware 13 10-26-2010 03:09 AM
how to boot from a virtual machines disk umwai Linux - Newbie 11 03-23-2010 11:25 PM
disk geometry changing after boot on sun v210 machine with solaris raviux Solaris / OpenSolaris 1 09-25-2009 10:54 AM
Can I use a virtual machine hard disk as a real hard disk, or vice versa? onlineapps Linux - Software 1 02-24-2007 08:40 PM

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

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

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