LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   boot LFS LiveCD from hard disk (http://www.linuxquestions.org/questions/linux-from-scratch-13/boot-lfs-livecd-from-hard-disk-612890/)

olcal 01-11-2008 11:39 AM

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

aot2002 02-02-2008 03:11 PM

Quote:

Originally Posted by olcal (Post 3019178)
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

olcal 02-03-2008 08:06 AM

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.

aot2002 02-03-2008 11:35 AM

Quote:

Originally Posted by olcal (Post 3044509)
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.

ddden 03-14-2009 08:40 AM

Quote:

Originally Posted by olcal (Post 3019178)
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


All times are GMT -5. The time now is 07:22 AM.