Home » Questions » Computers [ Ask a new question ]

Creating LVM partition on SD card fails with "device not found"

Creating LVM partition on SD card fails with "device not found"

I'm trying to create a single LVM volume on my SD card, using Ubuntu Netbook Remix. The SD card is at /dev/mmcblk0. So far, I've used fdisk to create a partition (type 8e - Linux LVM) on the device. The partiton is /dev/mmcblk0p1. However, when I run

Asked by: Guest | Views: 240
Total answers/comments: 1
Guest [Entry]

"According to bug report 483686 on Redhat Bugzilla (link provided by user derobert) this is actually caused by a bug in lvm2. ""lvm2 doesn't understand mmcblk devs.""

The bug is reported ""Fixed in lvm2-2.02.45-4.fc11 / lvm2-2.02.45-4.fc12"" on 2009-04-17. So what remains to solve the issue is getting the fixed version of lvm2 on Ubuntu Netbook Remix.

In the meantime, there's an easy workaround. Adding a types definition to the devices section of /etc/lvm/lvm.conf fixed the issue:

# Hackaround to get LVM to understand mmcblk0 as a device,
# bug report at bugzilla.redhat-com/show_bug.cgi?id=483686
types = [ ""mmc"", 16 ]"