This content has been marked as final. Show 2 replies
boot up the system from the cdrom again, then run "df -k" to see what mounts there are, there is a slight chance that your cd-rom uses the scsi target associated with /dev/dsk/c0t0d0s0, or that it for some reason already has been mounted.
Alternativly, you could use the following proceedure to determine the path to your root disk;
run "format", this will show the disks available on your system, if you only have one disk, the output could look like this:
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
Specify disk (enter its number):
.. in this case the root partition is most likely on c0t0d0s0 (where s0 -> slice (or partition) 0 and is the most common place for your root partition).
If you cant find it there, go back to format, select the disk by typing "0", then view the partition table by first typing "part" then "print". The root partition normally have the tag "root" written to it. Once you see the partion number you mount it using:
mount /dev/dsk/<cXtXdX number as given by format>sX
If you have multiple disks, you have to view their different partition tables to find your "root" partition..
That was it!
When booting from CD, the device was named /c1/t0/d0 rather than /c0/t0/d0.
I found this by using the 'format' command, as recommended.
I was able to mount /dev/dsk/c1/t0/d0/s0 and fix the original problem in /etc/passwd.
Thank you very much for your help!