sheriff076
Posts: 34
Joined: Sat May 19, 2012 5:33 pm

File system size after using Gparted

Thu Jun 07, 2012 6:23 pm

Hello,

On the back of a fresh Arch install I've used Gparted on a live CD image in Virtual Box to resize the partition /dev/sda2 to fill up the 4gb SD card.

Before the process, the used size was 1.75GB but after using Gparted the used size is 2.4gb.
I assumed, perhaps naively, that the used size would remain the same and just the unused portion would grow from the unallocated portion.

Is there a step I should perform next to the file system or is it expected that the used size would grow?

A bit confused.
Regards,

Steve

poseidon
Posts: 21
Joined: Thu May 31, 2012 9:23 pm

Re: File system size after using Gparted

Fri Jun 08, 2012 6:24 am

Same observation here with one of my cards, but only once in my countless trials to resize them.

Found out that the best results may yielded, if only one step at a time is done in gparted:

Delete a partition. Apply. CLose gparted. Eject card. Reinsert card.

Resize neighbour partition. Apply. Close gparted. Eject card. Reinsert card. etc.

Regards
poseidon

sheriff076
Posts: 34
Joined: Sat May 19, 2012 5:33 pm

Re: File system size after using Gparted

Fri Jun 08, 2012 8:17 am

Hello,

Given theres only a fat32, and one ext4 partition and the unallocated space after setting up the SD then there isnt a partition I can delete. If i delete the ext4 and create a new usung the 3 or so gig of space i'd end up with the large partition i want but no os on it any more? Ive tested the suggestion on another card and the result was a large but empty partition.

Unless im being a bit thick, which i never rule out, im not sure this suggestion is right.

Any other thoughts?
Regards,

Steve

scorp
Posts: 96
Joined: Tue May 29, 2012 6:21 pm

Re: File system size after using Gparted

Fri Jun 08, 2012 3:28 pm

What I noticed with Gparted is that you need to do one step at a time(I mean Apply) and unmount ext4 before next operation because Gparted mount it automatically even though I disabled automount in my Ububntu 12. After resizing ext4 I found that partition size increased but free space left with nearly the same size. I just right-click on ext4 and did Check. After that command all fine. By the way, Resize command executes two commands in a row, Resize itself and then checks if partition mounted. So after resizing even though I had partitions unmounted I got error that ext4 mounted.
And in order to unmount I used terminal:
umount /media/USB1 /media/USB2 or whatever USB is on your PC because if I unmount in Gparted one partition, another partition mounted automatically. May be it is just me, dummy linux user...

sheriff076
Posts: 34
Joined: Sat May 19, 2012 5:33 pm

Re: File system size after using Gparted

Fri Jun 08, 2012 8:43 pm

Hello,

The attached image shows what Gparted is presenting and the text below is the output from df -h

Code: Select all

Filesystem      Size  Used Avail Use% Mounted on
rootfs          1.8G  1.1G  637M  62% /
/dev/root       1.8G  1.1G  637M  62% /
devtmpfs         61M     0   61M   0% /dev
run              61M  160K   61M   1% /run
shm              61M     0   61M   0% /dev/shm
/dev/mmcblk0p1   96M   36M   60M  38% /boot
Screen Shot 2012-06-08 at 21.31.54.png
Screen Shot 2012-06-08 at 21.31.54.png (55.75 KiB) Viewed 3393 times
Can anyone help me understand what happening with my drive space? i see rootfs and /dev/root reporting equal space used is that correct are they reporting the same partition?
The gparted screenshot claims almost 3gb from 3.65gb is used and df only shows 1.1 from 1.8gb so where has the rest of my space gone?

Very confused by the whole thing now so if anyone can offer some explanation i'd be grateful.
Regards,

Steve

scorp
Posts: 96
Joined: Tue May 29, 2012 6:21 pm

Re: File system size after using Gparted

Fri Jun 08, 2012 10:12 pm

sheriff076, as I mentioned above, right click on mouse on ext4 and do Check. It will fix difference.
But I have a bit different picture on Gparted with unallocated 1Mb between FAT and ext4, and also linux-swap partition around 191Mb

chowanec
Posts: 21
Joined: Tue Jun 05, 2012 2:41 am

Not getting entire SD card's space?

Sat Jun 09, 2012 1:13 pm

Hey all, I am having the same problem, except here is what my

Code: Select all

fdisk /dev/sda
shows:

Code: Select all

Disk /dev/sda: 8005 MB, 8005787648 bytes
32 heads, 63 sectors/track, 7756 cylinders
Units = cylinders of 2016 * 512 = 1032192 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0a0d7af8

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        7756     7818016+   b  W95 FAT32
And I have a 32G sd card -- where are the other GBs?

Code: Select all

df -h
shows:

Code: Select all

Filesystem            Size  Used Avail Use% Mounted on
tmpfs                  94M     0   94M   0% /lib/init/rw
udev                   10M  160K  9.9M   2% /dev
tmpfs                  94M     0   94M   0% /dev/shm
rootfs                1.6G  1.4G   83M  95% /
/dev/mmcblk0p1         75M   28M   47M  37% /boot
I am ssh'ing into the box, so is there a way to do the resize/check from the command line?

Thanks in advance.

-Chow

scorp
Posts: 96
Joined: Tue May 29, 2012 6:21 pm

Re: File system size after using Gparted

Sat Jun 09, 2012 9:36 pm

Download Issue2 http://www.themagpi.com/ Magazine.
It has different ways of resizing partition explained.

feadra
Posts: 1
Joined: Sun Apr 08, 2012 12:41 pm

Re: File system size after using Gparted

Tue Jul 17, 2012 10:05 am

@scorp
I did try the magazine way but I can't resize the ext4 partition due to a "mount" problem. On my screen there's a "mount"column between "filesystem" and "size". For the fat32 partition is says "/boot", for the ext4 partion is says "/" Anyone?? :roll:

Return to “Arch”