首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏云原生拾遗

    在 linux 系统中挂载 raw 格式的虚拟硬盘

    type kpartx >/dev/null 2>&1; then apt update apt install -y kpartx fi # add to /dev/loop loop=`losetup -f` losetup $loop disk.raw kpartx -av $loop # mount loop0p1 to /mnt mount /dev/mapper/loop0p1 /mnt

    7.4K31编辑于 2022-12-06
  • 来自专栏力哥聊运维与云计算

    挂载kvm虚拟机windows虚拟机镜像文件

    命令可以查看使用的loop设备的关联情况   关联命令为   losetup /dev/loop0 /root/win2003.img   关闭关联命令为 losetup -d /dev/loop0 2 使用kpartx 命令将映射分区   kpartx -av /dev/loop0   参数-a 表示添加映射关系,-v表示显示映射的对应关系   映射成功的设备在/dev/mapper下面,比如/dev/mapper/ configuer   make    make install   mount -t ntfs-3g /dev/mapper/loop0p1 /mnt   完成后依次关闭   umount /mnt   kpartx

    2.7K20发布于 2019-06-28
  • 来自专栏刷题笔记

    【Linux】学习笔记(八) Linux 磁盘管理

    virtual.img # 如果提示设备忙你也可以使用其它的回环设备,"ls /dev/loop*"参看所有回环设备 # 解除设备关联 $ sudo losetup -d /dev/loop0 6 kpartx 为各分区建立虚拟设备的映射 $ sudo apt-get install kpartx $ sudo kpartx -av /dev/loop0 # 取消映射 $ sudo kpartx -dv /

    1.4K20发布于 2020-06-24
  • 来自专栏Gnep's_Technology_Blog

    荔枝派Zero(全志V3S)制作 IMG 镜像文件

    apt-get install dosfstools sudo apt-get install dump sudo apt-get install parted sudo apt-get install kpartx 挂载虚拟磁盘并格式化 这个过程就是将 img 虚拟成 SD 卡一样,挂载到电脑,然后格式化它 1、首先建立虚拟磁盘并分区 sudo losetup /dev/loop0 lichee_zero.img sudo kpartx losetup -f 自动查找空闲的设备 sudo losetup -f 重新设置到找出的空闲设备上 sudo losetup /dev/loop21 lichee_zero.img sudo kpartx /rootfs/* /mnt/ # 内容拷贝 sudo umount /mnt # 卸载 六、卸载虚拟磁盘 sudo kpartx -d lichee_zero.img 七、dd 烧录系统 1、格式化

    2K31编辑于 2023-08-10
  • 来自专栏力哥聊运维与云计算

    kvm虚拟化镜像管理的那些事

    losetup /dev/loop0 /w2k8.img kpartx -av /dev/loop0 ntfsfix -b -d /dev/mapper/loop0p1  参数 -b -d非常重要! ntfsck /dev/mapper/loop0p1  kpartx -dv /dev/loop0 losetup -d /dev/loop0 四 如何挂载qcow2格式的镜像,一条命令搞定!

    1.1K20发布于 2019-06-28
  • 来自专栏磨磨谈

    rbd的ceph-backup增量备份本地恢复方法

    全量备份的访问方法 rbd在没有做快照的情况下的备份,导出后是一个文件形式的 rbd export testrbd testrbd 使用下面方法进行直接访问 losetup /dev/loop0 testrbd kpartx diff_from_BACKUPUTC20171024T191243 执行上面的以后会把快照的差量回滚到全量的那个备份当中 losetup /dev/loop0 testrbd\@BACKUPUTC20171024T190955.full kpartx

    1.5K21发布于 2018-08-06
  • 来自专栏BinGo's Blog

    服务器重启后Re-reading the partition table failed with error 22

    The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8) Syncing disks

    1.3K20编辑于 2022-11-01
  • 来自专栏韩曙亮的移动开发专栏

    【错误记录】Ubuntu 安装软件报错 ( Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource tempora )

    libpangomm-1.4-1v5 libsigc++-2.0-0v5 Suggested packages: xfsprogs reiserfsprogs reiser4progs jfsutils kpartx

    79640编辑于 2023-03-30
  • 来自专栏运维经验分享

    centos7.5扩展根目录下空间大小

    The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8) Syncing disks The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8) #reboot  //重启系统

    4.4K10发布于 2019-08-22
  • 来自专栏Linux技术资源分享

    玩玩树莓派之扩展SD卡剩余空间

    The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8) Syncing disks

    2.2K100发布于 2018-06-08
  • Linux 把文件挂载成路径或磁盘

    The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8).

    24300编辑于 2025-07-14
  • 来自专栏技术向

    宿主机与虚拟机共享文件

    连接设备后还需映射分区: sudo kpartx -va /dev/loop0 新的块设备在/dev/mapper目录下,这时候可以用mkfs进行格式化 sudo mkfs.vfat /dev/mapper

    2.7K10发布于 2019-11-20
  • 来自专栏Man_Docker

    linux磁盘挂载和扩容。

    The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8) Syncing disks

    7.3K20发布于 2020-05-28
  • 来自专栏云服务笔记

    XFS文件系统扩容

    The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8) 正在同步磁盘。

    7.3K40发布于 2020-01-17
  • 来自专栏从零开始的linux

    linux磁盘管理

    The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8) Syncing disks

    9.2K90发布于 2018-04-25
  • 来自专栏一个默默无闻的工程师的日常

    vmware 扩展分区大小

    The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8) Syncing disks

    3.1K50发布于 2018-07-16
  • 来自专栏云服务笔记

    XFS文件系统扩容

    The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8) 正在同步磁盘。

    2.4K20发布于 2020-06-10
  • 来自专栏python3

    linux命令基础(3)

    /partitions    有三个命令可以让内核重读磁盘分区表:     CentOS 5: partprobe [DEVICE]     CentOS 6,7:      partx      kpartx 命令:      partx DEVICE      partx -a DEVICE      partx -a -n M:N DEVICE       M       M:       :N     kpartx 命令:      kpartx -af DEVICE Linux文件系统管理  文件系统:   VFS:Virtual File System   Linux:ext2, ext3, ext4, reiserfs

    1K30发布于 2020-01-08
  • 来自专栏运维小路

    kvm-无损扩容磁盘&分区

    The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8) 2.

    59310编辑于 2024-11-01
  • 来自专栏全栈程序员必看

    扩容数据盘_Linux[通俗易懂]

    The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8) 解决方式:实例重启或者reboot

    5K10编辑于 2022-08-09
领券