I've been trying to make a USB stick or frugal hard disk installation I can boot on my new-ish ASUS X401A (Pentium B970) laptop. It has American Megatrends firmware with UEFI support that was used for the pre-loaded Windows 7. I was able to set up dual boot with Xubuntu 12.04 64-bit. Various times I have tried to make a bootable Tiny Core USB stick or frugal disk installation, including with the latest TC 5.0 version, but so far none of the attempts have worked.
In this post I will focus on the USB stick installation. I tried using Juanito's posting of June 16, 2012 to the Re: UEFI Boot thread
http://forum.tinycorelinux.net/index.php/topic,13445.msg74727.html#msg74727, but I also tried a frugal installation by mimicking the grub menuentries for Xubuntu on my hard disk, without success.
I should point out the commands I used to prep the USB stick are the ones in my current installation of Xubuntu. I know some of the versions may be different than the ones Juanito used in the forum thread. Specifically the grub tools are version 1.99-21ubuntu3.10. I thought those may be a pre-release version of Grub2. I this assumption correct?
OK, here is what I tried: First, I used gdisk to set up the GPT partitions:
root@mike-X401A1:/home/mike# gdisk -l /dev/sdb
GPT fdisk (gdisk) version 0.8.1
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Disk /dev/sdb: 7811072 sectors, 3.7 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 112575B4-2053-45D9-A643-17633E67F92A
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 7811038
Partitions will be aligned on 2048-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)
Number Start (sector) End (sector) Size Code Name
1 2048 264191 128.0 MiB EF00 EFI System
2 264192 7811038 3.6 GiB 0700 Microsoft basic data
I used the Xubuntu grub-install to copy the grub files to the memory stick. However, the --target=x86_64-efi and --efi-directory=/mnt/sdb1 options were not accepted by my local grub-install. It did copy a bunch of stuff over, though.
One thing it did *not* copy was /BOOTX64.EFI, so I mounted the USB stick and copied over the version in my Xubuntu /boot file branch to /mnt/sdb1/EFI/BOOT/BOOTX64.EFI.
I created a /mnt/sdb1/EFI/BOOT/grub/grub.cfg file with this menuentry:
menuentry "tiny core" {
linux (hd1,gpt2)/boot/vmlinuz64 quiet noswap tce=sdb2 tz=GMT-4 blacklist=bcma blacklist=ssb blacklist=b43 text
initrd (hd1,gpt2)/boot/corepure64.gz
}
I copied the Pure 64 version of Tiny Core kernel and initial file system to the second partition of the USB stick under the directory:
/boot/vmlinuz64
/boot/corepure64.gz
After rebooting I get an ASUS boot selection menu with my usual Windows 7 and (X)ubuntu entries, plus a "UEFI: PMAP" entry and a plain "PMAP" entry. If I pick the UEFI version, the screen flashes and returns immediately to the boot selection menu. If I select the plain PMAP entry, the screen goes black and a message "Missing Operating System ..." with a prompt to attach a valid boot disk/device and hit a key"
I also tried to configure the stick with the 32-bit Tiny Core 5.0 vmlinuz and core.gz files. That did not work either. Neither did using the unetbootin tool with the Tiny Core 32-bit .iso image.
Any other suggestions? Thanks for any input. I'd like to get back to using Tiny Core frequently!
--
Mike Lockmoore