Using mkfs to Create an ext2 Filesystem in LinuxLink Classic
After you have collected the packages you want to include, do the following to create and mount an ext2 filesystem:
- Create the image with the mkfs command:
$ mkfs.ext2 ramdisk.image
Choose y to proceed when you are warned that ramdisk.image is not a block special device.
- Mount the blank RAM disk image at some location:
$ sudo mount -o loop ramdisk.image <mount_point>
where <mount_point> is the name of the directory on which you want to temporarily mount the loopback device in order to copy files into it. This mount is temporary, and the location is not important to the RAM disk image.