LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-08-2014, 07:10 AM   #1
picopek
LQ Newbie
 
Registered: Apr 2014
Location: Coimbatore,India
Distribution: Ubuntu13
Posts: 5

Rep: Reputation: Disabled
Lightbulb Bootable medium for LFS


Hello There,

I need to boot it up from the USB, sorry asking it again if this asked repeadtley,

I have the compiled OS at my hand and i want to boot it up from the USB.

Do i need to have the initrd and kickstart file to accomplish this.

Thanks!
 
Old 04-08-2014, 07:36 AM   #2
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 609

Rep: Reputation: 178Reputation: 178
You don't strictly have to use an initial ramdisk to boot an LFS system on a USB drive. But it's a good idea because an initial ramdisk is required to use LABELs or UUIDs (instead of device names) in the grub.cfg and fstab files, and booting with LABELs or UUIDs is a good idea for USB drives because they can enumerated differently and unpredictably. Initial ramdisk support has to be built into the kernel. You also need to compile the kernel with all the USB stuff built in (core, port, and storage drivers). Finally, you may need to add a time delay during booting for the USB drives to settle down. I use rootdelay=5 in my kernel command line in the grub.cfg file. That kickstart thing you mentioned is sort of a Fedora thing. I have never seen that used with LFS.

Last edited by stoat; 04-08-2014 at 08:04 AM.
 
Old 04-08-2014, 09:56 AM   #3
picopek
LQ Newbie
 
Registered: Apr 2014
Location: Coimbatore,India
Distribution: Ubuntu13
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks! for the reply.

Would you please provide me link how to's for the initramfs to the kernel build?..

Thanks once again!!!
 
Old 04-08-2014, 06:12 PM   #4
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 609

Rep: Reputation: 178Reputation: 178
The initial ram filesystem stuff is in chapter 5 of the BLFS book.

For the kernel, you can try the following.
Code:
....General setup --->
     |
     |...[*]Initial RAM filesystem and RAM disk (initramfs/initrd) support (CONFIG_BLK_DEV_INITRD=y)


...Device Drivers --->
     |
     |...[*] Block devices ---> (CONFIG_BLK_DEV=y)
              |
              |...<*> RAM block device support (CONFIG_BLK_DEV_RAM=y, module=rd)
              |...(16)   Default number of RAM disks (CONFIG_BLK_DEV_RAM_COUNT=<integer>) 
              |...(4096) Default RAM disk size (kbytes) (CONFIG_BLK_DEV_RAM_SIZE=<integer>)


...[*] USB support ---> (CONFIG_USB_SUPPORT=y)
        |
        |...<*> Support for Host-side USB (CONFIG_USB=m, module=usbcore)
        |...<*> EHCI HCD (USB 2.0) support (CONFIG_USB_EHCI_HCD=m, module=ehci_hcd)
        |...<*> OHCI HCD (USB 1.1) support (CONFIG_USB_OHCI_HCD=m, module=ohci_hcd)
        |...<*>   OHCI support for PCI-bus USB controllers (CONFIG_USB_OHCI_HCD_PCI=m, module=ohci-pci)
        |...<*>   Generic OHCI driver for a platform device (CONFIG_USB_OHCI_HCD_PLATFORM=m, module=ohci-platform)
        |...<*> UHCI HCD (most Intel and VIA) support (CONFIG_USB_UHCI_HCD=m, module=uhci_hcd)
        |...<*> USB Mass Storage support (CONFIG_USB_STORAGE=m, module=usb-storage)


...    SCSI device support --->
        |
        |...-*- SCSI device support (CONFIG_SCSI=y, module=scsi_mod)
        |...<*> SCSI disk support (CONFIG_BLK_DEV_SD=y, module=sd_mod)
        |...<*> SCSI CDROM support (CONFIG_BLK_DEV_SR=y, module=sr_mod)
        |...<*> SCSI generic support (CONFIG_CHR_DEV_SG=y, module=sg)

...

Last edited by stoat; 04-08-2014 at 08:11 PM.
 
Old 04-24-2014, 01:39 AM   #5
picopek
LQ Newbie
 
Registered: Apr 2014
Location: Coimbatore,India
Distribution: Ubuntu13
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks! for the suggestion.

I'm really confused and i got some few info how to boot it up from USB.

I need to have initramfs that mount on tmps.

A bootable flag that tells to boot it up from the USB. For this i can use syslinux.

For creating initramfs is there any tutorial that i can try out myself.

Thanks in advance!! Sir

Last edited by picopek; 04-24-2014 at 01:43 AM.
 
Old 04-24-2014, 03:08 AM   #6
stefan1959
Member
 
Registered: Feb 2006
Posts: 34

Rep: Reputation: 1
Quote:
Originally Posted by picopek View Post
Thanks! for the suggestion.

I'm really confused and i got some few info how to boot it up from USB.

I need to have initramfs that mount on tmps.

A bootable flag that tells to boot it up from the USB. For this i can use syslinux.

For creating initramfs is there any tutorial that i can try out myself.

Thanks in advance!! Sir
Have you read?
http://www.linuxfromscratch.org/blfs...initramfs.html

Steve'
 
  


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
FATAL: No bootable medium found! RegulusDeneb Linux - Newbie 9 05-08-2013 03:39 AM
[SOLVED] Making LFS 6.8 bootable slipstreamed Linux From Scratch 3 03-22-2013 01:15 AM
bootable / install LFS nixnoobie Linux From Scratch 8 02-13-2008 11:15 PM
Bootable ISO LFS distribution? gnudylan Linux - Distributions 1 12-23-2006 08:18 PM
bootable / install LFS nixnoobie Linux From Scratch 2 09-16-2003 03:42 PM

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

All times are GMT -5. The time now is 08:42 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration