Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
Hello i am trying to make a boot partion for grub and im not having much luck. at the moment a have a small and empty ext2 partion (hdc2) which i wish to set up grub on and boot from. I installed grub to it useing this command
and it installed it fine with out any errors but when i boot my computer it still loads from my old grub on hdc1 (which is where ubuntu is installed) how do i make it load hdc2 ive tried removeing my old grub set up and changeing the MBR both which have resulted in errors when i booted and i had to change it back could do with some help on this one thanks
you may be right beacuse im really not that sure how to do this. if i have just installed this in the first sector of hdc2 how do i go about makeing it boot grub on hdc2 ?
During boot-up, the bios will look for boot code in any of several places--floppy, CD, 1st sector of the first HD. In the HD case, if grub is anywhere except 1st sector of 1st drive (aka the mbr), then **something** needs to be there to point to grub.
What is your end goal?
Why not put grub in the mbr?
Hi pixellany
My end goal is to have my computer boot from hdc2 partion where grub is installed. But this was before you mentioned the MBR i thought that the MBR just pointed to your boot loacation and it didn't have enough memory to install something like grub on it but if thats possible its a much better idea
Hi pixellany
My end goal is to have my computer boot from hdc2 partion where grub is installed. But this was before you mentioned the MBR i thought that the MBR just pointed to your boot loacation and it didn't have enough memory to install something like grub on it but if thats possible its a much better idea
To be more precise:
A typical situation, but not the only answer
GRUB stage1 in the mbr (or a floppy)
Stage1.5 and and Stage2 in the /boot/grub directory /boot CAN be a separate partition but does not need to.
The GRUB manual will make all this a bit clearer. Also, find any post by Saikee and look at the links in hsi sig.
A /boot partition like the one you want to use to boot your computer works/is used like this:
-when you install grub the files (stage files, device.map, grub.conf/menu.lst...) are put into /boot/grub/ directory
-a boot record is written to the location you give with this command - in your case this was /dev/hdc2
A /boot partition is useful when you want to boot more than one system easily because you have everything in one place.
With /boot/grub/grub.conf you only have one configuratin file to manage and change and all the kernels for your different OS are also kept there (not neccesarily - but if you don't put everything there it does not make much sense to have a /boot partition)
What you have done: you installed grub to /dev/hdc2
You cannot boot off this partition directly - but only from MBR - as pixellany said
You would need to modify your original grub configuration to include an entry to boot / chainload your grub on /dev/hdc2
This is most certailly not what you wanted.
What you should do:
install grub to the MBR of the device you are booting from - not to a partition on that device.
If you boot off /dev/hdc the command would have been: sudo grub-install /dev/hdc
this is because:
you only need to give the --root-directory if it is NOT where it is per default - which is /boot
(your command installed grub to /boot/boot/grub) !!! /boot (dev/hdc2) needs to be mounted during this !!!
/dev/hdc is the MBR of the whole device - which can be used to boot from (set your Bios to boot from this device)
Normally a system is booted from the first harddisk though...
To actually use this one /boot partition to boot different operating-systems you would copy their kernels to this partition.
You could save all the hassle and use the grub installation you already have - just add an entry to this config-file and off you go.
The advantage of one/boot shared by all systems will be gone then but it would still work - the advantage being:
if you should decide to delete one system you would still have /boot and be able to use the others without any more trouble setting things up
Thanks everyone ive got it working now and i have i boot partion which is working great im now going to make use of this and try out some diffrent distros thanks for all your help
Hi all,
in my old computer I finally installed Grub in the mbr via Yast (Linux SuSE 9.3), in a dual boot system. But that caused me serious problems once i had to uninstall Linux. I lost both linux and Windows 2000. I'm new to Linux, but I think a better way to have a dualboot windows-linux system is to create a boot partition other than the mbr.
Doesn't true?
Enrico
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.