For packaging stuff for Alpine Linux or Fedora different VMs are running at my home. So far this setup works pretty well as long as I’m able to establish a network connection. With my HTC Desire and an USB cable I used the UMTS/G3 of my mobile provider. Very simple. But this month I reached the quota for the included data traffic of my subscription 10 days before the end of the month.
Better take all needed data with me, meaning use a VM with Alpine Linux on my Laptop or make an installation of Alpine Linux in a seperate parition. Using an Alpine installation in QEMU is well documented. But I decided to give the latter option a try.
I will not go much into details because the whole process is simple and straight-forward. As a reference take a look at this guide for detailled instructions. After booting the machine with an Alpine Linux CD, the first step is to prepare the partition. In this case the parition is /dev/sda2.
apk add e2fsprogs && mkfs.ext3 /dev/sda2
Now mount the partition:
mo unt -t ext3 /dev/sda2 /mnt
For the basic setup just follow the instructions in the guide.
After that the partition can be filled.
setup-disk -m sys /mnt
Now the entry in the GRUP menu is still missing and needs to be added.
[fab@laptop017 config-f16]# gru b2-mk config -o /bo ot/gru b2/gru b.cfg
Generating gru b.cfg ...
Found linux image: /boo t/vmlinuz-3.3.0-4.fc16.x86_64
Found initrd image: /boo t/initramfs-3.3.0-4.fc16.x86_64.img
Found linux image: /boo t/vmlinuz-3.2.9-2.fc16.x86_64
Found initrd image: /boo t/initramfs-3.2.9-2.fc16.x86_64.img
Found linux image: /boo t/vmlinuz-3.2.10-3.fc16.x86_64
Found initrd image: /boo t/initramfs-3.2.10-3.fc16.x86_64.img
Found unknown Linux distribution on /dev/sda2
Time to reboot and check if it’s working. The entry for Alpine in the menu will need some tweaking but for a test it’s ok.