problem when installing ISO through Unetbootin or directly via GRUB

954 views
Skip to first unread message

Pieter

unread,
Jul 26, 2012, 4:10:12 AM7/26/12
to andro...@googlegroups.com
Hi all,

I have successfully compiled from source an eeepc ISO image. 

First, I tried to boot via Unetbootin. So I imported the ISO in that tool, and it modified my /boot/grub/grub.cfg. After rebooting, when I choose the Unetbootin entry, it works perfect. However, when I choose one of the other options (Live CD options, and Install to hard disk option), I get a 

These are the entries added by Unetbootin:

menuentry "Unetbootin" {
    set root=(hd0,1)
    linux /boot/ubnkern root/dev/ram0 androidboot.hardware=eeepc acpi_sleep=s3_bios,s3_mode quiet SRC= DATA=
    initrd /boot/ubninit
}
menuentry "Live CD - Run Android-x86 without installation" {
    set root=(hd0,0)
    linux /kernel root=/dev/ram0 androidboot.hardware=eeepc acpi_sleep=s3_bios,s3_mode quiet SRC= DATA=
    initrd /initrd.img
}
(other two entries are similar)


When I choose the second (or other Live options), I get an error that the kernel is not found. Changing set root=(hd0,1) in the LiveCD entries did not work.

So, I switched to installing directly from the ISO. I tried to follow a combination of these two tutorials: http://www.webupd8.org/2012/03/how-to-dual-boot-android-x86-and-ubuntu.html and https://help.ubuntu.com/community/Grub2/ISOBoot

Unfortunately, I have no success. I tried two approaches: setting correctly the paths, or loading from ISO. Here are my modified 40_custom file entries.

menuentry "Android-x86 DEBUG" {
    set root=(hd0,1)
    linux /home/pieter/android-x86/out/target/product/eeepc/kernel root=/dev/ram0 androidboot.hardware=eeepc acpi_sleep=s3_bios,s3_mode quiet DEBUG=1 SRC= DATA=
    initrd /home/pieter/android-x86/out/target/product/eeepc/initrd.img 
}

menuentry "Android-x86 DEBUG from ISO" {
     set isofile="/home/pieter/android-x86/out/target/product/eeepc/eeepc.iso"
     loopback loop (hd0,1)$isofile
     linux (loop)/kernel root=/dev/ram0 androidboot.hardware=eeepc acpi_sleep=s3_bios,s3_mode DEBUG=1 SRC= DATA=
     initrd (loop)/initrd.img
}

Now, when I try to boot the first of these two options (Android-x86 DEBUG), I get the following error:
No filesystem could mount root, tried: ext3, ext4, ext2, squashfs [...]
Kernel panic - not syncing: VFS: unable to mount root fs on unknown block (1,0)

When I try to boot the second of these options (Android-x86 DEBUG from IS?O), I get:
VFS: could not find a valid VD7 on sda (and some other things)
It seems to repeat this for EXT2-FS, EXT3-FS, EXT4-FS

This is the output of "sudo fdisk -l"
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000aca5a

Device       Boot   Start       End       Blocks         Id    System
/dev/sda1      *        1        12158      97656250     83    Linux
/dev/sda2            18663       19458       6384641     5     Extended
/dev/sda5            18663       19458       63844640    82    Linux swap/Solaris



Could someone help me out, how I can install it on my harddisk? Googling did not bring me much wisdom, on this group I only found this thread 

For the record, I do not know if it matters, but in the Ubuntu entries in grub.cfg (which boot perfectly), I see they do an "insmod ext2".

Q1: why does it not work via Unetbootin? Should I change something?
Q2: did somebody else install directly the ISO within GRUB? Or is there some other/better way to install Android-x86 on my hard disk?
Q3: sometimes people add some directives to the SRC= or DST=. What is this? Should I configure these?

Sorry for the lengthy post, but I wanted to give as many details as possible.

Pieter

unread,
Jul 26, 2012, 5:10:08 AM7/26/12
to andro...@googlegroups.com
Hi all,

in the meantime, I have an update. In the ISO-menuentry, I had to complete the SRC path!

This menuentry now works:

menuentry "Android-x86 DEBUG from ISO" {
     set isofile="/home/pieter/android-x86/out/target/product/eeepc/eeepc.iso"
     loopback loop (hd0,1)$isofile
     linux (loop)/kernel root=/dev/ram0 androidboot.hardware=eeepc acpi_sleep=s3_bios,s3_mode DEBUG=1 SRC=/home/pieter/android-x86/out/target/product/eeepc DATA=
     initrd (loop)/initrd.img
}

However, this trick did not work for this menuentry:

menuentry "Android-x86 DEBUG - DOES NOT WORK!!!" {
    set root=(hd0,1)
    linux /home/pieter/android-x86/out/target/product/eeepc/kernel root=/dev/ram0 androidboot.hardware=eeepc acpi_sleep=s3_bios,s3_mode quiet DEBUG=1 SRC=/home/pieter/android-x86/out/target/product/eeepc DATA=
    initrd /home/pieter/android-x86/out/target/product/eeepc/initrd.img 
}

So, the questions from my initial post are now updated:

Q1: Which steps should I take to install Android on my hard disk, starting from this ISO, or starting from the files in the android-x86/out/target/product/eeepc directory?
Q2: How do I get that "option" menu (Live CD, or install to hard disk) when booting from this ISO? There are screenshots shown on the android-x86 website, but I don't get that menu.
Note that I go through this ordeal because I have a hardware platform that does not support USB booting, nor does it has a CD-ROM attached.
Q3: Also, does it matter to complete the DATA option in the boot line?

Many thanks,
Pieter

Ketut Putu Kumajaya

unread,
Jul 26, 2012, 5:33:13 AM7/26/12
to andro...@googlegroups.com

Try:

menuentry "Android-x86 DEBUG" {
    root (hd0,1)
    ...
    ...
}

--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-x86/-/CHvlDqld0n4J.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-x86...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-x86?hl=en.
Reply all
Reply to author
Forward
0 new messages