1.用 loop 方式挂载 vmdk 文件

 losetup /dev/loop0 docker_pull-flat.vmdk

2.查看分区

 [root@localhost]# parted /dev/loop0
GNU Parted 3.1
使用 /dev/loop0
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) unit B
(parted) p
Model: Loopback device (loopback)
Disk /dev/loop0: 161061273600B
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: Number Start End Size Type File system 标志
1 1048576B 1074790399B 1073741824B primary xfs 启动
2 1074790400B 161061273599B 159986483200B primary lvm (parted) q

3.进行 loop2 挂载

 losetup -o 1074790400 /dev/loop2 /dev/loop0

4.查看 loop2 挂载分区

 [root@localhost]# blkid
/dev/sda1: UUID="34146325-5f34-4883-ad6d-ac7b7edcb888" TYPE="xfs"
/dev/sda2: UUID="ca3f34ed-b355-49ff-b273-ab264f6ba17a" TYPE="swap"
/dev/sda3: UUID="04507ecc-64d0-40bf-9745-538fcc3c4a0d" TYPE="xfs"
/dev/loop2: UUID="VSyFa2-lmxS-MQ1A-8Gfu-ISEO-7ZhN-JHm12P" TYPE="LVM2_member"
/dev/mapper/centos-swap: UUID="f8816976-de66-4544-aaeb-b91b9e1cb40f" TYPE="swap"
/dev/mapper/centos-home: UUID="02eb6a55-9387-4625-b2a0-bc079225c1b8" TYPE="xfs"
/dev/mapper/centos-root: UUID="79772ae2-d506-461b-bb54-663a3e35ca89" TYPE="xfs"
/dev/loop0: PTTYPE="dos"

5.挂在数据分区

 mount /dev/mapper/centos-home /mnt/

Mounting VMDK files in Linux的更多相关文章

  1. How To Configure SAMBA Server And Transfer Files Between Linux & Windows

    If you are reading this article it means you have a network at home or office with Windows and Linux ...

  2. How to Use Rsync to Sync New or Changed/Modified Files in Linux

    As a system administrator or Linux power user, you may have probably come across or even on several ...

  3. remote mounting from windows to linux

    8 Ways To Mount SMBfs (SAMBA FILE SYSTEM) In Linux. Sep 8, 2009 How to Mount smbfs (SAMBA file syste ...

  4. Speed up Downloading Files on Linux

    Compared aria2c, axel and wget, aria2c is the best. It support multi-thread download (with "-s ...

  5. linux extract rar files

    Extract rar-archives If you need to extract rar files in Linux, you have to download and install unr ...

  6. Linux下Too many open files问题排查与解决

    作者: Grey 原文地址: Github 语雀 博客园 Too many open files是Linux系统中常见的错误,从字面意思上看就是说程序打开的文件数过多,不过这里的files不单是文件的 ...

  7. Enabling Active Directory Authentication for VMWare Server running on Linux《转载》

    Enabling Active Directory Authentication for VMWare Server running on Linux Version 0.2 - Adam Breid ...

  8. Configure Red Hat Enterprise Linux shared disk cluster for SQL Server——RHEL上的“类”SQL Server Cluster功能

    下面一步一步介绍一下如何在Red Hat Enterprise Linux系统上为SQL Server配置共享磁盘集群(Shared Disk Cluster)及其相关使用(仅供测试学习之用,基础篇) ...

  9. Configure Red Hat Enterprise Linux shared disk cluster for SQL Server

    下面一步一步介绍一下如何在Red Hat Enterprise Linux系统上为SQL Server配置共享磁盘集群(Shared Disk Cluster)及其相关使用(仅供测试学习之用,基础篇) ...

随机推荐

  1. Numpy的ndarry:一种多维数组对象

    Numpy的ndarry:一种多维数组对象 Numpy最重要的一个特点就是其N维数组对象(即ndarry),该对象是一个快速而灵活的大数据集容器.你可以利用这种数组对整块数据执行一些数学运算,其语法跟 ...

  2. spring jpa sqls

    package com.example.repository; import java.util.List; import org.springframework.data.jpa.repositor ...

  3. google-gson库下的gson的基本使用

    public class Users { private String username; private String password; private Integer age; public S ...

  4. [ML]熵、KL散度、信息增益、互信息-学习笔记

    [ML]熵.KL散度.信息增益.互信息-学习笔记 https://segmentfault.com/a/1190000000641079

  5. linux qmake commend not found

    最近在学习Go语言,想要安装IDE liteide,在按这篇教程进行安装,当执行./build_linux.sh的时候,提示qmake commend not found的字眼,于是在网上搜,说出现这 ...

  6. Thread.yield()的简单理解

    Thread.yield( )方法: 使当前线程从执行状态(运行状态)变为可执行态(就绪状态).cpu会从众多的可执行态里选择. 也就是说,当前也就是刚刚的那个线程还是有可能会被再次执行到的,并不是说 ...

  7. WdatePicker.js的使用方法 帮助文档 使用说明(时间控件)

    WdatePicker.js的使用方法 帮助文档 使用说明(时间控件)   4. 日期范围限制 静态限制 注意:日期格式必须与 realDateFmt 和 realTimeFmt 一致 你可以给通过配 ...

  8. 如果应用程序正在通过 <identity impersonate="true"/> 模拟,则标识将为匿名用户(通常为 IUSR_MACHINENAME)或经过身份验证的请求用户。

    在配置文件中添加 <identity   impersonate= "true "   userName= "Administrator "   pass ...

  9. hra 直线

    using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI ...

  10. 视频转换工具ffmpeg

    安装ffmpeg ffmpeg官网下载地址点击此处. 如果使用mac也可用homebrew下载安装:brew install ffmpeg 使用ffmpeg 命令如下:ffmpeg -i input. ...