I want to create multiple virtual block devices like /dev/sda and then use them to create an md device for test purpose. I have mounted my root filesystem on /dev/sda1 and don't have extra space to create new physical partitions. Therefore, I am looking for a way to temporary allocate small portion of my free space to these virtual block devices.
Can I use dmsetup or other utilities to create these virtual block devices ?
/etc/fstabto make it permanent? – George Udosen Apr 21 '17 at 05:57If you were to make this permanent, you would need to create a script run out of rc.local or even a udev rule to create the block device nodes and then you could handle it in fstab like you would any other block device. I'm not endorsing this, but if you want to learn, that's the path. Good luck.
– ppetraki Apr 21 '17 at 11:16losetup -d /dev/fake-dev0 && rm /dev/fake-dev0. – Hi-Angel Mar 05 '19 at 11:35