Choosing which disk to install MBR to?
Is there some way during the install procedure that I can choose which disk to write the boot loader to rather than have Debian just stomp all over the MBR of the first disk drive in the BIOS order?
In this case Debian is being installed to the third drive in the BIOS order and that is where I want the boot loader written to not to the MBR of the first drive. The first and second drives will at times be removed and used elsewhere. All I want is to be able to point the BIOS boot order to the correct drive and have it boot from there without being dependent on other drives being present. If I choose not to install the GRUB boot loader at install time is there an easy way I can install that later, preferably one which lets me choose where the boot loader is written. Using Debian Wheezy. |
Try to install in expert mode, that should solve your problem.
|
Quote:
In my case I got the boot loader partition wrong so system won't boot. I have tried re-running the install but that does not allow reinstalling just grub. Is there some way that I can boot to a rescue prompt and reinstall grub from there? |
Currently booted to Debian Rescue mode to reinstall Grub. I am trying to install Grub to a Partition not to the MBR. Problem is when I issue grub-install /dev/sdb5 I get the following error:
Quote:
|
Quote:
Code:
mkdir /mnt/debian |
odiseo77, looks like our previous messages crossed at almost the same time. I have found that I can get to a Debian Rescue prompt by selecting that option from the install CD. Problem is Grub will not install the bootloader to the partition I am trying to install it to.
|
Quote:
Regards. |
You could try the methods at the link below for Ubuntu, should be the same on Debian. Section 12.1.2.
https://help.ubuntu.com/community/Grub2 If that doesn't work, try the method below from a terminal using the Debian CD. Make sure you change all entries below from sda4 to sdb5. If you do not have ext4 filesystem, change that. These are separate commands, hit the enter key after typing each line: Quote:
|
Could the problem be that I am trying to put the boot loader into a partition within an Extended partition. Can the boot loader be placed in an extended partition, also can the boot loader work within a LVM group?
I have tried booting the drive despite the error but it just boots to the old MBR. |
Your problem is that the MBR (Master Boot Record) is at the beginning of the drive, not on a partition.
Grub is already installed on your OS on that partition. It need to also be on the MBR (/dev/sdc for instance). This is just an instruction on the MBR as to where to look for the bootloader. Without that you will not boot. |
So actually what you are saying is that chainloading from a different bootloader to Debian's Grub 2 is not possible? I never tried that, but would be astonished if that would be the case.
|
You are not being very clear on what you are trying to accomplish. No, you can't install Grub on an Extended partition. You can install Grub on a formatted logical partition within an Extended partition but since you haven't posted any pertinent information on your partitions, it's pretty hard for members here to guess.
If you were able to install the Debian Grub to sdb5 where you want it, what bootloader are you going to use to boot it? What do you have on your first drive for an operating system/bootloader. If you get Debian Grub installed on sdb5 and have your sda drive set to first boot priority, you will then need to update the boot files on whatever bootloader you are using there. You might try going to the site below and downloading and running the bootinfoscript, post the results.txt file here so members have some actual information to use to suggest a solution. http://sourceforge.net/projects/bootinfoscript/ |
1 Attachment(s)
Hi everyone,
I'm sorry to 'hijack' this, but since I'm in a similar situation (Fedora 16 on an extended / logical boot partition) I made a picture of disk layout and I wonder if it's possible to install grub /boot into my marked partition - it says sdc5, although I don't know how that's counted Regards everyone |
Quote:
There is nothing in the scanty informations provided to indicate anything but a single install on the drive in question that will be booted from that drive only if selected in bios. I have 2 drives set up like that which have more than one install per drive. Works well and is how I want it. I believe that is what the OP is after. A simple install on a drive that will be sellected from the bios drive menu. He/she will then need a boot loader on the MBR of that drive. Chainloading works the same way in that it calls for a particular bootloader on a particular partition to act as the files for the foundation of booting all installs involved. Those files, in the case of bootloading, call for the files on a particular install to be used to boot that install. MBR>base bootloader>individual install bootloader - as opposed to MBR>base bootloader |
Some further details of what else is on this drive:
Quote:
|
All times are GMT -5. The time now is 01:49 PM. |