For example, If you want to change keyboard layout to Japanese keyboard layout.
with this command ->
$sudo loadkeys jp
$sudo setxkbmap jp
Use below command to format usb drive (/dev/sdxy) to be VFAT file system.
#mkfs.vfat /dev/sdxy
Move to your target directory and execute this command
# du -la | sort -n
# echo $?
echo the last result of executed command.
0= ok, else error