Ext3 format USB Drive on Linux

Format an usb drive from cli. With fdisk you can list existing partitions in the system.

 bash | 
 
 copy code |
?

1
fdisk -l 
2
# -c option checks for bad sectors 
3
mkfs -t ext3 -c /dev/sde1