Losetup and mount-oloop

Source: Internet
Author: User
The first article on losetup and mount-oloop was launched. for linux O & M, I would like to introduce losetup and mount-oloop. Advertisement: www.2cto.com for linux O & M, the first unix/linux System Management Technical Manual (version 4 ). I am reading the second version of... losetup and mount-o loop. The first article is about o & M in linux. I will introduce losetup and mount-o loop. Advertisement: www.2cto.com for linux O & M, the first unix/linux System Management Technical Manual (version 4 ). I am reading Version 2: Linux System Management Technical Manual (version 2)-spend countless nights with me. At that time, there was an English version. The English version of the fourth version had not been available, and it may be hard to sell. However, I like the cover of the fourth edition very much. It reminds me of 2012. that Huawei also set up the 2012 Lab. -- Reading the. iso file mount-o loop linux. iso/mnt/loop in linux is the option used to load the loop device, not the file system type. You can also specify the file system type: mount/tmp/fdimage/mnt-t vfat-o loop =/dev/loop3. The mount operation contains the creation operation of the loop device. If you only use the '-o loop' option, mount automatically finds unused loop devices. Kernel later than 2.6.25 supports automatic analysis of loop devices. Manual analysis: 'losetup-d' or 'umount-D'. www.2cto.com about the-o option, add another remount option that is often used to process file system recovery. In some cases, you may need to re-mount a mounted file system and change the mount Flag. in particular, the read-only file system is re-mounted to a writable file system: mount-o remount, rw/dev/foo/dirmount-o remount, rw/dir (the system automatically reads/etc/fstab and constructs the complete command if not all devices and directories are specified, ro: Read-only, rw: read/write) losetup/dev/loop0 linux. iso, mount/dev/loop0/mnt/can implement the mount-o loop function www.2cto.com, you may need to first execute: # modprobe loop, if you need encryption: # modprobe des # modprobe cryptoloop. Here is an example in the man Manual: # dd if =/dev/zero of =/file bs = 1 k count = 100 # losetup-e des/dev/loop0/filePassword: init (up to 16 hex digits): # mkfs-t ext2/dev/loop0 100 # mount-t ext2/dev/loop0/mnt... # umount/dev/loop0 # losetup-d/dev/loop0 losetup use to create and control loop files, and associate regular files or block devices with a loop file. Has the encryption function. -A, -- view the status of all loop devices-d, -- delete the file files or devices associated with the loop device-e,-E, -- encryption encryption_type specifies the name or number to use the encryption function-f, -- use the first unused loop device
Related Article

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.