On Fri, 2007-06-01 at 12:03 +0800, yu larry liu wrote: > > The strange thing is that there are working device files for s0 > > through to s6 but not for s7: > > > > bash-3.00# dd if=/dev/rdsk/c1t1d0s7 of=/dev/null count=4 > > dd: /dev/rdsk/c1t1d0s7: open: No such file or directory > > bash-3.00# dd if=/dev/dsk/c1t1d0s7 of=/dev/null count=4 > > dd: /dev/dsk/c1t1d0s7: open: No such file or directory > > > > It feels like an off-by-one error in the handling of the GUID Parition > > Table but there might be other explanations! > > > > > I believe this is not off-by-one error. Slice 7 in EFI label is used to > represent whole disk in Solairs. Minor node "h" is not created. Instead, > "wd" is created. If you run ls -l /dev/rdsk/c1t1d0*, you will see this.
Many thanks for the clarification, Larry! However, I am still puzzled. Output from ls(1) and prtvtoc(1M) on a sparc system are given below. Note that there is no s7 or s8. On an x86 system the prtvtoc(1M) output is the same except that c4 is replaced by c3. The ls(1) output contains s0 through to s15 with s7 missing. All of the devices from s0 through s6 were able to access data. None of the devices from s8 through s15 were able to access data. From your comments I was expecting the s8 device to access data on the last partition. /usr/include/sys/efi_partiton.h defines EFI_NUMPAR as 9 under the comment "Number of EFI partitions". http://en.wikipedia.org/wiki/GUID_Partition_Table suggests that Windows uses a partition table with 128 slots. What are the limits on GPT in OpenSolaris? It seems strange that a format that is able to support up to 128 partitions should be limited to six ... -- John Connett ====================================================================== Script started on 1 June 2007 09:07:06 BST # uname -a SunOS tequila 5.11 snv_64a sun4u sparc SUNW,Sun-Blade-100 # ls -l /dev/rdsk/c4t0d0s* lrwxrwxrwx 1 root root 55 May 29 13:53 /dev/rdsk/c4t0d0s0 -> ../../devices/[EMAIL PROTECTED],0/[EMAIL PROTECTED],3/[EMAIL PROTECTED]/[EMAIL PROTECTED],0:a,raw lrwxrwxrwx 1 root root 55 May 29 13:53 /dev/rdsk/c4t0d0s1 -> ../../devices/[EMAIL PROTECTED],0/[EMAIL PROTECTED],3/[EMAIL PROTECTED]/[EMAIL PROTECTED],0:b,raw lrwxrwxrwx 1 root root 55 May 29 13:53 /dev/rdsk/c4t0d0s2 -> ../../devices/[EMAIL PROTECTED],0/[EMAIL PROTECTED],3/[EMAIL PROTECTED]/[EMAIL PROTECTED],0:c,raw lrwxrwxrwx 1 root root 55 May 29 13:53 /dev/rdsk/c4t0d0s3 -> ../../devices/[EMAIL PROTECTED],0/[EMAIL PROTECTED],3/[EMAIL PROTECTED]/[EMAIL PROTECTED],0:d,raw lrwxrwxrwx 1 root root 55 May 29 13:53 /dev/rdsk/c4t0d0s4 -> ../../devices/[EMAIL PROTECTED],0/[EMAIL PROTECTED],3/[EMAIL PROTECTED]/[EMAIL PROTECTED],0:e,raw lrwxrwxrwx 1 root root 55 May 29 13:53 /dev/rdsk/c4t0d0s5 -> ../../devices/[EMAIL PROTECTED],0/[EMAIL PROTECTED],3/[EMAIL PROTECTED]/[EMAIL PROTECTED],0:f,raw lrwxrwxrwx 1 root root 55 May 29 13:53 /dev/rdsk/c4t0d0s6 -> ../../devices/[EMAIL PROTECTED],0/[EMAIL PROTECTED],3/[EMAIL PROTECTED]/[EMAIL PROTECTED],0:g,raw # prtvtoc /dev/rdsk/c4t0d0s0 * /dev/rdsk/c4t0d0s0 partition map * * Dimensions: * 512 bytes/sector * 8013824 sectors * 8013757 accessible sectors * * Flags: * 1: unmountable * 10: read-only * * Unallocated space: * First Sector Last * Sector Count Sector * 65570 94 65663 * 3735680 4278110 8013789 * * First Sector Last * Partition Tag Flags Sector Count Sector Mount Directory 0 16 00 34 65536 65569 1 17 00 65664 524288 589951 2 17 00 589952 524288 1114239 3 17 00 1114240 524288 1638527 4 17 00 1638528 524288 2162815 5 17 00 2162816 524288 2687103 6 17 00 2687104 524288 3211391 7 17 00 3211392 524288 3735679 # exit script done on 1 June 2007 09:07:42 BST ====================================================================== _______________________________________________ storage-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/storage-discuss
