LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 04-20-2011, 11:43 PM   #1
Practically Speaking
LQ Newbie
 
Registered: Apr 2011
Location: CA
Distribution: Mainly Fedora/RHEL
Posts: 1

Rep: Reputation: 0
Grub booting entire partition as initrd and running in memory


I run alot of Linux running in memory. Mainly by PXE booting a kernel and the entire OS as the "initrd" file.

I have a RHEL6 image running as a VirtualBox guest and the entire OS (minimal) is contained withing 1GB of disk. I wan't to boot the entire /dev/sda1 "/" (its the only partition on the drive, no swap) as the initrd file and run everything from memory. But grub won't let me. So before I try and re-invent the wheel I thought to post here first.

Details.
RHEL 6 as guest in VIrtual BOX. configured with 3Gb memory.
HD is single partition and known as /dev/sda1.

at the grub console. I issue

root (hd0,0)
kernel /boot/vmlinuz-2.6.32-19.el6.x86_64 root=/dev/ram0
initrd (hd0,0)

But the grub windows just freezes. Apparently it doesn't like the fact that I've referenced the entire partition (hd0,0) as the initrd. Any thoughts? Or any better boot loader like SYSLINUX?

BTW, I am not worried about the /etc/fstab mentioning /dev/sda1 at this point, I have a fix for that already. I would like to see grub load up the partition as an initrd.
 
Old 04-21-2011, 01:26 AM   #2
lab-rat
Member
 
Registered: Dec 2008
Distribution: Fedora Core 9, suse11.3 ,Ubuntu-super 10.10, Lubuntu 12.04 - 14.04.3
Posts: 35

Rep: Reputation: 4
Hey practical

Truthfully, I would dual boot RHEL6, or better yet, put it on a seperate hdd and dual boot that OS.

As for the VM, did you try contacting RH and ask them what the initrd file parameters should be. And also what kind of VM footprint it would take?? 3 Gigs seems a little bit low. I would say that you need 8 gigs or better to VM it with full functionality..... really.

I have run into issues with VM's trying to run full sized distros and the mem allocation size doesn't cut it. [ meaning that the OS takes up too much space]. So my SuSe and Ubuntu spins run on their own PC's.
Now maybe you don't have another PC kicking around to put RHEL6 on , but you might have a another Hdd, 100 gigs in size, or better 160 gigs is good.

I know the argument here is that it makes it a hassle switching back to windows on the fly, but really , consider it.

CAVEAT .. pay attention to the following text....

Putting Linux [ any Distro ] on the same hdd as windows is a major "no no". This is because the GRUB will offset the windows MBR, and removal of linux not using grub will not reset the windows MBR to its proper spot , and then windows AND linux are gone for toast, hence my suggesting that linux go on its own drive. Or better... Its own PC.

for most PC's at boot pressing F10, at POST, will invoke the BOOT select menu , [a work around if grub hates your set up on your distro install to "other" hdd],then you can select either your windows or linux drive at POST on boot.

So Contact RH, that spin of yours allows phone call assistance on the required mem for a VM boot

Hope this helps

L-R
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Grub booting to wrong Windows partition kryptondog Linux - Software 3 01-20-2006 10:38 AM
grub help booting into another linux partition newusermike Linux - Newbie 3 08-04-2005 10:34 AM
Trouble booting new SATA partition with Grub ridensnow23 Linux - Hardware 9 05-29-2005 12:15 PM
How to use Grub to change the booting partition? JuaN231075 Linux - Laptop and Netbook 2 04-16-2004 04:37 AM
problem w/ Grub booting a Win XP Partition RacerD Linux - Newbie 15 04-16-2004 01:02 AM

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

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