[Comm] flash usb-drive

Alexey Morsov =?iso-8859-1?q?samurai_=CE=C1_ricom=2Eru?=
Пт Май 7 16:14:37 MSD 2004


Alexander Kuprin wrote:

> 
> Тогда проверьте следующее -- сервис usb запущен?
> 
> service usb status
Есть иной вариант проверки?
потому что в dmesg

Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
hub.c: new USB device 00:07.2-1, assigned address 2
scsi0 : SCSI emulation for USB Mass Storage devices
   Vendor: USB       Model: Flash Drive       Rev: 1.12
   Type:   Direct-Access                      ANSI SCSI revision: 02
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 253949 512-byte hdwr sectors (130 MB)
sda: Write Protect is off
  sda: sda1 sda2 sda3 sda4
inserting floppy driver for 2.4.22-1.2115.nptl
Floppy drive(s): fd0 is 1.44M

было когда я сделал modprobe usb-storage

> 
> Кстати, один из способов проверить обнаружено ли (и подсоединено) 
> SCSI-устройство -- это запустить утилиту cdrecord с ключом -scanbus (возможно 
> существует другая утилита, более правильная для этих целей :) Вот, что 
> показывает cdrecord на моей машине:
> 
> [root на p4 init.d]# cdrecord -scanbus
> Cdrecord 2.0 (i586-alt-linux-gnu) Copyright (C) 1995-2002 JЖrg Schilling
> Linux sg driver version: 3.1.25
> Using libscg version 'schily-0.7'
> scsibus0:
>         0,0,0     0) 'SONY    ' 'DVD-ROM DDU1621 ' 'S2.9' Removable CD-ROM
>         0,1,0     1) 'LITE-ON ' 'LTR-52246S      ' '6S0D' Removable CD-ROM
> scsibus1:
>         1,0,0   100) 'Memorex ' 'ThumbDrive      ' '1.11' Removable Disk
> 
> И если Вы обнаружили флешку и знаете имя устройства, то чтобы выяснить список 
> разделов, воспользуйтесь утилитой fdisk:
> 
> [root на p4 init.d]# fdisk -l /dev/sda
> 
> Disk /dev/sda: 132 MB, 132120576 bytes
> 16 heads, 32 sectors/track, 504 cylinders
> Units = cylinders of 512 * 512 = 262144 bytes
> 
>    Device Boot      Start         End      Blocks   Id  System
> /dev/sda1               1         504      129008   83  Linux
> 

А вот мой
Disk /dev/sda: 130 MB, 130021888 bytes
4 heads, 62 sectors/track, 1023 cylinders
Units = cylinders of 248 * 512 = 126976 bytes

    Device Boot    Start       End    Blocks   Id  System
/dev/sda1   ?    911530    911530         5   6e  Unknown
Partition 1 has different physical/logical beginnings (non-Linux?):
      phys=(357, 119, 40) logical=(911529, 2, 46)
Partition 1 has different physical/logical endings:
      phys=(357, 32, 50) logical=(911529, 2, 55)
Partition 1 does not end on cylinder boundary.
/dev/sda2       5363646   7536938 269488144    0  Empty
Partition 2 has different physical/logical beginnings (non-Linux?):
      phys=(0, 0, 0) logical=(5363645, 3, 47)
Partition 2 has different physical/logical endings:
      phys=(0, 0, 0) logical=(7536937, 1, 42)
Partition 2 does not end on cylinder boundary.
/dev/sda3   ?   2173345   7811905 699181456   53  OnTrack DM6 Aux3
Partition 3 has different physical/logical beginnings (non-Linux?):
      phys=(345, 32, 19) logical=(2173344, 1, 18)
Partition 3 has different physical/logical endings:
      phys=(324, 77, 19) logical=(7811904, 1, 49)
Partition 3 does not end on cylinder boundary.
/dev/sda4             1   8679028 1076199424    0  Empty
Partition 4 has different physical/logical beginnings (non-Linux?):
      phys=(0, 0, 0) logical=(0, 0, 1)
Partition 4 has different physical/logical endings:
      phys=(0, 0, 0) logical=(8679027, 2, 28)
Partition 4 does not end on cylinder boundary.

> Хм.. Правда свою флешку я переразметил -- вместо раздела FAT создал Linux 
> Native.
> 
> --
> WBR, Alexander Kuprin
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Community mailing list
> Community на altlinux.ru
> http://lists.altlinux.ru/mailman/listinfo/community

-- 
Всего наилучшего,
Системный Администратор ЗАО "ИК "РИКОМ-ТРАСТ"
Алексей Морсов
http://www.ricom.ru
http://www.fondmarket.ru



Подробная информация о списке рассылки community