How do I extend image size on a 1tb hard drive?
-
@aussie-daredevil Then I suggest to use a Linux live distro like System Rescue CD - that you can run from your PC from an USB stick - to resize the partition (
/dev/sda2
). It has a graphical interface for gparted, the program used for partition resizing, and it's really easy to use.I think there are also Windows programs that can do that, without the need for a Live CD, but I personally didn't use any and can't remember the names.
-
@mitu already tried gparted thru Linux live, didn't work, even tried a smaller partition size of 500gig with no luck. Here is a screenshot of the logs!
-
@aussie-daredevil This is because your
/root
partition UUID has changed - you need to modify the/boot/cmdline.txt
accordingly - put the new UUID there. You'll also have to modify the/etc/fstab
file and add the replace the existing UUID with the new one.You can find out the new UUID from the live cd by running
blkid
. -
@mitu sorry I'm new to this can you explain exactly what I have to do?
-
@aussie-daredevil You have 2 partitions on the new disc. You'll need to mount both from the live cd and perform some modifications.
/dev/sda1
contains the/boot
folder with the kernel and necessary config and firmware files. Open thecmdline.txt
with an editor and replace theUUID=<XYZ>
part with theUUID=<actual_uuid>
, then save the file./dev/sda2
contains the/
filesystem. Open the the/etc/fstab
file (it's a text file) with the same editor and replace the 2nd line withPARTUUID=<XYZ>
withPARTUUID=<actual_uuid>
.
The
<actual_uuid>
should be replaced with theUUID
corresponding to/dev/sda2
, which you can find out by runningblkid
from the command line - it should print the UUIDs of all partitions. -
@mitu can I rasbian?
-
@aussie-daredevil You'll have to be more specific, I can't guess from monosyllabic responses what are your intentions.
If you feel it's too complicated, then I recommend you install from zero on the new disk, resize the large partition withgparted
from a live CD and then copy over your configs/ROMs/artwork/what have you. -
@mitu what I was asking can I use rasbian to edit files but I have found that I cannot edit sda2/etc/fstab.txt as it says I do not have permission.
Is there another windows program I can use to edit this? Or another way to do it on rasbian? -
@mitu and thankyou so much for your help, I've never used Linux before and have only been tinkering with the pi the last 5 days. So I'm a big arse noob atm lol.
-
@aussie-daredevil Then I recommend starting from scratch with the new disc, make sure it works, then transfer your files to it from your old drive - ROMs/artwork/etc. See the 2nd backup method explained in the docs - https://retropie.org.uk/docs/Updating-RetroPie/#making-a-backup-option-2.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.