How to mount ovm3.x guest disk to ovms

Hi,
we face a problem regarding a system.img from an ovms(ol5.9)
So I will check parts of the fs and need to mount the system.img(ovms guest disk image) to the local file system.
In ovm2.x I need to to use lomount but in ovm3.x there is no command like that.
Does anyone can tel me how to mount an ovmguest image ?
Thanks *T

Yes sure !
#>cat /etc/redhat-release
Oracle VM server release 3.2.3
2. OVM3.X
Shut down OVM Guest first !
2.1 get start block for Partitions
#>fdisk -lu 0004fb0000120000483d3c7957d2f126.img
0004fb0000120000483d3c7957d2f126.img1   *          63 208844      104391   83  Linux
  0004fb0000120000483d3c7957d2f126.img2          208845 20964824    10377990   83  Linux
2.2 Mount
#>mount -o loop,offset=106928640 0004fb0000120000483d3c7957d2f126.img /root/disk_image/
offset = start block * 512
  208845*512=106928640
Greetings Till

Similar Messages

  • How to mount USB & CDROM drives from single user mode - Solaris boot disk?

    Hi All,
    I need to carry out ufsrestore on a single newly replaced system disk (no redundancy / mirroring) from either USB or CDROM drives from the following steps:
    ( i ) GRUB => e, e, cdrom –s, Enter, b (boot from Solaris 10 x86 media).
    ( ii ) Choose menu 1 for Install Solaris Interactive Mode to reach single user mode.Below are the commands that I have tried in single user mode without success:
    mount –r –F pcfs /dev/dsk/c1t0d0p0 /cdrom (after unmount Solaris CD)
      mount: /dev/dsk/c1t0d0p0 is not a DOS filesystem.
    svcadm –v enable smserver
      svcadm: Pattern ‘smserver’ doesn’t match any instances
    svcadm enable autofs
      svcadm: Pattern ‘autofs’ doesn’t match any instances
    devfsadm
      devfsadm: mkdir failed for /dev 0s1ed: Read-only file system
    mkdir /mnt
      mkdir: Failed to make directory “/mnt”; Read-only file systemPart of the problem is due to the current READ ONLY filesystems which does not allow the creation of mount point such as /mnt.
    I have been able to create both / root (/dev/dsk/c1t0d0s0) and /export/home (/dev/dsk/c1t0d0s0) filesystems with newfs that are awaiting for restore using ufsrestore.
    The only option I am left with is to attach a secondary disk to install Solaris 10 on either of them before bring the system to multi-user mode so that service such as volmgt, autofs, volfs are available to access USB & CDROM drives.
    Any suggestion on how to resolve this issue?
    Many thanks,
    Jack

    Hi JKGN,
    Is the directory a located under the root filesystem. ie /a? Are there any other mount point for say USB drive as well? I am not in a position to try it out right now but will get back
    to you soon on whether /a exist or not.
    Btw, the last thing I managed to do on this system at the time was added a secondary 1TB internal disk with the intention to restore both / and /export/home data onto this disk while
    making use of all the disk device management services such as the following services only available in a fully installed Solaris system (both single & multi-user modes) installed on the
    primary disk:
    # svcs smserver
    STATE          STIME    FMRI
    online         Jun_08   svc:/network/rpc/smserver:default
    # svcs autofs
    STATE          STIME    FMRI
    online         Jun_08   svc:/system/filesystem/autofs:default
    # devfsadm
    # iostat -En
    c1t0d0           Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
    Vendor: ATA      Product: SAMSUNG HD321KJ  Revision: 0-11 Serial No: 
    Size: 320.07GB <320072932864 bytes>
    Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
    Illegal Request: 41 Predictive Failure Analysis: 0
    c0t0d0           Soft Errors: 0 Hard Errors: 5 Transport Errors: 0
    Vendor: PHILIPS  Product: DVD+-RW DVD8801  Revision: AD21 Serial 
    Size: 17.54GB <17538875392 bytes>
    Media Error: 0 Device Not Ready: 5 No Device: 0 Recoverable: 0
    Illegal Request: 10 Predictive Failure Analysis: 0
    c2t0d0           Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
    Vendor: JetFlash Product: Transcend 16GB   Revision: 1100 Serial No: 
    Size: 0.00GB <0 bytes>
    Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
    Illegal Request: 7 Predictive Failure Analysis: 0
    # rmformat
    Looking for devices...
         1. Volmgt Node: /vol/dev/aliases/cdrom0
            Logical Node: /dev/rdsk/c0t0d0s2
            Physical Node: /pci@0,0/pci-ide@1f,1/ide@0/sd@0,0
            Connected Device: PHILIPS  DVD+-RW DVD8801  AD21
            Device Type: DVD Reader/WriterHowever, I was disappointed that "iostat -En" has not found the secondary disk (1 TB) even though it was available earlier, for Solaris installation as the only disk on the same system.
    As a result, I am left with no option but the need to rebuild this system with only a single primary disk while in single user mode. However, the single user mode that I am in is the
    one from Solaris installation disk with restrictive (_cannot create folder for mount point or running disk management utilities_) capability such as those services just covered, compared to one from a completed Solaris installation system with full access to all filesystems and utilities / commands in general.
    I would very much value your assistance on how to mount both CD & USB in this restrictive limited Read Only OS (assume that it is running from memory) in order to get complete access to
    the blank primary disk so that full restore with ufsrestore could take place.
    Thanks in advance,
    Jack
    Edited by: 797805 on 9/06/2012 04:15

  • How can i make my local disk mounted peramently

    i want to share my local disk to the network but i have a bad problem....
    the problem is when i reboot my local station i must to mount more time the disk manually,,, can anyone have an idea about how can i share my patition without
    mount it for each reboot, in another word how can i make my disk mounted automatically on reboot
    thanks

    Depending on how it is being shared and how you mount it, you may just need to edit your vfstab file to have the nfs mount made 'permanent'. That, of course, assumes this is being done via nfs!

  • How can we find out the disk which is used for a mount point

    How can we find out the disk which is used for a mount point?
    one of our mount point(/u03/oracle/prod) was using high I/O and this was causing slowness in the server.
    I can see a disk operation error in errpt at the same time as below. Wanted to check whether the mount point /u03/oracle/prod is using the disk hdisk31
    $errpt|more
    IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION
    DXB78877 1125032114 T H hdisk31 DISK OPERATION ERROR
    OS version:AIX 6.1
    DB:11.2.0.2

    this is the output for cat /etc/filesystem
    /u02:
            dev             = /dev/fslv00
            vfs             = jfs2
            log             = /dev/loglv00
            mount           = true
            options         = rw
            account         = false
    /u01:
            dev             = /dev/fslv01
            vfs             = jfs2
            log             = /dev/loglv00
            mount           = true
            options         = rw
            account         = false

  • How to mount StorageTek 2530 disk to Solaris

    I have finished the setting in CAM for StorageTek 2530. How can I mount it to the file system in solaris? Is it possible to expand /export/home directory? Is it possible to concatenate a new RAID 5 from StorageTek 2530 to the original RAID 5 of /export/home?
    Thanks

    I got my air disk to mount. A little bit of legwork on my part and found the drive thru looking on my drive and shared folder. Definitely different than tiger.
    Here is my new problem. I moved some folders and files from my leopard mbp, but when I mount the same air disk on a mac mini g4 running tiger I can not see any of the folders (besides "shared") or any of their contents. Even the "shared" folder show nothing but empty.
    The only thing I did on the leopard machine was customize some of the folder icon styles, gave them more slick looking icons.

  • How to mount RAID disk with target mode

    Hi,
    On my Mac Pro I have 2x2TB HHD which I use as RAID 1.
    For maintenance I need now to access the HHD content from my macbook via FIreWIre target mode. On the macbook however I see the two HHD unmounted as two independent units, not as RAID 1.
    How can I safely mount my RAID 1 disk?

    I don't think you'll need another computer or eight hours of downtime. You didn't mention the size of your internal drive but I'd assume the 300gb external will hold it all. I'll also assume the external is a firewire drive, if it's not none of this will work.
    This is what I would do:
    1. Download Carbon Copy Cloner or SuperDuper to clone your remaining raid slice to the external 300gb drive, and make sure to check the "make bootable" box.
    2. In System Preferences set your startup disk to the external.
    3. Restart from the external.
    4. Run disk Utility to reformat your internal drive. At this point you're going to need to decide wether or not to set it up as a raid again. I don't think I would.
    5. Use Carbon Copy Cloner or SuperDuper to clone the external back onto your internal drive.
    6. System Prefs again to reset the startup drive to your internal.
    7. Restart and you should be good to go, and you've got your first backup done on your external.
    8. Devise and impliment a backup strategy. Do you need daily/weekly/monthly backups? You'll have to decide how much you can afford to lose if your main drive goes belly up. There are several programs that are easy to set up a backup schedule on, the above mentioned CCC and SuperDuper and a little app called Deja Vu which runs as a system preference pane, is very easy to set up and if I remember is free.
    Now, I say all of this not knowing what you do with your external drive to begin with. I am guessing that the raid was set up as a mirror to be a backup if the drive had problems....which is exactly where you are. Personally I would just format it as one drive and backup to the external. If the internal does actually fail you'll still have all your stuff and can run from the external until you replace the internal.
    Make sense? I know I rambled a bit but it's really easy.
    Dual 2.0, 4 GB, 2x160 GB , SuperDrive, 9800 SE, 20 Aluminum - 15 1.5 PB,   Mac OS X (10.4.5)  

  • How to mount Aiport Extreme Disk - Leopard

    Just got a miniStack v2. Added a 500gb PATA. Formated the disk while hooked up to my macbookpro. Then moved it to my Airport Extreme via USB. My MBP sees the drive when I open my Mac Harddrive under the shared tab>central station>minStack 500GB.
    What do I do now to mount the drive and start using it as backup, etc?
    Is there something that I need to enable somewhere like "mount all airport disk?" or something in the airport utility?

    I got my air disk to mount. A little bit of legwork on my part and found the drive thru looking on my drive and shared folder. Definitely different than tiger.
    Here is my new problem. I moved some folders and files from my leopard mbp, but when I mount the same air disk on a mac mini g4 running tiger I can not see any of the folders (besides "shared") or any of their contents. Even the "shared" folder show nothing but empty.
    The only thing I did on the leopard machine was customize some of the folder icon styles, gave them more slick looking icons.

  • How can I make a bootable disk for Mountain Lion?

    How can I make a bootable disk for Mountain Lion?

    Make Your Own Mountain/Lion Installer
    1. After downloading Mountain/Lion you must first save the Install Mac OS X Mountain/Lion application. After Mountain/Lion downloads DO NOT click on the Install button. Go to your Applications folder and make a copy of the Mountain/Lion installer. Move the copy into your Downloads folder. Now you can click on the Install button. You must do this because the installer deletes itself automatically when it finishes installing.
    2. Get a USB flash drive that is at least 8 GBs. Prep this flash drive as follows:
    Open Disk Utility in your Utilities folder.
    After DU loads select your flash drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, set the partition scheme to GUID then click on the OK button. Click on the Partition button and wait until the process has completed.
    Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    Set the format type to Mac OS Extended (Journaled.) Click on the Options button, check the button for Zero Data and click on OK to return to the Erase window.
    Click on the Erase button. The format process can take up to an hour depending upon the flash drive size.
    3. Locate the saved Mountain/Lion installer in your Downloads folder. CTRL- or RIGHT-click on the installer and select Show Package Contents from the contextual menu. Double-click on the Contents folder to open it. Double-click on the SharedSupport folder. In this folder you will see a disc image named InstallESD.dmg.
    4. Plug in your freshly prepared USB flash drive. You are going to clone the content of the InstallESD.dmg disc image to the flash drive as follows:
    Double-click on the InstallESD.dmg file to mount it on your Desktop.
    Open Disk Utility.
    Select the USB flash drive from the left side list.
    Click on the Restore tab in the DU main window.
    Select the USB flash drive volume from the left side list and drag it to the Destination entry field.
    Drag the mounted disc icon from the Desktop into the Source entry field.
    Double-check you got it right, then click on the Restore button.
    When the clone is completed you have a fully bootable installer that you can use without having to re-download Mountain/Lion.
    Note: The term Mountain/Lion used above means Lion or Mountain Lion.

  • How to mount a volume on an Ubuntu server in Finder?

    I am a newbe in such advanced functions, but I like to find solutions and it is hard for me to give up.
    I have a MacBook 13,3 and an Ubuntu server. I have managed to connect to the a USB printer connected to the server. But I have not found out how to mount the server in Finder, so that I can use an external disk connected with USB as a Time Machine disk.
    Can anyone help me, and please as simple and basic as possible :-)?

    so i'll admit that I haven't done this but it would seem that since Ubuntu includes Samba you could, from 'Finder' click cmd-k and type in smb://[the path to the share]
    that said I found this on the web:http://www.kremalicious.com/2008/06/ubuntu-as-mac-file-server-and-time-machine-v olume/
    instead of mounting the disk via Samba, it tries to use a more native approach.....that said, this definitely looks more involved.

  • How to mount USB Flash Drive

    Hello again Arch-Linux users,
    I always search google very hard and for months (off and on) I search for how to mount a USB Flash Drive.  Nothing ever work so I give up than try again months latter.  I don't want to give up anymore and that is why I join this forum.
    Here are some of the code I found on the net.  Some of these commands will only re-mount the entire Arch-Linux running system in  /mnt/usbstick.
    sudo mount -o rw,noauto,async,user,umask=1000 /dev/sda1 /mnt/usbstick
    ... don't work it only re-mount the entire system
    /dev/sda15 /mnt/usbstick  vfat   user,noauto,unhide   0      0
    ... don't work... I found nothing inside /mnt/usbstick
    mount -t vfat -o rw,nosuid,nodev,quiet,shortname=mixed,uid=1001,gid=100,umask=077,iocharset=utf8 /dev/sda1 /mnt/usbstick
    ... don't work... here is the error i get:
    mount: /dev/sda1 already mounted or /mnt/usbstick busy
    mount: according to mtab, /dev/sda1 is mounted on /
    It strange that most USB mount commands use the operating system partition itself- example: /dev/sda1 as the device for USB device, while others use /dev/cdrom for cd - /dev/dvd for dvd and /dev/fd0 for floppy.
    Could someone post the code that will easily mount a usb device under Arch_Linux.
    I'm using Arch-Linux core-64 (08-2009)
    Thanks in advance
    Last edited by sharris (2010-06-17 21:58:43)

    Thanks fsckd,
    I needed a rapid reply because I been wasting too much time not getting anything done because I needed to get pass this flash-drive thing.  I can now have a secure back-up in my pocket on USB to go.  Arch-Linux does it better for what I seen while just dd'ing on disk.
    ...lsusb
    Found it
    http://gd.tuwien.ac.at/linuxcommand.org … susb8.html
    Thanks demian,
    sdb is the location for my single hard-drive machine.  I saw it before in my list above but I changed it to sda1 because I knew no better.  I had no clue it represent a 2nd hard-drive for LINUX if one is not already present.
    This did it for me
    Thanks again

  • Can not able to mount ntfs external hard disk

    Hi
    Getting the below error when try to mount NTFS external harddisk
    Disk /dev/sdb: 1000.2 GB, 1000204885504 bytes
    255 heads, 63 sectors/track, 121601 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Device Boot Start End Blocks Id System
    /dev/sdb1 1 121602 976761558 7 HPFS/NTFS
    sudo mount -t ntfs /dev/sdb1 /media
    [root@devtest ~]# sudo mkdir /media/Skliros_Diskos
    [root@devtest ~]# sudo mount -t ntfs-3g /dev/sdb1 /media/Skliros_Diskos
    mount: unknown filesystem type 'ntfs-3g'
    Rgrds,

    Oracle Linux NTFS how-to:
    Oracle Linux NTFS how-to

  • How to mount linux hd?

    I just purchased a 2012 mac mini running osx 10.8.2.  I want to mount my old linux hard drive on it because this is where all of my data is stored.  Is this possible? if so how?

    I'm trying it now, After plugging in I get this message:
    "The distk you inserted was not readable by this computer."
    Followed by three options:
    -Initialize...
    -Ignore
    -Eject
    I try "Initialize..."
    The Disk Utility opens.
    The disk in question is listed on the disk utility as:
    500.11 GB Generic USB Disk Media
    -SMART Status is "not supported" (whatever that means)
    The disk has 2 "disks" below it, both are light grey, which I take it means something to the tune of "not mountable."
    One is called "disk1s1" and contains 497.05 GB.  The other is called "Linux Swap."  This contains 3.05 GB.  Selecting either of this and clicing the "mount" button in the Disk Utility does nothing, they continue to list "Not Mounted" as their "Mount Point."
    Is it possible to mount this Linux HD?

  • Terminal Command to Re-Mount an Unmounted Local Disk Partition?

    Hello,
    Does anyone know a terminal command (or applescript command) to re-mount an unmounted local disk partition? I know it can be done using the DiskUtility, but I would like to do it from the Terminal without launching another program.
    Using Tiger 10.4.5 on a G5
    Thanks,
    Tom
    G5 2.3 MHz dual core   Mac OS X (10.4.5)  

    Hi Tom,
       AppleScript will execute anything that you can exectute from the command line that isn't interactive but it won't execute it in the same way. By that I mean that the environment will be more vanilla. In this case the problem is that the path is rather basic. All you have to do is to use an absolute path to the script and it should work. Apple has a pretty good reference for the mechanism, Technical Note TN2065: do shell script in AppleScript.
       Is wakeonlan basically the same thing as waking upon receipt of a "magic packet"? I think you can easily make Mac OS X do that by itself. Just open System Preferences and the "Options" tab of the "Energy Saver" pane. Check the checkbox beside "Wake for Ethernet network administrator access".
    Gary
    ~~~~
       I gave my love an Apple, that had no core;
       I gave my love a building, that had no floor;
       I wrote my love a program, that had no end;
       I gave my love an upgrade, with no cryin'.
       How can there be an Apple, that has no core?
       How can there be a building, that has no floor?
       How can there be a program, that has no end?
       How can there be an upgrade, with no cryin'?
       An Apple's MOS memory don't use no core!
       A building that's perfect, it has no flaw!
       A program with GOTOs, it has no end!
       I lied about the upgrade, with no cryin'!

  • How can I do an startup disk with DiskWarriori included?

    How can I do an startup disk with DiskWarrior included?
    I want to do it with System 9.2.2. for those days that apperas an ? in the disk... buf!
    I did one but the Mac didn't recognize it...
    Thanks

    xjulia...
    Remember what I said earlier? ""The tricky parts... Then install your wanted version of Mac OS 9""...
    Install is a key word here.
    Launch your latest Mac OS 9 CD and run the Installer targeting the mounted image. I prefer to do a minimum universal install from within the installer. Uncheck items of no use. If your CD is an older version of Mac OS 9, run the following version of an updater. Same can be done to update your utilities so long as there is a updater available for the utility.
    <hr width="300">
    Copying an already installed System Folder, is a bit to be desired, as you have tons of manual trashing (fixing, weeding, etc.) to do.
    <--OR-->
    Bootable CDs normally contain a copy protected System Folder that is equivalent to fooling around with mother nature. It unfortunately leaves you with many CD cake boxes of coasters in the process.
    <hr width="300">
    By the way— A mounted image gets refreshed in a funny way. Drag the mounted image to the trash and "chug-chug". Click on the [your named].img file and a fresh image gets mounted. Just keep an eye on both as you get the feel.
    ...Ron

  • How to mount BTRFS subvolume?

    Hi all, I created a BTRFS volume in RAID 5 mode (label is 'raid5') across 3 raw disks (hdb, hdc, hdd) and mounted it in /media/raid5. I then created a few subvolumes including a 'home' subvolume. Prior to this, I had the whole system mounted in / on an ext4 partition.
    Question: How do I mount that raid5.home subvolume into /home, and the other subvolumes elsewhere?

    If you don't know how to mount a subvolume, you probably don't follow btrfs development very closely (read: at all).  That being the case, I just want to point out that btrfs is still often considered experimental, and the btrfs raid5/6 support is brand-spanking-new and considered entirely unstable.  So you should not be using it if you care at all about your data.  (But if you are using btrfs in the first place, you should have working, tested backups anyway, right?)
    For information more directly related to your question, please see the btrfs wiki. You should really read through that if you want to use btrfs anyway.  And I'm talking about https://btrfs.wiki.kernel.org not the btrfs page in the Arch wiki.  This question is about how to use one of the more basic functionalities of btrfs, so it is well documented, and the information can be found all over the internets.

Maybe you are looking for