LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux 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
 
LinkBack Search this Thread
Old 02-25-2005, 10: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

Rep: Reputation: 15
Question Boot ISO image from hard disk?


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
 
Old 02-27-2005, 07:02 PM   #2
dwight1
Member
 
Registered: Feb 2005
Posts: 42

Rep: Reputation: 15
This question has been asked many times in the past. The answer is currently no. Though yes, it would be useful.
 
Old 02-27-2005, 10:06 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,828

Rep: Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927
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.
 
Old 04-27-2005, 09:18 AM   #4
rosh1182
LQ Newbie
 
Registered: Oct 2003
Posts: 18

Rep: Reputation: 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.
 
Old 04-27-2005, 05:28 PM   #5
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,698

Rep: Reputation: 287Reputation: 287Reputation: 287
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.
 
Old 04-27-2005, 05:42 PM   #6
rosh1182
LQ Newbie
 
Registered: Oct 2003
Posts: 18

Rep: Reputation: 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.
 
Old 04-27-2005, 05:46 PM   #7
kencaz
Senior Member
 
Registered: Mar 2005
Location: Las Vegas, NV
Distribution: Mandriva Slackware FreeBSD
Posts: 1,468

Rep: Reputation: 47
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
 
Old 04-27-2005, 06:22 PM   #8
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,698

Rep: Reputation: 287Reputation: 287Reputation: 287
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.
 
Old 02-20-2009, 07:34 AM   #9
salahabdalaly
LQ Newbie
 
Registered: Feb 2009
Posts: 2

Rep: Reputation: 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
 
  


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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are 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 02:54 PM
Burning an ISO disk image on Linux paulsh2k4 Linux - Software 15 10-11-2004 09:50 AM
Burning a LINUX iso image for use as a boot disk/CD Howerton Linux - Newbie 9 07-19-2004 02:53 PM
Linux does NOT install anything from CD ISO image only form hard drive gorgenyi Linux - Newbie 4 02-13-2004 07:27 AM
Help making and ISO out of a boot disk image... Rikarus Linux - Software 2 05-20-2003 04:56 PM


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

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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration