BIOS problem?

Felipe Figueiredo philsf79 at gmail.com
Wed Feb 20 22:09:28 UTC 2008



On Wed 20 Feb 2008 18:16:33 Karl Larsen wrote:
>     Using 'fdisk' I find an impossible situation. I have this hard drive 

AFAICT there is no problem. Let's see...

> that is /dev/hda and that is fine. In BIOS it is the first HD in the 
> list. Way down the list is the second HD which is a SATA drive and must 
> be plugged into the proper SATA header. For some reason 'fdisk' in this 
> Ubuntu calls this HD /dev/sda!

SATA is handled by libata, which in turn uses scsi emulation, so it's 
recognized as a scsi disk. This has nothing to do with the BIOS or even 
fdisk, but with the kernel itself. Check dmesg and you'll see it.
 
>     I have mounted a partition from the SATA HD /dev/sda7 to this system 
> and copied the whole system to the SATA HD. But grub gets confused. It 
> can't seem to see the SATA HD. I can't get grub to boot the new Ubuntu 
> system.

Again, "nothing to see here, move along". You have to do the grub dance when 
you change the system to another HD.

You have to find out (don't know how) which of the HDs is recognized by grub 
as hd0 and which one as hd1. Assuming it is hd1 (mutatis mutandis if not):

sudo grub
grub> root (hd1,6)
grub> setup (hd1)
grub> quit

This will set grub in the second HD, and look for boot information in the 7th 
partition (for this, I'm also assuming you don't have a separate /boot 
partition).

regards
FF




More information about the ubuntu-users mailing list