I want to install archlinux to a file in NTFS volume on a computer with grub2 installed. I can create the file in the archlinux live as this:
dd if=/dev/zero of=/path/to/rootfs.img bs=65536 count=400000
mke2fs /path/to/rootfs.img
mount /path/to/rootfs.img /mnt/rootfs
pacstrap /mnt/rootfs base
arch-chroot /mnt/rootfs
pacman -Syu
...
After I prepared the rootfs.img, I have trouble in make it bootable from grub2
set rootfs=/path/to/rootfs.img
loopback loop (hdx,y)$rootfs
linux /boot/vmlinuz-linux root=(hdx,y) loop=$rootfs
initrd /boot/initramfs-linux.img
It cannot mount root partition and complain about no ntfs module