0

I have a partition of size 50GB and made image via some disk tool (through GUI). But it had size of entire partition (50GB).

Then I resized that image to 8.7GB:

e2fsck -f -y xxx.img
resize2fs -M xxx.img

Then I mounted it on partition with size 15GB:

dd if=myIMG.img of=/dev/sda13

But problem is that when I open system monitor it keeps showing me that system max size is 8.3GB instead of 14GB.

And in "lsblk" i can see that partition have 14GB

I don't know how to fix it. Probably I did any stupid mistake but I don't know how to fix it.

11
  • WHat is the exact dd command? Commented Dec 27, 2019 at 13:39
  • @RomeoNinov dd if=/dev/sda13 of=/pathToImg/myImg.img
    – Kvikino
    Commented Dec 27, 2019 at 13:42
  • And how did you mount it? Did you copy with dd to new disk? Commented Dec 27, 2019 at 13:43
  • I created that partition with cfdisk. Then i just used that command. Thats all nothing else. (i am still new in this things).
    – Kvikino
    Commented Dec 27, 2019 at 13:46
  • @RomeoNinov And sorry for mistake command for mounting was dd if=myIMG.img of=/dev/sda13 not as i wrote earlier in comment.
    – Kvikino
    Commented Dec 27, 2019 at 13:56

1 Answer 1

0

No mistakes so far, you've just missing the last step!

You've now written an image of a filesystem sized 8.7GB to a partition sized 15G. The last step would be to extend the filesystem size again to take up the entire partition:

resize2fs /dev/sda13

With modern versions of ext2/3/4 filesystems, you can do this even if the filesystem is already mounted.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .