Skip to content

XceptN’s Tech Stuff

All About Tech

Mounting an LVM Logical Volume in an Oracle VM Disk Image

Posted on September 15, 2008 By XceptN 1 Comment on Mounting an LVM Logical Volume in an Oracle VM Disk Image

# losetup /dev/loop0 System.img
# kpartx -a /dev/loop0
# ls -l /dev/mapper/loop0*
brw-rw—- 1 root disk 253, 0 Jul 14 19:57 /dev/mapper/loop0p1
brw-rw—- 1 root disk 253, 1 Jul 14 19:57 /dev/mapper/loop0p2

# file -s /dev/mapper/loop0p2
/dev/mapper/loop0p2: LVM2 (Linux Logical Volume Manager) , UUID: 7zKduhTHsMa3YD3t2gocYKUDGRP5QvW

# vgscan
Reading all physical volumes. This may take a while…
Found volume group “VolGroup00” using metadata type lvm2

# vgchange -a y VolGroup00
2 logical volume(s) in volume group “VolGroup00” now active

# lvdisplay
— Logical volume —
LV Name /dev/VolGroup00/LogVol00
VG Name VolGroup00
LV UUID YcNYud-4BXO-Ro6N-P7VW-yrLm-DDZT-oLGgAO
LV Write Access read/write
LV Status available
# open 0
LV Size 1.94 GB
Current LE 62
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:2

— Logical volume —
LV Name /dev/VolGroup00/LogVol01
VG Name VolGroup00
LV UUID pSyXMZ-8TXw-fwiw-m3re-Oi3I-0fch-mJ1Q5H
LV Write Access read/write
LV Status available
# open 0
LV Size 1.91 GB
Current LE 61
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:3

# mkdir -p /mnt/VolGroup00/LogVol00
# mount /dev/VolGroup00/LogVol00 /mnt/VolGroup00/LogVol00
# ls /mnt/VolGroup00/LogVol00
bin dev home lib lost+found misc opt root selinux sys usr
boot etc initrd lib64 media mnt proc sbin srv tmp var
#

OracleVM, storage

Post navigation

Previous Post: Is there a way to somehow mount a (shutdown) Xen disk image and browse files?
Next Post: New J2ME Project: GPSVoiceTag

Related Posts

udev: what, why, how? linux
How to Use “tcpdump” to Log OCFS2 Interconnect (o2net)? linux
How to Enable XenStore Tracing for Xen / OracleVM? OracleVM
Is there a way to somehow mount a (shutdown) Xen disk image and browse files? storage
Linux DVD9 to DVD5 desktop
HP QLogic Drivers development

Comment (1) on “Mounting an LVM Logical Volume in an Oracle VM Disk Image”

  1. Kaylee says:
    June 21, 2011 at 9:04 am

    Thanks alot – your answer solved all my problmes after several days struggling

    Reply

Leave a Reply to Kaylee Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Enabling “real-time-protection” with ClamAV on Ubuntu 24.04 Desktop for Palo Alto Networks Global Protect (PanGP) VPN
  • Dipping Toes into Nix Package Manager | Installing Freeplane
  • Fujitsu Workplace Protect Face Recognition Best Practices on Q704
  • Fujitsu STYLISTIC Q704 Fingerprint Scanner Problems
  • Two Generations of Computing Equipment…

Recent Comments

  1. r0cky on Fujitsu LIFEBOOK UH572 Ultrabook Touch Pad Review: Linux
  2. XceptN on Fujitsu LIFEBOOK UH572 Ultrabook Touch Pad Review: Linux
  3. r0cky on Fujitsu LIFEBOOK UH572 Ultrabook Touch Pad Review: Linux
  4. Kaylee on Mounting an LVM Logical Volume in an Oracle VM Disk Image
  5. Theron Conrey on Open Source Virtualization for Smaller Carbon Footprint

Archives

  • September 2025
  • June 2024
  • November 2014
  • October 2014
  • April 2014
  • March 2014
  • December 2012
  • November 2012
  • October 2010
  • April 2010
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008

Categories

  • blogging
  • communication
  • desktop
  • development
  • firmware
  • Fujitsu
  • gprs
  • gps
  • hardware
  • internet
  • java
  • kernel
  • keyboard
  • linux
  • masteryourbiz
  • mms
  • mobile
  • multimedia
  • network
  • OracleVM
  • palm
  • python
  • rokr e6
  • social media networking
  • storage
  • sysadm
  • tablet
  • twitter
  • virtualization
  • wap
  • windows
  • wordpress
  • xen

Copyright © 2026 XceptN’s Tech Stuff.

Powered by PressBook Masonry Dark