File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Linux / UNIX and the fly likes SD card shows only 56MB after RasPi Linux flash Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "SD card shows only 56MB after RasPi Linux flash" Watch "SD card shows only 56MB after RasPi Linux flash" New topic
Author

SD card shows only 56MB after RasPi Linux flash

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9495
    
    2

I'm using a 16GB SD card on which I flashed the RasPi Linux version. I used the Win32DiskImager utility on my Windows 7 machine. I first FAT32 formatted the card after which it showed that it had roughly 14GB of memory free. But soon after flashing it with the OS, it showed remaining space of only 56 MB. What could be the reason for this?


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Richard Tookey
Ranch Hand

Joined: Aug 27, 2012
Posts: 1082
    
  10

When one copies a downloaded Raspbian image to an SD card it copies only the image size over. The first time one runs the SD card one gets a menu with one of the options being to expand the image to fill the whole card.

P.S. When I first installed Raspbian over a year ago one had to go through a non-trivial procedure to expand the image but the latest Raspbian images have made it easy.
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9495
    
    2

Richard Tookey wrote:When one copies a downloaded Raspbian image to an SD card it copies only the image size over. The first time one runs the SD card one gets a menu with one of the options being to expand the image to fill the whole card.

P.S. When I first installed Raspbian over a year ago one had to go through a non-trivial procedure to expand the image but the latest Raspbian images have made it easy.


I did not understand what you said. By copying you mean to flash the Raspbian image to the SD card or is that one and the same as copying?
Richard Tookey
Ranch Hand

Joined: Aug 27, 2012
Posts: 1082
    
  10

Joe Harry wrote: By copying you mean to flash the Raspbian image to the SD card or is that one and the same as copying?


Yes - 'flash' is probably a better word since it it is not a file type of copy. I use Linux so I use the 'dd' command to perform the 'flash' .
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9495
    
    2

Richard Tookey wrote:
Joe Harry wrote: By copying you mean to flash the Raspbian image to the SD card or is that one and the same as copying?


Yes - 'flash' is probably a better word since it it is not a file type of copy. I use Linux so I use the 'dd' command to perform the 'flash' .


So what do I do now to reclaim the remaining GB's of space?
Richard Tookey
Ranch Hand

Joined: Aug 27, 2012
Posts: 1082
    
  10

Joe Harry wrote:
So what do I do now to reclaim the remaining GB's of space?


It is some while since I did this but my memory is that I just inserted it into the Pi and booted it. On first boot it should bring up the configuration menu. One of the options is to expand the root partition to fill SD card.

If the Pi does not boot into the configuration menu then from the command lin just type

sudo raspi-config
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9495
    
    2

Richard Tookey wrote:
Joe Harry wrote:
So what do I do now to reclaim the remaining GB's of space?


It is some while since I did this but my memory is that I just inserted it into the Pi and booted it. On first boot it should bring up the configuration menu. One of the options is to expand the root partition to fill SD card.

If the Pi does not boot into the configuration menu then from the command lin just type

sudo raspi-config


I will try that today! I need to have this space reclaimed because I plan to have good amount of documents that will be stored on this SD card served through a Webapp that I'm currently developing!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SD card shows only 56MB after RasPi Linux flash