I have been trying to format an sd card with the lastest debian jessie-lite image for use with raspberry pi.  When using the dd command, it states that there is no space left on device after copying 10 megs.  I have searched SE and have tried to use various answers to questions but I always end up back at the same place. Below are the outputs of dd, fdisk, df and ls commands that may be of interest.  /dev/sdb is the sd carddd bs=4M if=/home/user/Downloads/2017-02-16-raspbian-jessie-lite.img of=/dev/sdbdd: error writing /dev/sdb: No space left on device3+0 records in2+0 records out10485760 bytes (10 MB) copied, 0.0137885 s, 760 MB/sfdisk -l /dev/sdbDisk /dev/sdb: 10 MiB, 10485760 bytes, 20480 sectorsUnits: sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisklabel type: dosDisk identifier: 0xdbcc7ab3Device     Boot  Start     End Sectors  Size Id Type/dev/sdb1         8192  137215  129024   63M  c W95 FAT32 (LBA)/dev/sdb2       137216 2807807 2670592  1.3G 83 Linuxls -al /dev/sdb*-rw-r--r-- 1 root root 10485760 Mar  3 22:04 /dev/sdbbrw-rw---- 1 root disk    8, 17 Mar  3 22:05 /dev/sdb1brw-rw---- 1 root disk    8, 18 Mar  3 22:05 /dev/sdb2brw-rw---- 1 root disk    8, 19 Mar  3 22:05 /dev/sdb3df -hFilesystem      Size  Used Avail Use% Mounted on/dev/sda1       226G  7.3G  207G   4% /udev             10M   10M     0 100% /devtmpfs           1.6G  9.3M  1.6G   1% /runtmpfs           3.9G  112K  3.9G   1% /dev/shmtmpfs           5.0M  4.0K  5.0M   1% /run/locktmpfs           3.9G     0  3.9G   0% /sys/fs/cgrouptmpfs           792M  4.0K  792M   1% /run/user/119tmpfs           792M  8.0K  792M   1% /run/user/1000
dd command indicates not enough disk space - trying to format sd card for raspberry pi
raspberry pi;disk usage;raspbian;dd;fdisk
-rw-r--r-- 1 root root 10485760 Mar  3 22:04 /dev/sdb/dev/sdb is a regular file, not a device. You must have run rm /dev/sdb at some point. It is created automatically when the device is inserted, but when you run commands as root, you can mess up with it. Now that /dev/sdb is a regular file, it's stored in memory, on a filesystem which has a low size limit because it's only meant to contain device files that have no content as such since they're just markers to say call this device driver to store the contents.Remove the file (rm /dev/sdb as root). Then, to re-create the proper /dev/sdb, the easiest way is to eject the SD card and insert it back it. Once you've done that, you can copy the image with the command you were using, or simply </home/user/Downloads/2017-02-16-raspbian-jessie-lite.img sudo tee /dev/sdb >/dev/null