几个Linux命令

find . -name "*.rpm" -exec mv {} /root/rhevm-packages/ \;

如何mount虚拟机的磁盘镜像:

fdisk -ul /path/to/image

You must set cylinders.

You can do this from the extra functions menu.

   

Disk /home/chaolinz/chaolinz-vm-01.img: 0 MB, 0 bytes

255 heads, 63 sectors/track, 0 cylinders, total 0 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x00002624

   

Device Boot Start End Blocks Id System

/home/chaolinz/chaolinz-vm-01.img1 2048 1050623 524288 82 Linux swap / Solaris

Partition 1 does not end on cylinder boundary.

/home/chaolinz/chaolinz-vm-01.img2 * 1050624 20971519 9960448 83 Linux

Partition 2 has different physical/logical endings:

phys=(1023, 254, 63) logical=(1305, 106, 17)

   

得到分区2(主分区)的起点块1050624后,乘以块大小512Byte,得到偏移量537919488

mount -o loop,offset=537919488 /path/to/image /tmp/img/

64-bit主机上编译报错:error: gnu/stubs-32.h: No such file or directory

  • 安装glibc-devel.i686即可

CIFS共享Windows文件:

  • mount -t cifs //hostname/sharedfolder . -o servern=xxx,username=xxx,password=xxx\r

   

   

转载于:https://www.cnblogs.com/CodeComposer/p/4721634.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值