Detecting Android XX-XXX fix

67 views
Skip to first unread message

Yousha Rashid

unread,
Nov 22, 2022, 3:49:06 PM11/22/22
to Android-x86

Detecting Android x86 …..
Manual Grub error solution:
While in grub menu hover over Android xx-xxx and Click “e”

Set GRUB’s root device to the same drive as GNU/Linux’s. The command search --set=root --file /vmlinuz or similar may help you 

Search devices by file (-f, --file), filesystem label (-l, --label), or filesystem UUID (-u, --fs-uuid).If the --set option is used, the first device found is set as the value of environment variable var. The default variable is ‘root’. The --no-floppy option prevents searching floppy devices, which can be slow.The ‘search.file’, ‘search.fs_label’, and ‘search.fs_uuid’ commands are aliases for ‘search --file’, ‘search --label’, and ‘search --fs-uuid’ respectively.

I used UUID(-u ) instead of –file

search –set=root -u [Location of the uuid of the partition]

on the second line I used

linux /androidxx-xxx/kernel root=/dev/sda1 

dev/sda1 means first drive. it should be the drive where the kernel resides! mine resided in sda9 so I used “root=/dev/sda9”


       initrd /androidxx-xxx/initrd.img

stays the same

useful links

  1. https://www.gnu.org/software/grub/manual/grub/grub.html#GNU_002fLinux

  2. https://linuxhint.com/uuid_storage_devices_linux/



crw

unread,
Nov 23, 2022, 4:47:19 AM11/23/22
to Android-x86
Android x86 initrd uses the uppercase $ROOT variable when searching for the installation in different partitions / disks, not lowercase $root.  https://osdn.net/projects/android-x86/scm/git/bootable-newinstaller/blobs/r-x86/initrd/init
Reply all
Reply to author
Forward
0 new messages