Freelancer
29-07-2007, 16:54
Hi, There
After fighting two days to set up my router to work decided to write about the mistakes that I made during installation.
The Hard Disk partition.
I hade a big hard disk. I partitioned the first time as r0kanon said.
http://wl500g.info/showthread.php?t=6222
2 partitions:
1st small boot.
2nd the rest.
But I just could not get transmission work.
I suspected the that I could not configure transmission so I thought of making a three partition system so that I can mount the 3rd partition to /tmp/harddisk/
Than I went for Moody Blue guide:
http://wl500g.info/showthread.php?t=5909&page=3
This also did not worked out because my the router kept on out mounting the first boot partition to the /tmp/harddisk/
In the /tmp/harddisk/ I used to have two mounted partitions. System mounted the boot partition and I mounted the 3rd. Could not unmount the boot. This did not worked out.
So I thought maybe I’ll go for marcnesium way because if the system auto mounts the first drive than it will mount my big storage partition.
http://wl500g.info/showthread.php?t=5909
So I put the small boot partition in the back. But now I do not know why but the system did not did the auto mount.
But that was not a problem, because I mounted twice and that worked fine. :)
nano /usr/local/sbin/post-boot
#!/bin/sh
# 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/part1 /opt
mount /dev/discs/disc0/part1 /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/part2
# Set hostname
hostname my.router
# Synchoronize time
# For GMT time zone you would want to:
echo "GMT+0BST-1,M3.5.0/01:00:00,M10.5.0/02:00:00" > /etc/TZ && sleep 2s
# Then ntpclient can update the time correctly
ntpclient -l -h 0.uk.pool.ntp.org -c 1 -s
# Run all active services - active means starts with S
# SAMBA will be started from there if you have follow marcnesium's instructions
/opt/etc/init.d/rc.unslung
After fighting two days to set up my router to work decided to write about the mistakes that I made during installation.
The Hard Disk partition.
I hade a big hard disk. I partitioned the first time as r0kanon said.
http://wl500g.info/showthread.php?t=6222
2 partitions:
1st small boot.
2nd the rest.
But I just could not get transmission work.
I suspected the that I could not configure transmission so I thought of making a three partition system so that I can mount the 3rd partition to /tmp/harddisk/
Than I went for Moody Blue guide:
http://wl500g.info/showthread.php?t=5909&page=3
This also did not worked out because my the router kept on out mounting the first boot partition to the /tmp/harddisk/
In the /tmp/harddisk/ I used to have two mounted partitions. System mounted the boot partition and I mounted the 3rd. Could not unmount the boot. This did not worked out.
So I thought maybe I’ll go for marcnesium way because if the system auto mounts the first drive than it will mount my big storage partition.
http://wl500g.info/showthread.php?t=5909
So I put the small boot partition in the back. But now I do not know why but the system did not did the auto mount.
But that was not a problem, because I mounted twice and that worked fine. :)
nano /usr/local/sbin/post-boot
#!/bin/sh
# 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/part1 /opt
mount /dev/discs/disc0/part1 /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/part2
# Set hostname
hostname my.router
# Synchoronize time
# For GMT time zone you would want to:
echo "GMT+0BST-1,M3.5.0/01:00:00,M10.5.0/02:00:00" > /etc/TZ && sleep 2s
# Then ntpclient can update the time correctly
ntpclient -l -h 0.uk.pool.ntp.org -c 1 -s
# Run all active services - active means starts with S
# SAMBA will be started from there if you have follow marcnesium's instructions
/opt/etc/init.d/rc.unslung