Bekijk de volledige versie : USB-HD not mounting correctly

27-05-2006, 09:43
I have a WL-500G Deluxe, and I'm generally very happy with it. I'm using oleg latest firmware, and have a 250GB USB HDD attached. Set up the filesystem as described in the numerous howtos, got dropbear etc. running. There is however one small annoyance that I can't seem to get a grip on.

After rebooting the Asus, the HD (/dev/discs/disc0/part1) is automatically mounted to /tmp/harddisk, instead of to /opt/ where I'd want it. I can easily log in an remount it to the correct place, but it is slightly annoying, especially as I have the correct mount command in my post-boot file, but apparently it's being ignored.

Here's my /usr/local/sbin/post-boot file:

mount /dev/discs/disc0/part1 /opt/
while [ $i -le 30 ]
if [ -d /opt/etc ]
sleep 1
i=`expr $i + 1`

/usr/sbin/smbd -D
/usr/sbin/nmbd -D


wl radio off

I can ssh to the router, so I guess dropbear is being started, smbd and nmbd are also running if I check for them with ps -aux, so the post-boot is being executed. Why is the mount command being ignored?

27-05-2006, 10:26
Apparently the mount command was being processed before the HD had been identified. A simple 'sleep 5' at the top of the post-boot file solved the problem.