找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 7192|回复: 23

USB挂双硬盘的同志救命啊,究竟怎么挂双硬盘啊!(已解决)

[复制链接]
发表于 2008-5-9 21:16 | 显示全部楼层 |阅读模式
明明都识别出来了


DD-WRT v24 mini (c) 2007 NewMedia-NET GmbH
Release: 11/22/07 (SVN revision: 8420)

DD-WRT login: root
Password:
==========================================================

____  ___    __        ______ _____         ____  _  _
| _ \| _ \   \ \      / /  _ \_   _| __   _|___ \| || |
|| | || ||____\ \ /\ / /| |_) || |   \ \ / / __) | || |_
||_| ||_||_____\ V  V / |  _ < | |    \ V / / __/|__   _|
|___/|___/      \_/\_/  |_| \_\|_|     \_/ |_____|  |_|

                       DD-WRT v24
                   http://www.dd-wrt.com

==========================================================


BusyBox v1.4.2 (2007-11-22 02:41:11 CET) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

root@DD-WRT:~# dmesg
CPU revision is: 00029007
Linux version 2.4.35 (root@dd-wrt) (gcc version 3.4.4 (OpenWrt-2.0)) #2706 Thu N
ov 22 02:42:59 CET 2007
Determined physical RAM map:
memory: 04000000 @ 00000000 (usable)
On node 0 totalpages: 16384
zone(0): 16384 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd cons
ole=ttyS0,115200
CPU: BCM4712 rev 1 at 264 MHz
Using 132.000 MHz high precision timer.
Calibrating delay loop... 258.86 BogoMIPS
Dentry cache hash table entries: 8192 (order: 4, 65536 bytes)
Inode cache hash table entries: 4096 (order: 3, 32768 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 4096 (order: 2, 16384 bytes)
Page-cache hash table entries: 16384 (order: 4, 65536 bytes)
Checking for 'wait' instruction...  unavailable.
POSIX conformance testing by UNIFIX
PCI: Initializing host
PCI: Fixing up bus 0
PCI: Fixing up bridge
PCI: Setting latency timer of device 01:00.0 to 64
PCI: Fixing up bus 1
Initializing RT netlink socket
Starting kswapd
devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
squashfs: version 3.0 (2006/03/15) Phillip Lougher
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI en
abled
ttyS00 at 0xb8000300 (irq = 3) is a 16550A
ttyS01 at 0xb8000400 (irq = 3) is a 16550A
Software Watchdog Timer: 0.05, timer margin: 60 sec
PCI: Setting latency timer of device 00:02.0 to 64
Universal TUN/TAP device driver 1.5 (C)1999-2002 Maxim Krasnyansky
Physically mapped flash: Found an alias at 0x400000 for the chip at 0x0
Physically mapped flash: Found an alias at 0x800000 for the chip at 0x0
Physically mapped flash: Found an alias at 0xc00000 for the chip at 0x0
Physically mapped flash: Found an alias at 0x1000000 for the chip at 0x0
Physically mapped flash: Found an alias at 0x1400000 for the chip at 0x0
Physically mapped flash: Found an alias at 0x1800000 for the chip at 0x0
Physically mapped flash: Found an alias at 0x1c00000 for the chip at 0x0
Amd/Fujitsu Extended Query Table v1.1 at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling fast programming due to code brokenness.
Flash device: 0x400000 at 0x1c000000
bootloader size: 262144
Physically mapped flash: Filesystem type: squashfs, size=0x22b25c
Creating 5 MTD partitions on "Physically mapped flash":
0x00000000-0x00040000 : "cfe"
0x00040000-0x003f0000 : "linux"
0x000c97b8-0x00300000 : "rootfs"
mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-o
nly
0x003f0000-0x00400000 : "nvram"
0x00300000-0x003f0000 : "ddwrt"
Initializing Cryptographic API
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 4096 bind 8192)
ip_conntrack version 2.1 (512 buckets, 4096 max) - 336 bytes per conntrack
ip_tables: (C) 2000-2002 Netfilter core team
ipt_random match loaded
netfilter PSD loaded - (c) astaro AG
ipt_osf: Startng OS fingerprint matching module.
ipt_IPV4OPTSSTRIP loaded
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (squashfs filesystem) readonly.
Mounted devfs on /dev
PCI: Setting latency timer of device 00:01.0 to 64
eth1: Broadcom BCM4320 802.11 Wireless Controller 4.80.56.0
JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications AB.
vlan0: add 01:00:5e:00:00:01 mcast address to master interface
vlan0: dev_set_promiscuity(master, 1)
device eth0 entered promiscuous mode
device vlan0 entered promiscuous mode
device eth1 entered promiscuous mode
imq driver loaded.
HTB init, kernel part version 3.17
vlan1: Setting MAC address to  00 01 e3 0e 95 c5.
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
PCI: Setting latency timer of device 00:04.0 to 64
usb-ohci.c: USB OHCI at membase 0xb8004000, IRQ 2
usb-ohci.c: usb-00:04.0, PCI device 14e4:4716
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
SCSI subsystem driver Revision: 1.00
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
Journalled Block Device driver loaded
hub.c: new USB device 00:04.0-1, assigned address 2
hub.c: USB hub found
hub.c: 4 ports detected
hub.c: new USB device 00:04.0-1.1, assigned address 3
scsi0 : SCSI emulation for USB Mass Storage devices
  Vendor: Generic   Model: STORAGE DEVICE    Rev: 9407
  Type:   Direct-Access                      ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 2012160 512-byte hdwr sectors (1030 MB)
sda: Write Protect is off
Partition check:
/dev/scsi/host0/bus0/target0/lun0: p1

WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 3
device br0 entered promiscuous mode
device ppp0 entered promiscuous mode
hub.c: new USB device 00:04.0-1.4, assigned address 4
scsi1 : SCSI emulation for USB Mass Storage devices
  Vendor: IBM-DTLA  Model: -307045           Rev: 0811
  Type:   Direct-Access                      ANSI SCSI revision: 02
Attached scsi disk sdb at scsi1, channel 0, id 0, lun 0
SCSI device sdb: 90069840 512-byte hdwr sectors (46116 MB)
/dev/scsi/host1/bus0/target0/lun0: p1

WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 4
EXT2-fs warning (device sd(8,1)): ext2_read_super: mounting ext3 filesystem as e
xt2

EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
HTB init, kernel part version 3.17
HTB init, kernel part version 3.17
root@DD-WRT:~#



~~~~~~~~~~~~~~~~`

一个USB HUB,接了一个读卡机挂1G的SD卡,还有用易区挂了一个46G硬盘。两个都是ext3分区。明明都一起识别出来了,但启动命令怎么写都是只认其中一个,要么就是小的,要么就是大的,请问各位都是怎么写的。。。



insmod /jffs/lib/modules/2.4.30/usbcore.o
insmod /jffs/lib/modules/2.4.30/usb-ohci.o
insmod /jffs/lib/modules/2.4.30/scsi_mod.o
insmod /jffs/lib/modules/2.4.30/usb-storage.o
insmod /jffs/lib/modules/2.4.30/sd_mod.o
insmod /jffs/lib/modules/2.4.30/ext2.o
insmod /jffs/lib/modules/2.4.30/jbd.o
insmod /jffs/lib/modules/2.4.30/ext3.o
sleep 3
umount /jffs
umount /mnt
mount /dev/scsi/host0/bus0/target0/lun0/part1 /jffs
mount /dev/mtdblock/4 /mnt
mount -o bind /jffs/opt /opt
mount /dev/scsi/host1/bus0/target0/lun0/part1 /jffs/download

[ 本帖最后由 霏菲飞 于 2008-5-9 21:46 编辑 ]
 楼主| 发表于 2008-5-9 21:48 | 显示全部楼层
哦,成功了。。。原来要先建目录再mount 。。。

真笨啊。。弄了这么久才知道
发表于 2008-5-10 01:41 | 显示全部楼层
我的WRT54G挂一个U盘和一个硬盘,把U盘作为系统盘,把硬盘作为下载盘,不稳定,很容易出现IO错误。只能把硬盘分两个区,一个作为系统用,一个作为下载用,这样才能稳定,不知道楼上的会不会这样?
发表于 2008-5-10 15:12 | 显示全部楼层
WRT54G能接硬盘吗?没找到资料啊
发表于 2008-5-10 16:00 | 显示全部楼层
原帖由 wuhuazai 于 2008-5-10 15:12 发表
WRT54G能接硬盘吗?没找到资料啊


改造的,加了2个USB口.
发表于 2008-5-10 16:24 | 显示全部楼层
原帖由 阿键 于 2008-5-10 16:00 发表


改造的,加了2个USB口.

你的WRT54G是什么版本的?
 楼主| 发表于 2008-5-10 22:00 | 显示全部楼层
原帖由 阿键 于 2008-5-10 01:41 发表
我的WRT54G挂一个U盘和一个硬盘,把U盘作为系统盘,把硬盘作为下载盘,不稳定,很容易出现IO错误。只能把硬盘分两个区,一个作为系统用,一个作为下载用,这样才能稳定,不知道楼上的会不会这样?



飚王的读卡机
金士顿的1G SD卡,
柜底翻出来的只USB1.1的HUB,(最廉价的那种,电源接口都没有,芯片也没有,只有一坨牛屎集成电路的)
屏蔽了坏道的3.5寸IBM46G(也是柜底翻出来的,噪音不小)
正行的正货易驱(这个东东是好东西,不是那种三四十的山寨货)

以上搭配起来很稳定。。。。。。。。

柜底还翻出一个INTEL的10万像素摄像头准备挂上。。还有打印机。。

需要路由USB供电的东东其实也就摄像头+读卡机,应该没问题

[ 本帖最后由 霏菲飞 于 2008-5-10 22:01 编辑 ]
发表于 2008-5-10 23:50 | 显示全部楼层
我也是1.1的hub,估计是一样的,四口的,挂是可以挂上,如果长时间BT就会IO出错/
 楼主| 发表于 2008-5-11 12:24 | 显示全部楼层
就是这个,1.1的HUB拆开只有一坨牛屎的。。好一点的起码会预留个电源插座,这个也没留


多长时间才算长,我已经挂了两天多了,不停的下载,没发觉有问题。。

你是不是硬盘盒或者IDE转USB的那东东供电不足啊,一般都是电源问题

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
发表于 2008-5-11 12:41 | 显示全部楼层
你的系统安装在U盘上吗?
发表于 2008-5-11 13:16 | 显示全部楼层
我的USB接口已经是3A的了,所以无需再外接电源了.
发表于 2008-5-12 22:31 | 显示全部楼层
霏菲飞,你现在用什么软件下载BT?是ml还是rtorrent?
 楼主| 发表于 2008-5-12 22:54 | 显示全部楼层
mldonkey
发表于 2008-5-12 23:37 | 显示全部楼层
我用rtorrent会出问题.
发表于 2008-6-10 11:04 | 显示全部楼层
原帖由 霏菲飞 于 2008-5-9 21:48 发表
哦,成功了。。。原来要先建目录再mount 。。。

真笨啊。。弄了这么久才知道


不是很明白,我也是这样挂的,但是还是只能认出1个盘

我在我的路由器上,挂了两个USB设备,一个u盘1G(ext2),一个移动硬盘13G(fat32),用dmesg也能看到两个设备:
SCSI subsystem driver Revision: 1.00
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
hub.c: new USB device 00:04.0-1, assigned address 2
Journalled Block Device driver loaded
scsi0 : SCSI emulation for USB Mass Storage devices
  Vendor: USB2.0    Model: Flash Disk        Rev: 4.00
  Type:   Direct-Access                      ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 2065407 512-byte hdwr sectors (1057 MB)
sda: Write Protect is off
Partition check:
/dev/scsi/host0/bus0/target0/lun0: p1
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
hub.c: new USB device 00:04.0-2, assigned address 3
scsi1 : SCSI emulation for USB Mass Storage devices
  Vendor: USB 2.0   Model: Storage Device    Rev: 0100
  Type:   Direct-Access                      ANSI SCSI revision: 02
Attached scsi disk sdb at scsi1, channel 0, id 0, lun 0
SCSI device sdb: 26688576 512-byte hdwr sectors (13665 MB)
/dev/scsi/host1/bus0/target0/lun0: p1
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 3

command里面的命令如下:
insmod /jffs/lib/modules/2.4.30/usbcore.o
insmod /jffs/lib/modules/2.4.30/usb-ohci.o
insmod /jffs/lib/modules/2.4.30/scsi_mod.o
insmod /jffs/lib/modules/2.4.30/usb-storage.o
insmod /jffs/lib/modules/2.4.30/sd_mod.o
insmod /jffs/lib/modules/2.4.30/ext2.o
insmod /jffs/lib/modules/2.4.30/jbd.o
insmod /jffs/lib/modules/2.4.30/vfat.o
sleep 3
umount /jffs
umount /mnt
mount /dev/scsi/host0/bus0/target0/lun0/part1 /jffs
mount /dev/mtdblock/4 /mnt
mount -o bind /jffs/opt /opt
mount /dev/scsi/host1/bus0/target0/lun0/part1 /jffs/download -t vfat -o iocharset=utf8,umask=0


mount命令下显示:
root@DD-WRT:~# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
/dev/scsi/host0/bus0/target0/lun0/part1 on /jffs type ext2 (rw)
/dev/mtdblock/4 on /mnt type jffs2 (rw)
/dev/scsi/host0/bus0/target0/lun0/part1 on /opt type ext2 (rw)


这个应该说明移动硬盘没挂上把,DD-WRT里面jffs也只显示了u盘的容量1G,硬盘的容量上面没有
我想把u盘装系统,移动硬盘装下载的东东。怎样才能把两个设备都挂上呢?
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-6-16 05:00

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com

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