install boot sector

JD jd1008 at gmail.com
Wed Sep 28 01:00:28 UTC 2011


On 09/27/2011 05:19 PM, mickey wrote:
> F15
>
> Setup F15 hard drive on a different computer /dev/sda and sent hard
> drive to a friend to put in his computer as /dev/sdb , behind WindowsXp
> and went into the rescue mode to run grub-install /dev/sda , getting a
> error message;
>
> "sdc2 Does not have any corresponding BIOS drive".
>
> There is only two hard drives and a DVDrom in this computer,  I can't
> understand the sdc2 unless fedora see's this
> drive , slave hard drive as sdc2 instead of sdb2 , partition 2 is where
> the / partition is for Fedora.
> WindowsXP is on Master drive.
>
>
> Hard Drive is recognized by BIOS as a Slave sdb.
>
> I guess the Device map is different and causing problems, How do I fix
> this to get boot sector on /dev/sda
>
> Can the command  grub-install --recheck /dev/sda fix the problem.
I thought you have to edit grub.conf so that
boot=/dev/sda <<<< Point this to correct drive like /dev/sdb

splashimage=(hd0,1)/boot/grub/splash.xpm.gz <<< Change this to correct 
(hd1,0) as an example
hiddenmenu
default=0

title Fedora (2.6.39.3-1.fc14.i686)
         root (hd0,1) <<<< Change this to (hd1,0)
         kernel /boot/vmlinuz-2.6.39.3-1.fc14.i686 ro root=/dev/sdb 
rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 
SYSFONT=latarcyrheb-sun16 KEYTABLE=us LANG=en_US.UTF-8 nomodeset
         initrd /boot/initramfs-2.6.39.3-1.fc14.i686.img


Then you must fix /etc/fstab so that
/dev/sdb1 /     ext3    defaults        0 0

...etc.



More information about the users mailing list