LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General
User Name
Password
Linux - General This forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Thread Tools
Old 02-25-2005, 11:19 AM   #1
AlexV
Member
 
Registered: May 2004
Location: New Lenox, IL
Distribution: Fedora Core 4; Ubuntu 5.10 (Breezy Preview); CentOS 4
Posts: 81
Thanked: 0
Question Boot ISO image from hard disk?


[Log in to get rid of this advertisement]
Does anyone know if there is a way to save a bootable ISO (say Knoppix for example) to your hard drive and then get GRUB to boot from it? The idea would be for it to act just like a bootable CD -- make all changes to RAM disk, nothing permanent -- but it would be faster and not take up the CD-ROM drive.

Thanks
AlexV is offline     Reply With Quote
Old 02-27-2005, 08:02 PM   #2
dwight1
Member
 
Registered: Feb 2005
Posts: 42
Thanked: 0
This question has been asked many times in the past. The answer is currently no. Though yes, it would be useful.
dwight1 is offline     Reply With Quote
Old 02-27-2005, 11:06 PM   #3
syg00
Guru
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 6,878
Thanked: 160
Knoppix (and DSL, maybe others) have a toram boot option.
Slows down the boot (a one-time cost), but releases the CD drive, and runs quick.
syg00 is offline     Reply With Quote
Old 04-27-2005, 10:18 AM   #4
rosh1182
LQ Newbie
 
Registered: Oct 2003
Posts: 18
Thanked: 0
the answer is .... YES

It is possible to d/l an iso and boot from it without burning to a cd. I have done it before, but there are a few steps which involve (from what I remember) essentially making a disk image of the iso onto a partition of your hard drive, then pointing to that partition with either lilo or GRUB. I am currently kicking myself for not bookmarking the site from which I got the instructions, but I will find it and post.
rosh1182 is offline     Reply With Quote
Old 04-27-2005, 06:28 PM   #5
bigrigdriver
Senior Member
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: openSUSE 10.3 Debian 4.0
Posts: 4,637
Thanked: 12
As i recall, it involves making a partition on the hard drive and formatting for iso9660, then burn the iso to that partition (just like it was a cd). But, to get grub to boot it? Don't know yet. Still looking.
bigrigdriver is offline     Reply With Quote
Old 04-27-2005, 06:42 PM   #6
rosh1182
LQ Newbie
 
Registered: Oct 2003
Posts: 18
Thanked: 0
here is the answer

http://www.neowin.net/forum/lofivers.../t305843.html:

-create a mountpoint to mount the ISO with loopback:
mkdir /mnt/LiveISO

-mount the image:
mount -t iso9660 -o loop,ro /DOWNLOADS/Knoppix-3.7-en.iso /mnt/LiveISO

-create a directory on the device where you are going to boot from:
mkdir /mnt/hda4/KNOPPIX

-copy the contents of the mounted image to that directory:
cp /mnt/LiveISO/KNOPPIX/* /mnt/hda4/KNOPPIX/

-copy kernel and initrd files to yor boot device:
cp /mnt/LiveISO/boot/* /boot

* Grub:
title KNOPPIX
root (hd0,0)
kernel /linux26 ramdisk_size=100000 fromhd=/dev/hda4
initrd /minirt26.gz
savedefault
boot

* Lilo:
image=/boot/linux26
initrd=/boot/minirt26.gz
label=KNOPPIX
append="ramdisk_size=100000 fromhd=/dev/hda4"
-------------------

The basic idea is that you copy the contents of the iso to a partition. Then, in your current linux os, you copy the kernel and initrd images from the iso to your current boot directory. Last, you edit LILO so that it points to the kernel and initrd images you just copied, and make sure you append the "fromhd" line so that the "livecd" will know where the rest of the knoppix files are. I know that similar instructions worked with kanotix as well (which makes sense since it is knoppix based). The only possible problem for other isos (say non-livecds, for example) is that they may not have a "fromhd" option the way knoppix distros do.
rosh1182 is offline     Reply With Quote
Old 04-27-2005, 06:46 PM   #7
kencaz
Senior Member
 
Registered: Mar 2005
Location: Costa Mesa, OC, CA USA
Distribution: Mandrake 10.1 Slackware 8.1 FreeBSD
Posts: 1,468
Thanked: 0
Yes it is possible. Called "Poor Man's Install" I used it successfully for a long time. You can use a bootable .iso but I used the "tohd" option to copy the uncompressed image to my windows partition /dev/hda1. It created a C:\KNOPPIX folder. I still had to boot from the CD but after intering a cheat code:

boot: knoppix fromhd /dev/hda1

I was able to run from my hard drive as if it was the live CD. It ran incredibly faster from the HD, (of course). You can even save your configurations on the windows partition.

The only drawback is that you can't mount your HD in write mode because it then mounts the whole partition as a CDROM.

Here is some more information on it:
http://www.knoppix.net/wiki/Poor_Mans_Install

KC
kencaz is offline     Reply With Quote
Old 04-27-2005, 07:22 PM   #8
bigrigdriver
Senior Member
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: openSUSE 10.3 Debian 4.0
Posts: 4,637
Thanked: 12
Just wondering.

Suppose you have created a partition formated for iso9660 and burned the iso to that partition as if it were a cd.

Could you edit grub.conf (or menu.lst) as follows and make it boot?

title <isoname>
kernel (hdx,y)/boot/<isoimage> root=(hdm,n)
initrd (hdx,y)/boot/<initrd.img)

where (hdx,y) is the grub designation for the partition, and (hdm,n) is the usual (hda,1) type of designation.
bigrigdriver is offline     Reply With Quote
Old 02-20-2009, 08:34 AM   #9
salahabdalaly
LQ Newbie
 
Registered: Feb 2009
Posts: 2
Thanked: 0
urgent need

Quote:
Originally Posted by rosh1182 View Post
http://www.neowin.net/forum/lofivers.../t305843.html:

-create a mountpoint to mount the ISO with loopback:
mkdir /mnt/LiveISO

-mount the image:
mount -t iso9660 -o loop,ro /DOWNLOADS/Knoppix-3.7-en.iso /mnt/LiveISO

-create a directory on the device where you are going to boot from:
mkdir /mnt/hda4/KNOPPIX

-copy the contents of the mounted image to that directory:
cp /mnt/LiveISO/KNOPPIX/* /mnt/hda4/KNOPPIX/

-copy kernel and initrd files to yor boot device:
cp /mnt/LiveISO/boot/* /boot

* Grub:
title KNOPPIX
root (hd0,0)
kernel /linux26 ramdisk_size=100000 fromhd=/dev/hda4
initrd /minirt26.gz
savedefault
boot

* Lilo:
image=/boot/linux26
initrd=/boot/minirt26.gz
label=KNOPPIX
append="ramdisk_size=100000 fromhd=/dev/hda4"
-------------------

The basic idea is that you copy the contents of the iso to a partition. Then, in your current linux os, you copy the kernel and initrd images from the iso to your current boot directory. Last, you edit LILO so that it points to the kernel and initrd images you just copied, and make sure you append the "fromhd" line so that the "livecd" will know where the rest of the knoppix files are. I know that similar instructions worked with kanotix as well (which makes sense since it is knoppix based). The only possible problem for other isos (say non-livecds, for example) is that they may not have a "fromhd" option the way knoppix distros do.
how i can setup GRUB from terminal
salahabdalaly is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
Boot an iso without a CD off a hard disk? boffin Linux - Software 9 12-31-2007 03:54 PM
Burning an ISO disk image on Linux paulsh2k4 Linux - Software 15 10-11-2004 10:50 AM
Burning a LINUX iso image for use as a boot disk/CD Howerton Linux - Newbie 9 07-19-2004 03:53 PM
Linux does NOT install anything from CD ISO image only form hard drive gorgenyi Linux - Newbie 4 02-13-2004 08:27 AM
Help making and ISO out of a boot disk image... Rikarus Linux - Software 2 05-20-2003 05:56 PM


All times are GMT -5. The time now is 08:45 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration