OpenWrt Forum Archive

Topic: can't acces USB HDD

The content of this topic has been archived on 13 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I've got a 40 gb freecom usb hdd and OpenWrt Kamikaze 7.07 running on my Slug, if i go to status->usb on the slug i can see this


03 3 ATAPI-6 Bridge Controller  FREECOM.  07ab:fccb 2.00

What looks good to me, my question is how can i acces the drive in Windows vista? i'm not able to access the drive at all (to be fair i'm not that good in linux, but want to give it a try) have tried to telnet into the device but gives me an error saying cannot connect to host connection fail... etc.

Could you please help me..

Thanks in advance.

I don't quite understand...

are you trying to telnet to the 40gb hdd?

or the router itself?

i would also recommend using ssh intead of telnet for security reasons

I try to telnet into the slug, not the hdd to mount te drive manual.

My question is, how do i acces the drive, i mean, the firmware clearly detect it bit i can't see anyewhere a link or a location of the drive, or drive letter etc.

(Last edited by Wrapperz on 16 Aug 2007, 13:43)

If you want it to be accessible from Windows boxen, you'll need to set up Samba on your router and add the USB HD as a Samba share.

Hi Wrapperz,

1. Is Your HDD already formatted to be a Linux partition?

2. Did You mount the drive to appropiate directory?

3. Use i.e. Putty.exe to create ssh connection to Your router.

Greetings,

Bart

OpenWRT RC6 on Asus WL-500g Premium

I did format in NTFS, did nothing else jet. Please help me out i really don't know what to do.

There are no NTFS kernel modules to my knowledge.

Make it a vfat HD, or ext3, preferably. You can even do reiserfs if you want, or xfs. You won't be accessing the HD directly from a Windows box anyway.

I do want to acces it in windows that's the whole point of it. I see My drive in the status pannel but it's not mounted my question is simply how do i mount it so i can map the drive in windows vista.

You don't read do you?

1. There is no NTFS module, therefore, no driver.

root@Zeus:~# ipkg list | grep ntfs
root@Zeus:~#

2. You cannot mount it, because the kernel does not recognise the FS. See point 1.
3. Even if you'd build the driver, it would be read-only, which you probably do not want (I cannot tell if NTFS-3G runs on 2.4). Furthermore, building the module is kind of tedious, as you need kernel sources, and a MIPS toolchain. I assume your boxen run Windows, no *nix.
4. You do not have direct access to the HD since you have to pass through Linux (aka your router)

Keep in mind this is a Linux system Wrapperz. The fact your drive is NTFS does not change anything, Windows cannot just ignore the host OS your drive is running on. It's not that simple. It still needs to interface with Linux.

So format that thing, use something decent (ext3, no vfat) if it's not intended to be plugged in directly to the Windows clients anymore. Then set up Samba on your server and map it on your Windows boxen.

(Last edited by Borromini on 18 Aug 2007, 19:04)

Like Borromini said, there is no NTFS driver for OpenWRT yet.

If You mean that You want to unplug the HDD from ASUS and take it with You (i.e. to Your friends) and connect to machine with Windows, maybe this could be the good solution:

http://www.digg.com/linux_unix/Mount_yo … r_windows_

I didn't tested. Maybe I will do when I have some spare time between work and studying smile
_____________________________________________

OpenWRT RC6 on Asus WL-500g Premium

Right, i did some work but i'm stuck again.

i did manage to format my hdd into ext2 via a live cd. i did mount it (jah, i'm getting there) on /hdd but now i'm not sure how to set up samba etc. could anyone send me in the right direction.

i found that prog, ext2 volume manager what will recognise the drive in windows when connected via usb. but i need to have a interface for windows-linux.

thanks

Good point,

Macsat I have used Your site many times before starting the "journey" with OpenWrt.

I never needed Samba, since I always use FTP (it is fastest protocol for file transfers), but just because of curiosity I will try it today.

I will let You know if it succeeded.

Greetings,
_________________________________________________

OpenWRT RC6 on Asus WL-500g Premium

kicking an old post. Hopefully somebody resolved this in the meantime and can help me out.

I just upgraded to backfire 10.3 rc4
got all running, except for my freecom HDD that I got attached to my wrt160nl

I installed several packages (kmod-usb-storage, ohci, usb2 etc) and insmod-ed these. It appears to recognise the USB port and the disk, however not identified all the way so that I can mount an identifiable device...

not sure, but it feels this message has something to do with this:
"usb-storage: waiting for device to settle before scanning"


lsmod returns:
Module                  Size  Used by    Tainted: P
ext3                   91312  0
jbd                    31376  1 ext3
usb_storage            32720  0
ohci_hcd               16912  0
ath_pci               280992  0
ath_hal               293920  1 ath_pci
nf_nat_tftp              432  0
nf_conntrack_tftp       2400  1 nf_nat_tftp
nf_nat_irc               816  0
nf_conntrack_irc        2512  1 nf_nat_irc
nf_nat_ftp              1328  0
nf_conntrack_ftp        4640  1 nf_nat_ftp
ipt_MASQUERADE           992  1
iptable_nat             2768  1
nf_nat                 10912  5 nf_nat_tftp,nf_nat_irc,nf_nat_ftp,ipt_MASQUERADE,iptable_nat
xt_NOTRACK               544  0
iptable_raw              656  1
xt_state                 768  3
nf_conntrack_ipv4       7920  6 iptable_nat,nf_nat
nf_defrag_ipv4           624  1 nf_conntrack_ipv4
nf_conntrack           38848 12 nf_nat_tftp,nf_conntrack_tftp,nf_nat_irc,nf_conntrack_irc,nf_nat_ftp,nf_conntrack_ftp,ipt_MASQUERADE,iptable_nat,nf_nat,xt_NOTRACK,xt_state,nf_conntrack_ipv4
ehci_hcd               31456  0
sd_mod                 21616  0
pppoe                   8304  0
pppox                   1216  1 pppoe
ipt_REJECT              1680  2
xt_TCPMSS               2560  2
ipt_LOG                 4176  0
xt_comment               464  0
xt_multiport            1792  0
xt_mac                   576  0
xt_limit                1008  1
iptable_mangle           992  0
iptable_filter           768  1
ip_tables               8544  4 iptable_nat,iptable_raw,iptable_mangle,iptable_filter
xt_tcpudp               1760  5
x_tables                9296 13 ipt_MASQUERADE,iptable_nat,xt_NOTRACK,xt_state,ipt_REJECT,xt_TCPMSS,ipt_LOG,xt_comment,xt_multiport,xt_mac,xt_limit,ip_tables,xt_tcpudp
ext2                   42240  0
ppp_async               6400  0
ppp_generic            18864  3 pppoe,pppox,ppp_async
slhc                    4160  1 ppp_generic
ath9k                  70752  0
ath9k_common            1088  1 ath9k
ath9k_hw              234160  2 ath9k,ath9k_common
ath                    12816  2 ath9k,ath9k_hw
mac80211              193872  1 ath9k
usbcore                97536  4 usb_storage,ohci_hcd,ehci_hcd
scsi_mod               68240  2 usb_storage,sd_mod
nls_base                4800  1 usbcore
mbcache                 3920  0
crc_ccitt                976  1 ppp_async
cfg80211              113472  3 ath9k,ath,mac80211
compat_firmware_class     4672  0
compat                  1776  1 cfg80211
arc4                     816  2
aes_generic            30256  0
deflate                 1360  0
ecb                     1328  2
cbc                     2016  0
leds_gpio               1456  0
button_hotplug          2560  0
gpio_buttons            2128  0
input_polldev           1360  1 gpio_buttons
input_core             17056  4 button_hotplug,gpio_buttons,input_polldev

and DMESG
Linux version 2.6.32.25 (openwrt@ampere) (gcc version 4.3.3 (GCC) ) #1 Fri Nov 19 20:27:50 PST 2010
prom: fw_arg0=00000009, fw_arg1=a1f67fb0, fw_arg2=a1f68470, fw_arg3=00000008
MyLoader: sysp=aaaa5554, boardp=aaaa5554, parts=aaaa5554
bootconsole [early0] enabled
CPU revision is: 00019374 (MIPS 24Kc)
Atheros AR9130 rev 2, CPU:400.000 MHz, AHB:200.000 MHz, DDR:400.000 MHz
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00002000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00002000
On node 0 totalpages: 8192
free_area_init_node: node 0, pgdat 802d2710, node_mem_map 81000000
  Normal zone: 64 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 8128 pages, LIFO batch:0
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: rootfstype=squashfs,yaffs,jffs2 noinitrd console=ttyS0,115200 board=WRT160NL
PID hash table entries: 128 (order: -3, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Writing ErrCtl register=00000000
Readback ErrCtl register=00000000
Memory: 29304k/32768k available (2113k kernel code, 3464k reserved, 395k data, 152k init, 0k highmem)
SLUB: Genslabs=7, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:56
Calibrating delay loop... 266.24 BogoMIPS (lpj=1331200)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
MIPS: machine is Linksys WRT160NL
bio: create slab <bio-0> at 0
Switching to clocksource MIPS
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NET: Registered protocol family 1
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
yaffs Nov 19 2010 20:21:41 Installing.
msgmni has been set to 57
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
console [ttyS0] enabled, bootconsole disabled
Atheros AR71xx SPI Controller driver version 0.2.4
m25p80 spi0.0: en25p64 (8192 Kbytes)
spi0.0: searching for MyLoader partition table at offset 0x10000
spi0.0: searching for MyLoader partition table at offset 0x20000
spi0.0: searching for MyLoader partition table at offset 0x30000
spi0.0: searching for MyLoader partition table at offset 0x40000
spi0.0: no MyLoader partition table found
Searching for RedBoot partition table in spi0.0 at offset 0x7e0000
Searching for RedBoot partition table in spi0.0 at offset 0x7f0000
No RedBoot partition table detected in spi0.0
6 wrt160nl partitions found on MTD device spi0.0
Creating 6 MTD partitions on "spi0.0":
0x000000000000-0x000000040000 : "u-boot"
0x000000040000-0x000000170000 : "kernel"
0x000000170000-0x0000007e0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=380000, len=460000
0x000000380000-0x0000007e0000 : "rootfs_data"
0x0000007e0000-0x0000007f0000 : "nvram"
0x0000007f0000-0x000000800000 : "art"
0x000000040000-0x0000007e0000 : "firmware"
ag71xx_mdio: probed
eth0: Atheros AG71xx at 0xb9000000, irq 4
Registering RTL8306SD switch with Chip ID: 0x5988, version: 0x0000
eth0: connected to PHY at ag71xx-mdio:00 [uid=00008306, driver=Realtek RTL8306S]
eth1: Atheros AG71xx at 0xba000000, irq 5
eth1: connected to PHY at ag71xx-mdio:04 [uid=00008306, driver=Realtek RTL8306S]
Atheros AR71xx hardware watchdog driver version 0.1.0
ar71xx-wdt: timeout=15 secs (max=21)
TCP westwood registered
NET: Registered protocol family 17
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 on device 31:2.
Freeing unused kernel memory: 152k freed
Please be patient, while OpenWrt loads ...
input: gpio-buttons as /devices/platform/gpio-buttons/input/input0
Button Hotplug driver version 0.3.1
Registered led device: wrt160nl:blue:power
Registered led device: wrt160nl:amber:wps
Registered led device: wrt160nl:blue:wps
Registered led device: wrt160nl:blue:wlan
ar71xx: pll_reg 0xb8050014: 0x13000a44
eth0: link up (100Mbps/Full duplex)
mini_fo: using base directory: /
mini_fo: using storage directory: /overlay
eth0: link down
device eth0 entered promiscuous mode
Compat-wireless backport release: compat-wireless-2010-10-14-7-gab01eca
Backport based on wireless-testing.git master-2010-10-19
ar71xx: pll_reg 0xb8050014: 0x13000a44
eth0: link up (100Mbps/Full duplex)
br-lan: port 1(eth0) entering forwarding state
cfg80211: Calling CRDA to update world regulatory domain
ar71xx: pll_reg 0xb8050018: 0x13000a44
eth1: link up (100Mbps/Full duplex)
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
cfg80211: World regulatory domain updated:
    (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
usbcore: registered new device driver usb
ath: EEPROM regdomain: 0x0
ath: EEPROM indicates default country code should be used
ath: doing EEPROM country->regdmn map search
ath: country maps to regdmn code: 0x3a
ath: Country alpha2 being used: US
ath: Regpair used: 0x3a
ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
ieee80211 phy0: Atheros AR9100 MAC/BB Rev:0 AR2122 RF Rev:a2 mem=0xb80c0000, irq=2
cfg80211: Calling CRDA for country: US
cfg80211: Regulatory domain changed to country: US
    (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
    (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
    (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
PPP generic driver version 2.4.2
ip_tables: (C) 2000-2006 Netfilter Core Team
NET: Registered protocol family 24
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ar71xx-ehci ar71xx-ehci: Atheros AR91xx built-in EHCI controller
ar71xx-ehci ar71xx-ehci: new USB bus registered, assigned bus number 1
ar71xx-ehci ar71xx-ehci: irq 3, io mem 0x1b000000
ar71xx-ehci ar71xx-ehci: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
nf_conntrack version 0.5.0 (460 buckets, 1840 max)
CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or
sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
usb 1-1: new high speed USB device using ar71xx-ehci and address 2
usb 1-1: configuration #1 chosen from 1 choice
ath_hal: module license 'Proprietary' taints kernel.
Disabling lock debugging due to kernel taint
ath_hal: 2009-05-08 (AR5210, AR5211, AR5212, AR5416, RF5111, RF5112, RF2413, RF5413, RF2133, RF2425, REGOPS_FUNC, XR)
ath_pci: trunk
wlan: trunk
wlan: mac acl policy registered
ath_rate_minstrel: Minstrel automatic rate control algorithm 1.2 (trunk)
ath_rate_minstrel: look around rate set to 10%
ath_rate_minstrel: EWMA rolloff level set to 75%
ath_rate_minstrel: max segment size in the mrr set to 6000 us
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
Initializing USB Mass Storage driver...
scsi0 : SCSI emulation for USB Mass Storage devices
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
eth1: link down
device wlan0 entered promiscuous mode
br-lan: port 2(wlan0) entering forwarding state
ar71xx: pll_reg 0xb8050018: 0x13000a44
eth1: link up (100Mbps/Full duplex)
device wlan0 left promiscuous mode
br-lan: port 2(wlan0) entering disabled state
device wlan0 entered promiscuous mode
br-lan: port 2(wlan0) entering forwarding state
scsi 0:0:0:0: Direct-Access     Freecom  Hard Drive XS    1.00 PQ: 0 ANSI: 2
sd 0:0:0:0: [sda] 2930277168 512-byte logical blocks: (1.50 TB/1.36 TiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 38 00 00 00
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Assuming drive cache: write through
sda:
ar71xx-wdt: enabling watchdog timer
sda1
usb-storage: device scan complete
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Attached SCSI disk

hopefull

The discussion might have continued from here.