The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

форумы  помощь  поиск  регистрация  майллист  ВХОД  слежка  RSS
"Проблема с монтированием USB Flash Disk во FreeBSD (+)"
Вариант для распечатки Архивированная нить - только для чтения! 
Пред. тема | След. тема 
Форумы OpenNET: Виртуальная конференция (Public)
Изначальное сообщение [Проследить за развитием треда]

"Проблема с монтированием USB Flash Disk во FreeBSD (+)"
Сообщение от hishnik emailИскать по авторуВ закладки on 20-Дек-03, 19:09  (MSK)
ОС FreeBSD 4.6.2
Ну значит проблема такова: купил я себе флешку (usb) ну и настрополился ее в юнихе примаунтить...пробую - ан нет в ядро umass не вкомпилил...перекомпилил ядро - все чудно : флешу втыкаешь - umass0 - говорит мол какая она кто сделал и где торчит - красота в общем.
Ну надо бы теперь и смонтировать, но моунтить надо ведь как da0 (SCSI), которая в свою очередь уже юзает umass0. Вот это выдается когда первый раз подключаешь (вроде все ОК) :
umass0: USB Flash Disk , rev 1.10/1.10, addr 3
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <C-ONE 064MB TINY 1.89> Removable Direct Access SCSI-2 device
da0: 650KB/s transfers
da0: 62MB (127744 512 byte sectors: 64H 32S/T 62C)

А вот такое - после попытки монтирования:
(da0:umass-sim0:0:0:0): READ(6)/WRITE(6) failed, minimum_cmd_size is increased to 10.
umass0: BBB reset failed, TIMEOUT
umass0: BBB reset failed, TIMEOUT
umass0: BBB bulk-in clear stall failed, IOERROR
umass0: BBB bulk-out clear stall failed, IOERROR
umass0: BBB reset failed, IOERROR
umass0: BBB bulk-in clear stall failed, IOERROR
umass0: BBB bulk-out clear stall failed, IOERROR
umass0: BBB reset failed, IOERROR
umass0: BBB bulk-in clear stall failed, IOERROR
umass0: BBB bulk-out clear stall failed, IOERROR
da0: reading primary partition table: error reading fsbn 0
umass0: BBB reset failed, IOERROR
umass0: BBB bulk-in clear stall failed, IOERROR
umass0: BBB bulk-out clear stall failed, IOERROR
(da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0
umass0: BBB reset failed, IOERROR
umass0: BBB bulk-in clear stall failed, IOERROR
umass0: BBB bulk-out clear stall failed, IOERROR

Нашел небольшой hack:

http://ezine.daemonnews.org/200305/cfmount.html

Цитата:
If the reader is supported, at this point you should be able to mount the device. If you are using a card from a standard camera or music player, the following command, typed as root, will mount it under /mnt:

mount -t msdos /dev/da0s1 /mnt

If this fails, it's possible that your reader is not supported under FreeBSD yet. It is possible that adding a "quirk" for your reader will help FreeBSD detect it. This involves some kernel hacking, which not everyone feels comfortable with. If you are brave enough to try, check the quirk reporting page at http://www.root.org/~nate/freebsd/quirks.html. My very limited experience indicates the first quirk to try is DA_Q_NO_6_BYTE.

Результаты (удручающие):
OS = FreeBSD 4.6.2

USB Flash Drive: Pretec iDisk TINY
- Самый маленький из всех, которые я знаю
Детектится как:
umass0: USB Flash Disk , rev 1.10/1.10, addr 4
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <C-ONE 064MB TINY 1.89> Removable Direct Access SCSI-2 device
da0: 650KB/s transfers
da0: 62MB (127744 512 byte sectors: 64H 32S/T 62C)

При добавлении элемента в массив структур
файла "/usr/src/sys/cam/scsi/scsi_da.c"
static struct da_quirk_entry da_quirk_table[] =
{
/*Элемент {...},*/
}
Получаем вывод при монтировании
`mount -t msdos /dev/da0s1 /mnt/flash`
Далее идет:
Изменения в массиве

Результат вывода
1)---------------------------------------------------------
Элемент:
/*My Add-on*/
{
/* <C-ONE 064MB TINY 1.89> Removable Direct Access SCSI-2 device
*/
{T_DIRECT, SIP_MEDIA_REMOVABLE, "C-ONE*", "*","*"},
/*quirks*/ DA_Q_NO_6_BYTE
},
Вывод:
umass0: BBB reset failed, TIMEOUT
umass0: BBB reset failed, TIMEOUT
umass0: BBB bulk-in clear stall failed, IOERROR
umass0: BBB bulk-out clear stall failed, IOERROR
umass0: BBB reset failed, IOERROR
umass0: BBB bulk-in clear stall failed, IOERROR
umass0: BBB bulk-out clear stall failed, IOERROR
umass0: BBB reset failed, IOERROR
umass0: BBB bulk-in clear stall failed, IOERROR
umass0: BBB bulk-out clear stall failed, IOERROR
da0: reading primary partition table: error reading fsbn 0
umass0: BBB reset failed, IOERROR
umass0: BBB bulk-in clear stall failed, IOERROR
umass0: BBB bulk-out clear stall failed, IOERROR
(da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0
umass0: BBB reset failed, IOERROR
umass0: BBB bulk-in clear stall failed, IOERROR
umass0: BBB bulk-out clear stall failed, IOERROR
2)---------------------------------------------------------
Элемент:
/*My Add-on*/
{
/* <C-ONE 064MB TINY 1.89> Removable Direct Access SCSI-2 device
*/
{T_DIRECT, SIP_MEDIA_REMOVABLE, "C-ONE*", "*","*"},
/*quirks*/ DA_Q_NO_6_BYTE|DA_Q_NO_SYNC_CACHE
},
Вывод:
umass0: BBB reset failed, TIMEOUT
umass0: BBB reset failed, TIMEOUT
umass0: BBB bulk-in clear stall failed, IOERROR
umass0: BBB bulk-out clear stall failed, IOERROR
umass0: BBB reset failed, IOERROR
umass0: BBB bulk-in clear stall failed, IOERROR
umass0: BBB bulk-out clear stall failed, IOERROR
umass0: BBB reset failed, IOERROR
umass0: BBB bulk-in clear stall failed, IOERROR
umass0: BBB bulk-out clear stall failed, IOERROR
da0: reading primary partition table: error reading fsbn 0
umass0: BBB reset failed, IOERROR
umass0: BBB bulk-in clear stall failed, IOERROR
umass0: BBB bulk-out clear stall failed, IOERROR
3)---------------------------------------------------------
Элемент:
/*My Add-on*/
{
/* <C-ONE 064MB TINY 1.89> Removable Direct Access SCSI-2 device
*/
{T_DIRECT, SIP_MEDIA_REMOVABLE, "C-ONE*", "*","*"},
/*quirks*/ DA_Q_NO_SYNC_CACHE
},
Вывод:
(da0:umass-sim0:0:0:0): READ(6)/WRITE(6) failed, minimum_cmd_size is increased to 10.
umass0: BBB reset failed, TIMEOUT
umass0: BBB reset failed, TIMEOUT
umass0: BBB bulk-in clear stall failed, IOERROR
umass0: BBB bulk-out clear stall failed, IOERROR
umass0: BBB reset failed, IOERROR
umass0: BBB bulk-in clear stall failed, IOERROR
umass0: BBB bulk-out clear stall failed, IOERROR
umass0: BBB reset failed, IOERROR
umass0: BBB bulk-in clear stall failed, IOERROR
umass0: BBB bulk-out clear stall failed, IOERROR
da0: reading primary partition table: error reading fsbn 0
umass0: BBB reset failed, IOERROR
umass0: BBB bulk-in clear stall failed, IOERROR
umass0: BBB bulk-out clear stall failed, IOERROR
_________________
ThNx. from X bl |JJ |\| ! |<

  Рекомендовать в FAQ | Cообщить модератору | Наверх

 Оглавление

Индекс форумов | Темы | Пред. тема | След. тема
Сообщения по теме

1. "Проблема с монтированием USB Flash Disk во FreeBSD (+)"
Сообщение от alx emailИскать по авторуВ закладки on 21-Дек-03, 06:55  (MSK)
>ОС FreeBSD 4.6.2
>Ну значит проблема такова: купил я себе флешку (usb) ну и настрополился
>ее в юнихе примаунтить...пробую - ан нет в ядро umass не
>вкомпилил...перекомпилил ядро - все чудно : флешу втыкаешь - umass0 -
>говорит мол какая она кто сделал и где торчит - красота
>в общем.
>Ну надо бы теперь и смонтировать, но моунтить надо ведь как da0
>(SCSI), которая в свою очередь уже юзает umass0. Вот это выдается
>когда первый раз подключаешь (вроде все ОК) :
>umass0: USB Flash Disk , rev 1.10/1.10, addr 3
>da0 at umass-sim0 bus 0 target 0 lun 0
>da0: <C-ONE 064MB TINY 1.89> Removable Direct Access SCSI-2 device
>da0: 650KB/s transfers
>da0: 62MB (127744 512 byte sectors: 64H 32S/T 62C)
>
>А вот такое - после попытки монтирования:
>(da0:umass-sim0:0:0:0): READ(6)/WRITE(6) failed, minimum_cmd_size is increased to 10.
>umass0: BBB reset failed, TIMEOUT
>umass0: BBB reset failed, TIMEOUT
>umass0: BBB bulk-in clear stall failed, IOERROR
>umass0: BBB bulk-out clear stall failed, IOERROR
>umass0: BBB reset failed, IOERROR
>umass0: BBB bulk-in clear stall failed, IOERROR
>umass0: BBB bulk-out clear stall failed, IOERROR
>umass0: BBB reset failed, IOERROR
>umass0: BBB bulk-in clear stall failed, IOERROR
>umass0: BBB bulk-out clear stall failed, IOERROR
>da0: reading primary partition table: error reading fsbn 0
>umass0: BBB reset failed, IOERROR
>umass0: BBB bulk-in clear stall failed, IOERROR
>umass0: BBB bulk-out clear stall failed, IOERROR
>(da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0
>umass0: BBB reset failed, IOERROR
>umass0: BBB bulk-in clear stall failed, IOERROR
>umass0: BBB bulk-out clear stall failed, IOERROR
>
>Нашел небольшой hack:
>
>http://ezine.daemonnews.org/200305/cfmount.html
>
>Цитата:
>If the reader is supported, at this point you should be able
>to mount the device. If you are using a card from
>a standard camera or music player, the following command, typed as
>root, will mount it under /mnt:
>
>mount -t msdos /dev/da0s1 /mnt
>
>If this fails, it's possible that your reader is not supported under
>FreeBSD yet. It is possible that adding a "quirk" for your
>reader will help FreeBSD detect it. This involves some kernel hacking,
>which not everyone feels comfortable with. If you are brave enough
>to try, check the quirk reporting page at http://www.root.org/~nate/freebsd/quirks.html. My very
>limited experience indicates the first quirk to try is DA_Q_NO_6_BYTE.
>
>Результаты (удручающие):
>OS = FreeBSD 4.6.2
>
>USB Flash Drive: Pretec iDisk TINY
>- Самый маленький из всех, которые я знаю
>Детектится как:
>umass0: USB Flash Disk , rev 1.10/1.10, addr 4
>da0 at umass-sim0 bus 0 target 0 lun 0
>da0: <C-ONE 064MB TINY 1.89> Removable Direct Access SCSI-2 device
>da0: 650KB/s transfers
>da0: 62MB (127744 512 byte sectors: 64H 32S/T 62C)
>
>При добавлении элемента в массив структур
>файла "/usr/src/sys/cam/scsi/scsi_da.c"
>static struct da_quirk_entry da_quirk_table[] =
>{
>/*Элемент {...},*/
>}
>Получаем вывод при монтировании
>`mount -t msdos /dev/da0s1 /mnt/flash`
>Далее идет:
>Изменения в массиве
>
>Результат вывода
>1)---------------------------------------------------------
>Элемент:
>/*My Add-on*/
>{
>/* <C-ONE 064MB TINY 1.89> Removable Direct Access SCSI-2 device
>*/
>{T_DIRECT, SIP_MEDIA_REMOVABLE, "C-ONE*", "*","*"},
>/*quirks*/ DA_Q_NO_6_BYTE
>},
>Вывод:
>umass0: BBB reset failed, TIMEOUT
>umass0: BBB reset failed, TIMEOUT
>umass0: BBB bulk-in clear stall failed, IOERROR
>umass0: BBB bulk-out clear stall failed, IOERROR
>umass0: BBB reset failed, IOERROR
>umass0: BBB bulk-in clear stall failed, IOERROR
>umass0: BBB bulk-out clear stall failed, IOERROR
>umass0: BBB reset failed, IOERROR
>umass0: BBB bulk-in clear stall failed, IOERROR
>umass0: BBB bulk-out clear stall failed, IOERROR
>da0: reading primary partition table: error reading fsbn 0
>umass0: BBB reset failed, IOERROR
>umass0: BBB bulk-in clear stall failed, IOERROR
>umass0: BBB bulk-out clear stall failed, IOERROR
>(da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0
>umass0: BBB reset failed, IOERROR
>umass0: BBB bulk-in clear stall failed, IOERROR
>umass0: BBB bulk-out clear stall failed, IOERROR
>2)---------------------------------------------------------
>Элемент:
>/*My Add-on*/
>{
>/* <C-ONE 064MB TINY 1.89> Removable Direct Access SCSI-2 device
>*/
>{T_DIRECT, SIP_MEDIA_REMOVABLE, "C-ONE*", "*","*"},
>/*quirks*/ DA_Q_NO_6_BYTE|DA_Q_NO_SYNC_CACHE
>},
>Вывод:
>umass0: BBB reset failed, TIMEOUT
>umass0: BBB reset failed, TIMEOUT
>umass0: BBB bulk-in clear stall failed, IOERROR
>umass0: BBB bulk-out clear stall failed, IOERROR
>umass0: BBB reset failed, IOERROR
>umass0: BBB bulk-in clear stall failed, IOERROR
>umass0: BBB bulk-out clear stall failed, IOERROR
>umass0: BBB reset failed, IOERROR
>umass0: BBB bulk-in clear stall failed, IOERROR
>umass0: BBB bulk-out clear stall failed, IOERROR
>da0: reading primary partition table: error reading fsbn 0
>umass0: BBB reset failed, IOERROR
>umass0: BBB bulk-in clear stall failed, IOERROR
>umass0: BBB bulk-out clear stall failed, IOERROR
>3)---------------------------------------------------------
>Элемент:
>/*My Add-on*/
>{
>/* <C-ONE 064MB TINY 1.89> Removable Direct Access SCSI-2 device
>*/
>{T_DIRECT, SIP_MEDIA_REMOVABLE, "C-ONE*", "*","*"},
>/*quirks*/ DA_Q_NO_SYNC_CACHE
>},
>Вывод:
>(da0:umass-sim0:0:0:0): READ(6)/WRITE(6) failed, minimum_cmd_size is increased to 10.
>umass0: BBB reset failed, TIMEOUT
>umass0: BBB reset failed, TIMEOUT
>umass0: BBB bulk-in clear stall failed, IOERROR
>umass0: BBB bulk-out clear stall failed, IOERROR
>umass0: BBB reset failed, IOERROR
>umass0: BBB bulk-in clear stall failed, IOERROR
>umass0: BBB bulk-out clear stall failed, IOERROR
>umass0: BBB reset failed, IOERROR
>umass0: BBB bulk-in clear stall failed, IOERROR
>umass0: BBB bulk-out clear stall failed, IOERROR
>da0: reading primary partition table: error reading fsbn 0
>umass0: BBB reset failed, IOERROR
>umass0: BBB bulk-in clear stall failed, IOERROR
>umass0: BBB bulk-out clear stall failed, IOERROR
>_________________
>ThNx. from X bl |JJ |\| ! |<

у меня 4.9, все USB маунтится отлично, USB-фотик с флешь-картой, USB-флешь-редиер

  Рекомендовать в FAQ | Cообщить модератору | Наверх

2. "Проблема с монтированием USB Flash Disk во FreeBSD (+)"
Сообщение от fedorden emailИскать по авторуВ закладки on 22-Дек-03, 07:12  (MSK)
Я фотик тоже пробовал в 4.7 и 4.8 (4.9 не пробовал) - ошибки при монтировании. Поставил 5.1 - все проблемы снялись, все монтируется и работает отлично!
  Рекомендовать в FAQ | Cообщить модератору | Наверх


Удалить

Индекс форумов | Темы | Пред. тема | След. тема
Пожалуйста, прежде чем написать сообщение, ознакомьтесь с данными рекомендациями.




Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2025 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру