User Tools

Site Tools


copy_larger_sd_card_to_smaller_sd_card

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
copy_larger_sd_card_to_smaller_sd_card [2017/01/28 22:03] – [Restore the SD Card] walkeradmincopy_larger_sd_card_to_smaller_sd_card [2017/01/28 22:07] – [Restore the SD Card] walkeradmin
Line 214: Line 214:
 \\  \\ 
 To restore your image, use the following from the command line: To restore your image, use the following from the command line:
-\\  
 \\  \\ 
 <file> <file>
Line 225: Line 224:
 2306867200 bytes (2.3 GB, 2.1 GiB) copied, 460.966 s, 5.0 MB/s 2306867200 bytes (2.3 GB, 2.1 GiB) copied, 460.966 s, 5.0 MB/s
 </file> </file>
-\\  
 \\  \\ 
 Note the time taken: 2306867200 bytes (2.3 GB, 2.1 GiB) copied, <color red>460.966 s</color>, 5.0 MB/s. This process took nearly 10 minutes, it's very slow so be patient. Note the time taken: 2306867200 bytes (2.3 GB, 2.1 GiB) copied, <color red>460.966 s</color>, 5.0 MB/s. This process took nearly 10 minutes, it's very slow so be patient.
 +\\ 
 +\\ 
 +Remove the SD Card from the Linux PC and put it in to the Raspberry Pi.
 +\\ 
 +\\ 
 +
 +----
 +==== The Raspberry Pi ====
 +\\ 
 +If all has worked, the Raspberry Pi should now boot up. Once booted and logged in, we can check the partition sizes.
 +\\ 
 +\\ 
 +From the command line, use:
 +\\ 
 +\\ 
 +<file>
 +df -h
 +
 +Filesystem      Size  Used Avail Use% Mounted on
 +/dev/root       2.0G  1.1G  880M  54% /
 +devtmpfs        214M      214M   0% /dev
 +tmpfs           218M      218M   0% /dev/shm
 +tmpfs           218M  4.4M  213M   3% /run
 +tmpfs           5.0M  4.0K  5.0M   1% /run/lock
 +tmpfs           218M      218M   0% /sys/fs/cgroup
 +/dev/mmcblk0p1   63M   21M   43M  34% /boot
 +</file>
 +\\ 
 +We can see from the /dev/root line above that the size is reported as 2.0G and that 880M is available. This is an 8Gb SD Card, and we need to reclaim that extra space. To do this, from the command line enter:
 +\\ 
 +\\ 
 +    sudo raspi-config
 \\  \\ 
 \\  \\ 
Line 254: Line 284:
  
  
- df -h 
-Filesystem      Size  Used Avail Use% Mounted on 
-/dev/root       2.0G  1.1G  880M  54% / 
-devtmpfs        214M      214M   0% /dev 
-tmpfs           218M      218M   0% /dev/shm 
-tmpfs           218M  4.4M  213M   3% /run 
-tmpfs           5.0M  4.0K  5.0M   1% /run/lock 
-tmpfs           218M      218M   0% /sys/fs/cgroup 
-/dev/mmcblk0p1   63M   21M   43M  34% /boot 
  
  
copy_larger_sd_card_to_smaller_sd_card.txt · Last modified: 2023/03/09 22:35 by 127.0.0.1