Portál AbcLinuxu, 10. května 2025 11:22

Dotaz: problém s připojení flash

14.1.2006 21:50 mikke
problém s připojení flash
Přečteno: 361×
Odpovědět | Admin

Dřív mi bez problémů fungovalo připojení flash disku ,ale od tý doby co jsem předělal Gentoo kompletně na UTF8 a přidal jsem ivman jako automounter, tak flash nemohu namoutovat:

# mount /dev/sda1 /mnt/flash/
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
# dmesg
mplete
usb-storage: Bulk command transfer result=0
usb-storage: Attempting to get CSW...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: Status code 0; transferred 13/13
usb-storage: -- transfer complete
usb-storage: Bulk status result = 0
usb-storage: Bulk Status S 0x53425355 T 0x186 R 0 Stat 0x0
usb-storage: scsi cmd done, result=0x0
usb-storage: *** thread sleeping.
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Command TEST_UNIT_READY (6 bytes)
usb-storage:  00 00 00 00 00 00
usb-storage: Bulk Command S 0x43425355 T 0x187 L 0 F 0 Trg 0 LUN 0 CL 6
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
usb-storage: Status code 0; transferred 31/31
usb-storage: -- transfer complete
Nástroje: Začni sledovat (0) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

15.1.2006 00:54 Thunder.m | skóre: 35 | blog: e17
Rozbalit Rozbalit vše Re: problém s připojení flash
Odpovědět | | Sbalit | Link | Blokovat | Admin
Někdy se mi přehodil disk na sdb, zkusil bych to jinak ještě zkus co ti vypíše lshal...
15.1.2006 11:15 mikke
Rozbalit Rozbalit vše Re: problém s připojení flash

tím to asi nebude,kdyz dam sdb nebo sdb1, vypisuje to zařízení nenalezeno

15.1.2006 11:22 mikke
Rozbalit Rozbalit vše Re: problém s připojení flash
# lshal
udi = '/org/freedesktop/Hal/devices/usb_device_930_651c_100_-1_0800F15032527B91'
  info.udi = '/org/freedesktop/Hal/devices/usb_device_930_651c_100_-1_0800F15032
527B91'  (string)
  linux.kernel_devname = 'usb-0000:00:1f.2-1'  (string)
  usb_device.version_bcd = 512  (0x200)  (int)
  usb_device.speed_bcd = 4608  (0x1200)  (int)
  usb_device.num_ports = 0  (0x0)  (int)
  usb_device.linux.parent_number = 3  (0x3)  (int)
  usb_device.linux.device_number = 3  (0x3)  (int)
  usb_device.level_number = 1  (0x1)  (int)
  usb_device.port_number = 1  (0x1)  (int)
  usb_device.bus_number = 1  (0x1)  (int)
  info.product = 'USB Flash Memory'  (string)
  usb_device.product = 'USB Flash Memory'  (string)
  info.vendor = 'Toshiba Corp.'  (string)
  usb_device.vendor = 'Toshiba Corp.'  (string)
  usb_device.vendor_id = 2352  (0x930)  (int)
  usb_device.product_id = 25884  (0x651c)  (int)
  usb_device.serial = '0800F15032527B91'  (string)
  usb_device.can_wake_up = false  (bool)
  usb_device.is_self_powered = false  (bool)
  usb_device.device_revision_bcd = 256  (0x100)  (int)
  usb_device.num_interfaces = 1  (0x1)  (int)
  usb_device.num_configurations = 1  (0x1)  (int)
  usb_device.max_power = 200  (0xc8)  (int)
  usb_device.device_subclass = 0  (0x0)  (int)
  usb_device.device_protocol = 0  (0x0)  (int)
  usb_device.device_class = 0  (0x0)  (int)
  usb_device.configuration_value = 1  (0x1)  (int)
  info.parent = '/org/freedesktop/Hal/devices/usb_device_0_0_206_-1_0000:00:1f.2
'  (string)
  usb_device.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1f.2/usb1/1-1'
 (string)
  linux.sysfs_path_device = '/sys/devices/pci0000:00/0000:00:1f.2/usb1/1-1'  (st
ring)
  linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1f.2/usb1/1-1'  (string)
  info.bus = 'usb_device'  (string)
15.1.2006 11:50 Thunder.m | skóre: 35 | blog: e17
Rozbalit Rozbalit vše Re: problém s připojení flash
lshal by ti ale měl vypsat 2x toto zařízení, nejsem v Linuxu abych to ověřil, ale mělo by to tak být, v jednom jsou různé údaje, ve druhém které jsi neuvedl jsou například cesty k zařízení, jsi si jist že máš zaveden ovladač pro scsi? Ten je potřeba, dále bych zkusil ještě nahrát nejnovější hal, používáš udev? Pokud ano tak i nejnovější udev, ale já používám debian a žádný problém s přechodem na UTF jsem nezaznamenal (mimo těch že mi některé programy tu kódování nesežerou).
15.1.2006 12:24 mikke
Rozbalit Rozbalit vše Re: problém s připojení flash

pardon

udi = '/org/freedesktop/Hal/devices/block_6062-898A'
  volume.mount_point = ''  (string)
  volume.policy.mount_option.utf8 = true  (bool)
  volume.policy.mount_option.noatime = true  (bool)
  volume.policy.mount_option.sync = true  (bool)
  volume.policy.desired_mount_point = 'usbdisk'  (string)
  volume.policy.mount_filesystem = 'vfat'  (string)
  volume.policy.should_mount = true  (bool)
  info.udi = '/org/freedesktop/Hal/devices/block_6062-898A'  (string)
  volume.partition.msdos_part_table_type = 6  (0x6)  (int)
  volume.size = 126083072  (0x783e000)  (uint64)
  volume.block_size = 512  (0x200)  (int)
  volume.num_blocks = 246256  (0x3c1f0)  (int)
  volume.partition.number = 1  (0x1)  (int)
  volume.is_partition = true  (bool)
  volume.is_mounted = false  (bool)
  volume.is_disc = false  (bool)
  volume.uuid = '6062-898A'  (string)
  volume.label = ''  (string)
  volume.fsversion = 'FAT16'  (string)
  volume.fsusage = 'filesystem'  (string)
  volume.fstype = 'vfat'  (string)
  info.product = 'Volume (vfat)'  (string)
  block.storage_device = '/org/freedesktop/Hal/devices/block_8_0'  (string)
  block.minor = 1  (0x1)  (int)
  block.major = 8  (0x8)  (int)
  info.capabilities = 'block volume'  (string)
  info.category = 'volume'  (string)
  block.device = '/dev/sda1'  (string)
  info.parent = '/org/freedesktop/Hal/devices/block_8_0'  (string)
  block.is_volume = true  (bool)
  block.have_scanned = false  (bool)
  block.no_partitions = false  (bool)
  linux.sysfs_path_device = '/sys/block/sda/sda1'  (string)
  linux.sysfs_path = '/sys/block/sda/sda1'  (string)
  info.bus = 'block'  (string)

udi = '/org/freedesktop/Hal/devices/block_8_0'
  volume.is_partition = false  (bool)
  storage.policy.should_mount = true  (bool)
  info.udi = '/org/freedesktop/Hal/devices/block_8_0'  (string)
  storage.requires_eject = false  (bool)
  storage.hotpluggable = true  (bool)
  storage.removable = true  (bool)
  info.product = 'USB Flash Memory'  (string)
  info.vendor = ' '  (string)
  storage.drive_type = 'disk'  (string)
  block.storage_device = '/org/freedesktop/Hal/devices/block_8_0'  (string)
  storage.physical_device = '/org/freedesktop/Hal/devices/usb_usb_device_930_651c_100_-1_0800F15032527B91_0'  (string)
  storage.vendor = ' '  (string)
  storage.model = 'USB Flash Memory'  (string)
  storage.automount_enabled_hint = true  (bool)
  storage.no_partitions_hint = false  (bool)
  storage.media_check_enabled = true  (bool)
  storage.bus = 'usb'  (string)
  block.minor = 0  (0x0)  (int)
  block.major = 8  (0x8)  (int)
  info.capabilities = 'block storage'  (string)
  info.category = 'storage'  (string)
  block.device = '/dev/sda'  (string)
  info.parent = '/org/freedesktop/Hal/devices/scsi_0_0_0_0'  (string)
  block.is_volume = false  (bool)
  block.have_scanned = true  (bool)
  block.no_partitions = false  (bool)
  linux.sysfs_path_device = '/sys/block/sda'  (string)
  linux.sysfs_path = '/sys/block/sda'  (string)
  info.bus = 'block'  (string)

udi = '/org/freedesktop/Hal/devices/scsi_0_0_0_0'
  info.capabilities = 'scsi_generic'  (string)
  scsi.generic_device = '/dev/sg0'  (string)
  info.udi = '/org/freedesktop/Hal/devices/scsi_0_0_0_0'  (string)
  info.product = 'SCSI Device'  (string)
  scsi.lun = 0  (0x0)  (int)
  scsi.target = 0  (0x0)  (int)
  scsi.bus = 0  (0x0)  (int)
  scsi.host = 0  (0x0)  (int)
  info.parent = '/org/freedesktop/Hal/devices/scsi_host_0'  (string)
  scsi.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1f.2/usb1/1-1/1-1:1.0/host0/target0:0:0/0:0:0:0'  (string)
  linux.sysfs_path_device = '/sys/devices/pci0000:00/0000:00:1f.2/usb1/1-1/1-1:1.0/host0/target0:0:0/0:0:0:0'  (string)
  linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1f.2/usb1/1-1/1-1:1.0/host0/target0:0:0/0:0:0:0'  (string)
  info.bus = 'scsi'  (string)

udi = '/org/freedesktop/Hal/devices/scsi_host_0'
  info.udi = '/org/freedesktop/Hal/devices/scsi_host_0'  (string)
  info.capabilities = 'scsi_host'  (string)
  info.product = 'SCSI Host Interface'  (string)
  scsi_host.host = 0  (0x0)  (int)
  info.parent = '/org/freedesktop/Hal/devices/usb_usb_device_930_651c_100_-1_0800F15032527B91_0'  (string)
  linux.sysfs_path_device = '/sys/devices/pci0000:00/0000:00:1f.2/usb1/1-1/1-1:1.0/host0'  (string)
  linux.sysfs_path = '/sys/class/scsi_host/host0'  (string)
  info.bus = 'scsi_host'  (string)

udi = '/org/freedesktop/Hal/devices/usb_usb_device_930_651c_100_-1_0800F15032527B91_0'
  info.udi = '/org/freedesktop/Hal/devices/usb_usb_device_930_651c_100_-1_0800F15032527B91_0'  (string)
  info.product = 'USB Mass Storage Interface'  (string)
  usb.interface.subclass = 6  (0x6)  (int)
  usb.interface.protocol = 80  (0x50)  (int)
  usb.interface.number = 0  (0x0)  (int)
  usb.interface.class = 8  (0x8)  (int)
  usb.configuration_value = 1  (0x1)  (int)
  usb.device_class = 0  (0x0)  (int)
  usb.device_protocol = 0  (0x0)  (int)
  usb.device_subclass = 0  (0x0)  (int)
  usb.max_power = 200  (0xc8)  (int)
  usb.num_configurations = 1  (0x1)  (int)
  usb.num_interfaces = 1  (0x1)  (int)
  usb.device_revision_bcd = 256  (0x100)  (int)
  usb.is_self_powered = false  (bool)
  usb.can_wake_up = false  (bool)
  usb.serial = '0800F15032527B91'  (string)
  usb.product_id = 25884  (0x651c)  (int)
  usb.vendor_id = 2352  (0x930)  (int)
  usb.vendor = 'Toshiba Corp.'  (string)
  usb.product = 'USB Flash Memory'  (string)
  usb.bus_number = 1  (0x1)  (int)
  usb.port_number = 1  (0x1)  (int)
  usb.level_number = 1  (0x1)  (int)
  usb.linux.device_number = 3  (0x3)  (int)
  usb.linux.parent_number = 3  (0x3)  (int)
  usb.num_ports = 0  (0x0)  (int)
  usb.speed_bcd = 4608  (0x1200)  (int)
  usb.version_bcd = 512  (0x200)  (int)
  info.parent = '/org/freedesktop/Hal/devices/usb_device_930_651c_100_-1_0800F15032527B91'  (string)
  usb.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1f.2/usb1/1-1/1-1:1.0'  (string)
  linux.sysfs_path_device = '/sys/devices/pci0000:00/0000:00:1f.2/usb1/1-1/1-1:1.0'  (string)
  linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1f.2/usb1/1-1/1-1:1.0'  (string)
  info.bus = 'usb'  (string)

udi = '/org/freedesktop/Hal/devices/usb_device_930_651c_100_-1_0800F15032527B91'
  info.udi = '/org/freedesktop/Hal/devices/usb_device_930_651c_100_-1_0800F15032527B91'  (string)
  linux.kernel_devname = 'usb-0000:00:1f.2-1'  (string)
  usb_device.version_bcd = 512  (0x200)  (int)
  usb_device.speed_bcd = 4608  (0x1200)  (int)
  usb_device.num_ports = 0  (0x0)  (int)
  usb_device.linux.parent_number = 3  (0x3)  (int)
  usb_device.linux.device_number = 3  (0x3)  (int)
  usb_device.level_number = 1  (0x1)  (int)
  usb_device.port_number = 1  (0x1)  (int)
  usb_device.bus_number = 1  (0x1)  (int)
  info.product = 'USB Flash Memory'  (string)
  usb_device.product = 'USB Flash Memory'  (string)
  info.vendor = 'Toshiba Corp.'  (string)
  usb_device.vendor = 'Toshiba Corp.'  (string)
  usb_device.vendor_id = 2352  (0x930)  (int)
  usb_device.product_id = 25884  (0x651c)  (int)
  usb_device.serial = '0800F15032527B91'  (string)
  usb_device.can_wake_up = false  (bool)
  usb_device.is_self_powered = false  (bool)
  usb_device.device_revision_bcd = 256  (0x100)  (int)
  usb_device.num_interfaces = 1  (0x1)  (int)
  usb_device.num_configurations = 1  (0x1)  (int)
  usb_device.max_power = 200  (0xc8)  (int)
  usb_device.device_subclass = 0  (0x0)  (int)
  usb_device.device_protocol = 0  (0x0)  (int)
  usb_device.device_class = 0  (0x0)  (int)
  usb_device.configuration_value = 1  (0x1)  (int)
  info.parent = '/org/freedesktop/Hal/devices/usb_device_0_0_206_-1_0000:00:1f.2'  (string)
  usb_device.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1f.2/usb1/1-1'  (string)
  linux.sysfs_path_device = '/sys/devices/pci0000:00/0000:00:1f.2/usb1/1-1'  (string)
  linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1f.2/usb1/1-1'  (string)
  info.bus = 'usb_device'  (string)

to by melo byt asi vsechno co souvisi s flashdiskem

Dalibor Smolík avatar 15.1.2006 01:56 Dalibor Smolík | skóre: 54 | blog: Postrehy_ze_zivota | 50°5'31.93"N,14°19'35.51"E
Rozbalit Rozbalit vše Re: problém s připojení flash
Odpovědět | | Sbalit | Link | Blokovat | Admin
Já jsem na UTF 8 nepřecházel a jsem v Debianu. Mám stejný problém. Místo sda1 jsem zadal pouze sda.
mount -t vfat /dev/sda /media/flash
Rozdíly v řeči a ve zvyklostech neznamenají vůbec nic, budeme-li mít stejné cíle a otevřená srdce.
15.1.2006 11:16 mikke
Rozbalit Rozbalit vše Re: problém s připojení flash

s sda ten sami vysledek

Dalibor Smolík avatar 15.1.2006 12:31 Dalibor Smolík | skóre: 54 | blog: Postrehy_ze_zivota | 50°5'31.93"N,14°19'35.51"E
Rozbalit Rozbalit vše Re: problém s připojení flash
Jen pro ověření: stejný problém i rootu, při zadání plné cesty?
mount -t vfat /dev/sda /media/flash ?
Tohle u mne zabralo
Rozdíly v řeči a ve zvyklostech neznamenají vůbec nic, budeme-li mít stejné cíle a otevřená srdce.
15.1.2006 12:36 mikke
Rozbalit Rozbalit vše Re: problém s připojení flash

i pod rootem stejny problem

15.1.2006 12:42 mikke
Rozbalit Rozbalit vše Re: problém s připojení flash

i pod rootem stejny problem

15.1.2006 12:44 mikke
Rozbalit Rozbalit vše Re: problém s připojení flash
Odpovědět | | Sbalit | Link | Blokovat | Admin

uz to funguje pomohlo:

# mount -t vfat -o iocharset=utf8,codepage=852 /dev/sda1 /mnt/flash/
Dalibor Smolík avatar 15.1.2006 14:00 Dalibor Smolík | skóre: 54 | blog: Postrehy_ze_zivota | 50°5'31.93"N,14°19'35.51"E
Rozbalit Rozbalit vše Re: problém s připojení flash
aha, já mám kódování iso 8859-2, tak to možná souvisí
Rozdíly v řeči a ve zvyklostech neznamenají vůbec nic, budeme-li mít stejné cíle a otevřená srdce.

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.