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:11] – [The Raspberry Pi] walkeradmin
Line 226: Line 226:
 \\  \\ 
 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:
 +\\ 
 +\\ 
 +    df -h
 +\\ 
 +<file>
 +This will show the following:
  
 +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
 +\\ 
 +\\ 
 +From the menu, select No1. 
 +\\ 
 +\\ 
 +{{:raspi-config-001.jpg?700|}}
  
  
Line 252: Line 288:
  
  
- 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