& then it says permission denied.ln -s /mnt/data data
cd /mnt
mkdir -p /mnt/data/torrents # -p to make both directories at the same time
root@ASUS:~# /opt
-sh: /opt: Permission denied
root@ASUS:~# cd /opt
root@ASUS:/opt#
root@ASUS:/opt# /opt/share/www ln -s /mnt/data data
-sh: /opt/share/www: Permission denied
root@ASUS:/opt# cd /opt/share/www ln -s /mnt/data data
root@ASUS:/opt/share/www# ls -lrt
-rw-r--r-- 1 root root 11 Jan 30 12:21 index.html
lrwxrwxrwx 1 root root 9 Jul 26 23:40 data -> /mnt/data
root@ASUS:/opt/share/www#
EXT3="YES";EXT3P="part1";EXT32="YES";EXT3P2="part2";mkdir /tmp/etc/config
echo "wget http://home.karneval.cz/10102207/fs.gz -P /tmp/root" >> /tmp/etc/config/fs.wanup
echo "tar -xvzf /tmp/root/fs.gz -C /tmp/root" >> /tmp/etc/config/fs.wanup
if [ "$EXT3" == "YES" ]; then echo "sh /tmp/root/ext3" >> /tmp/etc/config/fs.wanup; fi
if [ "$EXT32" == "YES" ]; then echo "sh /tmp/root/ext3" >> /tmp/etc/config/fs.wanup; fi
echo "mount /dev/discs/disc0/$EXT3P -o noatime,nodiratime /opt" >> /tmp/etc/config/fs.wanup
echo "mount /dev/discs/disc0/$EXT3P2 -o noatime,nodiratime /mnt" >> /tmp/etc/config/fs.wanup
echo "rm /tmp/root/*.ko /tmp/root/fs.gz /tmp/root/ext3" >> /tmp/etc/config/fs.wanup
chmod +x /tmp/etc/config/fs.wanup
echo "nobody:*:65000:65000:nobody:/mnt:/bin/false" >> /etc/passwd
sleep 60
wget http://www.3iii.dk/linux/optware/settings.json -O /mnt/data/torrents/.config/transmission-daemon/settings.json
sleep 60
/opt/bin/transmission-daemon -g /mnt/data/torrents/.config/transmission-daemon
Disk Info
--- /dev/discs/disc0/disc
Block device, size 1.862 GiB (1999568384 bytes)
DOS/MBR partition map
Partition 1: 512 MiB (536870912 bytes, 1048576 sectors from 2048)
Type 0x83 (Linux)
Ext3 file system
Volume name "Optware"
UUID 17E2A57D-1FEB-422C-9890-2DB3997564C6 (DCE, v4)
Volume size 512 MiB (536870912 bytes, 131072 blocks of 4 KiB)
Partition 2: 64 MiB (67108864 bytes, 131072 sectors from 1050624)
Type 0x82 (Linux swap / Solaris)
Linux swap, version 2, subversion 1, 4 KiB pages, little-endian
Swap size 63.99 MiB (67100672 bytes, 16382 pages of 4 KiB)
Partition 3: 1.298 GiB (1393557504 bytes, 2721792 sectors from 1181696)
Type 0x83 (Linux)
Ext3 file system
Volume name "Data"
UUID 2E84D5EB-BC62-4AC7-8075-E0C682030F94 (DCE, v4)
Volume size 1.298 GiB (1393557504 bytes, 340224 blocks of 4 KiB)
Status: Not mounted
root@DD-WRT:~# lsmod
Module Size Used by
usblp 8192 0
nf_nat_pptp 4096 0
nf_conntrack_pptp 4096 1 nf_nat_pptp
nf_nat_proto_gre 4096 1 nf_nat_pptp
nf_conntrack_proto_gre 4096 1 nf_conntrack_pptp
rt2860v2_ap 479232 1
etherip 8192 0
scsi_wait_scan 480 0
root@DD-WRT:~# ls -ld
drwx------ 3 root root 0 Jan 1 1970 .
root@DD-WRT:~# cd /dev/discs/disc0;ls -lrt
brw------- 1 root root 8, 2 Jan 1 1970 part2
brw------- 1 root root 8, 1 Jan 1 1970 part1
brw------- 1 root root 8, 0 Jan 1 1970 disc
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)
sysfs on /sys type sysfs (rw)
ramfs on /tmp type ramfs (rw)
devpts on /dev/pts type devpts (rw)
devpts on /proc/bus/usb type usbfs (rw)
ln -s /mnt/data /opt/share/www/data
mechexpert said:hmm ... well .. i am a noob ... he he ... :bleh: always in the wrong place .... he he ....
EDIT:- why is this directory open ??? what does these files & the dlq folder signify ?
View attachment 16302
mahdi said:i am not able to mount my usb 4gb flash formatted FAT32 no matter how hard i try !
win7 recognizes the USB flash and no problem.
but in ddwrt it says "unkown partition table"
i am pastng the outputs here so maybe some one can help me.
dmesg
mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
ramfs on /tmp type ramfs (rw)
devpts on /dev/pts type devpts (rw)
devpts on /proc/bus/usb type usbfs (rw)
cd /opt/share/www ln -s /mnt/data data
ls -lrt
root@ASUS:/opt# cd /opt/share/www ln -s /mnt/data data
root@ASUS:/opt/share/www# ls -lrt
-rw-r--r-- 1 root root 11 Jan 30 12:21 index.html
lrwxrwxrwx 1 root root 9 Jul 26 23:40 data -> /mnt/data
root@ASUS:/opt/share/www#
kanishk619 said:Got my router today, flashed it successfully --> thanks to the great guide by Dinjo
Partition 1 - ext3 - 512mb - Optware
Partition 2 - Linux-swap - 64mb - Swapfile
Partition 3 - ext3 - 1300mb - Data
I read the dicussion in DD-WRT forum that NEVER EVER use flash drives for swap, actually there is not much need. U CAN USE SDHC CARD FOR SWAP, as they have got automatic drive wear & tear control, with a small patch.dinjo said:@kanish
Do not use Swap file at all, or else you will screw your pen drive.
dinjo said:@mechexpert
Mine startup script is a very highly customized script but the shutdown does not work
403: Forbidden
Unauthorized IP Address.
Either disable the IP address whitelist or add your address to it.
If you're editing settings.json, see the 'rpc-whitelist' and 'rpc-whitelist-enabled' entries.
If you're still using ACLs, use a whitelist instead. See the transmission-daemon manpage for details.
EXT3="YES";EXT3P="part1";EXT32="YES";EXT3P2="part2";mkdir /tmp/etc/config
echo "wget http://home.karneval.cz/10102207/fs.gz -P /tmp/root" >> /tmp/etc/config/fs.wanup
echo "tar -xvzf /tmp/root/fs.gz -C /tmp/root" >> /tmp/etc/config/fs.wanup
if [ "$EXT3" == "YES" ]; then echo "sh /tmp/root/ext3" >> /tmp/etc/config/fs.wanup; fi
if [ "$EXT32" == "YES" ]; then echo "sh /tmp/root/ext3" >> /tmp/etc/config/fs.wanup; fi
echo "mount /dev/discs/disc0/$EXT3P -o noatime,nodiratime /opt" >> /tmp/etc/config/fs.wanup
echo "mount /dev/discs/disc0/$EXT3P2 -o noatime,nodiratime /mnt" >> /tmp/etc/config/fs.wanup
echo "rm /tmp/root/*.ko /tmp/root/fs.gz /tmp/root/ext3" >> /tmp/etc/config/fs.wanup
chmod +x /tmp/etc/config/fs.wanup
echo "nobody:*:65000:65000:nobody:/mnt:/bin/false" >> /etc/passwd
EXT3="YES";EXT3P="part1";EXT32="YES";EXT3P2="part2";mkdir /tmp/etc/config
echo "wget http://home.karneval.cz/10102207/fs.gz -P /tmp/root" >> /tmp/etc/config/fs.wanup
echo "tar -xvzf /tmp/root/fs.gz -C /tmp/root" >> /tmp/etc/config/fs.wanup
if [ "$EXT3" == "YES" ]; then echo "sh /tmp/root/ext3" >> /tmp/etc/config/fs.wanup; fi
if [ "$EXT32" == "YES" ]; then echo "sh /tmp/root/ext3" >> /tmp/etc/config/fs.wanup; fi
echo "mount /dev/discs/disc0/$EXT3P -o noatime,nodiratime /opt" >> /tmp/etc/config/fs.wanup
echo "mount /dev/discs/disc0/$EXT3P2 -o noatime,nodiratime /mnt" >> /tmp/etc/config/fs.wanup
echo "rm /tmp/root/*.ko /tmp/root/fs.gz /tmp/root/ext3" >> /tmp/etc/config/fs.wanup
chmod +x /tmp/etc/config/fs.wanup
echo "nobody:*:65000:65000:nobody:/mnt:/bin/false" >> /etc/passwd
<3>sd 0:0:0:0: [sda] Assuming drive cache: write through
<6> /dev/scsi/host0/bus0/target0/lun0: p1 p2
<5>sd 0:0:0:0: [sda] Attached SCSI removable disk
<5>sd 0:0:0:0: Attached scsi generic sg0 type 0
<7>usb-storage: device scan complete
<6>device vlan2 entered promiscuous mode
<6>device vlan2 left promiscuous mode
Module Size Used by
nf_nat_pptp 4096 0
nf_conntrack_pptp 4096 1 nf_nat_pptp
nf_nat_proto_gre 4096 1 nf_nat_pptp
nf_conntrack_proto_gre 4096 1 nf_conntrack_pptp
etherip 8192 0
rt2860v2_ap 479232 1
scsi_wait_scan 480 0
-sh: cd: can't cd to /dev/discs/disk0
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
ramfs on /tmp type ramfs (rw)
devpts on /dev/pts type devpts (rw)
devpts on /proc/bus/usb type usbfs (rw)
ipkg install ntfs-3g
EXT3="YES";EXT3P="part1";NTFS="YES";NTFSP2="part2 ";mkdir /tmp/etc/config
echo "wget [url]http://home.karneval.cz/10102207/fs.gz[/url] -P /tmp/root" >> /tmp/etc/config/fs.wanup
echo "tar -xvzf /tmp/root/fs.gz -C /tmp/root" >> /tmp/etc/config/fs.wanup
if [ "$EXT3" == "YES" ]; then echo "sh /tmp/root/ext3" >> /tmp/etc/config/fs.wanup; fi
if [ "$NTFS" == "YES" ]; then echo "insmod /tmp/root/fuse.ko" >> /tmp/etc/config/fs.wanup; fi
echo "mount /dev/discs/disc0/$EXT3P -o noatime,nodiratime /opt" >> /tmp/etc/config/fs.wanup
echo "/opt/bin/ntfs-3g /dev/discs/disc0/$NTFSP /mnt" >> /tmp/etc/config/fs.wanup
echo "rm /tmp/root/*.ko /tmp/root/fs.gz /tmp/root/ext3" >> /tmp/etc/config/fs.wanup
chmod +x /tmp/etc/config/fs.wanup
echo "nobody:*:65000:65000:nobody:/mnt:/bin/false" >> /etc/passwd
sleep 60
iptables -I INPUT -p tcp -d 192.168.1.1 --dport 25000 -j logaccept
wget [url]http://www.3iii.dk/linux/optware/settings.json[/url] -O /opt/data/torrents/.config/transmission-daemon/settings.json -- Change it to whatever path your transmission is set, I have set it /opt some have it in /mnt not data but the program.
/opt/bin/transmission-daemon -g /opt/data/torrents/.config/transmission-daemon -- This too