LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-24-2010, 06:57 AM   #1
brubizu
LQ Newbie
 
Registered: Jun 2010
Posts: 11

Rep: Reputation: 0
Need to install grub2 on "empty" drive, needs to only boot from a iso.


Hey people... don't know if this is the correct area for bootloaders but i guess it is...

I'm making a custom ubuntu, that it will work only as a liveCD... I mean, everytime I boot the pc, it will load the squashfs image.

So that's what I'm doing:

There will be only a folder system with a livecd iso file inside... called "thin.iso"

and the grub will only have a menuentry that boots this iso.

I have already managed to do it in a pc with a full instalation of Ubuntu, that is, with an already working GRUB2.

But I can't manage to install the GRUB2 from the live environment with no system installed on the drive.

I tried coping the /boot folder to the drive, alongside with the "thin.iso", but still doesn't work.

Can somebody help me to install a grub on an empty harddrive?
I'm using a xfs partition to store the iso.
 
Old 06-24-2010, 10:04 AM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
Welcome to LQ!


See 11th post in http://michael-prokop.at/blog/2009/0...iso-via-grub2/
 
Old 07-01-2010, 08:17 AM   #3
brubizu
LQ Newbie
 
Registered: Jun 2010
Posts: 11

Original Poster
Rep: Reputation: 0
Got it...

I mounted the formatted drive to a temp folder and installed it with:

Code:
grub-install --root-directory=tempfolder /dev/sda
and then "manually" created a grub.cfg

don't forget to flag the partition as bootable....
 
  


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
[SOLVED] linux mint 8 install step 4 "disk preparation" results in empty list michielv Linux Mint 4 05-17-2010 03:05 PM
can longer copy files to my empty USB pen drive on DSL - "no space left on device" misterfever Linux - Newbie 11 03-18-2009 03:42 PM
Gentoo VNC, empty dialog box !! "Question" window is empty ! TheHushedCaskeT Linux - Software 0 02-01-2005 10:14 PM
fedora core1 install... on "L" drive, but how to boot to it? linuxcharlie Fedora - Installation 17 03-25-2004 03:00 PM
Redhat crash - boot directory empty "dub2 bad descriptor" errors jjohnston62 Red Hat 3 11-14-2003 05:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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