Mounting VMDK files in Linux
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的更多相关文章
- 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 ...
- 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 ...
- 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 ...
- Speed up Downloading Files on Linux
Compared aria2c, axel and wget, aria2c is the best. It support multi-thread download (with "-s ...
- linux extract rar files
Extract rar-archives If you need to extract rar files in Linux, you have to download and install unr ...
- Linux下Too many open files问题排查与解决
作者: Grey 原文地址: Github 语雀 博客园 Too many open files是Linux系统中常见的错误,从字面意思上看就是说程序打开的文件数过多,不过这里的files不单是文件的 ...
- 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 ...
- Configure Red Hat Enterprise Linux shared disk cluster for SQL Server——RHEL上的“类”SQL Server Cluster功能
下面一步一步介绍一下如何在Red Hat Enterprise Linux系统上为SQL Server配置共享磁盘集群(Shared Disk Cluster)及其相关使用(仅供测试学习之用,基础篇) ...
- Configure Red Hat Enterprise Linux shared disk cluster for SQL Server
下面一步一步介绍一下如何在Red Hat Enterprise Linux系统上为SQL Server配置共享磁盘集群(Shared Disk Cluster)及其相关使用(仅供测试学习之用,基础篇) ...
随机推荐
- 好记性比如烂笔头--linux学习笔记7关于linux中的shell脚本编程
之前看的各种面试,貌似都有shell脚本编程,没了解之前感觉很复杂,现在了解了些,没想象中那么难. 逻辑主要是这样的 编写.sh的脚本文件,文件里面的代码,就是在命令行输入的可执行命令的加强版,所谓加 ...
- VBS 创建快捷方式
Dim Shell,DesktopPath,link Set Shell = CreateObject("WScript.Shell") DesktopPath = Shell.S ...
- delphi 工具
http://blog.csdn.net/maxwoods/article/category/1285993
- PatBlt
PatBlt 该函数使用当前选入指定设备环境中的刷子绘制给定的矩形区域.通过使用给出的光栅操作来对该刷子的像素和表面像素进行组合. 原型: BOOL PatBlt( HDC hdc, ...
- Type Object——类型对象
clr会为应用程序使用的每个类型创建一个内部数据结构,这种数据结构称为类型对象. 具有泛型类型参数的类型称为开放类型(open type),CLR禁止构造开放类型的任何实例. 代码引用一个泛型类型时, ...
- Ubuntu18.04安装Virtualenv虚拟环境
在Ubuntu18.04安装Virtualenv虚拟环境 [实验环境]: 在这台电脑上已经安装了python3 [安装参考] 1.查看是否已安装virtualenv virtualenv --vers ...
- sort_contours_xld算子的几种排序方式研究
算子sort_contours_xld算子有5种排序方式,即: 'upper_left': The position is determined by the upper left corner of ...
- hashlib 算法介绍
Python的hashlib提供了常见的摘要算法,如MD5,SHA1等等. 什么是摘要算法呢?摘要算法又称哈希算法.散列算法.它通过一个函数,把任意长度的数据转换为一个长度固定的数据串(通常用16进制 ...
- C语言Web service编程
一.简介 Web service是一个平台独立的,低耦合的,自包含的.基于可编程的web的应用程序,可使用开放的XML(标准通用标记语言下的一个子集)标准来描述.发布.发现.协调和配置这些应用程序,用 ...
- Linux下删除文件系统空间不释放的问题
删除了Linux下的一个文件,但是系统空间并没有被释放. 如下:/home/hadmin/data/hadoop 使用了1.3T的空间,但是实际只使用了600多G 原因是我删除了一个600多G的文件, ...