Welcome to the Linux Foundation Forum!

Question in Lab 23.3. Configure and Test NBD

Hi All!

In Lab 23.3. Configure and Test NBD at 8. Wipe out the NBD the solution shows:

$ sudo dd if=/dev/zero of=/dev/nbd0 bs=1M count=5

If we have to wipe out the whole NDB, which is 500MB as created earlier:

sudo dd if=/dev/zero of=/opt/dsk1 status=progress bs=100M count=5

Why do we have to wipe out only 5MBs not 500Mb?

Thank you!

Comments

  • uthelion
    uthelion Posts: 10
    edited March 2023

    Hi @danielvarsas i finished this lab already, but did not notice there is this small different in the solution. Maybe it´s just a typo?

    When working through the chapter this was my understanding of the topic:

    If you want to wipe out the entire NBD device or the entire /opt/dsk1 partition, you should set the count parameter to the appropriate value based on the size of the device or partition.

    For example, if the NBD device is 500MB in size, you can use count=500 with bs=1M to overwrite the entire device. or bs=5M count=100 (=500MB, too)

  • luisviveropena
    luisviveropena Posts: 1,127

    Hi @danielvarsas and @uthelion,

    Many thanks for bringing the attention to this. We are checking on this now.

    Regards,
    Luis.

Categories

Upcoming Training