Exploring Unslung
Exploring Unslung
At this point we're using the new firmware, but functionality hasn't changed much. We're still using the standard RAMdisk and no new packages have been installed. For the next step, hot-plug your hard drive back into USB port 1. After a few seconds, entering a df command should show your drive mounted.
Now we'll populate the root filesystem on disk using a copy of the RAM filesystem. The new unslung command for this is:
/sbin/unslingThis command should give a few lines of output as it copies the RAMdisk to the hard drive. When it completes, type:
sync rebootThe box will reboot as normal. When it comes back up you'll need to re-enable Telnet once again using the standard telnet.cgi URL. Your user name and password should be preserved from your previous modifications. A df command will show your conf partition mounted on both the "/" directory and in the original location where the Linksys utilities expect to find it. And you should have an additional 10 MegaBytes of free memory! To verify this, enter:
cat /proc/meminfoYou should see a small amount of memory listed as free and a larger amount listed in buffers and cached. This memory is available for applications when needed.
Now we can re-enable Telnet using a diversion script. The details of creating diversion scripts can be found in the README file that came with the firmware, but here's what I did. I made a copy of /etc/inetd.conf in the directory /opt/etc/. Then I created an xinetd diversion script called rc.xinetd in the /unslung directory:
#!/bin/shcp /opt/etc/inetd.conf /etc/
return 1
This will run before inetd is started and just makes sure that the configuration file has Telnet enabled. The return 1 statement signifies that the rest of the standard script should be executed. If you're curious about the execution path, you can see how the diversion calls are made in the original rc files, e.g. /etc/rc.d/rc.xinetd. A reboot should now cause the box to come back up with Telnet running.
Now, on to the package system and some new applications.
- Previous page Installing Unslung
- Next page Adding Applications
- How To: Hacking the Linksys NSLU2 - Part 4- Customizing the Flash
- How To:Hacking the Linksys NSLU2 - Part 3 - Adding an iTunes server
- How To: Hacking the Linksys NSLU2 - Part 2 - Adding NFS
- How To: Hacking the Linksys NSLU2 - Part 1
- Linksys Network Storage Link for USB 2.0 Disk Drives reviewed
- XIMETA NetDisk Office reviewed
- Mirra Personal Server Reviewed
- Head to Head: Tritton's ASAP vs. ioGEAR's BOSS
- How We Test: Networked Storage Devices
- Ximeta NetDisk reviewed