How can I use a disk partition on Solaris 2.x which was previously dedicated to MS Windows 9x/ME/NT/2K/XP (or other OS) as dual boot?

How can I use a disk partition on Solaris 2.x which was previously dedicated to MS Windows 9x/ME/NT/2K/XP (or other OS) as dual boot?

On Solaris 2.x, use fdisk to find your disk partition table.
For example, on an ATAPI drive,


# fdisk /dev/rdsk/c0d0p0


would show something like the following:


Total disk size is 524 cylinders
Cylinder size is 16065 (512 byte) blocks
Cylinders
Partition Status Type Start End Length %
========= ====== ============ ===== === ====== ===
1 Solaris 0 260 261 50
2 Active Solaris 261 522 262 50


Where "Partition 1" was used for Windows 95. It was deleted and recreated
with "Solaris" type.


Make a ufs filesystem on the partition. (You can not subdivide this
fdisk partition into Solaris slices).

For example,


# mkfs -F ufs /dev/rdsk/c0d0p1 4192965


where number 4192965 = 261 * 16065 is the total number of blocks on
this partition, calculated as the cylinder length on this partition
(261 from the above partition table) times the cylinder size (16065
blocks as shown in the header of the partition table.)


Mount the filesystem as usual.
For example:


# mount /dev/dsk/c0d0p1 /export/home


[Thanks to Michael Wang. Reference: Sun Microsystems INFODOC ID: 13142]





Home
FAQ