Partition questionning

Posted by Paneb 
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
Now, this forum is in read-only mode. You find details Details hereContinue on /r/PirateBox
Partition questionning
January 09, 2015 06:19PM
Hi!

My question is about the partition by defaults on the Pi after this distrib has been installed. I am not new to Linux, but still a beginner, and it's my first time trying to really use my Pi(es), not really the time before. I know the main bases about each kind of partition, mount/unmount system etc.
Anyway, my main concern!
I use a Samsumg 16Go SD card on a Raspberry B (not plus).
>>For the test, I reinstall on a 8Go one, to not erase my config on the first SD card.<<

If I do nothing, I have (when I used df on the fresh 8Go) :
Filesystem----1K-blocks-----Used-----Available-------Use%-----Mounted on
/dev/root -----1929616-------789492----1024056------44%-------/
devtmps-------218384----------0-----------218384-------0% -------/dev
tmpfs-----------222604----------0-----------222604-------0% -------/dev/shm
tmpfs-----------222604----------348--------222604-------1% ------- /run
tmpfs-----------222604----------0-----------222604-------0% ------- /sys/fs/cgroup
tmpfs-----------222604----------0-----------222604-------0% ------- /tmp
/dev/mmcblk0p1- 102182---15488------86694-------16% ------- /boot
tmpfs-----------44524-----------0------------44524-------0% ------- /run/user/0

Moreover, I used fdisk -l to have some more information. It says my disk is on /dev/mmcblk0 and has 7.4Go (which is indeed the case). But I have only two devices listed after, /dev/mmcblk0p1 and [...]p2, first one 100M FAT32 (the boot one if I understood well what you were saying on the other subject), ou 1.9G for the second, Linux type. So I have like 6Go which are... where?

I did some tweaks based on a resize for the root one, so now I have (on my 16Go SD, with some files already in the www/Shared folder as you can see from the used space in the root) :
Filesystem----1K-blocks-----Used-----Available-------Use%-----Mounted on
/dev/root------15082008---1374464---13061548-------10%-------/
devtmps-------218384----------0----------218384----------0% -------/dev
tmpfs-----------222604----------0----------222604----------0%-------/dev/shm
tmpfs-----------222604-----------316------222604 ---------0%-------/run
tmpfs-----------222604-----------0---------222604 ---------0%-------/sys/fs/cgroup
tmpfs-----------222604-----------0----------222604 --------0%-------/tmp
/dev/mmcblk0p1--102182----15488------86694---------16%-------/boot
tmpfs-----------44524-------------0-----------44524-------------0%-------/run/user/0
When I used fdisk _l, I have my disk of 14.8G, the boot device of 100M and the mmcblk0p2 which is 14.7 (full free space)/

I might have mistypes some of the numbers, but the idea is here. I resize the root partition because, as far as I know its there uploaded files are stored.

Did I misunderstood something important? Maybe even if the space is not shown by the partition, it will be slowly fill if needed?
Re: Partition questionning
January 15, 2015 09:33AM
Hi,
thanks for splitting the topics smiling smiley thumbs up

I created that howto here [www.piratebox.cc] to describe the process of creating an additional partition, but of course you can resize the root partition, if you want to.
I'm guessing that you resized the partition itself correct, but after that- did you run a filesystem resize command?

regards Matthias
Re: Partition questionning
January 17, 2015 11:04PM
resize2fs ? Yes I did!
So everything should be fine I hope smiling smiley.
The difference between my way and your howto, is you are creating a new one whereas I expanded the previous, right?
Re: Partition questionning
January 19, 2015 07:32AM
that is correct smiling smiley
Re: Partition questionning
February 06, 2016 05:02PM
Just realized I never said thank you for your explanation (yes I am like hours late).
Thank you!