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 12-18-2003, 02:17 PM   #1
jucovschi
LQ Newbie
 
Registered: Oct 2002
Posts: 9

Rep: Reputation: 0
Loading GRUB from FAT32 partition


Hi,

I would like to start GRUB form a FAT32 partition. However I don't want GRUB actually installed on any of my partitions MBR. I could keep GRUB’s files (stage1, stage2, …) on the FAT partition and use boot.ini to run some file that would eventually start GRUB.

Besides if you know how could I boot linux (using maybe other boot-loader than GRUB) with ability to give a kernel and a initrd image than problem would be solved.

Thanks in advance
 
Old 12-18-2003, 02:59 PM   #2
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
Methinks you want loadlin rather than grub.

Last edited by fancypiper; 12-18-2003 at 03:02 PM.
 
Old 12-18-2003, 03:58 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,152

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
Do you have Win98 or W2K/XP? What distro of linux are you running?

http://www.geocities.com/epark/linux...w2k-HOWTO.html
 
Old 12-18-2003, 06:12 PM   #4
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
You could look here. It covers using NTLDR / Grub to do just what you want. I found it doing a google.com/linux search with the keywords:
boot howto boot.ini grub.

grub-w2k-HOWTO

Much of the article deals with avoiding the 1024 cylinder limit for computers with older bioses. You could try ignoring the part about adding a partition before the windows partition to begin with, or maybe look at some of the other links for instructions better suited for what you want to do.

Last edited by jschiwal; 12-18-2003 at 06:23 PM.
 
Old 12-19-2003, 10:39 AM   #5
jucovschi
LQ Newbie
 
Registered: Oct 2002
Posts: 9

Original Poster
Rep: Reputation: 0
Fancypiper is right, what I actually need is something like loadlin, and my problem would have been solved if I had windows 98 or the like. I have Windows XP.

What I actually need it for?
I installed Linux Red Hat 7.3 on an ext2 partition. Then I put the whole partition in a file (that I keep on my FAT32 partition) and deleted the ext2 partition. I have made a initrd script that mounts the ext2fs file as root and then starts linux. Everything goes (almost) normal with loadlin, however I have to boot in DOS (I use a bootable CD). I know I could just install GRUB on the MBR but I want (most from interest) to boot linux without touching MBR. So you may assume that I have only one partition which MBR I cannot touch.

I tried to give to boot.ini stage1 file but all it writes is GRUB (and it’s understandable). I tried also concatenating files stage1 and stage2 (as presented in “info grub”), it goes a bit further with writing “GRUB Floppy Error”. Maybe I’m on the wrong track with this ?
 
Old 12-20-2003, 10:12 PM   #6
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
You are trying to load in Red Hat with the entire partition a loopbacked file in a fat32 partition? Mandrake can do this by entering lin4win in the expert install options. The performance is reduced since all access is going through the loopback device. Is the FAT32 drive the first booting drive. If thats the case, there should be no problem installing lilo to the MBR. If not, install lilo to the FAT32 partition and follow the NT-Linux Boot howto. You do need to make changes to get linux booted up through a loop back device however and I don't remember if this involved using loadlin.

Why, if you had a partition for Red Hat prepared do you want to do run linux through a loopback. I did this once on an old laptop with a small harddrive just to be able to play around with it.
 
  


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
Grub loader not loading Windows XP or Fedora Core 1 after changing partition size. zetafunc Fedora - Installation 17 06-12-2005 02:27 AM
grub configure to take it's conf file from a fat32 partition hq4ever Linux - General 1 11-20-2004 05:55 PM
1 NFTS partition to 2 FAT32 partitions, and GRUB failes objorkum Linux - General 2 01-05-2004 09:10 AM
Created new FAT32 partition, after that..GRUB console haunting me..what 2 do??? free_mumia Linux - Newbie 5 01-04-2004 08:02 PM
Created new FAT32 partition and now KDE freezes while loading WM Smile005 Linux - Software 4 11-09-2003 01:23 PM


All times are GMT -5. The time now is 09: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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration