Linux: Creating a new loop file system within a loop file system

  1. create a 1 mesg file: dd if=/dev/zero of=file.img bs=1k count=1000
  2. sudo /sbin/losetup /dev/loop0 file.img
  3. sudo /sbin/mke2fs -c /dev/loop0 1000
4. $ mkdir /mnt/point
$ mount -t ext2 /dev/loop1 /mnt/point
$ ls /mnt/point
lost+found
Advertisements
This entry was posted in linux, ubuntu. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s