Page 1 of 1

SD card appears to be smaller than it is

Posted: Wed Jan 01, 2014 11:19 pm
by emmocks
I don't know how this happened, but there's one FAT16 partition in there, which seems ominous. Do I have to start over?

Code: Select all

 ~]$ df --total -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       1.7G  905M  635M  59% /
devtmpfs         84M     0   84M   0% /dev
tmpfs           232M     0  232M   0% /dev/shm
tmpfs           232M  288K  231M   1% /run
tmpfs           232M     0  232M   0% /sys/fs/cgroup
tmpfs           232M     0  232M   0% /tmp
/dev/mmcblk0p1   90M   24M   66M  27% /boot
total           2.7G  930M  1.7G  36% -

Code: Select all

GNU Parted 3.1
Using /dev/mmcblk0
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print all
Model: SD SU16G (sd/mmc)
Disk /dev/mmcblk0: 15.9GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start   End     Size    Type      File system  Flags
 1      1049kB  95.4MB  94.4MB  primary   fat16        lba
 2      95.4MB  1878MB  1783MB  extended
 5      96.5MB  1878MB  1782MB  logical   ext4

Re: SD card appears to be smaller than it is

Posted: Wed Jan 01, 2014 11:47 pm
by joan
Not sure about Arch.

The Debian distributions have two partitions. A small FAT one to boot from and a larger Linux partition which starts at about 1.9GB in size.

The Linux partition can be optionally enlarged to fill the rest of the SD card.

Re: SD card appears to be smaller than it is

Posted: Thu Jan 02, 2014 3:39 am
by fer_digz
This is perfectly normal. When you install Arch Linux there's two partitions, one is for boot and the other for storage but not use all SD card space. You can extend the second partition using gparted or similar software.

Re: SD card appears to be smaller than it is

Posted: Sun Jan 05, 2014 2:19 am
by sdjf
Lots of tools available to expand the root partition. You can use gparted, but I use fdisk and parted to do that from the command line.

And the fat partition is there on purpose, it comes in very handy for those of us who, on occasion, need to edit configuration files that are in the boot partition, but whose other computers cannot read/write to/from the ext4 root file system. It isn't just Windows that cannot handle ext4, I have two old Linux devices that can only read the Pi's boot partition.

Re: SD card appears to be smaller than it is

Posted: Sun Jan 05, 2014 6:13 pm
by trifud
I use GParted (from Debian 7) on my PC directly after copying the Arch image to the SD card in order to resize the partitions on the card.