I was conducting a modest experiment in "legacy free" portable storage
using a 4Gb SanDisk U3 Cruzer Micro USB 2.0 flash drive. Using a
32-bit Windows Vista system I created a GUID Partition Table and seven
256Mb partitions. I used the command line FORMAT command to create
UDF filesystems on the first five partitions with revisions 1.02;
1.50; 2.00; 2.01 and 2.50 respectively.
Next I took the flash drive to a Linux system which recognised all the
partitions (but none of the empty UDF filesystems). The last
partition was then formatted with mkudffs (from udftools).
Now the OpenSolaris bit. I tried the flash drive on both sparc and
x86 using Solaris Express build 64a. Using prtvtoc(1M) shows all
seven 256Mb partitions and a small control partition (see below). The
s1 and s2 partitions could be mounted as udfs but wouldn't allow files
or directories to be created. Using "mkfs -F udfs" successfully
created a filesystem on the s6 partition which was later recognised by
Windows Vista which was able to add a file and directory to it. Back
on OpenSolaris the file could be read successfully.
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!
There appear to be a few rough corners with the combination of gpt and
udfs. For example, the fstyp(1M) for udfs appears to recogise a VTOC
but not a GPT.
--
John Connett
======================================================================
# prtvtoc /dev/rdsk/c1t1d0s0
* /dev/rdsk/c1t1d0s0 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
#
======================================================================
_______________________________________________
storage-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/storage-discuss