Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > Sun Solaris Hardware

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2008, 10:45 AM
B. Loxton
 
Posts: n/a
Default USB 2.0 device won't mount on x86

Hi All,

I am running Solaris 9 4/03 on a Toshiba TE2100 laptop. I can
successfully mount and use my Apacer 256MB USB 1.1 flash ram device on
my laptop, but I cannot mount my Apacer 64MB USB 2.0 flash ram device.

The syntax that I am using is:

mount -F pcfs /dev/dsk/c2t0d0p0:1 /mnt

The error message that I receive is:

mount: /dev/dsk/c2t0d0p0:1 is not a DOS filesystem.

I am aware of the fact that the ":1" in the special device denotes the
DOS partition table to use. I have also tried ":2", ":3", ":4" and
":c". I am fairly sure that it HAS been formatted as a DOS partition
as it works fine on my XP box, and a "dd if=/dev/dsk/c2t0d0p0" show
"MSDOS5.0" along with a whole lot of garbage. I am also aware of the
fact that Solaris currently only supports USB 1.1. That's fine - I'd
just like to get this thing working as it is, if possible

If it helps, here is the output from "prtconf -Dv":

> storage, instance #0 (driver name: scsa2usb)
> Driver properties:
> name='scsi-selection-timeout' type=int items=1 dev=(65,0)
> value=000000fa
> name='scsi-options' type=int items=1 dev=(65,0)
> value=00001ff8
> name='scsi-watchdog-tick' type=int items=1 dev=(65,0)
> value=0000000a
> name='scsi-tag-age-limit' type=int items=1 dev=(65,0)
> value=00000002
> name='scsi-reset-delay' type=int items=1 dev=(65,0)
> value=00000bb8
> name='usb' type=int items=1 dev=none
> value=00000001
> Hardware properties:
> name='usb-product-name' type=string items=1
> value='USB Flash Drive'
> name='usb-serialno' type=string items=1
> value='07E100010450830'
> name='usb-num-configs' type=int items=1
> value=00000001
> name='usb-revision-id' type=int items=1
> value=00000100
> name='usb-product-id' type=int items=1
> value=0000b113
> name='usb-vendor-id' type=int items=1
> value=00001005
> name='compatible' type=string items=8
> value='usb1005,b113.100' + 'usb1005,b113' + 'usbif1005,class8.6.50' + 'usbif1005,class8.6' + 'usbif1005,class8' + 'usbif,class8.6.50' + 'usbif,class8.6' + 'usbif,class8'
> name='reg' type=int items=1
> value=00000001
> name='assigned-address' type=int items=1
> value=00000002
> disk, instance #1 (driver name: sd)
> Driver properties:
> name='pm-hardware-state' type=string items=1 dev=none
> value='needs-suspend-resume'
> name='ddi-kernel-ioctl' type=boolean dev=none
> Hardware properties:
> name='inquiry-revision-id' type=string items=1
> value='1.12'
> name='inquiry-product-id' type=string items=1
> value='Flash Drive'
> name='inquiry-vendor-id' type=string items=1
> value='USB'
> name='inquiry-device-type' type=int items=1
> value=00000000
> name='usb' type=boolean
> name='compatible' type=string items=1
> value='sd'
> name='lun' type=int items=1
> value=00000000
> name='target' type=int items=1
> value=00000000


Sorry for the long post!

Any help muchly appreciated.

Regards,
Bruce
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-16-2008, 10:45 AM
Juergen Keil
 
Posts: n/a
Default Re: USB 2.0 device won't mount on x86

bloxton@powerup.com.au (B. Loxton) writes:

> I cannot mount my Apacer 64MB USB 2.0 flash ram device.
>
> The syntax that I am using is:
>
> mount -F pcfs /dev/dsk/c2t0d0p0:1 /mnt
>
> The error message that I receive is:
>
> mount: /dev/dsk/c2t0d0p0:1 is not a DOS filesystem.
>
> I am aware of the fact that the ":1" in the special device denotes the
> DOS partition table to use. I have also tried ":2", ":3", ":4" and
> ":c".


Maybe the device isn't formatted like a DOS HDD, but is formatted like
a "floppy", i.e. it does not use an FDISK partition table?

What does the solaris fdisk command report:

# fdisk -W- /dev/rdsk/c2t0d0p0

Does it list a DOS/WINDOWS fdisk partition? Something like this
(example for a 250MB ZIP media, with FDISK partition):

* systid:
....
* 6: DOSBIG
....
* Id Act Bhead Bsect Bcyl Ehead Esect Ecyl Rsect Numsect
6 128 1 1 0 63 32 238 32 489440


A dump of the first sector could be interesting, too. It contains the
FDISK partition table. What does the following command print for your
Apacer 64MB device? Does the dump end with a word "aa55", indicating a
valid fdisk partition table sector?

# dd if=/dev/rdsk/c2t0d0p0 count=1 | od -x | tail -8


(If it's formatted like a floppy, then the mount command
"mount -F pcfs /dev/dsk/c2t0d0p0 /mnt" should work)


> I am fairly sure that it HAS been formatted as a DOS partition
> as it works fine on my XP box, and a "dd if=/dev/dsk/c2t0d0p0" show
> "MSDOS5.0" along with a whole lot of garbage.


OK, so if Solaris can read from the device using dd it probably isn't
an USB driver problem.

You could be using the wrong fdisk partition with the mount command;
or the Solaris pcfs filesystem is somehow incompatible with the
filesystem on the Apacer 64MB device; or ...


> I am also aware of the fact that Solaris currently only supports USB 1.1.


That shouldn't be a problem, USB 2.0 devices are backwards compatible
with USB 1.1.

Your system probably doesn't have an USB 2.0 host controller driver
installed (= EHCI), so the usb controller will run in USB 1.1 mode
(= UHCI on Solaris x86).

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-16-2008, 10:45 AM
B. Loxton
 
Posts: n/a
Default Re: USB 2.0 device won't mount on x86

Juergen Keil <jk@tools.de> wrote in message news:<wyznjcdkl5.fsf@tools.de>...
>
> Maybe the device isn't formatted like a DOS HDD, but is formatted like
> a "floppy", i.e. it does not use an FDISK partition table?
>
> What does the solaris fdisk command report:
>
> # fdisk -W- /dev/rdsk/c2t0d0p0


The output of the fdisk command really looks messy:

* /dev/rdsk/c2t0d0p0 default fdisk table
* Dimensions:
* 512 bytes/sector
* 258 sectors/track
* 10 tracks/cylinder
* 49 cylinders
*
* systid:
* 1: DOSOS12
* 2: PCIXOS
* 4: DOSOS16
* 5: EXTDOS
* 6: DOSBIG
* 7: FDISK_IFS
* 8: FDISK_AIXBOOT
* 9: FDISK_AIXDATA
* 10: FDISK_0S2BOOT
* 11: FDISK_WINDOWS
* 12: FDISK_EXT_WIN
* 14: FDISK_FAT95
* 15: FDISK_EXTLBA
* 18: DIAGPART
* 65: FDISK_LINUX
* 82: FDISK_CPM
* 86: DOSDATA
* 98: OTHEROS
* 99: UNIXOS
* 101: FDISK_NOVELL3
* 119: FDISK_QNX4
* 120: FDISK_QNX42
* 121: FDISK_QNX43
* 130: SUNIXOS
* 131: FDISK_LINUXNAT
* 134: FDISK_NTFSVOL1
* 135: FDISK_NTFSVOL2
* 165: FDISK_BSD
* 167: FDISK_NEXTSTEP
* 183: FDISK_BSDIFS
* 184: FDISK_BSDISWAP
* 190: X86BOOT
*

* Id Act Bhead Bsect Bcyl Ehead Esect Ecyl Rsect
Numsect
114 111 116 40 357 32 45 357 778135908
1141509631
101 105 115 43 288 114 50 367 168689522
1936028240
121 115 32 33 366 32 43 357 1869881465
1936028192
13 116 97 50 372 10 0 0 0
-657740800

In fact, upon looking at this, I assumed that it must be corrupt as
half of the id's don't even exist (not even in fdisk.h). However, as
I mentioned, this device does work quite well under XP!

> A dump of the first sector could be interesting, too. It contains the
> FDISK partition table. What does the following command print for your
> Apacer 64MB device? Does the dump end with a word "aa55", indicating a
> valid fdisk partition table sector?
>
> # dd if=/dev/rdsk/c2t0d0p0 count=1 | od -x | tail -8


0000620 0b5e 7549 f806 41c3 00bb 6000 6a66 eb00
0000640 4eb0 4c54 5244 2020 2020 2020 0a0d 6552
0000660 6f6d 6576 6420 7369 736b 6f20 2072 746f
0000700 6568 2072 656d 6964 2e61 0dff 440a 7369
0000720 206b 7265 6f72 ff72 0a0d 7250 7365 2073
0000740 6e61 2079 656b 2079 6f74 7220 7365 6174
0000760 7472 0a0d 0000 0000 0000 ac00 d8cb aa55
0001000

> (If it's formatted like a floppy, then the mount command
> "mount -F pcfs /dev/dsk/c2t0d0p0 /mnt" should work)


Tried that - doesn't work. (Same "not a DOS filesystem" error
message.)

> Your system probably doesn't have an USB 2.0 host controller driver
> installed (= EHCI), so the usb controller will run in USB 1.1 mode
> (= UHCI on Solaris x86).


You're right, output of "prtconf -pv|grep 000c03" indicates that I
have UHCI only, ie class-code 000c0300.

Any ideas where I go from here? Many thanks for your help so far.

Bruce
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-16-2008, 10:45 AM
Juergen Keil
 
Posts: n/a
Default Re: USB 2.0 device won't mount on x86

bloxton@powerup.com.au (B. Loxton) writes:

> Juergen Keil <jk@tools.de> wrote in message news:<wyznjcdkl5.fsf@tools.de>...


> > What does the solaris fdisk command report:


> The output of the fdisk command really looks messy:
>
> * Id Act Bhead Bsect Bcyl Ehead Esect Ecyl Rsect
> Numsect
> 114 111 116 40 357 32 45 357 778135908
> 1141509631
> 101 105 115 43 288 114 50 367 168689522
> 1936028240
> 121 115 32 33 366 32 43 357 1869881465
> 1936028192
> 13 116 97 50 372 10 0 0 0
> -657740800


> > # dd if=/dev/rdsk/c2t0d0p0 count=1 | od -x | tail -8

> 0000660 6f6d 6576 6420 7369 736b 6f20 2072 746f
> 0000700 6568 2072 656d 6964 2e61 0dff 440a 7369
> 0000720 206b 7265 6f72 ff72 0a0d 7250 7365 2073
> 0000740 6e61 2079 656b 2079 6f74 7220 7365 6174
> 0000760 7472 0a0d 0000 0000 0000 ac00 d8cb aa55
> 0001000



OK, the magic signature word is present (so the system BIOS is allowed
to try to boot from that sector), but the fdisk partition table is
filled with text strings.

So, there are *no* usable fdisk partitions defined, you can only try
to mount something from the "whole disk" device c2t0d0p0.


> > (If it's formatted like a floppy, then the mount command
> > "mount -F pcfs /dev/dsk/c2t0d0p0 /mnt" should work)

>
> Tried that - doesn't work. (Same "not a DOS filesystem" error
> message.)


Too bad. (I don't know for sure if the solaris pcfs filesystem
allows mounting of a fat filesystem from the sd driver's ...p0
device; never tried that...)


Is "fstyp -v /dev/dsk/c2t0d0p0" able to identify a supported
filesystem format on the ...p0 device? Maybe it's not a FAT
filesystem, but an UDFS (or an apple HFS filesystem, if the device
comes from a Macintosh)?


What does "fsck -n -F pcfs /dev/rdsk/c2t0d0p0" report?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-16-2008, 10:46 AM
Juergen Keil
 
Posts: n/a
Default Re: USB 2.0 device won't mount on x86

bloxton@powerup.com.au (B. Loxton) writes:

> > A dump of the first sector could be interesting, too. It contains the
> > FDISK partition table. What does the following command print for your
> > Apacer 64MB device? Does the dump end with a word "aa55", indicating a
> > valid fdisk partition table sector?
> >
> > # dd if=/dev/rdsk/c2t0d0p0 count=1 | od -x | tail -8

>
> 0000620 0b5e 7549 f806 41c3 00bb 6000 6a66 eb00


Converted to ASCII...

0000620 ^ 013 I u 006 ø Ã A » \0 \0 ` f j \0 ë
0000640 ° N T L D R \r \n R e
0000660 m o v e d i s k s o r o t
0000700 h e r m e d i a . ÿ \r \n D i s
0000720 k e r r o r ÿ \r \n P r e s s
0000740 a n y k e y t o r e s t a
0000760 r t \r \n \0 \0 \0 \0 \0 \0 \0 ¬ Ë Ø U ª

Converting that data to ASCII reveals the strings "NTLDR", and this
seems to be a strong hint pointing at a Windows NT "NTFS" filesystem.

Was this device formatted under Windows NT, using some variant of
NTFS?

This would explain why the device cannot be mounted on solaris,
because solaris doesn't have ntfs filesystem support.

Time to reformat the device using a FAT filesystem, it seems ...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:47 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
UnixAdminTalk.com

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871