Question about installing grub on second hard drive

Forum rules
Before you post please read this

Question about installing grub on second hard drive

Postby firefighter on Sun Aug 02, 2009 8:46 am

Hello everyone,

I am trying to install mint5kde onto a second sata internal hard drive in my computer. My question is about grub installation. The default is to install it on the mbr of my first hard drive. I want to install the boot loader onto the root of the second hard drive as I use a floppy version of gag to boot the two drives. Not sure how to type it in correctly. Could someone guide me on this? In a regular install of mint and ubuntu, when I click advanced, it gives me the option to install on the root of the second hard drive. Just have never payed attention on how to manually type it in. I think that it should be: hd1,1. Would this be correct?

Thanks.
firefighter
Level 1
Level 1
 
Posts: 41
Joined: Thu Jul 31, 2008 2:24 pm

Linux Mint is funded by ads and donations.
 

Re: Question about installing grub on second hard drive

Postby Boo on Tue Aug 04, 2009 9:01 am

It should be nearly the same as the default one in advanced but hd1 instead of hd0.
I can not remember if it is hd1 or hd1,0 or hd1,1. but if the default is hd0,1 would make it hd1,1 and so on.

I thought it was just hd0 or hd1 since the part after the "," is the partition.
ie hd<disk>,<partition>

the mbr is at the start of a disk not the start of a partition, that is why i think you dont need the partition bit.

Boo
Image
Now where was i going? Oh yes, crazy!
User avatar
Boo
Level 8
Level 8
 
Posts: 2364
Joined: Mon Mar 26, 2007 7:48 am

Re: Question about installing grub on second hard drive

Postby firefighter on Wed Aug 05, 2009 3:31 pm

Boo,
Thanks for your reply. You have steered me in the direction that I needed. I do want to install it in the "root" directory of the second sata drive. This is the drive that Mint5KDE would be installed on using the whole drive. In other words, first sata drive: Windows only, second sata drive: Mint only. Want to place grub in the root directory and us GAG on a floppy to boot the system. Have Ubuntu on the second sata right now and that is how I boot it up. Works fine. What threw me was that under the "advanced" option on installing grub was that I had to manually time in where I wanted it. I just wasn't sure, and didn't want to install and not be able to boot the fresh install of Mint! So type in advanced: hd1 (second hard drive), 1 (root directory)?
firefighter
Level 1
Level 1
 
Posts: 41
Joined: Thu Jul 31, 2008 2:24 pm

Re: Question about installing grub on second hard drive

Postby Boo on Fri Aug 07, 2009 12:17 am

hd1 (second hard drive), 1 (root directory)?
well sort of
hd1 (second hard drive), 1 (second partition)
so if your first partition on the second disk is the / directory/partition (or /boot) then it should be hd1,0..
but if your / is on the say the 3 partition the it shoud be hd1,2

Boo
Image
Now where was i going? Oh yes, crazy!
User avatar
Boo
Level 8
Level 8
 
Posts: 2364
Joined: Mon Mar 26, 2007 7:48 am

Re: Question about installing grub on second hard drive

Postby firefighter on Fri Aug 07, 2009 4:02 pm

Thanks Boo,

I guess that I was thinking that the mbr of the second drive was the first directory, but now that I think about it, it wouldn't be listed as a directory at all. So, if I understand correctly, the /(root) directory for the second hard drive, if I told the install to use the whole drive and automatically format, would be hd1,0. Right?

Sorry to keep asking, just want to be sure I am on the same page about this.
firefighter
Level 1
Level 1
 
Posts: 41
Joined: Thu Jul 31, 2008 2:24 pm

Re: Question about installing grub on second hard drive

Postby Fred on Fri Aug 07, 2009 5:01 pm

firefighter,

Each storage device has an MBR/MPR area. It is the first 512 byte sector on the drive or storage device. Actually, the first 446 bytes is where the grub kernel or other boot pointer/routine goes. The last 66 bytes of the first 512 byte sector is the MPR, (Master Partition Record). Each storage device, real or virtual, is numbered in grub notation starting at 0. Example: (hd0) = sda, (hd1) = sdb, (hd2) = sdc, etc.

Partitions on a storage device are numbered in grub beginning with 0, and are the second number in grub notation. Each partition has its' own area where the grub kernel or other boot pointer/routine goes. Example: (hd0,0) = sda1, (hd0,1) = sda2, (hd1,2) = sdb3, etc. This is not a part of the file system, / or otherwise. It is part of the partitioning layout and is unrelated to the file system on that partition.

To look at it in a very simplistic way, you can think in terms of the BIOS points to a bootable kernel,(grub on the boot drive), which points to a menu, which points to a bootable kernel. This last bootable kernel can be either a Linux kernel, a Windows loader, or another bootable grub kernel located on the MBR of another drive or another partition, virtual or real. This chain can continue until the booted kernel is smart enough to bring up the system.

If you want more in depth information you can look at the thread below beginning with the post referenced.

viewtopic.php?f=46&t=10043&p=63253&hilit=Fred+gboot+denise#p63253

Fred
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Re: Question about installing grub on second hard drive

Postby firefighter on Fri Aug 07, 2009 9:20 pm

Thanks Fred,

See that we are from the same state. I don't know of any linux people in my area. If they are around here, they are deep underground. I ask different people in the area that have some knowledge of computers and they just glaze over or go blank when I talk about linux distros. :shock: So, I just plug along and read a little, search the forums a little, experiment a little. Nice to know that someone in my state uses linux. I must admit though, I am kind of out in the country; job requires it. So, I really don't expect to find that many. Thanks again for the information.
firefighter
Level 1
Level 1
 
Posts: 41
Joined: Thu Jul 31, 2008 2:24 pm

Linux Mint is funded by ads and donations.
 

Return to KDE

Who is online

Users browsing this forum: No registered users and 0 guests