well...i found the answer....hopefully someone may benefits from my
answers....(but the present machine for experimentation is different
though).
On Wed, Nov 18, 2009 at 9:27 AM, Peter Teoh <htmldeveloper at gmail.com> wrote:
> I have two harddisk:
>
> AVAILABLE DISK SELECTIONS:
> ? ? ? 0. c7d1 <DEFAULT cyl 5871 alt 2 hd 255 sec 126>
> ? ? ? ? ?/pci at 0,0/pci-ide at 11/ide at 0/cmdk at 1,0
> ? ? ? 1. c8d0 <DEFAULT cyl 6078 alt 2 hd 255 sec 126>
> ? ? ? ? ?/pci at 0,0/pci-ide at 11/ide at 1/cmdk at 0,0
>
> and then fdisk on c8d0:
>
> ? ? ? ? ? ? Total disk size is 60800 cylinders
> ? ? ? ? ? ? Cylinder size is 32130 (512 byte) blocks
>
> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? Cylinders
> ? ? ?Partition ? Status ? ?Type ? ? ? ? ?Start ? End ? Length ? ?%
> ? ? ?========= ? ====== ? ?============ ?===== ? === ? ====== ? ===
> ? ? ? ? ?1 ? ? ? Active ? ?Solaris2 ? ? ? ? ?1 ?5874 ? ?5874 ? ? 10
format now gives:
AVAILABLE DISK SELECTIONS:
0. c8d0 <DEFAULT cyl 6373 alt 2 hd 255 sec 63>
/pci at 0,0/pci-ide at 1f,2/ide at 0/cmdk at 0,0
and format->fdisk now gives:
Cylinders
Partition Status Type Start End Length %
========= ====== ============ ===== === ====== ===
1 Linux native 6377 16575 10199 34
2 EXT-DOS 24225 30400 6176 20
3 NT volset 1 16576 24224 7649 25
4 Active Solaris2 1 6375 6375 21
and from above, prtvtoc /dev/rdsk/c8d0p0 gives:
* /dev/rdsk/c8d0p0 partition map
*
* Dimensions:
* 512 bytes/sector
* 63 sectors/track
* 255 tracks/cylinder
* 16065 sectors/cylinder
* 6375 cylinders
* 6373 accessible cylinders
*
* Flags:
* 1: unmountable
* 10: read-only
*
* Unallocated space:
* First Sector Last
* Sector Count Sector
* 0 16065 16064
*
* First Sector Last
* Partition Tag Flags Sector Count Sector Mount Directory
0 2 00 16065 102366180 102382244
2 5 01 0 102382245 102382244
8 1 01 0 16065 16064
So the disk partition number is 1,2,5 which is therefore
/dev/rdks/c8d0p1, /dev/rdks/c8d0p2, and /dev/rdks/c8d0p5 should be the
corresponding partition numbering.
>
>
> So there is only one partition?
>
> But doing fstyp /dev/dsk/c8d0s0 and /dev/dsk/c8d0s7 both gave ufs.
>
> And I was able to mount:
>
> /dev/dsk/c8d0s0 ? ? ? ?9.7G ? 9.4G ? 122M ? ?99% ? ?/export/home/solaris
> /dev/dsk/c8d0s7 ? ? ? ? 81G ? ?70G ? ?10G ? ?88% ? ?/t1
>
> Now I am quite confused, how many partition are there actually?
> "format" does not report all the partition? ? and most important, very
> often I see partition 1, 2, 3, 4, etc....from "format->fdisk" output,
> but then how does it correspond to /dev/dsk/cXXXXsYYY's slice
> numbering? (and/or how does these mapped to the partition number:
> /dev/dsk/cXXXXpYYYY?)
>
> And from /dev/dsk/cXXXXp0 --> what does that partition mapped to? ? or
> rather the purpose of this partition?
>
> Sorry for these barrage of newbie question :-).....appreciate very
> much any help rendered :-).
>
> --
> Regards,
> Peter Teoh
>
In general some useful references:
http://blogs.sun.com/observatory/entry/which_disk_devices_to_use
http://initialprogramload.blogspot.com/2008/07/how-solaris-disk-device-names-work.html
(the above URL have good information, but it also have a javascript
written to do auto-transition. Try to terminate the browser's (click
X on firefox) download after sufficient information have been
downloaded) :-).
Enjoy!
--
Regards,
Peter Teoh