Site Home Page The UML Wiki UML Community Site The UML roadmap What it's good for Case Studies Kernel Capabilities Downloading it Running it Compiling Installation Skas Mode Incremental Patches Test Suite Host memory use Building filesystems Troubles User Contributions Related Links The ToDo list Projects Diary Thanks Contacts
Tutorials The HOWTO (html) The HOWTO (text) Host file access Device inputs Sharing filesystems Creating filesystems Resizing filesystems Virtual Networking Management Console Kernel Debugging UML Honeypots gprof and gcov Running X Diagnosing problems Configuration Installing Slackware Porting UML IO memory emulation UML on 2G/2G hosts Adding a UML system call Running nested UMLs
How you can help Overview Documentation Utilities Kernel bugs Kernel projects
Screenshots A virtual network An X session
Transcripts A login session A debugging session Slackware installation
Reference Kernel switches Slackware README
Papers ALS 2000 paper (html) ALS 2000 paper (TeX) ALS 2000 slides LCA 2001 slides OLS 2001 paper (html) OLS 2001 paper (TeX) ALS 2001 paper (html) ALS 2001 paper (TeX) UML security (html) LCA 2002 (html) WVU 2002 (html) Security Roundtable (html) OLS 2002 slides LWE 2005 slides
Fun and Games Kernel Hangman Disaster of the Month

### Resizing filesystems

You may want to resize a UML filesystems because it isn't large enough. This is a common complaint with the filesystems available for download here since they tend to be just big enough to hold what's pre-installed in them, making it tough to install more stuff.

- Shut down the uml guest

  > `UML# halt`

- Make a backup of the file you want to resize.
- If you have any COW files which have the file you want to resize as a backing file then make a backup of the cow files, too.
- If you want to merge the cow file with uml_moo, do it now. Otherwise remove the cow file to avoid confusion.
- Make sure the filesystem is in a clean state.

  > `host% e2fsck -f filename`

- Resize the file. `

      host%
      dd if=/dev/zero of=filename bs=1 count=1 seek=newsize conv=notrunc

      0+0 Records in
      0+0 Records out

  ` newsize can be any size recognized by "dd", such as "256M", "4G", or "2T". The length of the file should have changed, but not the actual filesize as with "ls -ls".
- Resize the filesystem.

  > `host% resize2fs -p filename`

- If you don't trust your luck and/or your computer run:

  > `host% e2fsck -f filename`

- Start the uml with the new filesystem

Hosted at