LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: hmglll

有USB移动硬盘无搞惦的报个数

[复制链接]
发表于 2002-11-30 19:28:22 | 显示全部楼层

usb硬盘问题

我的是百佳泰的硬盘盒,里面装的是富士通10g的硬盘,在linux下查了一下看到以下内容,有救吗?
[root@notebook root]# fdisk -l /dev/sda
[root@notebook root]# cat /proc/scsi/scsi
Attached devices:
Host: scsi1 Channel: 00 Id: 00 Lun: 00
  Vendor: MATSHITA Model: UJDA330          Rev: 1.00
  Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 00 Lun: 00
  Vendor:          Model:                  Rev:
  Type:   <NULL>                ANSI SCSI revision: ffffffff
[root@notebook root]# lsmod
Module                  Size  Used by    Tainted: PF
msdos                   8188   0  (autoclean)
loop                   12152   0  (autoclean)
sd_mod                 13584   0  (autoclean) (unused)
i810_audio             25224   0  (autoclean)
ac97_codec             13416   0  (autoclean) [i810_audio]
soundcore               6532   2  (autoclean) [i810_audio]
vmnet                  25504   6
parport_pc             19108   0
parport                37152   0  [parport_pc]
vmmon                  24276   0  (unused)
autofs                 13348   0  (autoclean) (unused)
eepro100               22264   1
ipt_REJECT              3736   6  (autoclean)
iptable_filter          2412   1  (autoclean)
ip_tables              14936   2  [ipt_REJECT iptable_filter]
ide-scsi               10512   0
ide-cd                 33608   0
cdrom                  33696   0  [ide-cd]
ohci1394               20108   0  (unused)
ieee1394               46892   0  [ohci1394]
nls_cp936             124988   4  (autoclean)
vfat                   13084   2  (autoclean)
fat                    38712   0  (autoclean) [msdos vfat]
usb-storage            62064   0
scsi_mod              107240   4  [sd_mod ide-scsi usb-storage]
mousedev                5524   1
keybdev                 2976   0  (unused)
hid                    22244   0
input                   5920   0  [mousedev keybdev hid]
usb-uhci               26188   0  (unused)
usbcore                77024   1  [usb-storage hid usb-uhci]
ext3                   70368   2
jbd                    52212   2  [ext3]
[root@notebook root]# modprobe usb-storage
[root@notebook root]# modprobe scsi_mod
[root@notebook root]# modprobe sd_mod
[root@notebook root]# mount -t vfat /dev/sda1 /mnt/usb
mount: /dev/sda1 is not a valid block device
[root@notebook root]# mount -t vfat /dev/sda0 /mnt/usb
mount: special device /dev/sda0 does not exist
[root@notebook root]# mount -t vfat /dev/sdab /mnt/usb
mount: /dev/sdab is not a valid block device
[root@notebook root]# mount
/dev/hda3 on / type ext3 (rw)
none on /proc type proc (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
/dev/hda1 on /boot type ext3 (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
none on /dev/shm type tmpfs (rw)
/dev/hda5 on /mnt/wind type vfat (rw,codepage=936,iocharset=cp936)
/dev/hda6 on /mnt/wine type vfat (rw,codepage=936,iocharset=cp936)
[root@notebook root]#
 楼主| 发表于 2002-12-2 15:17:45 | 显示全部楼层
和我的一样,唉!!!
发表于 2002-12-3 13:25:47 | 显示全部楼层

没救了?

555555555悲惨!
 楼主| 发表于 2002-12-23 08:43:55 | 显示全部楼层

fox兄弟

能否将你的经验详细介绍与大家分享!
发表于 2002-12-24 08:49:22 | 显示全部楼层
我只是升级以下内核就能用了。内核配置和原先的内核配置一样,可能在2.4.20中增加了对芯片GL811的支持。

修改/usr/src/linux-2.4.18/drivers/usb/storage/unusual_devs.h文件的方法我也没有试过,我查过很多论坛,都是建议修改unusual_devs.h。如果升级内核不行,可以试试。
发表于 2003-1-4 13:25:46 | 显示全部楼层

我的20g也不能用

我的usb硬盘IBM20g笔记本,盒是数码宝盒usb2.0,数据线还副电源(可从键盘取电),在MDK9下死活看不到。
我的另一个64m优盘可以。我在红旗LINUX3.2可以认出usb硬盘,怎么办?
下面是dmesg:

Linux version 2.4.19-16mdk (quintela@bi.mandrakesoft.com) (gcc version 3.2 (Mandrake Linux 9.0 3.2-1mdk)) #1 Fri Sep 20 18:15:05 CEST 2002
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 00000000000a0000 (usable)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000001fff0000 (usable)
BIOS-e820: 000000001fff0000 - 000000001fff3000 (ACPI NVS)
BIOS-e820: 000000001fff3000 - 0000000020000000 (ACPI data)
BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
511MB LOWMEM available.
Advanced speculative caching feature not present
On node 0 totalpages: 131056
zone(0): 4096 pages.
zone(1): 126960 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/hdb1 devfs=mount
Local APIC disabled by BIOS -- reenabling.
Found and enabled local APIC!
Initializing CPU#0
Detected 654.415 MHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 1304.16 BogoMIPS
Memory: 516048k/524224k available (1176k kernel code, 7792k reserved, 444k data, 136k init, 0k highmem)
Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
Inode cache hash table entries: 32768 (order: 6, 262144 bytes)
Mount-cache hash table entries: 8192 (order: 4, 65536 bytes)
Buffer-cache hash table entries: 32768 (order: 5, 131072 bytes)
Page-cache hash table entries: 131072 (order: 7, 524288 bytes)
CPU: Before vendor init, caps: 0183fbff c1c7fbff 00000000, vendor = 2
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 64K (64 bytes/line)
CPU: After vendor init, caps: 0183fbff c1c7fbff 00000000 00000000
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU:     After generic, caps: 0183fbff c1c7fbff 00000000 00000000
CPU:             Common caps: 0183fbff c1c7fbff 00000000 00000000
CPU: AMD Duron(tm) processor stepping 00
Enabling fast FPU save and restore... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
enabled ExtINT on CPU#0
ESR value before enabling vector: 00000000
ESR value after enabling vector: 00000000
Using local APIC timer interrupts.
calibrating APIC timer ...
..... CPU clock speed is 654.4577 MHz.
..... host bus clock speed is 201.3716 MHz.
cpu: 0, clocks: 2013716, slice: 1006858
CPU0<T0:2013712,T1:1006848,D:6,S:1006858,C:2013716>
mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
mtrr: detected mtrr type: Intel
PCI: PCI BIOS revision 2.10 entry at 0xfb400, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
Unknown bridge resource 0: assuming transparent
PCI: Using IRQ router VIA [1106/0686] at 00:07.0
PCI: Disabling Via external APIC routing
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
apm: BIOS version 1.2 Flags 0x07 (Driver version 1.16)
Starting kswapd
VFS: Diskquotas version dquot_6.5.0 initialized
devfs: v1.12a (20020514) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
Detected PS/2 Mouse Port.
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with HUB-6 MANY_PORTS MULTIPORT SHARE_IRQ SERIAL_PCI ISAPNP enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: IDE controller on PCI bus 00 dev 39
VP_IDE: chipset revision 16
VP_IDE: not 100% native mode: will probe irqs later
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: VIA vt82c686a (rev 22) IDE UDMA66 controller on pci00:07.1
    ide0: BM-DMA at 0xc000-0xc007, BIOS settings: hdaMA, hdbMA
    ide1: BM-DMA at 0xc008-0xc00f, BIOS settings: hdc:pio, hddMA
hda: QUANTUM FIREBALLlct15 15, ATA DISK drive
hdb: Maxtor 84320D4, ATA DISK drive
hdd: ASUS CD-S400/A, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: 29336832 sectors (15020 MB) w/418KiB Cache, CHS=1940/240/63, UDMA(66)
hdb: 8439184 sectors (4321 MB) w/256KiB Cache, CHS=525/255/63, UDMA(33)
Partition check:
/dev/ide/host0/bus0/target0/lun0: p1 p2 < p5 p6 >
/dev/ide/host0/bus0/target1/lun0: p1 p2
RAMDISK driver initialized: 16 RAM disks of 32000K size 1024 blocksize
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 4096 buckets, 32Kbytes
TCP: Hash tables configured (established 32768 bind 65536)
Linux IP multicast router 0.06 plus PIM-SM
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 92k freed
VFS: Mounted root (ext2 filesystem).
Mounted devfs on /dev
Journalled Block Device driver loaded
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
Mounted devfs on /dev
Freeing unused kernel memory: 136k freed
Real Time Clock Driver v1.10e
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-uhci.c: $Revision: 1.275 $ time 18:49:04 Sep 20 2002
usb-uhci.c: High bandwidth mode enabled
PCI: Found IRQ 12 for device 00:07.2
PCI: Sharing IRQ 12 with 00:07.3
usb-uhci.c: USB UHCI at I/O 0xc400, IRQ 12
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
PCI: Found IRQ 12 for device 00:07.3
PCI: Sharing IRQ 12 with 00:07.2
usb-uhci.c: USB UHCI at I/O 0xc800, IRQ 12
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 2 ports detected
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
usbdevfs: remount parameter error
hub.c: USB new device connect on bus1/1, assigned device number 2
EXT3 FS 2.4-0.9.17, 10 Jan 2002 on ide0(3,65), internal journal
usb.c: USB device 2 (vend/prod 0x5e3/0x1205) is not claimed by any active driver.
Adding Swap: 626524k swap-space (priority -1)
usb.c: registered new driver usb_mouse
input0:  USB Mouse on usb1:2.0
usbmouse.c: v1.6:USB HID Boot Protocol mouse driver
usb.c: registered new driver hiddev
usb.c: registered new driver hid
hid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik <vojtech@suse.cz>
hid-core.c: USB HID support drivers
mice: PS/2 mouse device common for all mice
SCSI subsystem driver Revision: 1.00
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
NTFS driver 2.1.0a [Flags: R/O MODULE].
NTFS-fs warning (device 03:01): parse_options(): Option iocharset is deprecated. Please use option nls=<charsetname> in the future.
NTFS volume version 3.0.
MSDOS FS: IO charset gb2312
MSDOS FS: Using codepage 936
MSDOS FS: IO charset gb2312
MSDOS FS: Using codepage 936
8139too Fast Ethernet driver 0.9.25
PCI: Found IRQ 11 for device 00:0c.0
eth0: RealTek RTL8139 Fast Ethernet at 0xe093e000, 00:e0:4c:e0:f9:18, IRQ 11
eth0:  Identified 8139 chip type 'RTL-8139C'
eth0: Setting half-duplex based on auto-negotiated partner ability 0000.
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
PCI: Found IRQ 10 for device 00:0a.0
PCI: Sharing IRQ 10 with 00:07.5
inserting floppy driver for 2.4.19-16mdk
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
hdd: ATAPI 40X CD-ROM drive, 128kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.12
parport0: PC-style at 0x378 [PCSPP,EPP]
parport_pc: Via 686A parallel port: io=0x378
lp0: using parport0 (polling).
spurious 8259A interrupt: IRQ7.
CSLIP: code copyright 1989 Regents of the University of California
PPP generic driver version 2.4.2
PPP BSD Compression module registered
PPP Deflate Compression module registered
发表于 2003-1-6 19:32:21 | 显示全部楼层
我的IBM 10G 硬盘,纽曼的小灵通盒usb1.1,linux下一直用不了,但同学的32M闪盘插上就能用


[root@localhost d]# fdisk /dev/sda
SCSI device (ioctl) reports ILLEGAL REQUEST.
SCSI device sda: 19640881 512-byte hdwr sectors (10056 MB)
sda: test WP failed, assume Write Enabled
I/O error: dev 08:00, sector 0
unable to read partition table
I/O error: dev 08:00, sector 0
I/O error: dev 08:00, sector 0
I/O error: dev 08:00, sector 0

Unable to read /dev/sda

[root@localhost d]# fdisk /dev/sda1
SCSI device (ioctl) reports ILLEGAL REQUEST.
SCSI device sda: 19640881 512-byte hdwr sectors (10056 MB)
sda: test WP failed, assume Write Enabled
I/O error: dev 08:00, sector 0
unable to read partition table
SCSI device (ioctl) reports ILLEGAL REQUEST.
SCSI device sda: 19640881 512-byte hdwr sectors (10056 MB)
sda: test WP failed, assume Write Enabled
I/O error: dev 08:00, sector 0
unable to read partition table

Unable to open /dev/sda1

[root@localhost usb]# less /proc/bus/usb/devices
T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 0.00
S:  Product=USB UHCI Root Hub
S:  SerialNumber=d800
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=255ms
T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 0.00
S:  Product=USB UHCI Root Hub
S:  SerialNumber=d400
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=255ms
T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=05e3 ProdID=0702 Rev= 1.13
S:  Product=USB Storage Device
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=  0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=  0ms

[root@localhost usb-storage-0]# cat /proc/scsi/usb-storage-0/0
   Host scsi0: usb-storage
       Vendor: EagleTec
      Product: USB Storage Device
Serial Number: None
     Protocol: Transparent SCSI
    Transport: Bulk
         GUID: 05e307020000000000000000
     Attached: Yes

[root@localhost usb-storage-0]# lsmod
Module                  Size  Used by    Not tainted
sd_mod                 12928   0  (autoclean)
pcmcia_core            50752   0
ide-cd                 30272   0  (autoclean)
cdrom                  32192   0  (autoclean) [ide-cd]
nls_cp936             124896   6  (autoclean)
vfat                   12092   3  (autoclean)
fat                    37400   0  (autoclean) [vfat]
usb-storage            58156   1
scsi_mod              108608   2  [sd_mod usb-storage]
usb-uhci               24484   0  (unused)
usbcore                73152   1  [usb-storage usb-uhci]
发表于 2003-3-11 12:49:52 | 显示全部楼层
fox兄弟,你的gl811能用了吗?我的也是gl811,用不上,还是那个IO错误.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表