Автор Тема: Не работает флешка?  (Прочитано 9872 раз)

Оффлайн kick-ass

  • Участник
  • *
  • Сообщений: 105
Не работает флешка?
« : 18.01.2011 20:17:13 »
Привет ребята! Скорей всего сгорела флешка на 4 гиг, но хотелось бы уточнить, окончательную ее гибель :)
В линуксе не определяется, в виндоус тоже! Флешке прямая дорога в мусорник???

dmesg выдает:
usb 1-3: USB disconnect, address 7
usb 1-3: new high speed USB device using ehci_hcd and address 8
usb 1-3: configuration #1 chosen from 1 choice
scsi7 : SCSI emulation for USB Mass Storage devices
usb 1-3: New USB device found, idVendor=058f, idProduct=1234
usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-3: Product: Mass Storage Device
usb 1-3: Manufacturer: Alcor Micro
usb-storage: device found at 8
usb-storage: waiting for device to settle before scanning
scsi 7:0:0:0: Direct-Access     Generic  USB Flash Disk   7.76 PQ: 0 ANSI: 2
sd 7:0:0:0: [sda] Attached SCSI removable disk
sd 7:0:0:0: Attached scsi generic sg0 type 0
usb-storage: device scan complete

Р.S.
А вторая флешка после форматирования уменьшилась в размере была 1 гиг, стала 500 мебайт?
И НА ЭТО ВАМ МОЯ КОМАНДИРСКАЯ ЗАРУКА!!!

Оффлайн Карлсон

  • Участник
  • *
  • Сообщений: 1 699
Re: Не работает флешка?
« Ответ #1 : 18.01.2011 20:24:05 »
dmesg выдает:

Ни одной ошибки не замечено. Что говорит fdisk -l /dev/sda (и про вторую флэшку тоже).

Оффлайн kick-ass

  • Участник
  • *
  • Сообщений: 105
Re: Не работает флешка?
« Ответ #2 : 18.01.2011 20:57:37 »
Вторая флешка(та что на гиг)
dmesg выдает:
usb 1-3: USB disconnect, address 9
usb 1-3: new high speed USB device using ehci_hcd and address 10
usb 1-3: configuration #1 chosen from 1 choice
scsi9 : SCSI emulation for USB Mass Storage devices
usb 1-3: New USB device found, idVendor=1005, idProduct=b113
usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-3: Product: USB FLASH DRIVE
usb 1-3: Manufacturer:         
usb 1-3: SerialNumber: 1979040602E0
usb-storage: device found at 10
usb-storage: waiting for device to settle before scanning
scsi 9:0:0:0: Direct-Access              USB FLASH DRIVE  PMAP PQ: 0 ANSI: 0 CCS
sd 9:0:0:0: [sda] 2015232 512-byte hardware sectors (1032 MB)
sd 9:0:0:0: [sda] Write Protect is off
sd 9:0:0:0: [sda] Mode Sense: 23 00 00 00
sd 9:0:0:0: [sda] Assuming drive cache: write through
sd 9:0:0:0: [sda] 2015232 512-byte hardware sectors (1032 MB)
sd 9:0:0:0: [sda] Write Protect is off
sd 9:0:0:0: [sda] Mode Sense: 23 00 00 00
sd 9:0:0:0: [sda] Assuming drive cache: write through
 sda: sda1
sd 9:0:0:0: [sda] Attached SCSI removable disk
sd 9:0:0:0: Attached scsi generic sg0 type 0
usb-storage: device scan complete

По первой та что на 4 гига:
[root@localhost ~]# fdisk -l /dev/sda
[root@localhost ~]#

По второй та что на 1 гиг:
[root@localhost ~]# fdisk -l /dev/sda

Disk /dev/sda: 1031 MB, 1031798784 bytes
16 heads, 32 sectors/track, 3936 cylinders
Units = cylinders of 512 * 512 = 262144 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        1997      511216    b  W95 FAT32
И НА ЭТО ВАМ МОЯ КОМАНДИРСКАЯ ЗАРУКА!!!

Оффлайн ruslandh

  • Поспешай не торопясь !
  • Модератор глобальный
  • *****
  • Сообщений: 32 361
  • Учиться .... Телепатами не рождаются, ими ....
Re: Не работает флешка?
« Ответ #3 : 18.01.2011 21:47:39 »
У второй надо просто увеличить размер (в том-же gparted).
В первой возможно надо просто создать раздел (через gparted).


Оффлайн kick-ass

  • Участник
  • *
  • Сообщений: 105
Re: Не работает флешка?
« Ответ #4 : 18.01.2011 22:25:28 »
ок,буду пробывать!С англицким только, у меня проблемы!
И НА ЭТО ВАМ МОЯ КОМАНДИРСКАЯ ЗАРУКА!!!

Оффлайн ruslandh

  • Поспешай не торопясь !
  • Модератор глобальный
  • *****
  • Сообщений: 32 361
  • Учиться .... Телепатами не рождаются, ими ....
Re: Не работает флешка?
« Ответ #5 : 18.01.2011 22:46:41 »
А при чём тут английский? Если gparted запускается от пользователя, то там всё на русском.

Оффлайн kick-ass

  • Участник
  • *
  • Сообщений: 105
Re: Не работает флешка?
« Ответ #6 : 19.01.2011 01:26:04 »
Отозвавшимся огромная благодарность! C флешкой на 1 гиг разобрался! У меня было 2 раздела один fat32 один пустой! В Gparted обьеденил разделы, отформатировал и все ок!
А вот в  флешке на 4 гига Gperted не находит ее раздел!
И НА ЭТО ВАМ МОЯ КОМАНДИРСКАЯ ЗАРУКА!!!

Оффлайн sasa

  • Участник
  • *
  • Сообщений: 1 152
Re: Не работает флешка?
« Ответ #7 : 19.01.2011 06:30:50 »
А вот в  флешке на 4 гига Gperted не находит ее раздел!
А можно поподробнее?
Компьютер - это лопата, к нему мозги нужны (с)

Оффлайн ruslandh

  • Поспешай не торопясь !
  • Модератор глобальный
  • *****
  • Сообщений: 32 361
  • Учиться .... Телепатами не рождаются, ими ....
Re: Не работает флешка?
« Ответ #8 : 19.01.2011 07:29:23 »
Ну, и создайте новый.

Оффлайн lucefer

  • Участник
  • *
  • Сообщений: 348
Re: Не работает флешка?
« Ответ #9 : 19.01.2011 11:01:13 »
Испортил разделы флешки виндовой программой. Исправил так
[root@school-server ~]# fdisk -l

Disk /dev/sda: 500.1 GB, 500106780160 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x90909090                     

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        3279    26338536    5  Extended
/dev/sda2            3280       60801   462045465   83  Linux   
/dev/sda5               1        2486    19968732   83  Linux   
/dev/sda6            2487        3279     6369741   82  Linux swap / Solaris

Disk /dev/sdb: 2019 MB, 2019557376 bytes
63 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 3906 * 512 = 1999872 bytes
Disk identifier: 0x000109b5                   

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1           1           0    0  Empty
Partition 1 has different physical/logical beginnings (non-Linux?):
     phys=(0, 0, 0) logical=(0, 0, 1)                             
Partition 1 has different physical/logical endings:               
     phys=(0, 0, 0) logical=(1099582, 0, 4)                       
Partition 1 does not end on cylinder boundary.                     
/dev/sdb2   *           1           1           0    0  Empty     
Partition 2 has different physical/logical beginnings (non-Linux?):
     phys=(0, 0, 0) logical=(0, 0, 1)                             
Partition 2 has different physical/logical endings:               
     phys=(0, 0, 0) logical=(1099582, 0, 4)                       
Partition 2 does not end on cylinder boundary.                     
/dev/sdb3   *           1           1           0    0  Empty     
Partition 3 has different physical/logical beginnings (non-Linux?):
     phys=(0, 0, 0) logical=(0, 0, 1)                             
Partition 3 has different physical/logical endings:               
     phys=(0, 0, 0) logical=(1099582, 0, 4)                       
Partition 3 does not end on cylinder boundary.                     
/dev/sdb4   *           1           1           0    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=(1099582, 0, 4)                       
Partition 4 does not end on cylinder boundary.                     
[root@school-server ~]# fdisk /dev/sdb

Command (m for help): m
Command action         
   a   toggle a bootable flag
   b   edit bsd disklabel   
   c   toggle the dos compatibility flag
   d   delete a partition               
   l   list known partition types       
   m   print this menu                 
   n   add a new partition             
   o   create a new empty DOS partition table
   p   print the partition table             
   q   quit without saving changes           
   s   create a new empty Sun disklabel     
   t   change a partition's system id       
   u   change display/entry units           
   v   verify the partition table           
   w   write table to disk and exit         
   x   extra functionality (experts only)   

Command (m for help): d
Partition number (1-4): 1
Warning: partition 1 has empty type

Command (m for help): d
Partition number (1-4): 2
Warning: partition 2 has empty type

Command (m for help): d
Partition number (1-4): 3
Warning: partition 3 has empty type

Command (m for help): d
Selected partition 4   

Command (m for help): d
No partition is defined yet!

Command (m for help): m
Command action         
   a   toggle a bootable flag
   b   edit bsd disklabel   
   c   toggle the dos compatibility flag
   d   delete a partition               
   l   list known partition types       
   m   print this menu                 
   n   add a new partition             
   o   create a new empty DOS partition table
   p   print the partition table             
   q   quit without saving changes           
   s   create a new empty Sun disklabel     
   t   change a partition's system id       
   u   change display/entry units           
   v   verify the partition table           
   w   write table to disk and exit         
   x   extra functionality (experts only)   

Command (m for help): n
Command action         
   e   extended       
   p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-1009, default 1):
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-1009, default 1009):
Using default value 1009

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
[root@school-server ~]# fdisk -l

Disk /dev/sda: 500.1 GB, 500106780160 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x90909090

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        3279    26338536    5  Extended
/dev/sda2            3280       60801   462045465   83  Linux
/dev/sda5               1        2486    19968732   83  Linux
/dev/sda6            2487        3279     6369741   82  Linux swap / Solaris

Disk /dev/sdb: 2019 MB, 2019557376 bytes
63 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 3906 * 512 = 1999872 bytes
Disk identifier: 0x000109b5

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        1009     1970546   83  Linux
[root@school-server ~]# mkfs -t vfat /dev/sdb1
mkfs.vfat 2.11 (12 Mar 2005)
[root@school-server ~]#

Каждый линуксоид в начале своего пути не понимает, зачем так много дистрибутивов, а в конце пути - создает свой.

Оффлайн kick-ass

  • Участник
  • *
  • Сообщений: 105
Re: Не работает флешка?
« Ответ #10 : 19.01.2011 13:01:57 »
[root@localhost ~]# fdisk -l

Disk /dev/hda: 80.0 GB, 80060424192 bytes
255 heads, 63 sectors/track, 9733 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x26a95444

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1          63      506016   82  Linux swap / Solaris
/dev/hda2   *          64         585     4192965    7  HPFS/NTFS
/dev/hda3             586        9733    73481310    5  Extended
/dev/hda5             586        9733    73481278+  83  Linux
[root@localhost ~]#
Флешку не видит, видит только жёсткий!


Gperted видит /dev/hda1 - linux-swap размер 494 MiB,
/dev/hda2 - ext3 // размер 4,0 GiB,
/dev/hda3 - exstended - размер 70,08 GiB
/dev/hda5 - /mnt/hda5 - размер 70,08 GiB

Как создать новый раздел если Gperted видит только жесткий, а флешку нет?
[root@localhost ~]# gparted
======================
libparted : 1.8.7
======================
Unable to open /dev/fd0 read-write (Read-only file system).  /dev/fd0 has been opened read-only.
Unable to open /dev/fd0 - unrecognised disk label.
Unable to open /dev/fd1 read-write (Read-only file system).  /dev/fd1 has been opened read-only.
Unable to open /dev/fd1 - unrecognised disk label.


 
« Последнее редактирование: 19.01.2011 16:31:11 от kick-ass »
И НА ЭТО ВАМ МОЯ КОМАНДИРСКАЯ ЗАРУКА!!!

Оффлайн ruslandh

  • Поспешай не торопясь !
  • Модератор глобальный
  • *****
  • Сообщений: 32 361
  • Учиться .... Телепатами не рождаются, ими ....
Re: Не работает флешка?
« Ответ #11 : 19.01.2011 17:17:38 »
А после того, как вы вставили флешку, что появляется в выводе команды dmesg

Оффлайн kick-ass

  • Участник
  • *
  • Сообщений: 105
Re: Не работает флешка?
« Ответ #12 : 19.01.2011 19:02:18 »
usb 1-2: new high speed USB device using ehci_hcd and address 8
usb 1-2: configuration #1 chosen from 1 choice
scsi7 : SCSI emulation for USB Mass Storage devices
usb 1-2: New USB device found, idVendor=058f, idProduct=1234
usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-2: Product: Mass Storage Device
usb 1-2: Manufacturer: Alcor Micro
usb-storage: device found at 8
usb-storage: waiting for device to settle before scanning
scsi 7:0:0:0: Direct-Access     Generic  USB Flash Disk   7.76 PQ: 0 ANSI: 2
sd 7:0:0:0: [sda] Attached SCSI removable disk
sd 7:0:0:0: Attached scsi generic sg0 type 0
usb-storage: device scan complete
[root@localhost ~]#
И НА ЭТО ВАМ МОЯ КОМАНДИРСКАЯ ЗАРУКА!!!

Оффлайн ruslandh

  • Поспешай не торопясь !
  • Модератор глобальный
  • *****
  • Сообщений: 32 361
  • Учиться .... Телепатами не рождаются, ими ....
Re: Не работает флешка?
« Ответ #13 : 19.01.2011 19:15:46 »
Цитировать
sd 7:0:0:0: [sda] Attached SCSI removable disk
sd 7:0:0:0: Attached scsi generic sg0 type 0
usb-storage: device scan complete
А после этого смотрим
fdisk -l  /dev/sda

Оффлайн kick-ass

  • Участник
  • *
  • Сообщений: 105
Re: Не работает флешка?
« Ответ #14 : 19.01.2011 19:28:25 »
[root@localhost ~]# fdisk -l  /dev/sda
[root@localhost ~]#
И НА ЭТО ВАМ МОЯ КОМАНДИРСКАЯ ЗАРУКА!!!