Any tips for grub options during install - like adding SDCARD=sdx

99 views
Skip to first unread message

Dan

unread,
Mar 14, 2012, 3:07:43 PM3/14/12
to Android-x86
Does anyone know of a good way to add SDCARD=sda2 to the grub menu
during the install?

Right now, I do the install - then reboot the system with a rescue
disk, modify the menu.1st, then reboot back into Android. It's not
the end of the world, but I was wondering if there is a better way.

Thanks in advance.

Cereal Killer

unread,
Mar 14, 2012, 4:11:48 PM3/14/12
to Android-x86
I think what your asking is how to set up grub on an sd and leave your
internal hdd untouched. well ... im no expert but the way I have done
it is to install android to sd and add grub to the sd ... do not add
windows to grub. then when ever you want to boot to android just hit
f12 at the boot and select your sd. might want to give the ubuntu
forums a try as to how to dual boot linux and windows ... might help
you out.

Dan

unread,
Mar 15, 2012, 8:27:52 AM3/15/12
to Android-x86
Thanks Cereal - but not exactly. My system boots off a CF card. It
used to have only one partition formatted ext3 with android on it.
For a SDCARD, it would detect a usb stick inserted where I would have
mp3 files, etc. But is was a pain having this USB stick hanging out
of the device all the time. Then I got the brilliant idea :) of two
partitions on the CF card, one with the OS, and the other formated as
FAT32 with the mp3 files. It worked like a charm. But I rebuild and
reinstall android every few days, and when I do the install, it wipes
the grub menu.1st file. Without the SDCARD=sda1, it doesn't see the
second partition as an SDCARD an nothing works correctly -
mediascanner, music player, etc.

So if there was a way during the install to add extra flags to grub,
that would be the answer.

Dan

unread,
May 1, 2012, 4:23:44 PM5/1/12
to Android-x86
Solution:

Put this in the BoardConfig.mk for the device:

BOARD_KERNEL_CMDLINE += SDCARD=sda2

make sure it's AFTER the "include $(GENERIC_X86_CONFIG_MK)" part


Reply all
Reply to author
Forward
0 new messages