ข่าว: ข่าวประกาศ

  • 20 เมษายน 2024, 09:42:25

เข้าสู่ระบบด้วยชื่อผู้ใช้ รหัสผ่าน และระยะเวลาในเซสชั่น

ผู้เขียน หัวข้อ: Mount a Virtual Box .vdi as a logical drive in Ubuntu  (อ่าน 7740 ครั้ง)

admin

  • Administrator
  • Hero Member
  • *****
  • กระทู้: 3820
    • ดูรายละเอียด
    • อีเมล์
Mount a Virtual Box .vdi as a logical drive in Ubuntu
« เมื่อ: 07 กันยายน 2011, 16:35:53 »


- make sure you have qemu-nbd available (can be found in the qemu-kvm package)
- load the nbd module through ' sudo modprobe nbd '
- let qemu-nbd provide a loopback block device for the vdi ' sudo qemu-nbd -c /dev/nbd0 <vdi-file> ' and find your .vdi in the device /dev/nbd0 and its partitions in /dev/nbd0p1, /dev/nbd0p2 and so on.
- mount your desired partition(s) or do whatever you want with these devices (format, change partitions...)
- when done, remove the blockdevices (after unmounting etc) through ' sudo qemu-nbd -d /dev/nbd0 '.
<a href="http://www.hadyaiinternet.com/images/inetcafe.swf" target="_blank" rel="noopener noreferrer" class="bbc_link bbc_flash_disabled new_win">http://www.hadyaiinternet.com/images/inetcafe.swf</a>


There are no comments for this topic. Do you want to be the first?