Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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 ?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.