You are not logged in.
Pages: 1
Fresh install from bootstrap.
mmcblk0p1 is esp
mmcblk0p2 is swap
mmcblk0p3 is btrfs root
I tried this:
grub> set root=(hd0,3)
grub> linux /boot/vmlinuz-linux root=/dev/mmcblk0p3
grub> initrd /boot/initramfs-linux.img
grub> boot
Waiting 10 seconds for device /dev/mmcblk0p3
ERROR: Unable to find root device: '/dev/mmcblk0p3'.
You are being dropped to a recovery shell
Offline
It has been a while since I have used Grub. IIRC, partition 3 becomes partition 2 in zero based Grub. IOW, try (hd0,2)
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
It's been a while for grub for me too - but I think only the drives are zero based, the partitions are one based. But I don't think that is relevant. What's been presented doesn't add up. The p1 partition is where the kernel and initramfs are. This is what grub needs. Specifying that they are in the p3 partition at /boot/<whatever> is wrong. *After* booting the p1 partition is mounted at /boot but at boot time, the boot directory of the p3 partition should be empty.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
with command "grub> set root=(hd0,3)" I can find kernel from /boot.
(hd0,2) got "unknown filesystem" and (hd0,1) "vmlinuz not found" when trying to load kernel.
Offline
Fair enough. As I said, it has been a while
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Was the ESP mounted on /boot when you did your initial install? If not, that's probably why grub is failing in the first place.
Basically you now have a unified boot and root (and a spare useless esp partition). I don't think you should pass the "root=" parameter to the kernel in this case. That partition is already mounted so there is no changeroot needed during init.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
Was the ESP mounted on /boot when you did your initial install? If not, that's probably why grub is failing in the first place.
mmcblk0p1 was mounted to /boot/efi. 64bit install with 32bit efi, so install is tricky. You can make bootable Ubuntu install-media if you put bootia32.efi to efi directory. I haven't found way to get Arch install-media work with baytrail-devices.
I tried archboot media to install. That booted, but grub install failed.
Offline
tried the fallback initramfs? (resp. ensured mmc support is in the standard initramfs)
Offline
mmcblk0p1 was mounted to /boot/efi.
Ah, that makes sense. Still, I removing the root parameter on the kernel line might help.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
Pages: 1