-2

I was following the solution here to make full use of my 32GB sd card. After I hit enter to accept the default for the last sector I saw;

Created a new partition 2 of type 'Linux' and of size 29.5 GiB.
Partition #2 contains a ext4 signature.

Do you want to remove the signature? [Y]es/[N]o: N

I then chose N then entered w to save. This brought up the following;

The partition table has been altered.
Failed to remove partition 4 from system: Device or resource busy
Failed to update system information about partition 2: Device or resource busy

The kernel still uses the old partitions. The new table will be used at the next reboot. Syncing disks.

I then did a sudo reboot

Now I'm unable to connect to my RPi4 over SSH or through Real VNC. They both timeout while trying to connect.

For reference here is a screenshot of the entire process and what my original disk partitions looked like. enter image description here

If it helps I created a backup disk image as was suggested here

Output from mount after reformatting the sd card and reflashing with the backup image.

enter image description here

Brad W
  • 17
  • 8

2 Answers2

1

You really should have stopped following the guide when you saw you had a different number of partitions. The guide above assumes that your root file system is on the second partition. Was that the case? The steps you took made the the data in every partition inaccessible, except the first two, and if your root partition was elsewhere, the system will no longer boot.

You can recover the data by recreating the partition table manually (you have all the numbers you need in your screenshot), or by restoring your backup. In both cases, you will need to plug the SD card into a computer which boots correctly, as the SD card is unbootable until you fix it.

Dmitry Grigoryev
  • 28,277
  • 6
  • 54
  • 147
0

As suggested in the comments I think you have overwritten the exiting filesystem. I would restore the sd card from the backup image.

When you log back in, issue the following commands:

sudo su raspi-config

In the menu that appears use the arrow keys to move down to selct select item 7 Advanced options. In the next menu select item A1 Expand Filesystem

That will expand the filesystem to the whole sd card automagically.

Falstone
  • 36
  • 4