Changeset 4bab639 in freewrt for docs


Ignore:
Timestamp:
Jul 7, 2007, 7:14:27 PM (18 years ago)
Author:
Phil Sutter <n0-1@…>
Branches:
freewrt_1_0, freewrt_2_0
Children:
8ffbc93
Parents:
9224613
Message:
  • enable txfonts again (fonts were looking like chaos before?!)
  • add some usb-storage documentation

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@3162 afb5a338-a214-0410-bd46-81f09a774fd1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • docs/handbook/user/handbook.tex

    r9224613 r4bab639  
    88\usepackage[english]{babel} % Sets the layout to English style
    99\usepackage{varioref} % Intelligent page references
    10 %\usepackage{txfonts}
     10\usepackage{txfonts}
    1111\usepackage[pdftex]{color} % Colour control for LaTeX documents
    1212\usepackage[pdftex]{graphicx} % Enhanced support for graphics
     
    14811481bootup.
    14821482
     1483\section{Accessing USB storage devices}
     1484
     1485Many routers now ship with USB onboard, which makes them fine for dealing as a
     1486fileserver. If you have such a device and want to setup your own low--cost NAS,
     1487follow the instructions below.
     1488
     1489\subsection{Firmware image preparation}
     1490
     1491What 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
     1498When all prerequisites are met, all that has to be done is to connect the USB
     1499mass storage device to the USB port of the router. FreeWRT provides a
     1500hotplugging script which mounts all connected partitions under
     1501\file{/mnt/discN\_Y} while \code{N} is the index of the connected disk (i.e.
     1502starting with 0) and \code{Y} is the number of the partition on the disk (i.e.
     1503starting with 1).
     1504
     1505\subsection{Sharing storage via NFS}
     1506
     1507There are two implementations available, one residing in kernel space and
     1508another one implemented purely in user space.  If you wish to use the user space
     1509implementation of NFS, just enable \app{nfs-server}.  To use the kernel
     1510implementation of NFS, activate \app{nfs-utils} for your target. Although
     1511kernel space is somewhat faster, this implementation has the drawback that only
     1512directory structures within a single mount point can be exported. So you have
     1513to 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
     1515complete \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
     1522Finally, start \app{portmap} and \app{knfsd} (\app{nfsd} when using the user
     1523space implementation):
     1524\begin{Verbatim}[label=starting the daemons]
     1525# /etc/init.d/portmap start
     1526# /etc/init.d/knfsd start
     1527\end{Verbatim}
    14831528
    14841529\chapter{Troubleshooting}\label{ch:troubleshooting}
Note: See TracChangeset for help on using the changeset viewer.