{
    "ok": true,
    "data": {
        "title": "Linux",
        "rev_id": 3293,
        "updated_at": "2018-03-01T05:24:58+00:00",
        "chunk_count": 8,
        "chunks": [
            {
                "title": "Linux",
                "rev_id": 3293,
                "heading_path": "",
                "chunk_index": 0,
                "content": "# Linux",
                "char_count": 7,
                "token_estimate": 2
            },
            {
                "title": "Linux",
                "rev_id": 3293,
                "heading_path": "INSTALLING OPERATING SYSTEM IMAGES ON LINUX",
                "chunk_index": 1,
                "content": "Etcher is typically the easiest option for most users to write images to SD cards, so it is a good place to start.\nIf you're looking for more advanced options on Linux, you can use the standard command line tools below.\n\n    Note: use of the dd tool can overwrite any partition of your machine.\n    If you specify the wrong device in the instructions below, you could delete your primary Linux partition.\n    Please be careful.",
                "char_count": 427,
                "token_estimate": 107
            },
            {
                "title": "Linux",
                "rev_id": 3293,
                "heading_path": "DISCOVERING THE SD CARD MOUNT POINT AND UNMOUNTING IT",
                "chunk_index": 2,
                "content": "-   Run lsblk to see which devices are currently connected to your machine.\n\n<!-- -->\n\nIf your computer has a slot for SD cards, insert the card.\n    If not, insert the card into an SD card reader, then connect the reader to your computer.\n\n-   Run lsblk again.\n\n<!-- -->\n\nThe new device that has appeared is your SD card (you can also usually tell from the listed device size).\n    The naming of the device will follow the format described in the next paragraph.\n    The left column of the results from the lsblk command gives the device name of your SD card\n    and the names of any partitions on it (usually only one, but there may be several if the card was previously used).\n    It will be listed as something like \/dev\/mmcblk0 or \/dev\/sdX (with partition names  \/dev\/mmcblk0p1 or \/dev\/sdX1 respectively),\n    where X is a lower-case letter indicating the device (eg. \/dev\/sdb1).\n    The right column shows where the partitions have been mounted (if they haven't been, it will be blank).",
                "char_count": 992,
                "token_estimate": 248
            },
            {
                "title": "Linux",
                "rev_id": 3293,
                "heading_path": "DISCOVERING THE SD CARD MOUNT POINT AND UNMOUNTING IT",
                "chunk_index": 3,
                "content": "If any partitions on the SD card have been mounted, unmount them all with  umount,\n    for example umount \/dev\/sdX1 (replace sdX1 with your SD card's device name, and change the number for any other partitions).",
                "char_count": 211,
                "token_estimate": 53
            },
            {
                "title": "Linux",
                "rev_id": 3293,
                "heading_path": "COPYING THE IMAGE TO THE SD CARD",
                "chunk_index": 4,
                "content": "In a terminal window, write the image to the card with the command below,\n    making sure you replace the input file if= argument with the path to your  .img file,\n    and the \/dev\/sdX in the output file of= argument with the correct device name.\n    This is very important, as you will lose all the data on the hard drive if you provide the wrong device name.\n    Make sure the device name is the name of the whole SD card as described above, not just a partition.\n    For example: sdd, not sdds1 or sddp1; mmcblk0, not  mmcblk0p1.\n\n-   dd bs=4M if=2017-11-29-raspbian-stretch.img of=\/dev\/sdX conv=fsync\n\n<!-- -->\n\n    Please note that block size set to 4M will work most of the time.\n    If not, try  1M, although this will take considerably longer.\n\nAlso note that if you are not logged in as root you will need to prefix this with sudo.",
                "char_count": 840,
                "token_estimate": 210
            },
            {
                "title": "Linux",
                "rev_id": 3293,
                "heading_path": "COPYING A ZIPPED IMAGE TO THE SD CARD",
                "chunk_index": 5,
                "content": "In Linux it is possible to combine the unzip and SD copying process into one command,\nwhich avoids any issues that might occur when the unzipped image is larger than 4GB.\nThis can happen on certain filesystems that do not support files larger than 4GB (e.g. FAT),\nalthough it should be noted that most Linux installations do not use FAT and therefore do not have this limitation.\nThe following command unzips the zip file (replace 2017-11-29-raspbian-stretch.zip with the appropriate zip filename),\nand pipes the output directly to the dd command.\nThis in turn copies it to the SD card, as described in the previous section.\n----\n\n    unzip -p 2017-11-29-raspbian-stretch.zip | sudo dd of=\/dev\/sdX bs=4M conv=fsync",
                "char_count": 714,
                "token_estimate": 179
            },
            {
                "title": "Linux",
                "rev_id": 3293,
                "heading_path": "CHECKING THE IMAGE COPY PROGRESS",
                "chunk_index": 6,
                "content": "By default, the dd command does not give any information about its progress, so it may appear to have frozen.\nIt can take more than five minutes to finish writing to the card.\nIf your card reader has an LED, it may blink during the write process.\n\nTo see the progress of the copy operation, you can run the dd command with the status option.\n\n    dd bs=4M if=2017-11-29-raspbian-stretch.img of=\/dev\/sdX status=progress conv=fsync\n\nIf you are using an older version of dd, the status option may not be available.\nYou may be able to use the dcfldd command instead, which will give a progress report showing how much has been written.\nAnother method is to send a USR1 signal to dd, which will let it print status information.\nFind out the PID of dd by using\n\n    pgrep -l dd or ps a | grep dd\n\nThen use\n\n    kill -USR1 PID\n\nto send the USR1 signal to dd.",
                "char_count": 851,
                "token_estimate": 213
            },
            {
                "title": "Linux",
                "rev_id": 3293,
                "heading_path": "CHECKING WHETHER THE IMAGE WAS CORRECTLY WRITTEN TO THE SD CARD",
                "chunk_index": 7,
                "content": "After dd has finished copying, you can check what has been written to the SD card by dd-ing from the card back to another image on your hard disk;\ntruncating the new image to the same size as the original;\nand then running diff (or md5sum) on those two images.\nIf the SD card is bigger than the original image size, dd will make a copy of the whole card.\nWe must therefore truncate the new image to the size of the original image.\nMake sure you replace the input file if= argument with the correct device name.\ndiff should report that the files are identical.\n\n    dd bs=4M if=\/dev\/sdX of=from-sd-card.img\n    truncate --reference 2017-11-29-raspbian-stretch.img from-sd-card.img\n    diff -s from-sd-card.img 2017-11-29-raspbian-stretch.img\n\nRun sync. This will ensure the write cache is flushed and that it is safe to unmount your SD card.\nRemove the SD card from the card reader.\n----",
                "char_count": 886,
                "token_estimate": 222
            }
        ]
    }
}