Page 2 of 4 FirstFirst 1234 LastLast
Results 16 to 30 of 123

Thread: [HowTo] Part One - WL-500g Premium

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    error message when installing screen

    I was following the instructions in the HOWTO, and it was fine until I got to installing screen, at which point it complained:

    [admin@(none) /opt]$ ipkg install screen
    Installing screen (4.0.3-2) to root...
    Downloading http://ipkg.nslu2-linux.org/feeds/un...3-2_mipsel.ipk
    Installing termcap (1.3.1-2) to root...
    Downloading http://ipkg.nslu2-linux.org/feeds/un...1-2_mipsel.ipk
    Configuring screen
    chown: unknown user name: root
    Configuring termcap
    Successfully terminated.

    It looks like it tried to chown something to user 'root', but the only user I have is 'admin'.

    I uninstalled screen:

    [root@(none) root]$ ipkg remove screen
    Removing package screen from root...
    Successfully terminated.

    Then used the web interface to change the user's name to root using System Setup > Change Name, then tried installing screen again and it worked that time.

    So should the HOWTO be changed to tell people to change the username to 'root' instead of 'admin', if that's what the packages expect to find? Or did I do the wrong thing?

  2. #2

    dropbear

    I'm kinda new to this router linux world, but I've decided to take out the parts I need from the guide.
    and start with dropbear, cuz ssh would be nice to use when out in the world
    when I have folowed the instruction, made the key, and the script.
    the thing is, that I can't just start dropbear.. nothing happens (I expect something to happen, since you made the remark with playing with it)

    Anything I need to do before this guide (use 1.9.7.2.f7)

  3. #3
    Quote Originally Posted by KingGuru View Post
    ....
    the thing is, that I can't just start dropbear.. nothing happens (I expect something to happen, since you made the remark with playing with it)
    Do a ps and if dropbear is running then thats it.
    Then use e.g. putty from a PC to ssh into it.

    The first time you connect putty should ask you if you want to save the key from the ssh server (dropbear) on your Asus.

  4. #4
    Got it.. apperently I forgot to save

    but anyway.. I have trouble with the transmission for torrent. I get a file not found when I try to access the page /cgi-bin/trans....

    I have installet it with the ipkg system..
    Last edited by KingGuru; 23-02-2007 at 17:40.

  5. #5
    I'am a newbie with Linux. (Yes anotherone...)

    I use the following firmware from Oleg: WL500gp-1.9.2.7-7f.trx

    During this manual i have 3 errors.

    ipkg install mc cannot find package mc
    ipkg install ctorrent ERROR: cannot satisfy the following dependencies
    for ctorrent: libstdc++
    ipkg install nload ERROR: cannot satisfy the following dependencies
    for nload: libstdc++

    Can anyone help me?
    Last edited by pinkpanther; 10-02-2007 at 22:46.

  6. #6
    Join Date
    Nov 2006
    Location
    Lisbon@Portugal
    Posts
    25

    Update for Oleg 1.9.2.7-7f with Samba2 and Transmission

    This guide is written supposing that your PC runs Windows, and you want to use your router as file server and Torrent client. My objective was to setup Oleg 1.9.2.7-7f with Transmission and Samba2.

    Step 1 - Install required HW and SW
    1) Connect your PC to the wl-500gP using an ethernet cable (you should not use wireless during Step 1), and make sure that you can connect to the Ethernet
    2) Download and install putty and ASUS fw restoration utility
    3) Download Oleg 1.9.2.7-7f firmware
    4) Unplug all USB devices from the router, and disconnect the modem cable
    5) Using the web interface, reset the router to factory settings
    6) Put the router in restoration mode
    7) Start ASUS firmware restoration utility and load Oleg fw into the router. Do not interrupt this step, the router may have to be repaired or replaced if you interrupt the load. The router will reboot automatically
    8) Connect modem to router, and parametrize it using web interface (at this stage userid/password is admin/admin). Here are some of my parameters:
    - Maintain 192.168.1.1 as the router's IP address, and limit DHCP to 192.168.1.2/24
    - Activate Telnet and DDNS
    - Deactivate ftp and samba
    - Allow ping from WAN side
    - If you use wireless, select 32mW as the transmission power and activate the maximum possible security supported by your PC's (in my case WEP128 + mac access + hide SSID)
    - In LAN IP Setting / Host name specify a hostname of your choice (mine is MyASUS)
    9) Reboot the router (using web interface)
    You may have to calibrate the wireless part (it took me about 2 weeks to reach an acceptable setup). You can use NetStumbler to help you.

    Step 2 - Prepare disk
    1) Connect disk to router
    2) Start putty in Windows (all the remaining actions should be performed in line mode, not web interface). Point it to 192.168.1.1, telnet, keyboard with Linux function keys. You can save 3 profiles in putty, one for Telnet (from LAN), and two for SSH (from LAN and WAN). Paste lines in putty with right click on mouse.
    3) Format the disk with 3 primary partitions, first with +512M for swap (select type 82), second with +1G (for /opt), and 3rd with the rest. Use fdisk help to guide you.
    Code:
    insmod scsi_mod && insmod sd_mod && insmod usb-storage && sleep 5s
    fdisk /dev/discs/disc0/disc
    4) Reboot
    Code:
    reboot
    5) Format and mount the disk
    Code:
    insmod scsi_mod && insmod sd_mod && insmod usb-storage && sleep 5s
    mkswap /dev/discs/disc0/part1
    swapon /dev/discs/disc0/part1
    mke2fs -j /dev/discs/disc0/part2
    mount /dev/discs/disc0/part2 /opt
    mke2fs -j /dev/discs/disc0/part3
    6) Install base packages (ignore errors regarding wl500g):
    Code:
    cd /opt/
    mkdir /opt/tmp
    mkdir /opt/tmp/ipkg
    wget http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/ipkg-opt_0.99.163-9_mipsel.ipk 
    ipkg.sh install ipkg-opt_0.99.163-9_mipsel.ipk
    wget http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/uclibc-opt_0.9.28-12_mipsel.ipk
    ipkg.sh install uclibc-opt_0.9.28-12_mipsel.ipk 
    ipkg update
    ipkg install nano
    rm *.ipk
    7) Create startup scripts and install dropbear
    Code:
    mkdir -p /usr/local/etc/dropbear
    dropbearkey -t dss -f /usr/local/etc/dropbear/dropbear_dss_host_key
    dropbearkey -t rsa -f /usr/local/etc/dropbear/dropbear_rsa_host_key
    mkdir -p /usr/local/sbin
    nano /usr/local/sbin/post-boot
    Here is my post-boot file:
    Code:
    #!/bin/sh
    # Start SSH service
    dropbear
    
    # test if USB disc has been attached
    # if not - then insert needed modules
    if [ ! -d /dev/discs ]
        then
    insmod scsi_mod && insmod sd_mod && insmod usb-storage && sleep 5s
        fi
    
    # Wait for /opt to mount
    mount /dev/discs/disc0/part2 /opt
    mount /dev/discs/disc0/part3 /tmp/harddisk
        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/part1
    
    #to let midnight commander run on terminals, make alias for colored mc
    echo "export TERMINFO=/opt/share/terminfo">>/etc/profile
    echo "alias mc=\"mc -c\"">>/etc/profile
    
    # Run all active services - active means starts with S
    /opt/etc/init.d/rc.unslung
    Next let's create the post-firewall file
    Code:
    nano /usr/local/sbin/post-firewall
    Here is my post-firewall
    Code:
    #!/bin/sh
    ## FIREWALL
    ## set default policy
    iptables -P INPUT DROP
    ## deny ftp access from WAN
    iptables -I INPUT 1 -p tcp -i "$1" --syn --dport 21 -j DROP
    ## Allow access to various router services from WAN
    ## Ports 22 and 65534 are required by dropbear and transmission
    for P in 65534 22; do
      iptables -I INPUT 1 -p tcp --syn -i "$1" --dport $P -j ACCEPT
    done
    Create remaining files:
    Code:
    touch /usr/local/sbin/post-mount
    touch /usr/local/sbin/pre-shutdown
    chmod +x /usr/local/sbin/*
    8) Save to flash and reboot
    Code:
    flashfs save && flashfs commit && flashfs enable && reboot
    At the end of this Step2 the router should be able to boot, mount the disk, and use the swap. You can verify this with
    Code:
    mount
    free
    This should produce an output similar to
    Code:
    [xxxx@MyASUS root]$ mount
    /dev/root on / type squashfs (ro)
    none on /dev type devfs (rw)
    proc on /proc type proc (rw)
    ramfs on /tmp type ramfs (rw)
    usbfs on /proc/bus/usb type usbfs (rw)
    /dev/discs/disc0/part2 on /opt type ext3 (rw)
    /dev/discs/disc0/part3 on /tmp/harddisk type ext3 (rw)
    [xxxx@MyASUS root]$ free
                  total         used         free       shared      buffers
      Mem:        30140        13744        16396            0         4148
     Swap:       500712            0       500712
    Total:       530852        13744       517108
    Step3 - Install samba2
    Samba2 comes with a web interface from where you can parametrize and restart the service without rebooting the router.
    Code:
    ipkg install mc
    ipkg install xinetd
    ipkg install samba2
    Create folder for samba shares
    Code:
    mkdir /tmp/harddisk/share
    chmod ugoa+w /tmp/harddisk/share
    Create rc.unslung (to start all your services automatically after each reboot)
    Code:
    nano /opt/etc/init.d/rc.unslung
    Here is my rc.unslung file:
    Code:
    # Start all init scripts in /opt/etc/init.d
    # executing them in numerical order.
    #
    for i in /opt/etc/init.d/S??* ;do
    
        # Ignore dangling symlinks (if any).
        [ ! -f "$i" ] && continue
    
        case "$i" in
           *.sh)
               # Source shell script for speed.
               (
                   trap - INT QUIT TSTP
                   set start
                   . $i
               )
               ;;
           *)
               # No sh extension, so fork subprocess.
               $i start
               ;;
       esac
    done
    Edit /opt/etc/xinetd.d/swat file (with nano or mc) to update the "user = root" line with your userid (such as "user = admin").
    Make rc.unslung executable, and execute it to start xinetd and samba2
    Code:
    chmod +x /opt/etc/init.d/rc.unslung
    /opt/etc/init.d/rc.unslung
    Open your browser to http://192.168.1.1:901 and parametrize samba at your will. I have removed all shares and created two new ones:
    - Share (pointing to /tmp/harddisk/share)
    - Torrent (pointing to /tmp/harddisk/torrent)

    Step4 - Install Tranmission
    This was my choice for torrent client. It's easy to use. You can either store .torrent files in //myasus/torrent/source or use Transmission's fetch button. At the moment transmission is going through changes, so what follows may not apply in the near future.
    Code:
    ipkg install cron
    ipkg install gnuplot
    ipkg install logrotate
    ipkg install transmission
    Create torrent directories
    Code:
    cd /tmp/harddisk
    mkdir torrent
    mkdir torrent/source
    mkdir torrent/target
    mkdir torrent/work
    chmod ugoa+w torrent
    chmod ugoa+w torrent/source
    chmod ugoa+w torrent/target
    If your administration userid has been renamed from admin to something else, use mc to replace admin in /opt/etc/transmission.conf and /opt/share/www/cgi-bin/transmission.cgi.
    Using mc, edit /opt/etc/transmission.conf to update TIMEZONE.
    Edit opt/etc/crontab file. Mine is (replace xxxx with your admin userid):
    Code:
    SHELL=/bin/sh
    PATH=/sbin:/bin:/usr/sbin:/usr/bin:/opt/bin:/opt/sbin:/opt/usr/bin:/opt/usr/sbin
    MAILTO=""
    HOME=/
    # ---------- ---------- Default is Empty ---------- ---------- #
    */30 * * * * xxxx nice /opt/sbin/transmission_watchdog
    0 0 * * * xxxx /opt/sbin/logrotate -f /opt/etc/logrotate.conf &>/dev/null
    Create S05syslogd, this is necessary to replace logging on memory by logging on disk, and make it available for gnuplot.
    Code:
    nano /opt/etc/init.d/S05syslogd
    Here is mine:
    Code:
    #!/bin/sh
    #
    # Startup script for syslogd
    #
    # Stop myself if running
    if [ -n "`pidof syslogd`" ]; then
    killall syslogd 2>/dev/null
    fi
    
    /sbin/syslogd -m 0 -O /opt/var/log/messages -S -l 7
    Make it executable:
    Code:
    chmod +x /opt/etc/init.d/S05syslogd
    Go to web interface, deactivate telnet and reboot. After that, you can access Transmission from Windows pointing your browser to http://192.168.1.1:8008/cgi-bin/transmission.cgi

    Next Steps (optional)
    1) Here are some suggestions
    2) Activate ftp in web interface (to share /tmp/harddisk)
    Last edited by Moody Blue; 01-04-2007 at 13:42. Reason: Updated to include dropbear and ftp

  7. #7
    Quote Originally Posted by Moody Blue View Post
    This guide is written supposing that your PC runs Windows, and you want to use your router as file server and Torrent client. My objective was to setup Oleg 1.9.2.7-7f with Transmission and Samba2.

    ....
    Hi,

    First I want to thank you for the great tutorial on "Update for Oleg 1.9.2.7-7f with Samba2 and Transmission". I have a small question that O don't know if you can respond.

    I've installed Samba2 and Transmission and both this packages work ok. But when I install mt-daapd (itunes) server, Samba2 won't startup on boot and for some reason it's impossbile to access the webpage of transmission. Did you allready test this configuration?
    What could be wrong?

    Thanks for your attention!

  8. #8
    Join Date
    Nov 2006
    Location
    Lisbon@Portugal
    Posts
    25
    Hi,

    I've installed Samba2 and Transmission and both this packages work ok. But when I install mt-daapd (itunes) server, Samba2 won't startup on boot and for some reason it's impossbile to access the webpage of transmission. Did you allready test this configuration?
    What could be wrong?

    Thanks for your attention!
    I have not tested this configuration. My router is now with one of my children and I have no access to it. Also, because of this, I no longer visit this forum as often as before.

    Warm regards, Hugo

  9. #9
    Quote Originally Posted by Moody Blue View Post

    Step 2 - Prepare disk
    1) Connect disk to router
    2) Start putty in Windows (all the remaining actions should be performed in line mode, not web interface). Point it to 192.168.1.1, telnet, keyboard with Linux function keys. You can save 3 profiles in putty, one for Telnet (from LAN), and two for SSH (from LAN and WAN). Paste lines in putty with right click on mouse.
    3) Format the disk with 3 primary partitions, first with +512M for swap (select type 82), second with +1G (for /opt), and 3rd with the rest. Use fdisk help to guide you.
    Code:
    insmod scsi_mod && insmod sd_mod && insmod usb-storage && sleep 5s
    fdisk /dev/discs/disc0/disc
    4) Reboot
    Code:
    reboot
    5) Format and mount the disk
    Code:
    insmod scsi_mod && insmod sd_mod && insmod usb-storage && sleep 5s
    mkswap /dev/discs/disc0/part1
    swapon /dev/discs/disc0/part1
    mke2fs -j /dev/discs/disc0/part2
    mount /dev/discs/disc0/part2 /opt
    mke2fs -j /dev/discs/disc0/part3
    I got this message: Unable to open /dev/discs/disc0/disc

  10. #10
    Quote Originally Posted by zexe View Post
    I got this message: Unable to open /dev/discs/disc0/disc
    I get exactly the same message. This router is my first contact with linux... When I check what is mounted with "df", this is the result:

    PHP Code:
    [monivash@asus root]$ df
    Filesystem           1k
    -blocks      Used Available Use% Mounted on
    /dev/root                 3072      3072         0 100% / 
    So I try to mount my hdd:
    PHP Code:
    [monivash@asus root]$ mount /dev/discs/disc0/part0 /opt
    mount
    Mounting /dev/discs/disc0/part0 on /opt failedNo such file or directory 
    Results of "dmesg"
    PHP Code:
    CPU revision is: 00029006
    Primary instruction cache 16kblinesize 16 bytes (2 ways)
    Primary data cache 16kblinesize 16 bytes (2 ways)
    Linux version 2.4.20 (root@localhost) (gcc version 3.2.3 with Broadcom modifications#18 Sun Mar 30 13:13:29 MSD 2008
    Setting the PFC to its default value
    Determined physical RAM map
    :
     
    memory02000000 00000000 (usable)
    On node 0 totalpages8192
    zone
    (0): 8192 pages.
    zone(1): 0 pages.
    zone(2): 0 pages.
    Kernel command lineroot=/dev/mtdblock2 noinitrd init=/linuxrc console=ttyS0,115200
    CPU
    BCM4704 rev 9 pkg 0 at 264 MHz
    Calibrating delay loop
    ... 263.78 BogoMIPS
    Memory
    30092k/32768k available (1862k kernel code2676k reserved136k data72k init0k highmem)
    Dentry cache hash table entries4096 (order332768 bytes)
    Inode cache hash table entries2048 (order216384 bytes)
    Mount-cache hash table entries512 (order04096 bytes)
    Buffer-cache hash table entries1024 (order04096 bytes)
    Page-cache hash table entries8192 (order332768 bytes)
    Checking for 'wait' instruction...  unavailable.
    POSIX conformance testing by UNIFIX
    PCI
    Initializing host
    PCI
    Fixing up bus 0
    PCI
    Fixing up bridge
    PCI
    Fixing up bus 1
    Linux NET4.0 
    for Linux 2.4
    Based upon Swansea University Computer Society NET3.039
    Initializing RT netlink socket
    Starting kswapd
    Journalled Block Device driver loaded
    devfs
    v1.12c (20020818Richard Gooch (rgooch@atnf.csiro.au)
    devfsboot_options0x1
    NTFS driver v1.1.22 
    [FlagsR/O]
    pty256 Unix98 ptys configured
    Serial driver version 5.05c 
    (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
    ttyS00 at 0xb8000300 
    (irq 3is a 16550A
    ttyS01 at 0xb8000400 
    (irq 3is a 16550A
    HDLC line discipline
    version $Revision$, maxframe=4096
    N_HDLC line discipline registered
    .
    looploaded (max 8 devices)
    PPP generic driver version 2.4.2
    PPP Deflate Compression module registered
    PPP BSD Compression module registered
    MPPE
    /MPPC encryption/compression module registered
    PPPoL2TP kernel driver
    V0.13 (oleg@cs.msu.su)
    Physically mapped flashFound an alias at 0x800000 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 0x1800000 for the chip at 0x0
     Amd
    /Fujitsu Extended Query Table v1.3 at 0x0040
     Flash Id
    Vendor0x0001 Device0x007e
    number of CFI chips
    1
    Flash device
    0x800000 at 0x1c000000
    Physically mapped flash
    squashfs filesystem found at block 912
    Creating 5 MTD partitions on 
    "Physically mapped flash":
    0x00000000-0x00040000 "boot"
    0x00040000-0x007f0000 "linux"
    0x000e4000-0x007f0000 "rootfs"
    0x007f0000-0x00800000 "nvram"
    0x003e0000-0x007f0000 "flashfs"
    sflashfound no supported devices
    NET4
    Linux TCP/IP 1.0 for NET4.0
    IP Protocols
    ICMPUDPTCPIGMP
    IP
    routing cache hash table of 512 buckets4Kbytes
    TCP
    Hash tables configured (established 2048 bind 4096)
    Linux IP multicast router 0.06 plus PIM-SM
    ip_conntrack version 2.1 
    (256 buckets2048 max) - 352 bytes per conntrack
    ip_conntrack_pptp version 1.9 loaded
    ip_nat_pptp version 1.5 loaded
    ip_tables
    : (C2000-2002 Netfilter core team
    ipt_time loading
    NET4
    Unix domain sockets 1.0/SMP for Linux NET4.0.
    IPv6 v0.8 for NET4.0
    IPv6 over IPv4 tunneling driver
    NET4
    Ethernet Bridge 008 for NET4.0
    802.1Q VLAN Support v1.7 Ben Greear 
    <greearb@candelatech.com>
    All bugs added by David SMiller <davem@redhat.com>
    FATbogus logical sector size 59648
    FAT
    bogus logical sector size 59648
    NTFS
    Unable to set blocksize 512.
    VFS
    Mounted root (squashfs filesystemreadonly.
    Mounted devfs on /dev
    Freeing unused kernel memory
    72k freed
    Algorithmics
    /MIPS FPU Emulator v1.5
    eth0
    Broadcom BCM47xx 10/100 Mbps Ethernet Controller 4.150.10.16
    unregister_netdevice
    device eth1/8106cc00 never was registered
    PCI
    Enabling device 01:02.0 (0004 -> 0006)
    eth1Broadcom BCM4318 802.11 Wireless Controller 4.150.10.16
    vlan0
    add 33:33:00:00:00:01 mcast address to master interface
    vlan0add 33:33:ff:d6:9c:9c mcast address to master interface
    vlan0dev_set_promiscuity(master1)
    device eth0 entered promiscuous mode
    device vlan0 entered promiscuous mode
    device eth1 entered promiscuous mode
    br0
    port 2(eth1entering listening state
    br0
    port 1(vlan0entering listening state
    br0
    port 2(eth1entering learning state
    br0
    port 2(eth1entering forwarding state
    br0
    topology change detectedpropagating
    br0
    port 1(vlan0entering learning state
    br0
    port 1(vlan0entering forwarding state
    br0
    topology change detectedpropagating
    usb
    .cregistered new driver usbdevfs
    usb
    .cregistered new driver hub
    usb
    -uhci.c$Revision1.275 time 20:50:46 Mar 17 2008
    usb
    -uhci.cHigh bandwidth mode enabled
    PCI
    Enabling device 01:03.0 (0000 -> 0001)
    ECHI PCI device 30381106 found.
    UCHI reg 0x41 10
    UCHI reg 0x41 changed to 
    0
    usb
    -uhci.cUSB UHCI at I/O 0x100IRQ 12
    usb
    -uhci.cDetected 2 ports
    usb
    .c: new USB bus registeredassigned bus number 1
    hub
    .cUSB hub found
    hub
    .c2 ports detected
    PCI
    Enabling device 01:03.1 (0000 -> 0001)
    ECHI PCI device 30381106 found.
    UCHI reg 0x41 10
    UCHI reg 0x41 changed to 
    0
    usb
    -uhci.cUSB UHCI at I/O 0x120IRQ 12
    usb
    -uhci.cDetected 2 ports
    usb
    .c: new USB bus registeredassigned bus number 2
    hub
    .cUSB hub found
    hub
    .c2 ports detected
    usb
    -uhci.cv1.275:USB Universal Host Controller Interface driver
    PCI
    Enabling device 01:03.2 (0000 -> 0002)
    ehci_hcd 01:03.2PCI device 1106:3104
    ehci_hcd 01
    :03.2irq 12pci mem c0120000
    usb
    .c: new USB bus registeredassigned bus number 3
    ECHI PCI device 31041106 found
    .
    ECHI reg 0x49 80010f20
    ECHI reg 0x49 changed to 
    80010f00
    ECHI reg 0x4b 
    80010f09
    ECHI reg 0x4b changed to 
    80010f29
    PCI
    01:03.2 PCI cache line size set incorrectly (0 bytesby BIOS/FWcorrecting to 32
    ehci_hcd 01
    :03.2USB 2.0 enabledEHCI 1.00driver 2003-Dec-29/2.4
    hub
    .cUSB hub found
    hub
    .c4 ports detected
    usb
    .cregistered new driver usblp
    printer
    .cv0.13USB Printer Device Class driver
    usb
    .cregistered new driver audio
    audio
    .cv1.0.0:USB Audio Class driver
    Linux video capture 
    interface: v1.00
    SCSI subsystem driver Revision
    1.00
    Initializing USB Mass Storage driver
    ...
    usb.cregistered new driver usb-storage
    USB Mass Storage support registered
    .
    vlan1Setting MAC address to  00 17 31 d6 9c 9c.
    VLAN (vlan1):  Underlying device (eth0has same MACnot checking promiscious mode.
    vlan1add 33:33:00:00:00:01 mcast address to master interface
    vlan1add 33:33:ff:d6:9c:9c mcast address to master interface
    vlan1add 01:00:5e:00:00:01 mcast address to master interface 
    Who can help me out of here? I only want the hdd shared with Samba. I use Oleg's firmware, version 1.9.2.7-10.

  11. #11
    Try
    Code:
    mount /dev/discs/disc0/part1 /tmp/harddisk
    mount /dev/discs/disc1/part1 /tmp/harddisk
    mount /tmp/harddisk/opt /opt
    And watch for errors in syslog in Web UI

  12. #12

    Question Got a problem with free space on hdd

    Message of insufficient space on hdd.

    Router Asuswl500gp2, Oleg's firmware 1.9.2.7 - 10, hdd Seagate 2Tb with external power. The router settings are according to this tutorial: http://wl500g.info/showthread.php?t=10307

    I created a folder mkdir /tmp/harddisk/share, copied there about 100Gb and got a message for insufficient space on harddrive

    [admin@Wl500gp2 root]$ du s /tmp/harddisk/share
    104844952 /tmp/harddisk/share

    also mounted folder big, the problem is still there

    [admin@Wl500gp2 root]$ mkdir /tmp/mnt/disc0_3/big
    [admin@Wl500gp2 root]$ chmod ugoa+w /tmp/mnt/disc0_3/big

    there is plenty of free space on the drive:

    [admin@Wl500gp2 root]$ df
    Filesystem 1k-blocks Used Available Use% Mounted on
    /dev/root 3072 3072 0 100% /
    /dev/discs/disc0/part2 985720 65988 869660 7% /opt
    /dev/discs/disc0/part3 1921383312 104976180 1816407132 5% /tmp/mnt/disc0_3

    Filesystem is ext3

    [admin@Wl500gp2 root]$ mount
    /dev/root on / type squashfs (ro)
    none on /dev type devfs (rw)
    proc on /proc type proc (rw)
    ramfs on /tmp type ramfs (rw)
    usbfs on /proc/bus/usb type usbfs (rw)
    /dev/discs/disc0/part2 on /opt type ext3 (rw,noatime)
    /dev/discs/disc0/part3 on /tmp/mnt/disc0_3 type ext3 (rw,noatime)

    How can I check if there are restrictions for folder size and what can be reasons for that?
    Why do i get a free space message and how can I fix it?

  13. #13

    Unhappy

    I have been following the how to, and i am "all the way" down to:
    ipkg.sh install ipkg
    - and then i get the problem....

    I get this results:

    ipkg.sh install ipkg
    done.
    unpacking.....done.
    Configuring ipkg...tar: Cannot create directory './opt/bin': No such file or
    directory
    tar: .opt/bin/ipkg: No such file or directory
    Done.

    And then i canґt get any further......

    I have mounted my harddrive to /opt, so that should be fine......

    What have i done wrong ??

    Pleace, i will be really happy to get a little help with this.....

    Regards
    Peter

  14. #14
    Join Date
    Nov 2006
    Location
    Lisbon@Portugal
    Posts
    25
    Peter, use mount command and post result here. Probably your disk is connected to the router but not mounted by Linux.

    I would suggest to read Marcnesium, Macsat and r0kanon tutorials to understand "why", and in case you want Samba2 and Transmission follow mine for the "how to".
    Last edited by Moody Blue; 31-03-2007 at 13:25.

  15. #15

    Unhappy

    Hi there....
    Thanks for the answer.....

    Quote Originally Posted by Moody Blue View Post
    Peter, use mount
    if i type "mount" i get:
    /dev/root on / type squashfs (ro)
    none on /dev type devfs (rw)
    proc on /proc type proc (rw)
    ramfs on /tmp type ramfs (rw)
    usbfs on /proc/bus/usb type usbfs (rw)
    /dev/discs/disc0/part1 on /tmp/harddisk type ext3 (rw,noatime)

    if i type "df" i get:
    Filesystem 1k-blocks Used Available Use% Mounted on
    /dev/root 2944 2944 0 100% /
    /dev/discs/disc0/part1 307663800 20623468 271411900 7% /tmp/harddisk

    is that not the right things i have.....

    and then i can:
    mount /dev/discs/disc0/part1 /opt
    and i then get this from df:
    /dev/root 2944 2944 0 100% /
    /dev/discs/disc0/part1 307663800 20623468 271411900 7% /tmp/harddisk
    /dev/discs/disc0/part1 307663800 20623468 271411900 7% /opt

    what do i do wrong ??
    As you proberbly have noticed iґm not at all familier with linux, but i would really like to get this done, and also to learn something about linux in the process.....

    Is it btw. not possible to access the file-system inside the router with ftp ??
    (I have a dreambox that run linux as well, and on that i can access the filesystem with ftp...)

    --
    Peter

Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. Asus WL-500g Premium и шлюз
    By Grig_oriy in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 106
    Last Post: 15-05-2012, 20:43
  2. Установка svn на Asus WL-500g Premium
    By aka_mev in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 63
    Last Post: 19-03-2012, 20:01
  3. Сборка пакетов под WL-500g Premium
    By angel_il in forum Russian Discussion - РУССКИЙ (RU)
    Replies: 127
    Last Post: 24-11-2011, 12:28
  4. WL-500g Premium died After Upgrading Firmware
    By acidbrain in forum WL-500gP Firmware Discussion
    Replies: 166
    Last Post: 17-06-2011, 07:59
  5. HOWTO use your WL-500g as IPv6 router
    By phedny in forum WL-500g/WL-500gx Tutorials
    Replies: 8
    Last Post: 17-02-2008, 07:19

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •