FG
💻 Software

Linux - how to format multiple file systems within one file?

Fresh7 days ago
Mar 15, 20268329 views
Confidence Score0%
0%

Problem

I need to create a disk image with two empty file systems. I have created it using Next, I have created 2 primary partitions using ; one is FAT32 and other is EXT3. Now, I have to format both partitions in order to create file-systems to be mounted as . But I can't understand how to format them? I …

Error Output

dd if=/dev/zero of=./disk.img bs=1MiB count=1024

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Linux - how to format multiple file systems within one file?

Low Risk

It appears you can use the kpartx tools: http://robert.penz.name/73/kpartx-a-tool-for-mounting-partitions-within-an-image-file/ Kpartx can be used to set up device mappings for the partitions of any partitioned block device. It is part of the Linux …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment