How to install archlinux to a file in a NTFS volume?

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

2

Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like