First, log in as root, then create a place to mount the Windows partition, e.g.:
mkdir /mnt/windows
Next, find out which partition number has Windows in it using the format
utility. Unlike the utility of the same name in Windows, this is an interactive
menu-driven utility that also allows you to call Solaris' version of fdisk to
read the partition information off the disk.
The following is a screen dump of what was produced when I ran format then used
the fdisk command within it to display disk zero's partition table. I typed
"format", then "0" (number zero), then "fdisk", as shown below:
# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0d0 <DEFAULT cyl 1910 alt 2 hd 255 sec 63>
/pci at 0,0/pci-ide at d/ide at 0/cmdk at 0,0
Specify disk (enter its number): 0
selecting c0d0
Controller working list found
[disk formatted, defect list found]
Warning: Current Disk has mounted partitions.
/dev/dsk/c0d0s0 is currently mounted on /. Please see umount(1M).
/dev/dsk/c0d0s1 is currently used by swap. Please see swap(1M).
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
fdisk - run the fdisk program
repair - repair a defective sector
show - translate a disk address
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format> fdisk
Warning: Current Disk has mounted partitions.
Total disk size is 4865 cylinders
Cylinder size is 16065 (512 byte) blocks
Cylinders
Partition Status Type Start End Length %
========= ====== ============ ===== === ====== ===
1 IFS: NTFS 1913 3203 1291 27
2 Linux native 3270 4864 1595 33
3 Active Solaris2 1 1912 1912 39
4 Solaris 3204 3269 66 1
SELECT ONE OF THE FOLLOWING:
1. Create a partition
2. Specify the active partition
3. Delete a partition
4. Change between Solaris and Solaris2 Partition IDs
5. Exit (update disk configuration and exit)
6. Cancel (exit without updating disk configuration)
Enter Selection:
Unfortunately for me, Solaris won't access my NTFS Windows partition without
help from 3rd party utilities. It *will* however access FAT and FAT32
partitions. So if your Windows partition was also partition 1 as in the above
example, but happened to use FAT32, you would use the following command to
mount it:
mount -F pcfs /dev/dsk/c0d0p0 /mnt/windows
Notice that the fdisk utility numbers partitions starting from 1, whereas
Solaris' device names start from 0 (zero). Don't ask me why - they just do.
Also, you will see that the "t0" part of the device name (which specifies the
"target") is not present for IDE disks.
[For reference, the definition of each element in the above device name is as
follows:
c0: controller zero. If you only have IDE controllers in your system and no
SCSI or SATA, then the primary IDE channel will be c0, and the secondary
channel c1 .
d0: disk zero. On IDE controllers, disk zero is the master, disk one (d1) is
the slave.
p0: partition zero. The partitions are numbered from zero to three (p0, p1, p2,
p3). Solaris does not currently support secondary (also known as "logical")
partitions - only primary (or "physical") partitions.]
See the man page for vfstab (type "man vfstab") for details of how to make this
persist across reboots. Basically you would add an entry for this mount to
/etc/vfstab (the equivalent of /etc/fstab on Linux).
Cheers
Andrew.
This message posted from opensolaris.org