Boot loader can't install into SD memory card successfully

Asked by tonyxu

I have tried to install Ubuntu 8.04 into SD memory card. But boot loader can't install into the card successfully.

I think grub-installer can't recognize the SD memory card as bootable device. Is it right?

How to install the boot loader into a SD memory card through the grub-installer?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Theodotos Andreou (theodotos) said :
#1

Try "sudo grub-installer /dev/<sd-card-logical-name>"

You can find the logical name of the SD card by :

"sudo lshw"

Revision history for this message
tonyxu (tonyxu) said :
#2

There seems has no "grub-installer" commmand.

Revision history for this message
Theodotos Andreou (theodotos) said :
#3

Sorry, its "grub-install"

Revision history for this message
tonyxu (tonyxu) said :
#4

"sudo lshw" can't display the logical name of the SD host controller.
-- Is it from the BIOS's support?

I tried "sudo grub-install /dev/mmcblk0".
The result is "/dev/mmcblk0 does not have any corresponding BIOS drive."
-- Does "grub-install" need BIOS's support?

Revision history for this message
Theodotos Andreou (theodotos) said :
#5

Does it appear in /proc/partitions? Execute the command below to find out:

"cat /proc/partitions"

Revision history for this message
Ken Graves (kgken) said :
#6

I used "cat /proc/partitions" and the partitions show up for /dev/mmcblk0 ones with file systems mount just fine.

The problem is that grub just doesn't see them.
If you start grub and at the grub prompt (grub>) type "root (hd" <Tab> grub will list all the possible drives that it sees:
grub> root (hd
 Possible disks are: hd0 hd1

Add a 0 to the (hd and hit tab and it will list off the partitions types that grub sees. In my case, hd0 is WindowsXP and hd1 is a Live Ubuntu runing from USB.

This is strange since even with a SCSI BIOS Disabled and Linux up and running its own SCSI drivers, grub will see the SCSI drive. Only grub will not find the SCSI drive at boot, unless the SCSI BIOS is Enabled.

All I can think of is that possibly grub does not parse the odd drive labels (/dev/mmcblk0) like it does the /dev/hdx or /dev/sdx. It doesn't seem to see grub on that device at boot time either, but that should be a BIOS driver issue.

Revision history for this message
Philippe Coval (rzr) said :
#7

Can you help with this problem?

Provide an answer of your own, or ask tonyxu for more information if necessary.

To post a message you must log in.