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)及其相关使用(仅供测试学习之用,基础篇) ...
随机推荐
- WPF DataGrid实现分页显示
主要代码如下 /// <summary> /// 读取指定页面的数据 /// </summary> /// <param name="pagePerCount& ...
- C# JSON 序列化
1.JavaScriptSerializer System.Web.Extensions.dll System.Web.Script.Serialization命名空间 Serialize Deser ...
- js 实现数组深度copy
1. slice() slice() 方法可从已有的数组中返回选定的元素.arrayObject.slice(start,end) ,返回一个新的数组,包含从 start 到 end (不包括该元素) ...
- idea提示,格式化代码,清除不使用的包快捷键,maven自动导jar包
一.提示快捷键 idea默认快捷键是ctrl+space,通常和别的软件快捷键冲突,所以将快捷键修改为alt+/ 二.格式化快捷键ctrl+alt+l,通常和qq.tim快捷键冲突,请修改qq或者ti ...
- json的例子
{ "Code": 200, "Msg": "", "Result": "{\"Platfor ...
- SpringMvc配置拦截器
SpringMVC可以通过配置拦截器,进行url过滤等处理. 在spring-mvc.xml的配置文件中,如下示: 其中,在<mvc:interceptors>中可以配置多个拦截器< ...
- gd库已打开,验证码不显示
ob_start(); ob_clean();
- PBYTE
typedef BYTE near *PBYTE;
- ubuntu 卡在登陆界面无法进入桌面,但是可以进入命令行界面
ubuntu 卡在登陆界面无法进入桌面,但是可以进入命令行界面(初步断定是Xwindows界面软件出问题了,所以重装即可!)Solve: 1.Ctrl+Alt+F1进入命令行界面,root账户登陆2. ...
- [Selenium]Turn Page By Scroll Bar
Description: Need to turn page by operating scroll bar and find out the element in the current page. ...