Mounting partition from VDI fixed-size image

Discussions related to using VirtualBox on Linux hosts.
Post Reply
przemoc
Posts: 32
Joined: 4. Sep 2008, 16:02
Primary OS: MS Windows other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux, Windows, DragonFlyBSD, FreeBSD, NetBSD, OpenBSD
Location: Poland

Mounting partition from VDI fixed-size image

Post by przemoc »

Hi,

I write mini how-to about mounting partition from VDI fixed-size image:
http://wiki.przemoc.net/tips/linux#moun ... size_image
It requires only basic shell tools.

I hope you'll find it useful.
Desktop: NUC11PHKi7C [Core i7-1165G7 @ 2.80GHz, DDR4-3200 32GB RAM, GeForce RTX 2060, M.2 NVMe SSD 2TB] | 32UN880-B
Laptop: ThinkPad T430 (2344-56G) [Core i7 3520M @ 2.9GHz, DDR3-1600 8GB RAM, NVS 5400M, SATA3 SSD 512GB]
przemoc
Posts: 32
Joined: 4. Sep 2008, 16:02
Primary OS: MS Windows other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux, Windows, DragonFlyBSD, FreeBSD, NetBSD, OpenBSD
Location: Poland

Post by przemoc »

Update:
fdisk was permanently replaced with more reliable sfdisk.

Sorry for inconvenience.
Desktop: NUC11PHKi7C [Core i7-1165G7 @ 2.80GHz, DDR4-3200 32GB RAM, GeForce RTX 2060, M.2 NVMe SSD 2TB] | 32UN880-B
Laptop: ThinkPad T430 (2344-56G) [Core i7 3520M @ 2.9GHz, DDR3-1600 8GB RAM, NVS 5400M, SATA3 SSD 512GB]
przemoc
Posts: 32
Joined: 4. Sep 2008, 16:02
Primary OS: MS Windows other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux, Windows, DragonFlyBSD, FreeBSD, NetBSD, OpenBSD
Location: Poland

Re: Mounting partition from VDI fixed-size image

Post by przemoc »

Update:
Added usage of my new shared library - vdiwrap.

If you're interested why I created vdiwrap:
http://news.przemoc.net/2009/03/using-s ... image.html

If you're interested in technique, which I have used for skipping VDI header in sfdisk:
http://troves.przemoc.net/2009/03/inter ... calls.html

If you're interested in vdiwrap alone:
http://wiki.przemoc.net/snippets/c#vdiwrap.c

No warranty. Use it at your own risk!
Desktop: NUC11PHKi7C [Core i7-1165G7 @ 2.80GHz, DDR4-3200 32GB RAM, GeForce RTX 2060, M.2 NVMe SSD 2TB] | 32UN880-B
Laptop: ThinkPad T430 (2344-56G) [Core i7 3520M @ 2.9GHz, DDR3-1600 8GB RAM, NVS 5400M, SATA3 SSD 512GB]
Post Reply