grub loader can't detect Bliss OS | Shell
While this is about grub loader, this is likely to be a question of OS related. If it doesn't belong to this site than I will remove it.
I had installed Bliss in sda2
.
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 1026048 209615761 208589714 99.5G 7 HPFS/NTFS/exFAT #Windows
/dev/sda2 209616896 272531455 62914560 30G 7 HPFS/NTFS/exFAT #Bliss OS
/dev/sda3 272533504 273694719 1161216 567M 27 Hidden NTFS WinRE
/dev/sda4 274749438 625141759 350392322 167.1G 5 Extended
/dev/sda5 274749440 623142911 348393472 166.1G 83 Linux #Solus
/dev/sda6 623144960 625141759 1996800 975M 82 Linux swap / Solaris #Swap
blkid
output :
/dev/sda2: LABEL="Android-x86" UUID="d2dd0ee3-f78d-4671-ac42-237ad172c0c4" TYPE="ext4" PARTUUID="cdead0a2-02"
I had made changes in /etc/grub.d/40_custom :
Shell Script :
sudo gedit /etc/grub.d/40_custom
:
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "Android-x86" {
set root='(hd0,2)'
linux /android-11.13-r3/kernel quiet root=/dev/ram0 androidboot.hardware=generic_x86 acpi_sleep=s3_bios,s3_mode SRC=/android-11.13-r3
initrd /android-11.13-r3/initrd.img}
I have pasted above code in grub. Then, I executed following code
sudo chmod +x /etc/grub.d/40_custom
sudo update-grub
After executing update-grub
I got some error :
Generating grub configuration file ... WARNING: Failed to connect to lvmetad. Falling back to device scanning. Found Windows 10 (loader) on /dev/sda1 done
Here's the picture of Bliss OS
I am adding some link of dual booting Bliss OS.
Error :
Note : This is earlier picture I took.
error : file
/android-11.13-r3/kernel
not found
linux /android-11.13/kernel quiet root=/dev/ram0 androidboot.hardware=generic_x86 acpi_sleep=s3_bios,s3_mode SRC=/android-11.13
initrd /android-11.13/initrd.img}
I am trying above code currently although I get same error.
Note : I am not a shell programmer I just wrote that code following above link
1 answer
I noticed that the error was
error : file/android-11.13-r3/kernel not found
So, I decided to find kernel location in Solus(A Linux distro). There's a way to copy path of any file in Linux. Click on a file than copy(Ctrl+C). Then, I found the following path.
x-special/nautilus-clipboardcopyfile:///run/media/istiak/Android-x86/bliss-x86-11.13/kernel
I removed x-special/nautilus-clipboardcopyfile:///run/media/istiak/Android-x86/
from that path cause, Android-x86 is detected by /dev/sda2
. So, I don't need complete path. I made some changes to /etc/grub.d/40_custom
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "Android-x86" {
set root='(hd0,2)'
linux /bliss-x86-11.13/kernel quiet root=/dev/ram0 androidboot.hardware=generic_x86 acpi_sleep=s3_bios,s3_mode SRC=/bliss-x86-11.13
initrd /bliss-x86-11.13/initrd.img}
Then, problem solved...! Now, you can use Android.
0 comment threads