Linux Loopback Use

Source: Internet
Author: User

Sometimes a standalone block device is required, and loopback is a convenient option to create the following ways

DD If=/dev/zero of=./loopback_file bs=1m count=1000losetup/dev/loop0./loopback_file

First set up a file of the specified size as the actual storage space, and then associate it with/DEV/LOOP0, the loop device seems to have a number of restrictions

You can create a file system on it after the creation is complete, etc.

When you need to remove, first umount the file system mounted with the loopback device, and then

Losetup-d/dev/loop0

If the data does not need to be able to delete the Loopback_file file

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.