On my Pi 4, I installed RaspiOS from NOOBS and configured everything. I installed to the 16 GB SD card which was supplied, but there isn't much
free disk space so I'd like to copy the image to a 32 GB card and use
the extra 16 GB on that card as root filesystem.
Using Windows, I've copied the image from the 16 GB card to a .IMG file,
and then from that .IMG file to the 32 GB card, using Win32 Disk Imager (should I be using a different tool to do this?).
The Pi boots fine. df -k shows that the root partition is still 16 GB,
as I'd expect.
I run sudo raspi-config and select Advanced | Expand Filesystem - but I
get an error "Your partition layout is not currently supported by this
tool. You are probably using NOOBS in which case your root filesystem is already expanded anyway".
How do I proceed from here? Will I have to start from scratch, putting
NOOBS on the 32 GB card and then installing everything again. Or would a different disk imaging tool create the 32 GB card in such a way that raspi-config can expand the filesystem?
On 04/10/2020 01:56 pm, NY wrote:
On my Pi 4, I installed RaspiOS from NOOBS and configured everything. I
installed to the 16 GB SD card which was supplied, but there isn't much
free disk space so I'd like to copy the image to a 32 GB card and use
the extra 16 GB on that card as root filesystem.
Using Windows, I've copied the image from the 16 GB card to a .IMG file,
and then from that .IMG file to the 32 GB card, using Win32 Disk Imager
(should I be using a different tool to do this?).
The Pi boots fine. df -k shows that the root partition is still 16 GB,
as I'd expect.
I run sudo raspi-config and select Advanced | Expand Filesystem - but I
get an error "Your partition layout is not currently supported by this
tool. You are probably using NOOBS in which case your root filesystem is
already expanded anyway".
How do I proceed from here? Will I have to start from scratch, putting
NOOBS on the 32 GB card and then installing everything again. Or would a
different disk imaging tool create the 32 GB card in such a way that
raspi-config can expand the filesystem?
One way that gets over the need to expand it would be to make a
filesystem on /dev/mmcblk0p3 and then use that as /home.
Mount the new filesystem to /mnt and then rsync -av /home/ /mnt/
Unmount and mount the new filesystem on /home to check.
Then you can unmount and remove the old /home/* and remount the new one
on /home/
Alternatively (assuming you have the full desktop) install gparted and
use that to remove mmcblk0p3 and expand mmcblk0p2 to the fullest extent.
You can probably do it with parted from the command line - but I've
never tried.
Chris Elvidge <chris@mshome.net> wrote:
On 04/10/2020 01:56 pm, NY wrote:
On my Pi 4, I installed RaspiOS from NOOBS and configured everything. I
installed to the 16 GB SD card which was supplied, but there isn't much
free disk space so I'd like to copy the image to a 32 GB card and use
the extra 16 GB on that card as root filesystem.
Using Windows, I've copied the image from the 16 GB card to a .IMG file, >>> and then from that .IMG file to the 32 GB card, using Win32 Disk Imager
(should I be using a different tool to do this?).
The Pi boots fine. df -k shows that the root partition is still 16 GB,
as I'd expect.
I run sudo raspi-config and select Advanced | Expand Filesystem - but I
get an error "Your partition layout is not currently supported by this
tool. You are probably using NOOBS in which case your root filesystem is >>> already expanded anyway".
How do I proceed from here? Will I have to start from scratch, putting
NOOBS on the 32 GB card and then installing everything again. Or would a >>> different disk imaging tool create the 32 GB card in such a way that
raspi-config can expand the filesystem?
One way that gets over the need to expand it would be to make a
filesystem on /dev/mmcblk0p3 and then use that as /home.
Mount the new filesystem to /mnt and then rsync -av /home/ /mnt/
Unmount and mount the new filesystem on /home to check.
Then you can unmount and remove the old /home/* and remount the new one
on /home/
Alternatively (assuming you have the full desktop) install gparted and
use that to remove mmcblk0p3 and expand mmcblk0p2 to the fullest extent.
You can probably do it with parted from the command line - but I've
never tried.
And then remember to never ever use Noobs again.
Using Windows, I've copied the image from the 16 GB card to a .IMG file, and >then from that .IMG file to the 32 GB card, using Win32 Disk Imager (should
I be using a different tool to do this?).
I run sudo raspi-config and select Advanced | Expand Filesystem - but I get >an error "Your partition layout is not currently supported by this tool. You >are probably using NOOBS in which case your root filesystem is already >expanded anyway".
How do I proceed from here? Will I have to start from scratch, putting NOOBS >on the 32 GB card and then installing everything again. Or would a different >disk imaging tool create the 32 GB card in such a way that raspi-config can >expand the filesystem?
On 04/10/2020 02:41 pm, A. Dumas wrote:
And then remember to never ever use Noobs again.
I wouldn't assume noobs was the problem, it seems more likely it was the
use of a 16GB card in the first place.
However, I would agree that noobs is a solution looking for a problem.
On 04/10/2020 14:50, Chris Elvidge wrote:
On 04/10/2020 02:41 pm, A. Dumas wrote:
And then remember to never ever use Noobs again.
I wouldn't assume noobs was the problem, it seems more likely it was
the use of a 16GB card in the first place.
However, I would agree that noobs is a solution looking for a problem.
NOOBS is OK to play with, being able to install lots of OS's and find
the one you like, but then you are only going to use one OS going
forward, you need to ditch it and just use a single OS install.
The problem with NOOBS is there are lots of partitions, more than the 4
which can be marked as physical, so it needs to use logical partitions.
When you copy it to a new card, instead of the OS being the last
physical partition which can easily be expanded by raspi-config to the
size of a new card, its trapped within a logical partition and my have
others after it.
You don't have to start again from scratch, it is possible to extract
just your OS's boot partition and root partition, but its not straight forward, and if you haven't messed with partition tables before, it can
be a bit daunting.
I'll only give a brief outline of what to do, as without I don't NOOBS
card to refer to, and it was a long time since I had to do it.
1) Backup up the NOOBs card, and do this on the copy on the larger card
2) Boot in to the OS you want to use
3) Use df and note the partition numbers of /boot and / (root)
4) Put the card a different Linux machine and unmount all partitions
5) Using parted note the start and end of the two partitions above
6) You will have to delete all partitions on the card to get rid
of the logical partitions
7) Recreate the partitions noted as physical partitions
8) Using gParted move boot to start 4M in to the card, with size 256M
and root after boot taking up the rest of the card
---druck
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 43:42:09 |
Calls: | 6,648 |
Files: | 12,193 |
Messages: | 5,329,648 |