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 08-23-2011, 05:17 AM   #1
neverminder
LQ Newbie
 
Registered: Aug 2011
Distribution: LFS
Posts: 7

Rep: Reputation: Disabled
Booting from USB, CDROM, etc


When selecting whether to boot linux from a USB drive, CDROM, or SATA drive it looks like I have to take 2 (or more) routes:

1. Learn how to create an Initrd image and incorporate it into my GRUB configuration

2. Learn how to boot with ISOLINUX

Before I jump into those guides which seem as big as the LFS guide, can anyone tell me if there is any simple solution?

I've booted my LFS (or should I say GRUB only) on a USB drive and it generates an error when mounting "root=" claiming my USB drive /dev/sdb1 couldn't be found. I get a list of "available" partitions which are all of the /dev/sda* persuasion, and thus, the local computer drive (which I do not want to set as root)

I guess it's not as simple as setting root=/dev/sdb1 or somehow inserting a script to mount /dev/sdb1 before that line is called?
 
Old 08-23-2011, 07:15 AM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
hi

there may be more than one solution such as compiling a kernel with usb BUILTIN instead of modules, but I am wondering if you understood that when you built your usb system....you were likely to have booted from hard drive so sdb for usb was reasonable.

When you change boot order to usb....it should be sda1....try it and see what happens

2) usb devices also need time to settle....does LFS have a boot code like TC which is waitusb=number

---------- Post added 23-08-11 at 20:16 ----------

hi

there may be more than one solution such as compiling a kernel with usb BUILTIN instead of modules, but I am wondering if you understood that when you built your usb system....you were likely to have booted from hard drive so sdb for usb was reasonable.

When you change boot order to usb....it should be sda1....try it and see what happens

2) usb devices also need time to settle....does LFS have a boot code like TC which is waitusb=number
 
1 members found this post helpful.
Old 08-23-2011, 09:57 AM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Instead of giving device descriptors, like /dev/sdb1, to the root option I would try it with labels or UUIDs.
 
Old 08-24-2011, 01:01 AM   #4
neverminder
LQ Newbie
 
Registered: Aug 2011
Distribution: LFS
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by aus9 View Post
hi

there may be more than one solution such as compiling a kernel with usb BUILTIN instead of modules, but I am wondering if you understood that when you built your usb system....you were likely to have booted from hard drive so sdb for usb was reasonable.

When you change boot order to usb....it should be sda1....try it and see what happens

2) usb devices also need time to settle....does LFS have a boot code like TC which is waitusb=number

---------- Post added 23-08-11 at 20:16 ----------

hi

there may be more than one solution such as compiling a kernel with usb BUILTIN instead of modules, but I am wondering if you understood that when you built your usb system....you were likely to have booted from hard drive so sdb for usb was reasonable.

When you change boot order to usb....it should be sda1....try it and see what happens

2) usb devices also need time to settle....does LFS have a boot code like TC which is waitusb=number
I'll give this a shot soon and post results. Thanks for the suggestions
 
Old 08-24-2011, 10:32 PM   #5
neverminder
LQ Newbie
 
Registered: Aug 2011
Distribution: LFS
Posts: 7

Original Poster
Rep: Reputation: Disabled
No luck, I'm going to try using the grub instructions from this link:

http://www.gnu.org/software/grub/man...ble-CD_002dROM

Basically, make a grub rescue disk but include my entire LFS system onto the rescue USB disk.
 
Old 08-26-2011, 06:31 PM   #6
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
hi

that might make a bootable image but it won't have your filesystem unless you populate it more ok?

so

I am assuming you are using grub-legacy? or does LFS now use grub2


after creating the folder iso....use ROOT powers to populate all folders of underneath so eg you could use a file manager to navigate to

iso/etc/fstab

if you don't use root powers you won't copy across your root only files
 
Old 08-30-2011, 12:55 AM   #7
neverminder
LQ Newbie
 
Registered: Aug 2011
Distribution: LFS
Posts: 7

Original Poster
Rep: Reputation: Disabled
Following the GRUB instructions I run the grub-mkrescue and get: genisoimage: command not found

So finding that genisoimage is in a package called cdrkit, I try to get cdrkit. I've only found it in RPM format.

BLFS guide (current) recommends using a rpm2targz converter, I ran into some dependency problems and other such things so I took up trying to install RPM on a fresh LFS 6.3 install in order to install the cdrkit for GRUB.

I'm going to start a separate thread for RPM installing.
 
  


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
How to boot a cdrom from a mobile USB cdrom (old bios, without usb boot) Xeratul Linux - General 12 09-07-2010 03:29 PM
installing ubuntu with no cdrom and laptop does not support booting from usb... slyde Linux - Laptop and Netbook 11 11-01-2008 02:45 AM
cdrom not booting first? silvershady22 Linux - Newbie 6 06-18-2006 07:48 AM
Booting From a USB CDROM Drive Flossie Mandriva 1 03-23-2004 10:58 AM
CDROM Booting NG9671 Linux - Newbie 1 09-24-2001 11:42 AM

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

All times are GMT -5. The time now is 07:03 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
Open Source Consulting | Domain Registration