Go to the first, previous, next, last section, table of contents.
To create a file system on an LVM volume, use the following steps:
- Create a loop disk label. This is a fake disk label, that tells
Parted to treat the virtual device as a single file system. With this
fake disk label, there is either zero or one partition.
(parted) mklabel loop
- Create the file system, by using Parted's mkpartfs command. You
should make the start of the file system 0. The partition can end
anywhere inside the virtual device. You can find out the size of the
virtual device with the print command. For example:
(parted) print
Disk geometry for /dev/md0: 0.000-47.065 megabytes
Disk label type: loop
Minor Start End Filesystem Flags
(parted) mkpartfs primary ext2 0 47.065
(parted) print
Disk geometry for /dev/md0: 0.000-47.065 megabytes
Disk label type: loop
Minor Start End Filesystem Flags
1 0.000 47.065 ext2
Go to the first, previous, next, last section, table of contents.