LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-18-2003, 01: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, 01:59 PM   #2
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

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

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

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
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, 05:12 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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 05:23 PM.
 
Old 12-19-2003, 09: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, 09:12 PM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

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



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

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

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