Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • Cryptsetup error - cannot format device

    Posted on

    This is on a test vm in Virutal Box.

    I'm trying to setup a 5 GB hard drive and when running the 1st command cryptsetup luksFormat, is when I get the error, shown below.


    modprobe dm_crypt lsmod | grep dm_crypt partprobe /dev/sdb1 ; pvs ; vgs ; lvs pvcreate /dev/sdb1 ; vgcreate Vol_Group02 /dev/sdb1 ; lvcreate -L +5G -n LogVol00 Vol_Group02 cryptsetup luksFormat /dev/sdb1 Are you sure? (Type uppercase yes): YES Enter LUKS passphrase: Verify passphrase: Cannot format device /dev/sdb1 which is still in ue

    Has anyone seen this before? I've created other encrypted devices ok, so I'm not sure where the error lies here.

    by

    points

    Responses

    Red Hat LinkedIn YouTube Facebook X, formerly Twitter

    Quick Links

    Help

    Site Info

    Related Sites

    © 2026 Red Hat