How to access a solaris partition

Hi,

I have the present scenario on a x86 machine.

fdisk c0d0p0

                                                      Cylinders

Partition Status Type Start End Length %
1 Active Solaris2 1 2500 2500 61
2 Solaris2 2501 4094 1594 39

Now how do i access the 2 partition.

Thanks

Normally with Solaris you deal with slices.

So, for example, what is your / mounted on?

/dev/dsk/c0d0s0?

and possibly a separate /export/home on /dev/dsk/c0d0s7.

However i386 based PCs use the term 'partitions' so Solaris lets you reference these as

/dev/dsk/c0d0p0 etc.

so in theory your 2nd partition on the 1st disk should be

/dev/dsk/c0d0p1

I do have

/dev/dsk/c0d0s0 mounted as /
/dev/dsk/c0d0s7 mounted as /export/home

On trying to mount c0d0p1

mount /dev/dsk/c0d0p1 /mnt/a
mount: /dev/dsk/c0d0p1 is not this fstype :confused:

Now what shal i do :frowning:

Have you created a file system in the 2nd partition?

See my first post.

Its a Solaris2 type. :rolleyes:

Just because a partition is of a certain type does not mean the partition has been formatted etc. :rolleyes: It merely means that the magic number in the main boot record is set to a specific number.

So shall i create one with mkfs :confused:

I honestly don't know. Solaris normally works on the concept of slices, rather like IRIX, NetBSD etc. It would actually have been better to give the whole disk to Solaris, rather than having partitions. What you must do is confirm absolutely that no other slice overlaps this 2nd partition.

That i am sure,

As will installing it asked me to create the above 2 slices on partition one.
I thought something would come for partition 2 also, but nothing came up. :eek:

And i am stuck now. :frowning:

This will happen when you install Solaris on a x86 system. Before install, even before creating the slices, the install program will ask if you want to partition the hard disk using fdisk. There, if you choose not to, you will get the entire disk for Solaris installation. The partition that you have created is a hard partition not a slice. You can install another OS on the other partition.

You could do a backup and reinstall the OS from scratch again...

  1. As it's always good to be confident installing an OS.

  2. Put the first installation down as a practice run.

  3. Let's you rehearse your backup/restore procedure.

Even though i install another OS in the other partition, how can i access that partition afterwards. :confused:

Everything here is practice, as i am just trying to figure out things and the installation is being done on a VmWare. :slight_smile:

The partition has to be in a format that Solaris would understand. So if you put Windows on it and you want Solaris to be able to read/write that partition you would have to be using FAT32, not NTFS, as Solaris does not support NTFS.

Similarly the magic id in the main-boot-record would indicate that the partition was a DOS or Windows one. Yours seems to say it's a Solaris partition.

Right now i haven't installed any other OS.

Via fdisk , created a partition while installing the Solaris, and its Solaris2 type right now.