-3

I have created a VG, and want to create a LV for swap:

$ sudo lvcreate -n swap -L 4G VG
WARNING: ext4 signature detected on /dev/VG/swap at offset 1080. Wipe it? [y/n]: y
  Wiping ext4 signature on /dev/VG/swap.
  Logical volume "swap" created.
$ sudo lvcreate -n root -L 40G VG
  Logical volume "root" created.
$ sudo lvcreate -n home -l 100%FREE VG
  Logical volume "home" created.

What does that warning mean? What shall I do about it?

Why do the following two commands not have the warning?

Thanks.

3

What does that warning mean?

The warning means that once upon a time, there was an ext4 filesystem in the same disk location (start offset) as the swap partition you were trying to create.

NOTICE: When you delete a partition, the filesystem within does not get deleted.

The warning exists to give you a chance to back out of the irreversible operation, in case you selected the block device.

What shall I do about it?

You already did something about it. You wiped it.

Why do the following two commands not have the warning?

The following two commands did not have the warning because no previous filesystem was detected at those disk locations.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.