Hammer379
Posts: 12
Joined: Thu Jan 09, 2020 4:45 pm

128gb sd card in rpi4

Thu Jan 09, 2020 4:51 pm

I have a 128gb as card working with my rpi 4 but I flashed with a image that I took from my 32 gb card when I check the free space on 128gb card says just 25gb seems to me it not utilizing full 128gb card what can I do to fix this ?? Short of starting over fresh?

wildfire
Posts: 606
Joined: Sat Sep 03, 2016 10:39 am
Location: Dundee, Scotland

Re: 128gb sd card in rpi4

Thu Jan 09, 2020 7:43 pm

Assuming you're using Raspbian.

Code: Select all

sudo raspi-config
Option 7 (advanced options) then A1 (expand file system).
E8 85 A2 64 C9 64 81 94 64 81 95 64 89 84 89 96 A3
Still NF Shirls

User avatar
HawaiianPi
Posts: 5711
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: 128gb sd card in rpi4

Thu Jan 09, 2020 7:49 pm

Hammer379 wrote:
Thu Jan 09, 2020 4:51 pm
I have a 128gb as card working with my rpi 4 but I flashed with a image that I took from my 32 gb card when I check the free space on 128gb card says just 25gb seems to me it not utilizing full 128gb card what can I do to fix this ?? Short of starting over fresh?
That's because you made an image of your 32GB card with something like dd or win32diskimager, which are bit copiers that make an exact duplicate.

If your 32GB card has a desktop version of Raspbian buster, use the included SD Card Copier utility.
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

Hammer379
Posts: 12
Joined: Thu Jan 09, 2020 4:45 pm

Re: 128gb sd card in rpi4

Thu Jan 09, 2020 8:35 pm

Yes I’m using raspian desktop and have tried to expand file says it already is expanded is there another windows program I can use to get the image

W. H. Heydt
Posts: 12431
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: 128gb sd card in rpi4

Thu Jan 09, 2020 9:02 pm

Hammer379 wrote:
Thu Jan 09, 2020 8:35 pm
Yes I’m using raspian desktop and have tried to expand file says it already is expanded is there another windows program I can use to get the image
Boot your Pi from a different SD card. Attach the 128GB card to your Pi using a USB adapter. Run gparted and manually expand the partition.

User avatar
HawaiianPi
Posts: 5711
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: 128gb sd card in rpi4

Thu Jan 09, 2020 9:58 pm

Hammer379 wrote:
Thu Jan 09, 2020 8:35 pm
Yes I’m using raspian desktop and have tried to expand file says it already is expanded is there another windows program I can use to get the image
Expanding doesn't work because your image copy also duplicated the 32GB partition table.

Boot from the 32GB card and use the SD Card Copier utility to clone the 32GB card to the 128GB card (in a USB card reader).

Although honestly, if all you want is Raspbian, then I would recommend ditching NOOBS and starting over with a Raspbian image. There are ways to copy the Raspbian install from a NOOBS card to a stand-alone Raspbian card, but I don't use NOOBS myself, so someone else will have to help you with that.
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?

RonR
Posts: 1194
Joined: Tue Apr 12, 2016 10:29 pm
Location: US

Re: 128gb sd card in rpi4

Thu Jan 09, 2020 10:18 pm

HawaiianPi wrote:
Thu Jan 09, 2020 9:58 pm
There are ways to copy the Raspbian install from a NOOBS card to a stand-alone Raspbian card

noobs2img will create an image file of a Raspbian installation in NOOBS which can be written to an SD card with Etcher. On the first boot, it will auto-expand to use the full size of the SD card (be patient as a reboot is involved during the resizing).

Hammer379
Posts: 12
Joined: Thu Jan 09, 2020 4:45 pm

Re: 128gb sd card in rpi4

Fri Jan 10, 2020 1:02 am

What I’m trying to do is use my image from 32gb card and put it on a 128gb card and get full use of the card I have tried gparted with no luck it would not save the boot file are there any other options to do this action.

Hammer379
Posts: 12
Joined: Thu Jan 09, 2020 4:45 pm

Re: 128gb sd card in rpi4

Fri Jan 10, 2020 1:06 am

I have put a lot of time in this image and don’t want to start over.

RonR
Posts: 1194
Joined: Tue Apr 12, 2016 10:29 pm
Location: US

Re: 128gb sd card in rpi4

Fri Jan 10, 2020 2:10 am

Hammer379 wrote:
Fri Jan 10, 2020 1:02 am
What I’m trying to do is use my image from 32gb card and put it on a 128gb card and get full use of the card
Hammer379 wrote:
Fri Jan 10, 2020 1:06 am
I have put a lot of time in this image and don’t want to start over.

You shouldn't lose anything and you should not have to start over.

Write the 32 GB image to the 128 GB SD card and boot it. Run 'lsblk' in a command window. If you see just two partitions (mmcblk0p1 and mmcblk0p2), running 'sudo raspi-config' -> Advanced Options -> Expand Filesystem should expand Rasbian to use the entire 128 GB.

If you see more than just two partitions, you must have installed Raspbian using NOOBS. In this case run noobs2img in a command window to create a new Raspbian image file. Write this image file to the 128 GB SD card. When you boot it, it should auto-expand to use the entire 128 GB.

Hammer379
Posts: 12
Joined: Thu Jan 09, 2020 4:45 pm

Re: 128gb sd card in rpi4

Fri Jan 10, 2020 2:14 am

How do I go about writing this image made from noobs2 back to card ?

RonR
Posts: 1194
Joined: Tue Apr 12, 2016 10:29 pm
Location: US

Re: 128gb sd card in rpi4

Fri Jan 10, 2020 2:15 am

Hammer379 wrote:
Fri Jan 10, 2020 2:14 am
How do I go about writing this image made from noobs2 back to card ?

With Etcher, the recommended tool for writing any image to an SD card.

Hammer379
Posts: 12
Joined: Thu Jan 09, 2020 4:45 pm

Re: 128gb sd card in rpi4

Fri Jan 10, 2020 2:24 am

Ok I’m confused do I need to be booted up with 128gb card and run noobs2 and that image will be where?

RonR
Posts: 1194
Joined: Tue Apr 12, 2016 10:29 pm
Location: US

Re: 128gb sd card in rpi4

Fri Jan 10, 2020 2:34 am

Hammer379 wrote:
Fri Jan 10, 2020 2:24 am
Ok I’m confused do I need to be booted up with 128gb card and run noobs2 and that image will be where?

You need to be running the Raspbian system that you want to save to an image file. noobs2img will make a backup image file of that running Raspbian system. When you write that image file to an SD card and boot it, it will auto-expand to whatever size SD card you wrote it to.

noobs2img will ask you for the name of an image file to create (example: /mnt/backup.img). noobs2img will then ask you for an image file size (enter 0 and it will create the smallest size allowable).

Hammer379
Posts: 12
Joined: Thu Jan 09, 2020 4:45 pm

Re: 128gb sd card in rpi4

Fri Jan 10, 2020 1:32 pm

Thank you for the reply. But I have more questions it will save the image file to the pi I understand but to write it back to 128gb card will the sd card utility do that or will etcher need to be install to pi ?

GlowInTheDark
Posts: 594
Joined: Sat Nov 09, 2019 12:14 pm

Re: 128gb sd card in rpi4

Fri Jan 10, 2020 2:20 pm

https://www.raspberrypi.org/forums/view ... p?t=192188

But, did we ever actually establish that OP *is* using NOOBS?
GitD's list of things that are not ready for prime time:
1) IPv6
2) 64 bit OSes
3) USB 3
4) Bluetooth

Hammer379
Posts: 12
Joined: Thu Jan 09, 2020 4:45 pm

Re: 128gb sd card in rpi4

Fri Jan 10, 2020 2:41 pm

Well it has been a while since Original install and yes I believe it to be noobs because everything has failed to expand it . On new sd card from what I read if it was from raspian image would not be this difficult

GlowInTheDark
Posts: 594
Joined: Sat Nov 09, 2019 12:14 pm

Re: 128gb sd card in rpi4

Fri Jan 10, 2020 3:57 pm

Hammer379 wrote:
Fri Jan 10, 2020 2:41 pm
Well it has been a while since Original install and yes I believe it to be noobs because everything has failed to expand it . On new sd card from what I read if it was from raspian image would not be this difficult
Well, the procedure described at the link above will convert a NOOBS install to a regular (non-NOOBS) install. And it will "expand" the filesystem along the way.
GitD's list of things that are not ready for prime time:
1) IPv6
2) 64 bit OSes
3) USB 3
4) Bluetooth

Hammer379
Posts: 12
Joined: Thu Jan 09, 2020 4:45 pm

Re: 128gb sd card in rpi4

Sat Jan 11, 2020 2:05 am

So here are some step-by-step instructions for you.
Insert your working 8GB SD card into the RPI SD card slot and boot it up into Raspbian.
Choose one of your new 32GB SD Cards, put it into your USB SD Card Reader and then plug teh USB card reader into one of the USB ports of your RPi. Do not have any other storage devices connected.
Click on the Raspberry (top left of screen) to open the start menu.
Open the Accessories Menu
Select the "SD Card Copier tool"
In the "Copy from device" edit box, choose the (/dev/mmcblk0) device (your 8GB SD card).
In the "Copy To Device" edit box, choose your 32GB SD card in the USB card reader (/dev/sda)
Check the "New Partition UUIDs" box
Click on Start and wait for the process to complete.
Shutdown RPi
Replace 8GB SD card with your newly cloned 32GB card
Boot new card.
This solved my issues I forgot to check box new partition uuid’s. Lol

Return to “General discussion”