• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
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

Linux/filesystem experts? Extending img partition

Scheduled Pinned Locked Moved Help and Support
imagefilesystempartitionextendresize
2 Posts 2 Posters 1.0k 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.
  • W
    wayfarer
    last edited by 30 Dec 2016, 00:00

    I want to make a RetroPi image with my settings, roms, etc. ready to go. I start with a copy of the latest img (call it custom.img), then using dd

    dd if=/dev/zero bs=1M count=4644 >> ./custom.img

    this adds 4.5G to the total file size. Then I open the image in parted and expand the main partition

    parted custom.img
    (parted) resizepart 2
    End? 6681

    When I print the new filesystem as viewed in parted, it looks perfect. Unfortunately, mounting custom.img shows the original partition size rather than my new partition size. Does anyone know why?

    sudo mkdir /mnt/tmp
    sudo mount -o loop,offset=63963136 custom.img /mnt/tmp

    1 Reply Last reply Reply Quote 0
    • C
      columboscoat Banned
      last edited by 30 Dec 2016, 00:22

      Looks like you are doing it wrong. Try it a different way, one that works

      1 Reply Last reply Reply Quote -2
      2 out of 2
      • First post
        2/2
        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.

        This community forum collects and processes your personal information.
        consent.not_received