Block devices are hardware devices distinguished by the random (that is, not necessarily sequential) access of fixed-size chunks of data, called blocks. The most common block device is a hard disk, but many other block devices exist, such as floppy drives, CD-ROM drives, and flash memory. Notice how these are all devices on which you mount a filesystemfilesystems are the lingua franca of block devices. Makelinux
root@edison:~# mount
/dev/mmcblk0p8 on / type ext4 (rw,nodev,noatime,discard,noauto_da_alloc,data=ordered)
...
/dev/mmcblk0p7 on /boot type vfat (rw,nosuid,nodev,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortna)
/dev/mmcblk1p1 on /media/sdcard type ext3 (rw,relatime,errors=continue,user_xattr,acl,barrier=1,data=writeback)
Usage Models
SD Cards, Mount
root@edison:~# mount
/dev/mmcblk0p7 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,err)
/dev/mmcblk0p10 on /home type ext4 (rw,relatime,data=ordered)
/dev/mmcblk1p1 on /media/sdcard type vfat (rw,relatime,uid=65534,fmask=0000,dmask=0000,allow_utime=0022,codepage=437,ioch)
root@edison:~# mkfs.ext4 /dev/mmcblk1
mke2fs 1.42.9 (28-Dec-2013)
/dev/mmcblk1 is apparently in use by the system; will not make a filesystem here!
root@edison:~# umount
root@edison:~# umount /media/sdcard/
root@edison:~# mkfs.ext4 /dev/mmcblk1
mke2fs 1.42.9 (28-Dec-2013)
Discarding device blocks: done
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
...
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done
root@edison:~# mkfs.ext4 -t ext4 /dev/mmcblk1
SD Cards, Manual Mount
root@edison:~# mkdir localdirectory
root@edison:~# mount -t ext4 /dev/mmcblk1 localdirectory
root@edison:~# mount | grep mmcblk1
...
/dev/mmcblk1 on /root/localdirectory type ext4 (rw,relatime,data=ordered)
root@edison:~# cd localdirectory/
root@edison:~/localdirectory# ls
lost+found
root@edison:~/localdirectory#
root@edison:~# vi /etc/fstab
/dev/mmcblk1 /path/to/localdirectory
Tmpfs
tmpfs is a common name for a temporary file storage facility on many Unix-like operating systems. It is intended to appear as a mounted file system, but stored in volatile memory instead of a persistent storage device. Wikipedia
root@edison:~# cd /tmp
root@edison:~# mkdir temptmpfs
root@edison:~# mount -o size=16G -t tmpfs none temptmpfs/
root@edison:~# cd temptmpfs/
root@edison:~# ls
root@edison:~# cd ..
root@edison:~# mount
...
none on /root/temptmpfs type tmpfs (rw,relatime,size=16777216k)
root@edison:~# umount /root/temptmpfs