LinuxSir.cn,穿越时空的Linuxsir!

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

USB移动硬盘的解决办法

[复制链接]
发表于 2003-4-24 12:32:01 | 显示全部楼层
[root@localhost richard]# fdisk -l /dev/sda

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sda1             1     14593 117218241    7  HPFS/NTFS

usb组件肯定是装了,但只能在root下用!
发表于 2003-4-24 18:06:43 | 显示全部楼层
另外,我还发现一个怪现象:
这是/etc/fstab里关于我的usb硬盘的内容:
none /mnt/removable supermount dev=/dev/sda1,fs=ntfs,ro,--,iocharset=gb2312,codepage=936,umask=0 0 0
每次打开硬盘电源后,直接 mount /mnt/removable 可以mount上,但是一旦cd /mnt/removable 就提示:bash: cd: removable/: Input/output error
, 而如果我把它umount后再用 mount -t ntfs -o iocharset=cp936 /dev/sda1 /mnt/removable/ 就没问题。
当然这也是在root下操作。
发表于 2003-5-9 11:36:38 | 显示全部楼层
mrproper不是可以杀掉当前的配置文件吗?为什么先mrproper再备份配置文件?
最初由 ken_chu 发表
经过整整一下午的努力,两次clean install系统,我的纽曼移动王(GL641USB)终于也能用拉!
下面是我的步骤(在RH 8.0下)
1. 安装kernel-source rpm
2. cd /usr/src/linux-2.4, 修改drivers/usb/storage/unusual_devs.h
3. vi Makefile, 将版本号-14custom改成-14.(这一步很重要.不然下面编译出来的module就会因为与内核2.4.18-14的版本号不符而无法加载)
4. make mrproper (不做这一步的话,make module刚一开始就会出错)
5. cp /boot/config-2.4.18-14 .config
    make oldconfig
    make dep
    make modules(这一步在我的机器上进行了大约25分钟后报错)
6. cd drivers/usb/storage, 可以看到usb-storage.o已经编译了.最好备份起来下次重装时用.
7. 覆盖/lib/modules/kernel/drivers/usb/storage/usb-storage.o,
然后modprobe usb-storage, 插上USB硬盘,搞定!

(我上传了自己编译的usb-storage.o, for i686, kernel 2.4.18-14, 解压后就能用了)
发表于 2003-5-20 15:07:38 | 显示全部楼层
我的U盘没有问题,但是移动硬盘就不行了.
# fdisk -l /dev/sd*
Disk /dev/sda: 65 MB, 65536000 bytes
18 heads, 32 sectors/track, 222 cylinders
Units = cylinders of 576 * 512 = 294912 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sda1   *         1       223     63952    6  FAT16
Partition 1 has different physical/logical endings:
     phys=(974, 17, 32) logical=(222, 1, 32)

Disk /dev/sda1: 65 MB, 65486848 bytes
3 heads, 42 sectors/track, 1015 cylinders
Units = cylinders of 126 * 512 = 64512 bytes

     Device Boot    Start       End    Blocks   Id  System
/dev/sda1p1   ?  32119908   5923594 497115833   29  Unknown
Partition 1 has different physical/logical beginnings (non-Linux?):
     phys=(350, 88, 29) logical=(32119907, 1, 30)
Partition 1 has different physical/logical endings:
     phys=(430, 253, 52) logical=(5923593, 0, 5)
Partition 1 does not end on cylinder boundary.
/dev/sda1p2   ?  24489629   5906238 976730017    3  XENIX usr
Partition 2 has different physical/logical beginnings (non-Linux?):
     phys=(370, 26, 60) logical=(24489628, 2, 14)
Partition 2 has different physical/logical endings:
     phys=(210, 64, 49) logical=(5906237, 2, 17)
Partition 2 does not end on cylinder boundary.
/dev/sda1p3   ?         1         1         0   6c  Unknown
Partition 3 has different physical/logical beginnings (non-Linux?):
     phys=(361, 102, 33) logical=(0, 0, 11)
Partition 3 has different physical/logical endings:
     phys=(269, 101, 36) logical=(0, 0, 10)
Partition 3 does not end on cylinder boundary.
/dev/sda1p4      11098119  19316955 517786680+  49  Unknown
Partition 4 has different physical/logical beginnings (non-Linux?):
     phys=(332, 76, 4) logical=(11098118, 1, 3)
Partition 4 has different physical/logical endings:
     phys=(344, 78, 21) logical=(19316954, 1, 27)
Partition 4 does not end on cylinder boundary.

Partition table entries are not in disk order


# lsusb
Unknown line at line 58
Unknown line at line 2296
Unknown line at line 2297
Unknown line at line 2298
Unknown line at line 2299
Unknown line at line 2300
Unknown line at line 2301
Unknown line at line 2302
Unknown line at line 2303
Unknown line at line 2304
Unknown line at line 2305
Unknown line at line 2306
Unknown line at line 2307
Unknown line at line 2308
Unknown line at line 2309
Unknown line at line 2310
Unknown line at line 2311
Unknown line at line 2312
Unknown line at line 2313
Unknown line at line 2314
Unknown line at line 2315
Unknown line at line 2316
Unknown line at line 2317
Unknown line at line 2318
Unknown line at line 2319
Unknown line at line 2320
Unknown line at line 2321
Unknown line at line 2322
Unknown line at line 2323
Unknown line at line 2324
Unknown line at line 2325
Unknown line at line 2326
Unknown line at line 2327
Unknown line at line 2328
Unknown line at line 2329
Unknown line at line 2330
Unknown line at line 2331
Unknown line at line 2332
Unknown line at line 2333
Unknown line at line 2334
Unknown line at line 2335

Bus 004 Device 001: ID 0000:0000
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.00
  bDeviceClass            9 Hub
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x0000
  idProduct          0x0000
  bcdDevice            0.00
  iManufacturer           0
  iProduct                2 USB UHCI Root Hub
  iSerial                 1 e400
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           25
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x40
      Self Powered
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0
      bInterfaceProtocol      0
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               none
        wMaxPacketSize          8
        bInterval             255
  Language IDs: (length=4)
     0000 (null)((null))

Bus 004 Device 002: ID 04ce:0002 ScanLogic Corp. SL11R-IDE IDE Bridge
  Language IDs: none (cannot get min. string descriptor; got len=-1, error=84:Invalid or incomplete multibyte or wide character)
cannot get string descriptor 1, error = Invalid or incomplete multibyte or wide character(84)
cannot get string descriptor 1, error = Invalid or incomplete multibyte or wide character(84)
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 Interface
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x04ce ScanLogic Corp.
  idProduct          0x0002 SL11R-IDE IDE Bridge
  bcdDevice            2.60
  iManufacturer           1
  iProduct                1
  iSerial                 0
  bNumConfigurations      1
cannot get config descriptor 0, Invalid or incomplete multibyte or wide character (84)
  Language IDs: none (cannot get min. string descriptor; got len=-1, error=84:Invalid or incomplete multibyte or wide character)
发表于 2003-5-20 15:19:16 | 显示全部楼层
大的那种移动硬盘应该看一下这里
http://www.linuxsir.cn/forum.php?mod=viewthread&tid=31154
发表于 2003-6-18 10:56:13 | 显示全部楼层
我的纽曼怎么也搞不定。2.4.20-18
发表于 2003-6-30 09:09:53 | 显示全部楼层

??

为什么我的Source/linux/drivers/下面没有usb这个目录。更找不到storage/unusual_devs.h 。
请教。谢谢。
发表于 2003-6-30 09:16:44 | 显示全部楼层
最初由 buxiang 发表
我的纽曼怎么也搞不定。2.4.20-18


试试这个:

http://www.linuxsir.cn/forum.php?mod=viewthread&tid=21251
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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