Fedora Linux Support Community & Resources Center
  #1  
Old 30th January 2007, 02:43 AM
enko Offline
Registered User
 
Join Date: Dec 2004
Posts: 69
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?
Reply With Quote
  #2  
Old 30th January 2007, 05:58 AM
Jman Offline
Registered User
 
Join Date: Mar 2004
Location: Minnesota, USA
Age: 31
Posts: 7,909
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.
Reply With Quote
  #3  
Old 30th January 2007, 06:38 AM
parish Offline
Registered User
 
Join Date: Feb 2005
Posts: 598
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

Daniel
Reply With Quote
Reply

Tags
ext3fs, growing, loopback

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


Current GMT-time: 23:49 (Saturday, 23-09-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat