How to format a USB

How to format a USB to Calculate?

From which system?
From Calculate Linux you can use cl-install.
From another linux systems and windows you can use dd (windd or another dd build for windows) or unetbootin.

How to do this to Calculate?
http://askubuntu.com/questions/22381/how-to-format-a-usb-flash-drive

I asked the question is not for idle interest. From which system? Calculate Linux? Another Linux? Windows?

Or you want just format flash drive IN calculate linux? Not make live usb?

I just want to format the flash drive.

man mkfs
man mkfs.vfat

or use gparted if you dont want to learn

We just need to format my USB.I’m not real partitions and install Linux.

From root user run: <<mkfs.vfat /dev/sdXY>> where /dev/sdXY - your partition.
If you dont know partition name: attach usb-drive and run <>
This is my usb:

[19921.402690] usb 2-3: new high-speed USB device number 2 using ehci-pci
[19921.519113] usb 2-3: New USB device found, idVendor=0951, idProduct=1665
[19921.519122] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[19921.519127] usb 2-3: Product: DataTraveler 2.0
[19921.519131] usb 2-3: Manufacturer: Kingston
[19921.519135] usb 2-3: SerialNumber: 001BFC3653D9DD800000005B
[19921.519736] usb-storage 2-3:1.0: USB Mass Storage device detected
[19921.519953] scsi6 : usb-storage 2-3:1.0
[19923.157699] scsi 6:0:0:0: Direct-Access     Kingston DataTraveler 2.0 1100 PQ: 0 ANSI: 4
[19923.159387] sd 6:0:0:0: [sdb] 30361600 512-byte logical blocks: (15.5 GB/14.4 GiB)
[19923.160301] sd 6:0:0:0: [sdb] Write Protect is off
[19923.160308] sd 6:0:0:0: [sdb] Mode Sense: 43 00 00 00
[19923.161012] sd 6:0:0:0: [sdb] No Caching mode page found
[19923.161019] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[19923.164387] sd 6:0:0:0: [sdb] No Caching mode page found
[19923.164393] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[19923.165261]  sdb: sdb1
[19923.168015] sd 6:0:0:0: [sdb] No Caching mode page found
[19923.168022] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[19923.168029] sd 6:0:0:0: [sdb] Attached SCSI removable disk

In my case partition on usb-drive - <</dev/sdb1>>

man mkfs.vfat
MKFS.FAT (8) dosfstools MKFS.FAT (8)

NAME
mkfs.fat - create an MS-DOS filesystem under Linux

SYNOPSIS
mkfs.fat [-a] [-A] [-b sector-of-backup] [-c] [-l filename] [-C] [-f
number-of-FATs] [-F FAT-size] [-h number-of-hidden-sectors] [i volume
id] [-I] [-m message-file] [-n volume-name] [-r root-dir-entries] [-R
number-of-reserved-sectors] [-s sectors-per-cluster] [-S logical-sec‐
tor-size] [-D drive-number] [-M FAT-media-type] [v] device [block
count]

DESCRIPTION
mkfs.fat is used to create an MS-DOS filesystem under Linux on a device
(usually a disk partition). device is the special file corresponding to
the device (e.g /dev/sdXX). block-count is the number of blocks on the
device. If omitted, mkfs.fat automatically determines the filesystem
size.

OPTIONS
-a Normally, for any filesystem except very small ones, mkfs.fat will
align all the data structures to cluster size, to make sure that as
long as the partition is properly aligned, so will all the data
structures in the filesystem. This option disables alignment; this
may provide a handful of additional clusters of storage at the
expense of a significant performance degradation on RAIDs, flash
media or large-sector hard disks.

-A Use Atari variation of the MS-DOS filesystem. This is default if
mkfs.fat is run on an Atari, then this option turns off Atari for‐
mat. There are some differences when using Atari format: If not
directed otherwise by the user, mkfs.fat will always use 2 sectors
per cluster, since GEMDOS doesn’t like other values very much. It

Here’s how I decided to format the USB Calculate.

pribon ~ # emerge dosfstools

* IMPORTANT: 10 news items need reading for repository ‘gentoo’.
* Use eselect news to read news items.

Calculating dependencies… done!

Emerging binary (1 of 1) sys-fs/dosfstools-3.0.26
* dosfstools-3.0.26.tbz2 MD5 SHA1 size :wink: … [ ok ]

Extracting info
Extracting sys-fs/dosfstools-3.0.26

Installing (1 of 1) sys-fs/dosfstools-3.0.26
* Calculate Utilities have changed files:
* /home/pribon/.calculate/ini.env

Auto-cleaning packages…

No outdated packages were found on your system.

* GNU info directory index is up-to-date.

* IMPORTANT: 10 news items need reading for repository ‘gentoo’.
* Use eselect news to read news items.

pribon ~ # fdisk -l

Disk /dev/sda: 596.2 GiB, 640135028736 bytes, 1250263728 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: F876079C-3011-4F1F-BDD6-CD268696B3F7

Device Start End Size Type
/dev/sda1 2048 923647 450M Windows recovery environment
/dev/sda2 923648 1456127 260M EFI System
/dev/sda3 1456128 1718271 128M Microsoft reserved
/dev/sda4 1718272 465340415 221.1G Microsoft basic data
/dev/sda5 465340416 466262015 450M Windows recovery environment
/dev/sda6 466262016 731133669 126.3G Microsoft basic data
/dev/sda7 1230399488 1250263039 9.5G Windows recovery environment
/dev/sda8 984637440 1074149375 42.7G Linux filesystem
/dev/sda9 1074149376 1082157055 3.8G Linux swap
/dev/sda10 1082157056 1230399487 70.7G EFI System
/dev/sda11 731133952 731135999 1M BIOS boot partition
/dev/sda12 731136000 984637439 120.9G Linux filesystem

Disk /dev/sdb: 3.8 GiB, 4011851776 bytes, 7835648 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00032452

Device Boot Start End Blocks Id System
/dev/sdb1 * 2048 7835647 3916800 c W95 FAT32 (LBA)

pribon ~ # mkdosfs -F 32 -I /dev/sdc1
mkfs.fat 3.0.26 (2014-03-07)
/dev/sdc1: No such file or directory
pribon ~ # mkdosfs -F 32 -I /dev/sdb1
mkfs.fat 3.0.26 (2014-03-07)

You can use the mkfs utility to format a file system. The syntax of the command is:

mkfs -t FILE_SYSTEM_TYPE DEVICE

Source: http://linux-bible.com/creating-a-file-system