Mail archive

RE: [alpine-devel] Re: [acf] How to install alpine on btrfs

From: Wei Liang(David) <"Wei>
Date: Tue, 1 Mar 2011 04:33:29 +0100

Hi Natanael,
        Thank you very much for the message.
        What I just did is to install the btrfs-progs-0.19-r0.apk downloaded from "" ,format my partition as btrfs and mount it under /mnt. I did do this "
echo "kernel/fs/btrfs" > /etc/mkinitfs/modules.d/btrfs
# add btrfs to features in /etc/mkinitfs/mkinitfs.conf

But when I type "setup-disk /mnt" ,I got " btrfs is not supported. Only ext2 and ext3 are supported". Does it mean that I need to update some package?
        Thank you very much again!

敬礼 | Med venlig hilsen | Best regards
David Wei

-----Original Message-----
From: Natanael Copa []
Sent: 2011年2月26日 23:58
To: Wei Liang(David)
Subject: [alpine-devel] Re: [acf] How to install alpine on btrfs

On Fri, 25 Feb 2011 08:10:03 +0100
"Wei Liang(David)" <> wrote:

> Hi ,
> I want to install alpine to a very old computer using btrfs
> as a VOIP server. I have been searching the internet but no manual
> for Alpine linux. Is there any reference for this ?

There was a bug in btrfs(?) that caused apk-tools to think it was
running on tmpfs. This caused some problems. Might be fixed in 2.6.37

Generally, you can mount your disk layout on a tmpdir and run
setup-disk /your/root/mount

Since I dont think the bootloader supports btrfs you'll need /boot on

so if you have a small sda1 with ext3 and a big sda2 with btrfs you are
supposed to be able to do:

mount -t btrfs /dev/sda2 /mnt
mkdir /mnt/boot
mount -t ext3 /dev/sda1 /mnt/boot

setup-disk /mnt

I'm not sure if that will work like that. You will also need to make
sure that the initrafms has the btrfs kernel module included and gets
loaded. So before you run setup-disk /mnt:

echo "kernel/fs/btrfs" > /etc/mkinitfs/modules.d/btrfs

# add btrfs to features in /etc/mkinitfs/mkinitfs.conf

then you run setup-disk /mnt

and after you mount it again and edit the extlinux.conf and add btrfs
to modules=....

Something like that.

Would be nice if you report any bugs if setup-disk fails and write a
howto on wiki if you get it running.


> 敬礼 | Med venlig hilsen | Best regards
> David Wei

Received on Tue Mar 01 2011 - 04:33:29 UTC