LinuxQuestions.org
Visit Jeremy's Blog.
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
  Search this Thread
Old 06-20-2009, 06:35 PM   #1
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207

Rep: Reputation: 47
LiveCD iso boot from hard drive


I'm running low on cd-rs and am downloading an iso now for the LiveCD of Fedora Core 11. Can I mount this as a loopback and copy the files grub would need to boot this from my hard drive?
 
Old 06-20-2009, 07:12 PM   #2
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Hey bro, I think if you have a spare partition to boot it from you can do it that way...

you would need a partition to install to and one to install from.
If you had fat32 or ext2/3 usb and computer boots from usb(or use bootfloppy to boot usb),
then you could install from usb, maybe best choice.

I have netbootcd-3.0 for usb which can netinstall any major distro.
If you want link to netbootcd-3.0-usb I will give it to you.

Or, you could copy iso to usb, install syslinux or grub and install from there.

So, tell me what you wanna do and we'll hook it up...cough
 
Old 06-20-2009, 07:45 PM   #3
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207

Original Poster
Rep: Reputation: 47
Well, for some odd reason I cannot get my computer to boot from a usb (I have messed with the BIOS and it is set up there to boot from USB...but it usually doesn't work). Another downside is that my pc doesn't have a floppy drive. So, it's either booted from a cd/dvd or from the hard drive. I have 14 partitions on my hard drive-so I could find 2 partitions to use.

Hard drive is the way I'd like to go
 
Old 06-20-2009, 09:29 PM   #4
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
OK, assuming you have grub already installed to hd...

mount and copy iso to root of one partition.
edit your menu.lst for that partition to boot the extracted iso kernel/initrd.
so, you gotta translate the isolinux.cfg entry to grub entry.

here is menu.lst for fedora10 net-install iso on /dev/hda2

title Fedora 10 Net-Install
root (hd0,1)
kernel /isolinux/vmlinuz root=/dev/hda2
initrd /isolinux/initrd.img


So, just translate that for your hd partition and iso
then, boot and install.

I just copied the whole iso to root of hda2, edited menu.lst in boot/grub
and booted up.

Installer asked if I image was on cd, hd, etc
I said hd, directory "/images" or just "/"
and install proceded.

Please tell me if that works for you....

Last edited by linus72; 06-20-2009 at 09:31 PM.
 
Old 06-20-2009, 09:49 PM   #5
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207

Original Poster
Rep: Reputation: 47
so do I just need the vmlinuz file and initrd.img file from the iso and then copy the entire iso to the root of that same partition that those 2 files are at?
 
Old 06-20-2009, 10:35 PM   #6
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207

Original Poster
Rep: Reputation: 47
well, I did something wrong. Grub was able to boot the kernel from the live cd...but a couple seconds into boot it froze. After doing a checksum on the iso file I did this:

mount -o loop Fedora-11-x86_64-Live.iso FC11-live/

Then I did a cd FC11-live and copied all to partition sda9 which was mounted as /media/sda9:

cp -r * /media/sda9

Then I found the kernel and initrd files /media/sda9/isolinux and put this entry in /boot/grub/menu.1st:

title Install Fedora Core 11
root (hd0,8)
kernel /isolinux/vmlinuz0
initrd /isolinux/initrd0.img

What's wrong?
 
Old 06-20-2009, 11:34 PM   #7
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Why don't you run them in a virtual machine?
vmware, qemu, virtualbox....
 
Old 06-21-2009, 06:17 AM   #8
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Alright, please look at my example menu.lst compared to yours
Big thing you left out was "root=/dev/hda2"
Or root=/dev/hdxx where xx is whatever drive/partition you are putting it in.

I simply copied the contents of iso to hda2, which was a folder named "images" and a folder named "isolinux"
I then edited my menu.lst, which is in hda1, and added what's below to my menu.lst

Code:
default 0
timeout 0

color blue/white cyan/light-green

title Fedora 10 Net-Install
root (hd0,1)
kernel /isolinux/vmlinuz root=/dev/hda2
initrd /isolinux/initrd.img
And, as Repo, the master of mayhem said, try it in qemu or vbox, etc

Actually, that's what I was doing

I made a qemu-img, about 1gb, cfdisk'ed it with 3 partitions(hda1 ext3, hda2 ext3, hda3 swap), formatted it, turned on swap, copied iso to hda2,
created a boot/grub folders on hda1, used nano to make a menu.lst in hda1, installed grub to hda/hda1 with
"sudo grub"
"root (hd0,0)"
"setup (hd0)"
"quit"

and then shut it down and booted qemu off qemu-img, booted fed10
on hda2 and it found itself, and was proceeding with netinstall when I shut it down.

Doing it virtually is a good way to learn about the grubster
and installing, etc
Need any more help holler'
 
Old 06-21-2009, 06:42 AM   #9
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207

Original Poster
Rep: Reputation: 47
I got the same thing with root=/dev/hda9. I'll try qemu.
 
Old 06-21-2009, 06:44 AM   #10
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
OH, did you try root=/dev/sda9 ?
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
from liveCD iso on hard drive partition imhennessy Linux From Scratch 2 03-22-2008 12:23 PM
Boot from iso in ntfs hard-drive linux_padawan Linux - Laptop and Netbook 3 05-03-2006 10:36 PM
How To Install LiveCD to Hard Drive jimbo-62 Linux From Scratch 16 12-03-2005 02:07 AM
how to mount hard drive with a livecd? santaliqueur Linux - Software 8 10-07-2005 12:08 AM
install livecd to hard drive? jmille34 Linux From Scratch 7 07-21-2005 04:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

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