Changes between Version 10 and Version 11 of linux/blockdev
- Timestamp:
- 06/18/2019 03:33:09 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
linux/blockdev
v10 v11 147 147 148 148 Compared to distributing filesystem images or archives of filesystem contents this has method has some pro's and con's: 149 * Pro 's:149 * Pros: 150 150 * Other OS's can install this type of image onto another block storage device (such as Windows via [http://www.alexpage.de/usb-image-tool/ USB Image Tool]) 151 * Con 's:151 * Cons: 152 152 * Images are created from a fixed-size block device and require the same or larger size block device to be installed onto 153 153 * After installation any additional storage space (ie installing an image meant for a 2GB microSD onto a 16GB microSD) can not be used until the disk is re-partitioned and re-sized … … 158 158 }}} 159 159 160 === Creating a disk image === 161 Procedure to create disk image from {{{/dev/sdc}}}: 160 === Creating a Disk Image === 161 Often disk images are provided already by Gateworks. If so, please skip this section. However, to create a disk image from the data already on a microSD, proceed with the following instructions. 162 163 Procedure to create disk image from the microSD {{{/dev/sdc}}}: 162 164 1. (Optional) Zero out the storage device first (if not already done) to allow for the best compression as even if previous contents have been 'deleted' the data still exists (the filesystem directory table has just unlinked from it): 163 165 {{{#!bash … … 175 177 176 178 177 === Using a disk image === 178 Procedure to write a disk image back to {{{/dev/sdc}}}: 179 === Using a Disk Image === 180 This procedure is to write a disk image to a microSD. 181 182 Insert the microSD into a Linux desktop or laptop PC. (not the Gateworks SBC) 183 184 The microSD should mount to the filesystem as something like /dev/sdb or /dev/sdc. 185 186 Verify on the system what letter it mounted as and be sure to not overwrite the main disk on the PC, which is typically /dev/sda. 187 188 Adjust the disk letter in the command below to write to the microSD with the pre-built disk image: (/dev/sdc is shown as an example only) 179 189 * Linux: 180 190 {{{#!bash