X86
From DD-WRT Wiki
Revision as of 02:11, 16 June 2008 (edit) Dd-wrt101sbe (Talk | contribs) (→More Storage on another IDE Device) ← Previous diff |
Revision as of 02:13, 16 June 2008 (edit) (undo) Dd-wrt101sbe (Talk | contribs) Next diff → |
||
Line 46: | Line 46: | ||
Create a mount point <br> | Create a mount point <br> | ||
- | mkdir /tmp/mydisc | + | mkdir /tmp/mydisc |
Find a mountable partition on the device. It will be somewhere under the /dev/ide tree.<br> | Find a mountable partition on the device. It will be somewhere under the /dev/ide tree.<br> | ||
For example, we'll use: <br> | For example, we'll use: <br> | ||
- | ls -la /dev/discs/<br> | + | > ls -la /dev/discs/<br> |
- | disc0 -> ../ide/host0/bus0/target0/lun0<br> | + | disc0 -> ../ide/host0/bus0/target0/lun0<br> |
Now that we know the device it is on, /dev/discs/disc0, we can list the partitions: | Now that we know the device it is on, /dev/discs/disc0, we can list the partitions: | ||
- | ls -la /dev/discs/disc0/* | + | ls -la /dev/discs/disc0/* |
- | brw------- 1 root root 3, 0 Jan 1 1970 /dev/discs/disc0/disc | + | brw------- 1 root root 3, 0 Jan 1 1970 /dev/discs/disc0/disc |
- | brw------- 1 root root 3, 1 Jan 1 1970 /dev/discs/disc0/part1 | + | brw------- 1 root root 3, 1 Jan 1 1970 /dev/discs/disc0/part1 |
- | + | Now we can mount the partition on the mount point: | |
- | + | mount -o rw /dev/discs/disc0/part1 /tmp/mydisc | |
- | mount -o rw /dev/discs/disc0/part1 /tmp/mydisc | + | |
= Installation = | = Installation = |
Revision as of 02:13, 16 June 2008
Contents |
x86
Regular PC computers can run DD-WRT by using an x86 build of DD-WRT.
Applications
You can, in theory at least, escape many of the limitations of small platforms.
Limitations
The x86 version of DD-WRT does not support the following features:
- Ipkg - Itsy Package Management System
- jffs - Journaling Flash File System
- USB , which means it cannot support
Commands
More Storage on your Boot Device
There is free space on the installation image in partition 3.
Partition 3 is mounted Read-Only at boot by default.
You can see this with the mount command:
> mount
...
/dev/discs/disc1/part3 on /usr/local type ext2 (ro)
The "(ro)" means that the partition is mounted read-only.
To mount it read/write, the command is:
mount -o remount /dev/discs/disc0/part3 /usr/local mount ... /dev/discs/disc1/part3 on /usr/local type ext2 (rw)
Note that the "(ro)" has changed to a "(rw)", indicating that you can now write to it.
This works for a machine that is booting off a Compact Flash(CF) device.
You might have to change it a little, if you're booting off something else.
When you reboot, partition 3 will be mounted read-only again. If you like, you can make the file system read-only again with the command:
mount -o ro,remount /dev/discs/disc0/part3 /usr/local
More Storage on another IDE Device
If you have another disc drive or storage device attached to your IDE bus, you can mount it.
Create a mount point
mkdir /tmp/mydisc
Find a mountable partition on the device. It will be somewhere under the /dev/ide tree.
For example, we'll use:
> ls -la /dev/discs/
disc0 -> ../ide/host0/bus0/target0/lun0
Now that we know the device it is on, /dev/discs/disc0, we can list the partitions:
ls -la /dev/discs/disc0/* brw------- 1 root root 3, 0 Jan 1 1970 /dev/discs/disc0/disc brw------- 1 root root 3, 1 Jan 1 1970 /dev/discs/disc0/part1
Now we can mount the partition on the mount point:
mount -o rw /dev/discs/disc0/part1 /tmp/mydisc
Installation
Prerequisites
Partitions on the Image
Here is what the partitions on the x86 image look like:
root@mywrt:/tmp# ls -la /dev/discs/disc1/* brw------- 1 root root 22, 0 Jan 1 1970 /dev/discs/disc1/disc brw------- 1 root root 22, 1 Jan 1 1970 /dev/discs/disc1/part1 brw------- 1 root root 22, 2 Jan 1 1970 /dev/discs/disc1/part2 brw------- 1 root root 22, 3 Jan 1 1970 /dev/discs/disc1/part3 brw------- 1 root root 22, 4 Jan 1 1970 /dev/discs/disc1/part4