buraks
Posts: 3
Joined: Fri May 24, 2019 9:22 am

RaspBerry Pi resize issue

Fri May 24, 2019 9:28 am

Hi everyone,

I created image from my 16 GB SD card and installed it on my 32 GB SD card. Now I cannot use my free 16 GB space. How can I merge?

df -h

Filesystem Size Used Avail Use% Mounted on
/dev/root 13G 12G 134M 99% /
devtmpfs 126M 0 126M 0% /dev
tmpfs 130M 0 130M 0% /dev/shm
tmpfs 130M 3.8M 127M 3% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 130M 0 130M 0% /sys/fs/cgroup
/dev/mmcblk0p6 68M 24M 45M 35% /boot
tmpfs 26M 4.0K 26M 1% /run/user/1000
/dev/mmcblk0p5 30M 397K 28M 2% /media/pi/SETTINGS2

sudo fdisk -uc /dev/mmcblk0

/dev/mmcblk0p1 8192 3291015 3282824 1.6G e W95 FAT16 (LBA)
/dev/mmcblk0p2 3291016 30449663 27158648 13G 5 Extended
/dev/mmcblk0p5 3293184 3358717 65534 32M 83 Linux
/dev/mmcblk0p6 3358720 3500031 141312 69M c W95 FAT32 (LBA)
/dev/mmcblk0p7 3506176 30449663 26943488 12.9G 83 Linux

I don't know which part should I need to delete and create new partition?

User avatar
DarkPlatinum
Posts: 843
Joined: Thu Nov 02, 2017 2:30 pm
Location: Unknown
Contact: Website YouTube

Re: RaspBerry Pi resize issue

Fri May 24, 2019 12:09 pm

Use the expand file system function in Sudo raspi-config
1 * Raspberry Pi Zero W, 1 * Raspberry Pi 2, 1 * Raspberry Pi 3 1 * Raspberry Pi 3B + :mrgreen:

Check Out My Raspberry Site (Run on a Raspberry Pi 3B :) ): https://html.dynu.net

Andyroo
Posts: 4211
Joined: Sat Jun 16, 2018 12:49 am
Location: Lincs U.K.

Re: RaspBerry Pi resize issue

Fri May 24, 2019 12:15 pm

If you want a bit more control or multiple partitions (though I would question why as the above is the simplest way to go) you could install gparted in the gui and use that.
Need Pi spray - these things are breeding in my house...

buraks
Posts: 3
Joined: Fri May 24, 2019 9:22 am

Re: RaspBerry Pi resize issue

Fri May 24, 2019 5:54 pm

Andyroo wrote:
Fri May 24, 2019 12:15 pm
If you want a bit more control or multiple partitions (though I would question why as the above is the simplest way to go) you could install gparted in the gui and use that.
Thank you it is excellent application.
sc.png
sc.png (121.12 KiB) Viewed 293 times
sc2.png
sc2.png (68.75 KiB) Viewed 293 times
As you see in the image, how can I resize the mmcblk0p7?

I cannot unmount it. It gives error as "Could not unmount /dev/mmcblk0p7 most likely other partitions are also mounted...".

Andyroo
Posts: 4211
Joined: Sat Jun 16, 2018 12:49 am
Location: Lincs U.K.

Re: RaspBerry Pi resize issue

Fri May 24, 2019 6:05 pm

Best thing is to use another copy of Raspbian and mount this card in a SD to USB adapter and do it that way after making a backup of course.
Need Pi spray - these things are breeding in my house...

buraks
Posts: 3
Joined: Fri May 24, 2019 9:22 am

Re: RaspBerry Pi resize issue

Fri May 24, 2019 6:13 pm

Andyroo wrote:
Fri May 24, 2019 6:05 pm
Best thing is to use another copy of Raspbian and mount this card in a SD to USB adapter and do it that way after making a backup of course.
Thank you very much I did it exactly you said. It worked like a charm.

Andyroo
Posts: 4211
Joined: Sat Jun 16, 2018 12:49 am
Location: Lincs U.K.

Re: RaspBerry Pi resize issue

Fri May 24, 2019 7:15 pm

No probs - gparted has saved me lots of time in the last few years.

Its normally one of the first programs I load on a new box.
Need Pi spray - these things are breeding in my house...

Return to “Beginners”