RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    How do I extend image size on a 1tb hard drive?

    Scheduled Pinned Locked Moved Help and Support
    imageextendsize
    17 Posts 2 Posters 3.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      aussie daredevil @mitu
      last edited by

      @mitu no I have programmed the hard drive as a stand alone, I don't use a sd card at all. My 256gig image is on my hard drive but I am limited to the image size and unable to expand my sda2 partition. Rasp- config does not recognise the hard drive.

      mituM 1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator @aussie daredevil
        last edited by mitu

        @aussie-daredevil I see - so you flashed the 265 Gb image onto the drive and now you have 2 partitions (/dev/sda1 and /dev/sda2) ?

        A 1 Reply Last reply Reply Quote 1
        • A
          aussie daredevil @mitu
          last edited by

          @mitu yes I do

          mituM 1 Reply Last reply Reply Quote 0
          • mituM
            mitu Global Moderator @aussie daredevil
            last edited by mitu

            @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.

            A 1 Reply Last reply Reply Quote 0
            • A
              aussie daredevil @mitu
              last edited by

              @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!PicsArt_06-05-02.12.17.jpg

              mituM 1 Reply Last reply Reply Quote 0
              • mituM
                mitu Global Moderator @aussie daredevil
                last edited by

                @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.

                A 1 Reply Last reply Reply Quote 0
                • A
                  aussie daredevil @mitu
                  last edited by

                  @mitu sorry I'm new to this can you explain exactly what I have to do?

                  mituM 1 Reply Last reply Reply Quote 0
                  • mituM
                    mitu Global Moderator @aussie daredevil
                    last edited by

                    @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 the cmdline.txt with an editor and replace the UUID=<XYZ> part with the UUID=<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 with PARTUUID=<XYZ> with PARTUUID=<actual_uuid>.

                    The <actual_uuid> should be replaced with the UUID corresponding to /dev/sda2, which you can find out by running blkid from the command line - it should print the UUIDs of all partitions.

                    A 1 Reply Last reply Reply Quote 0
                    • A
                      aussie daredevil @mitu
                      last edited by

                      @mitu can I rasbian?

                      mituM 1 Reply Last reply Reply Quote 0
                      • mituM
                        mitu Global Moderator @aussie daredevil
                        last edited by

                        @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 with gparted from a live CD and then copy over your configs/ROMs/artwork/what have you.

                        A 2 Replies Last reply Reply Quote 0
                        • A
                          aussie daredevil @mitu
                          last edited by aussie daredevil

                          @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?

                          1 Reply Last reply Reply Quote 0
                          • A
                            aussie daredevil @mitu
                            last edited by aussie daredevil

                            @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.

                            mituM 1 Reply Last reply Reply Quote 0
                            • mituM
                              mitu Global Moderator @aussie daredevil
                              last edited by

                              @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.

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post

                              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.