Linode Library Home
Categories
Getting Started
Beginner's Guide
Using Linux
Linode Manager
Networking
LAMP Guides
LEMP Guides
Web Servers
Web Applications
Email Guides
High Availability
SSL Guides
Databases
Server Monitoring
Development
Communications
Advanced
Troubleshooting
How to Contribute
Sitemap
Linode Library RSS Feed
Linode Library Home :: Using the Linode Manager :: Managing Linode Disk Images
Print View Download PDF Download RST

Managing Linode Disk Images

Author: Phil ParadisExternal Link
Published: July 16, 2009
Revised: July 3, 2010

The Linode Manager puts you in complete control of your configuration profiles and disk images. You can resize existing disks, create new disks, and even duplicate an existing image.

These instructions work with the Linode platform. If you don't have a Linode yet, sign up for a Linux VPS and get started today.

Resizing a Disk Image Link

Here's a sample configuration profile and disk image list:

Sample configuration profile and disk images in the Linode Manager.

Clicking on "Debian 5.0 Disk Image" allows us to edit the image's label, size, and read/write status. We'll resize this disk to a smaller image (note: all disk image operations must be done with the Linode shut down):

Resizing a disk image in the Linode Manager.

Enter the new size for the disk image, make sure it's not set to "read only" if you intend to write to it (as is the usual case), and press "Save Changes" to start the resize operation.

If you're shrinking an image, make sure your filesystem isn't using more space than the size you want the disk image to be. You can check the space used on your Linode's filesystem using the df -h command. While resizing is a non-destructive operation, a disk resize job will fail to complete if your filesystem is using more space than the target size.

You may also expand a disk image. For EXT3 filesystems, this will resize the filesystem to automatically use the extra space.

Creating a New Disk Image Link

You may wish to create a new disk image to allow for separate filesystems. Let's create a test image with a size of 500 MB, specifying the filesystem as EXT3:

Creating a new disk image in the Linode Manager.

To use a new disk image, you'll need to assign it to your Linode's configuration profile.

Adding a disk image to a configuration profile in the Linode Manager.

Once your disk image is added to your configuration profile, you may edit your /etc/fstab file to specify where you'd like it mounted on your system. Please note that your new disk image will be visible in your Linode after you reboot it.

Duplicating a Disk Image Link

Duplicating a disk image is an easy means of saving snapshots of entire filesystems. You may do so by clicking the "Duplicate Image" button:

The duplicate image button in the Linode Manager.

License Link

This guide is licensed under a Creative Commons Attribution-No Derivative Works 3.0 United States LicenseExternal Link. Please feel free to redistribute unmodified copies of it as long as attribution is provided, preferably via a link to this page.

Comments

Comment poster gravatar. Submitted by Pierre Paul Lefebvre on Thursday, June 3 2010 at 21:34:18 GMT

Thanks for the guide! I was a bit scared trying it on my own node before a bit on it ;).

Comment poster gravatar. Submitted by Stan Schwertly on Friday, June 4 2010 at 09:18:50 GMT

Thanks for the kind words, Pierre!

Got a comment?

BBCode formatting is allowed. Email addresses are confidential, and are only used for gravatars and sending document/comment updates if requested. Please refer to our privacy policy. All comments are moderated and may take some time to appear on this page.