Disk /dev/sda: 8068 MB, 8068792320 bytes
249 heads, 62 sectors/track, 1020 cylinders, total 15759360 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
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
Command (m for help): q
root@raspberrypi:~# mkdosfs -v -F 32 /dev/sda1
mkdosfs 3.0.13 (30 Jun 2012)
/dev/sda1: No such file or directory
root@raspberrypi:~# mkdosfs -v -F 32 /dev/sda
mkdosfs 3.0.13 (30 Jun 2012)
mkdosfs: Device partition expected, not making filesystem on entire device '/dev/sda' (use -I to override)
root@raspberrypi:~# mkdosfs -v -F 32 -I /dev/sda
mkdosfs 3.0.13 (30 Jun 2012)
/dev/sda has 249 heads and 62 sectors per track,
logical sector size is 512,
using 0xf8 media descriptor, with 15759360 sectors;
file system has 2 32-bit FATs and 8 sectors per cluster.
FAT size is 15360 sectors, and provides 1966076 clusters.
There are 32 reserved sectors.
Volume ID is 921f017f, no volume label.
root@raspberrypi:~# fdisk /dev/sda
Command (m for help): p
Disk /dev/sda: 8068 MB, 8068792320 bytes
249 heads, 62 sectors/track, 1020 cylinders, total 15759360 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
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
Command (m for help):
root@raspberrypi:~# fdisk /dev/sda
Command (m for help): p
Disk /dev/sda: 8068 MB, 8068792320 bytes
249 heads, 62 sectors/track, 1020 cylinders, total 15759360 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
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
Command (m for help): n
Partition type:
p primary (0 primary, 0 extended, 4 free)
e extended
Select (default p): p
Partition number (1-4, default 1): 1
First sector (2048-15759359, default 2048):
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-15759359, default 15759359):
Using default value 15759359
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
root@raspberrypi:~# mkdosfs -v -F 32 /dev/sda1
mkdosfs 3.0.13 (30 Jun 2012)
/dev/sda1 has 249 heads and 62 sectors per track,
logical sector size is 512,
using 0xf8 media descriptor, with 15757312 sectors;
file system has 2 32-bit FATs and 8 sectors per cluster.
FAT size is 15360 sectors, and provides 1965820 clusters.
There are 32 reserved sectors.
Volume ID is 97535fe6, no volume label.
root@raspberrypi:~# fdisk /dev/sda
Command (m for help): p
Disk /dev/sda: 8068 MB, 8068792320 bytes
204 heads, 14 sectors/track, 5517 cylinders, total 15759360 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
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sda1 2048 15759359 7878656 83 Linux
Command (m for help):
root@raspberrypi:~# fdisk /dev/sda
Command (m for help): p
Disk /dev/sda: 8068 MB, 8068792320 bytes
204 heads, 14 sectors/track, 5517 cylinders, total 15759360 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
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sda1 2048 15759359 7878656 83 Linux
Command (m for help): t
Selected partition 1
Hex code (type L to list codes): c
Changed system type of partition 1 to c (W95 FAT32 (LBA))
Command (m for help): p
Disk /dev/sda: 8068 MB, 8068792320 bytes
204 heads, 14 sectors/track, 5517 cylinders, total 15759360 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
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sda1 2048 15759359 7878656 c W95 FAT32 (LBA)
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: If you have created or modified any DOS 6.x
partitions, please see the fdisk manual page for additional
information.
Syncing disks.
root@raspberrypi:~# mkdosfs -v -F 32 /dev/sda1
mkdosfs 3.0.13 (30 Jun 2012)
/dev/sda1 has 249 heads and 62 sectors per track,
logical sector size is 512,
using 0xf8 media descriptor, with 15757312 sectors;
file system has 2 32-bit FATs and 8 sectors per cluster.
FAT size is 15360 sectors, and provides 1965820 clusters.
There are 32 reserved sectors.
Volume ID is 9d7734ee, no volume label.
root@raspberrypi:~# fdisk /dev/sda
Command (m for help): p
Disk /dev/sda: 8068 MB, 8068792320 bytes
204 heads, 14 sectors/track, 5517 cylinders, total 15759360 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
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sda1 2048 15759359 7878656 c W95 FAT32 (LBA)
Command (m for help): q
root@raspberrypi:~# ls /mnt
root@raspberrypi:~# mkdir /mnt/sda1
root@raspberrypi:~# mount /dev/sda1 /mnt/sda1
root@raspberrypi:~# mount | grep sda
/dev/sda1 on /mnt/sda1 type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)
root@raspberrypi:~# df /mnt/sda1
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 7863280 4 7863276 1% /mnt/sda1
root@raspberrypi:~#
For Windows
http://www.partitionwizard.com/free-partition-manager.html
For Linux install
GPARTED
For MAC
Open "Disk utilities"
Ps all those are FREE