LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-11-2008, 11:39 AM   #1
olcal
LQ Newbie
 
Registered: Jan 2008
Distribution: Slackware 14.2
Posts: 21

Rep: Reputation: 0
boot LFS LiveCD from hard disk


How do I boot the iso image of the LFS LiveCD from hard disk.
My hard disk is a 40GB partitioned as follows

/dev/hda1 FAT32 FreeDOS 20GB
/dev/hda2 ext3 Linux 19GB
/dev/hda3 Linux swap 1 GB

Secondary Master CDRW
Secondary Slave DVDROM

Memory : 448MB

I have copied the iso image of LFS 6.3-x86-r2160 to the lfs
partition. I have also copied the isolinux folder from the
LiveCD to the lfs partition.

I have referred to the LiveCD Documentation "Booting from ISO image" which says to copy those files to hard disk. It then says...

Configure the boot loader to load “linux” as a kernel image and “initramfs_data.cpio.gz” as an initrd. The following parameters
have to be passed to the kernel:

rw root=iso:/dev/XXX:/path/to/lfslivecd.iso rootfstype=fs_type

I do not understand the instructions. I have reached Chapter 5.6 Glibc-2.5.1 of the manual v6.3. I am new to linux but have used
CentOS intermittently before.

I have 2 questions.

1) Is what I have done correct ? If not what is the correct method ?

2) How do I install and configure the bootloader to boot from ISO image ?

Regards
olcal
 
Old 02-02-2008, 03:11 PM   #2
aot2002
Member
 
Registered: Dec 2003
Location: NY
Distribution: Ubuntu 7.10
Posts: 66

Rep: Reputation: 15
Quote:
Originally Posted by olcal View Post
How do I boot the iso image of the LFS LiveCD from hard disk.
My hard disk is a 40GB partitioned as follows

/dev/hda1 FAT32 FreeDOS 20GB
/dev/hda2 ext3 Linux 19GB
/dev/hda3 Linux swap 1 GB

Secondary Master CDRW
Secondary Slave DVDROM

Memory : 448MB

I have copied the iso image of LFS 6.3-x86-r2160 to the lfs
partition. I have also copied the isolinux folder from the
LiveCD to the lfs partition.

I have referred to the LiveCD Documentation "Booting from ISO image" which says to copy those files to hard disk. It then says...

Configure the boot loader to load “linux” as a kernel image and “initramfs_data.cpio.gz” as an initrd. The following parameters
have to be passed to the kernel:

rw root=iso:/dev/XXX:/path/to/lfslivecd.iso rootfstype=fs_type

I do not understand the instructions. I have reached Chapter 5.6 Glibc-2.5.1 of the manual v6.3. I am new to linux but have used
CentOS intermittently before.

I have 2 questions.

1) Is what I have done correct ? If not what is the correct method ?

2) How do I install and configure the bootloader to boot from ISO image ?

Regards
olcal
why are you not just burning the ISO to cdrom and then booting the cdrom to follow from there.....Hence boot from LIVE CD not hard disk
 
Old 02-03-2008, 08:06 AM   #3
olcal
LQ Newbie
 
Registered: Jan 2008
Distribution: Slackware 14.2
Posts: 21

Original Poster
Rep: Reputation: 0
I am currently already running off the LFS LiveCD. I want to boot from hard disk for two reasons...

1) Booting from Hard disk is a lot faster.
2) It frees up the CDROM for other uses.
3) It reduces the wear and tear on the CDROM drive.
 
Old 02-03-2008, 11:35 AM   #4
aot2002
Member
 
Registered: Dec 2003
Location: NY
Distribution: Ubuntu 7.10
Posts: 66

Rep: Reputation: 15
Quote:
Originally Posted by olcal View Post
I am currently already running off the LFS LiveCD. I want to boot from hard disk for two reasons...

1) Booting from Hard disk is a lot faster.
2) It frees up the CDROM for other uses.
3) It reduces the wear and tear on the CDROM drive.

then use virtual box or vmware product and use iso instead of cdrom.
 
Old 03-14-2009, 08:40 AM   #5
ddden
LQ Newbie
 
Registered: Apr 2008
Location: Toronto
Distribution: Ubuntu, Red Hat, LFS
Posts: 14

Rep: Reputation: 0
Quote:
Originally Posted by olcal View Post
How do I boot the iso image of the LFS LiveCD from hard disk.
My hard disk is a 40GB partitioned as follows

/dev/hda1 FAT32 FreeDOS 20GB
/dev/hda2 ext3 Linux 19GB
/dev/hda3 Linux swap 1 GB

Secondary Master CDRW
Secondary Slave DVDROM

Memory : 448MB

I have copied the iso image of LFS 6.3-x86-r2160 to the lfs
partition. I have also copied the isolinux folder from the
LiveCD to the lfs partition.

I have referred to the LiveCD Documentation "Booting from ISO image" which says to copy those files to hard disk. It then says...

Configure the boot loader to load “linux” as a kernel image and “initramfs_data.cpio.gz” as an initrd. The following parameters
have to be passed to the kernel:

rw root=iso:/dev/XXX:/path/to/lfslivecd.iso rootfstype=fs_type

I do not understand the instructions. I have reached Chapter 5.6 Glibc-2.5.1 of the manual v6.3. I am new to linux but have used
CentOS intermittently before.

I have 2 questions.

1) Is what I have done correct ? If not what is the correct method ?

2) How do I install and configure the bootloader to boot from ISO image ?

Regards
olcal

Hi,
Short answer is that you need a boot loader that will allow you to load the kernel and provide that root parameter. GRUB is your friend in this regard. If you used GRUB you would enter this into the grub command line

root (hd0,1)
kernel /path/to/isolinux/linux root=iso:/dev/hda2:/path/to/lfslivecd.iso
initrd /path/to/initrd.img
boot

Regards,
ddden
 
  


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 can I install lfs livecd on hard disk? bhxs1809 Linux From Scratch 3 02-25-2009 04:13 AM
how do I copy lfs sources from LiveCD to hard disk olcal Linux From Scratch 7 02-21-2008 11:45 AM
can t boot lfs from livecd glintheuk Linux From Scratch 3 06-23-2007 03:26 PM
LFS Boot Problem(LILO,Two Distributions in Two Hard Disks) 51dunk Linux From Scratch 4 06-11-2007 08:57 AM
how to install manual on LFS 6.1 livecd to hard drive asskickingbob Linux From Scratch 4 12-07-2005 08:04 PM

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

All times are GMT -5. The time now is 12:14 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