FedoraForum.org - Fedora Support Forums and Community
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2004

    Growing a loopback ext3fs

    Hey guys. I've got a "filesystem" that's stored in a file, and I mount that file as an ext3 system.

    How can I make it bigger? Anything special?

  2. #2
    Join Date
    Mar 2004
    Minnesota, USA
    You would have to umount it, resize the file containing it, and run resize2fs or something. If you have the space you might create a new, larger loopback file, mount both, and copy data over.

    Though back up, I'm not sure how this'll work.

  3. #3
    Join Date
    Feb 2005
    I have resized encrypted filesystems using this procedure several times without losing any data, but it's been a while since I've done it, so try it at your own peril. I would strongly advise making a backup copy of the file first...

    The general outline:

    du -m <filename> => to get size in Mb to use for seek value below
    dd if=/dev/zero of=<filename> bs=1M seek=<size from above> count=<blocks to add>
    e2fsck -f /dev/loop0 <=assuming loop device is loop0
    resize2fs /dev/loop0

    Using real values (I actually used K instead of M although I don't quite remember why):

    % du -k swap_125
    125220052 swap_125
    % dd if=/dev/urandom of=swap_125 bs=1k seek=125220052 count=25000000
    % e2fsck -f /dev/loop0
    % resize2fs /dev/loop0


Similar Threads

  1. Copying files NTFS <--> ext3fs
    By BLooDMaN in forum Using Fedora
    Replies: 0
    Last Post: 16th February 2008, 09:36 PM
  2. ext3fs checking
    By bigmacbb63 in forum Using Fedora
    Replies: 1
    Last Post: 11th January 2008, 10:56 AM
  3. fsck can't find ext3fs label?
    By VSarkiss in forum Using Fedora
    Replies: 1
    Last Post: 9th December 2007, 01:25 AM
  4. ext3fs recovery, suggestions?
    By Saint Mike in forum Using Fedora
    Replies: 4
    Last Post: 20th April 2006, 08:38 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts