- Timestamp:
- Jul 7, 2007, 7:14:27 PM (18 years ago)
- Branches:
- freewrt_1_0, freewrt_2_0
- Children:
- 8ffbc93
- Parents:
- 9224613
- File:
-
- 1 edited
-
docs/handbook/user/handbook.tex (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
docs/handbook/user/handbook.tex
r9224613 r4bab639 8 8 \usepackage[english]{babel} % Sets the layout to English style 9 9 \usepackage{varioref} % Intelligent page references 10 %\usepackage{txfonts}10 \usepackage{txfonts} 11 11 \usepackage[pdftex]{color} % Colour control for LaTeX documents 12 12 \usepackage[pdftex]{graphicx} % Enhanced support for graphics … … 1481 1481 bootup. 1482 1482 1483 \section{Accessing USB storage devices} 1484 1485 Many routers now ship with USB onboard, which makes them fine for dealing as a 1486 fileserver. If you have such a device and want to setup your own low--cost NAS, 1487 follow the instructions below. 1488 1489 \subsection{Firmware image preparation} 1490 1491 What you need is: 1492 \begin{itemize} 1493 \item kernel support for \code{usb-storage} 1494 \item kernel support for the filesystem(s) to be used, e.g. \code{xfs} 1495 \item optionally: \app{lsusb} to check for attached devices 1496 \end{itemize} 1497 1498 When all prerequisites are met, all that has to be done is to connect the USB 1499 mass storage device to the USB port of the router. FreeWRT provides a 1500 hotplugging script which mounts all connected partitions under 1501 \file{/mnt/discN\_Y} while \code{N} is the index of the connected disk (i.e. 1502 starting with 0) and \code{Y} is the number of the partition on the disk (i.e. 1503 starting with 1). 1504 1505 \subsection{Sharing storage via NFS} 1506 1507 There are two implementations available, one residing in kernel space and 1508 another one implemented purely in user space. If you wish to use the user space 1509 implementation of NFS, just enable \app{nfs-server}. To use the kernel 1510 implementation of NFS, activate \app{nfs-utils} for your target. Although 1511 kernel space is somewhat faster, this implementation has the drawback that only 1512 directory structures within a single mount point can be exported. So you have 1513 to supply at least a single entry for each mounted partition in 1514 \file{/etc/exports}. (Using the user space \app{nfsd}, you can also export the 1515 complete \file{/mnt} directory. 1516 1517 \begin{Verbatim}[label=sample /etc/exports] 1518 /mnt/disc0_1 *(ro,no_root_squash,insecure,no_subtree_check) 1519 /mnt/disc0_2 *(rw,root_squash,insecure,no_subtree_check) 1520 \end{Verbatim} 1521 1522 Finally, start \app{portmap} and \app{knfsd} (\app{nfsd} when using the user 1523 space implementation): 1524 \begin{Verbatim}[label=starting the daemons] 1525 # /etc/init.d/portmap start 1526 # /etc/init.d/knfsd start 1527 \end{Verbatim} 1483 1528 1484 1529 \chapter{Troubleshooting}\label{ch:troubleshooting}
Note:
See TracChangeset
for help on using the changeset viewer.
