close
安裝硬碟後用PUTTY連上WL-HDD
umount硬碟(開機後機器會自動掛載)並重新分割
umount /tmp/mnt/disc0_1 fdisk /dev/discs/disc0/disc
n (new partition) p (primary partition) 2 (partition number 2) <enter>(use default) +10000M (this makes a 10GB partition). This is just preference but should be at least 20MB or so. t (set partition type) 2 (chooses the second partition- the one we want to be a swap partition) 82 (this hex code tells fdisk that it is a swap partition. w (this writes the new partition table with your new partitions).
分割完成後格式化分割區
mke2fs -j /dev/discs/disc0/part1 < enter > (this makes an ext3 format filesystem). mkswap /dev/discs/disc0/part2 < enter > (this creates the swap space).
之後重開機再重新掛載
mount /dev/discs/disc0/part1 /opt < enter > swapon /dev/discs/disc0/part2 < enter >(如果有建立swap磁區)
建立自動掛載文件(之後重開機就不用再手動掛上)
建立文件
mkdir /usr/local/sbin touch /usr/local/sbin/post-boot touch /usr/local/sbin/post-firewall chmod +x /usr/local/sbin/*
啟動vi編輯剛建立的post-boot
#!/bin/sh mount /dev/discs/disc0/part1 /opt i=0 while [ $i -le 30 ] do if [ -d /opt/etc ] then break fi sleep 1 i='expr $i + 1' done swapon /dev/discs/disc0/part2
編輯完成儲存、離開,然後寫入flash
flashfs save flashfs commit flashfs enable reboot
重開機並檢查是否都完成
REF:http://wlhdd.co.uk/wiki/Main_Page
將opt掛載上了以後就能開始安裝其它套件
首先安裝ipkg
wget http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/uclibc-opt_0.9.28-13_mipsel.ipk ipkg.sh install uclibc-opt_0.9.28-13_mipsel.ipk wget http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/ipkg-opt_0.99.163-10_mipsel.ipk ipkg.sh install ipkg-opt_0.99.163-10_mipsel.ipk ipkg update ipkg install nano
REF:http://forum.toppy.org.uk/forum/viewtopic.php?p=227904
更改預設網頁設定port
nvram set http_lanport=8080 nvram commit
全站熱搜