I need to produce a custom live Lubuntu version on a 2GB pendrive. But don't have the pen right now, so I need to test it with the 16GB that I have at hand. The system won't start the live version if this pen is formatted to full capacity (tested on Dell and HP computers), but found that one possible solution is to format it at a smaller size. What would be the command to do so? Currently I'm using
sudo mkdosfs -F 32 -I /dev/sdb1, and get the expected 14.5GB available storage.
Update: from the selected answer
$sudo fdisk /dev/sdb > p > n > p > 1 > [Intro] > +2G > p > w