How to Create and Mount Disk Image

25 Aug 2010 by Resident Unix Engineer

Step 1: Create Disk Image (256M)

*Step 2*: Create File System EXT3 file system is used in this example. Please read note below on using XFS.

NOTE: Very popular, “cloud ready”, XFS file system is often used since it supports freeze / thaw. In Amazon cloud that uses EBS, this is extremely useful for ensuring a consistent state during EBS snapshots. However, ext3 and other file systems can also be used to create consistent snapshots using EBS. Often used technique is layering EXT3 on top of LVM or dmsetup. Then “dmsetup suspend” and “dmsetup resume” commands take care of the file system freezing.

Step 3: Create Mount Point

*Step 4*: Update /etc/fstab

Step 5: Mount File System

You can now use file system under /mnt.

blog comments powered by Disqus