Folks,

I do have a question, that I hope, you can help me with...

I do have an old PC, with THREE disks:

        1. disk is totally given to Win95
        2. disk is totally givene to "files"
        3. disk is partitioned into three (four) partitions, hosting Win98,
           SuSE 7.2, SuSE 7.2 swap, and Solaris 7.

I now did boot Solaris on that box, and made "dumps" of the partitions as
follows:

        dd if=/dev/rdsk/c0t0d0p1 of=win95.raw bs=512
        dd if=/dev/rdsk/c0t1d0p1 of=temp.raw bs=512
        dd if=/dev/rdsk/c0t2d0p1 of=win98.raw bs=512
        dd if=/dev/rdsk/c0t2d0p2 of=suse72.raw bs=512
        dd if=/dev/rdsk/c0t2d0p4 of=solaris7.raw bs=512

Now, under OpenSolaris build 84, I try the following:

        lofiadm -a /path/to/win95.raw /dev/lofi/1
        VBoxManage internalcommands createrawvmdk -filename /path/to/win95.vmdk 
-rawdisk /dev/rlofi/1 -partitions 1

and do get:

# VBoxManage internalcommands createrawvmdk -filename 
/export/images/vbox_or_xvm/WIN95.vmdk -rawdisk /dev/rlofi/1 -partitions 1
VirtualBox Command Line Management Interface Version 1.5.51
(C) 2005-2008 innotek GmbH
All rights reserved.

Overlapping partitions. Aborting
Error reading the partition information from '/dev/rlofi/1'
# 

Or:

# VBoxManage internalcommands createrawvmdk -filename 
/export/images/vbox_or_xvm/WIN95.vmdk -rawdisk /dev/rlofi/1
VirtualBox Command Line Management Interface Version 1.5.51
(C) 2005-2008 innotek GmbH
All rights reserved.

Error while creating the raw disk VMDK: VERR_INVALID_PARAMETER
# 

So, I read the user-manual of the VirtualBox, and it seems, I really need the
whole disk images, and not only the images of the partitions. So, i guess, I
should have done:

        dd if=/dev/rdsk/c0t0d0p0 of=disk0.raw bs=512
        dd if=/dev/rdsk/c0t1d0p0 of=disk1.raw bs=512
        dd if=/dev/rdsk/c0t2d0p0 of=disk2.raw bs=512

Right?

So, my questions are:

Is the the only way to "handle" raw disks?
Or is there a way to re-use the "dump" of a partition as an image for
VirtualBox?

BTW: I can do the following:

# mkdir /a
# mount -F pcfs -o ro /dev/lofi/1 /a
# ls /a
ADOBEPS            Eigene Dateien     My Music           XWIN32
AUTOEXEC.BAT       Exchange           Neue Software.lnk  antje
Anti-Vir.Dat       GSview             PSP                default.set
BOOTLOG.PRV        IO.SYS             Programme          emacs
BOOTLOG.TXT        LEADVIEW           QTAKE              euracom
COMMAND.COM        LILO.TGZ           RECYCLED           gs
CONFIG.SYS         LOGO.SYS           SCANDISK.LOG       iomega
DBLSPACE.BIN       MACARONI           SCSI               liprefs.js
DETLOG.OLD         MPEG               SUHDLOG.DAT        psfonts
DETLOG.TXT         MSDOS.---          SYSTEM.1ST         sun
DINFO2             MSDOS.SYS          WINDOWS
DRVSPACE.BIN       MSOffice           WINPLAY3
# 

So, the file itself is a real dump of the FAT32 part of the disk!

Curious,
        Matthias

P.S.: Some more infos:

fdisk c0t0d0p0:

             Total disk size is 131 cylinders
             Cylinder size is 16065 (512 byte) blocks

                                               Cylinders
      Partition   Status    Type          Start   End   Length    %
      =========   ======    ============  =====   ===   ======   ===
          1       Active    DOS-BIG           0   130     131    100




fdisk c0t1d0p0:

             Total disk size is 131 cylinders
             Cylinder size is 16065 (512 byte) blocks

                                               Cylinders
      Partition   Status    Type          Start   End   Length    %
      =========   ======    ============  =====   ===   ======   ===
          1                 DOS-BIG           0   130     131    100




fdisk c0t2d0p0:

             Total disk size is 8188 cylinders
             Cylinder size is 1090 (512 byte) blocks

                                               Cylinders
      Partition   Status    Type          Start   End   Length    %
      =========   ======    ============  =====   ===   ======   ===
          1                 DOS-BIG           0  2726    2727     33
          2                 Linux native   2726  5231    2506     31
          3                 Solaris        5232  5453     222      3
          4       Active    Solaris        5453  8179    2727     33

(Remark: The small "Solaris" partition is the Linux Swap partition!)
-- 
***********************************************************************
Matthias Pfützner
Datacenter Ambassador
Solution Architect N1, High Availability
Systems Practice                      Tel: +49 6103 752-394 (x65394)
Sun Microsystems GmbH                 Mobile: +49 172 8428766
Ampèrestraße 6                        Fax: +49 6103 752-167
63225 Langen                          mailto:[EMAIL PROTECTED]
Germany                               http://blogs.sun.com/pfuetz
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Sitz der Gesellschaft:
Sun Microsystems GmbH, Sonnenallee 1, D-85551 Kirchheim-Heimstetten
Amtsgericht München: HRB 161028
Geschäftsführer: Thomas Schröder, Wolfgang Engels, Dr. Roland Bömer
Vorsitzender des Aufsichtsrates: Martin Häring
***********************************************************************
Sun auf der CeBIT 2008 - Wir freuen uns auf Ihren Besuch in Halle 2,
Stand B33 
Details unter: http://de.sun.com/cebit
***********************************************************************

_______________________________________________
vbox-users mailing list
[email protected]
http://vbox.innotek.de/mailman/listinfo/vbox-users
  • [vb... Matthias Pfützner - Data Center Ambassador - Strategy and Technology
    • ... Matthias Pfützner - Data Center Ambassador - Strategy and Technology
      • ... JD
        • ... Matthias Pfützne r - Data Center Ambassador - Strategy and Technology

Reply via email to