PDA

Bekijk de volledige versie : Help on setting up usb hd in WL500gp-1.9.2.7-7g



frankic
14-05-2007, 11:00
Hi All,
First of all , thank you so much on the effort for helping us to maximize the limition of the router. As a newbie on linux, I try to follow the tutorial but seems I was stuck on some step now.

Firmwire WL500gp-1.9.2.7-7g updated

use putty install dropbear, activte 32M and then I am stuck on the USB HD

I had 320USB hd and formatted by partition magic
part 1 - 60G ext3
part 2 - 70M ext3
part 3 - 200G NTFS ( with my old backup data)

The router recognize it as follow


" May 14 17:33:49 kernel: hub.c: new USB device 01:03.2-2, assigned address 3
May 14 17:33:52 kernel: VFS: Can't find ext3 filesystem on dev sd(8,0).
May 14 17:33:52 kernel: MSDOS FS: Using codepage 950
May 14 17:33:52 kernel: MSDOS FS: IO charset cp950
May 14 17:33:52 kernel: FAT: bogus logical sector size 64543
May 14 17:33:52 kernel: VFS: Can't find a valid FAT filesystem on dev 08:00.
May 14 17:33:52 kernel: FAT: freeing iocharset=cp950
May 14 17:33:52 kernel: FAT: bogus logical sector size 64543
May 14 17:33:52 kernel: VFS: Can't find a valid FAT filesystem on dev 08:00.
May 14 17:33:52 kernel: attempt to access beyond end of device
May 14 17:33:52 kernel: 08:01: rw=0, want=2, limit=1
May 14 17:33:52 kernel: EXT3-fs: unable to read superblock
May 14 17:33:52 kernel: MSDOS FS: Using codepage 950
May 14 17:33:52 kernel: MSDOS FS: IO charset cp950
May 14 17:33:52 kernel: FAT: bogus logical sector size 0
May 14 17:33:52 kernel: VFS: Can't find a valid FAT filesystem on dev 08:01.
May 14 17:33:52 kernel: FAT: freeing iocharset=cp950
May 14 17:33:52 kernel: FAT: bogus logical sector size 0
May 14 17:33:52 kernel: VFS: Can't find a valid FAT filesystem on dev 08:01.
May 14 17:33:53 kernel: EXT3-fs warning: feature flags set on rev 0 fs, running e2fsck is recommended
May 14 17:33:53 kernel: kjournald starting. Commit interval 5 seconds
May 14 17:33:53 kernel: EXT3-fs warning (device sd(8,2)): ext3_update_dynamic_rev: updating to rev 1 because of new feature flag, running e2fsck is recommended
May 14 17:33:53 kernel: EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,2), internal journal
May 14 17:33:53 kernel: EXT3-fs: mounted filesystem with ordered data mode.
May 14 17:33:53 USB storage: ext3 fs mounted to /tmp/harddisk
May 14 17:33:53 kernel: EXT3-fs warning: feature flags set on rev 0 fs, running e2fsck is recommended
May 14 17:33:53 kernel: kjournald starting. Commit interval 5 seconds
May 14 17:33:53 kernel: EXT3-fs warning (device sd(8,3)): ext3_update_dynamic_rev: updating to rev 1 because of new feature flag, running e2fsck is recommended
May 14 17:33:53 kernel: EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,3), internal journal
May 14 17:33:53 kernel: EXT3-fs: mounted filesystem with ordered data mode.
May 14 17:33:53 USB storage: ext3 fs mounted to /tmp/harddisk/part1
May 14 17:33:53 kernel: VFS: Can't find ext3 filesystem on dev sd(8,5).
May 14 17:33:53 kernel: MSDOS FS: Using codepage 950
May 14 17:33:53 kernel: MSDOS FS: IO charset cp950
May 14 17:33:53 kernel: FAT: Did not find valid FSINFO signature.
May 14 17:33:53 kernel: Found signature1 0x4e0005 signature2 0xd6e80000 sector=1.
May 14 17:33:53 kernel: VFS: Can't find a valid FAT filesystem on dev 08:05.
May 14 17:33:53 kernel: FAT: freeing iocharset=cp950
May 14 17:33:53 kernel: FAT: Did not find valid FSINFO signature.
May 14 17:33:53 kernel: Found signature1 0x4e0005 signature2 0xd6e80000 sector=1.
May 14 17:33:53 kernel: VFS: Can't find a valid FAT filesystem on dev 08:05.
May 14 17:33:53 kernel: NTFS: Warning! NTFS volume version is Win2k+: Mounting read-only
May 14 17:33:53 USB storage: ntfs(ro) fs mounted to /tmp/harddisk/part2
May 14 17:33:53 FTP server: daemon is started"

I think my next step should make file system as the tutorial

the code in tutorial are
mke2fs -j /dev/discs/disc0/part1
mkswap /dev/discs/disc0/part2

but I think my part2 is Ntfs now
so what should I change on the code?

by the way is there any "dir" command in linux so I can see how many partition I had etc?

Thank you so much! Its fun to start making it works~~really enjoy the process.

frankic
14-05-2007, 13:03
humm my usb Drive formation seems wierd coz I had the ntfs first and resize and create 2 ext3 from the beginning

here is the info from fdisk



Device Boot Start End Blocks Id System
/dev/discs/disc0/part1 7697 38913 250750552+ f Win95 Ext'd (LBA)
/dev/discs/disc0/part2 1 7687 61745796 83 Linux
/dev/discs/disc0/part3 7688 7696 72292+ 83 Linux
/dev/discs/disc0/part5 7697 38913 250750521 7 HPFS/NTFS

Partition table entries are not in disk order

frankic
14-05-2007, 13:05
is this working , I just try my luck

[admin@(none) root]$ mke2fs -j /dev/discs/disc0/part2
mke2fs 1.38 (30-Jun-2005)
mke2fs: /dev/discs/disc0/part2 is mounted !
mke2fs: it's not safe to run badblocks!
[admin@(none) root]$ mkswap /dev/discs/disc0/part3
Setting up swapspace version 1, size = 74022912 bytes

frankic
14-05-2007, 13:15
then postscript is like this

#!/bin/sh
dropbear
#Wait for /opt to mount
mount /dev/discs/disc0/part2 /opt
i=0
while [ $i -le 30 ]
do
if [ -d /opt/etc ]
then
break
fi
sleep 1
i=`expr $i + 1`
done

# Activate swap
swapon /dev/discs/disc0/part3

# rUN ALL ACTIVE SERVICES - ACTIVE MEANS STARTS WITh S
/opt/etc/init.d/rc.unslung

~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
- /usr/local/sbin/post-boot [modified] 6/21 28%

frankic
14-05-2007, 13:35
seems everything ok till now , is that correct during installing the ctorrent?


[admin@(none) root]$ ipkg install ctorrent
Installing ctorrent (1.3.4-2) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/unslung/wl500g/ctorrent_1.3.4-2_mipsel.ipk
Nothing to be done
An error ocurred, return value: 1.
Collected errors:
ERROR: Cannot satisfy the following dependencies for ctorrent:
libstdc++
[admin@(none) root]$ ipkg install torrent
Installing torrent (1.4-7) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/unslung/wl500g/torrent_1.4-7_mipsel.ipk
Installing libbt (1.05-5) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/unslung/wl500g/libbt_1.05-5_mipsel.ipk
Installing libcurl (7.16.2-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/unslung/wl500g/libcurl_7.16.2-1_mipsel.ipk
Installing openssl (0.9.7m-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/unslung/wl500g/openssl_0.9.7m-1_mipsel.ipk
Installing zlib (1.2.3-2) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/unslung/wl500g/zlib_1.2.3-2_mipsel.ipk
Configuring libbt
Configuring libcurl
Configuring openssl
Configuring torrent
Please note that /opt/etc/init.d/S80busybox_httpd is installed for
running CGI interface at http://localhost:8008/cgi-bin/torrent.cgi
Configuring zlib
Successfully terminated.

frankic
15-05-2007, 01:37
ok figure out the problem about installing ctorrent and nload
need to install libstdc++ first

ipkg install libstdc++

everything seems working and the web torrent control works, the only problem how can i add tracker coz some file wont move until i mamually PUSH it