> > /dev/fd0 /floppy auto defaults,user,noauto 0 0 > > /dev/cdrom /cdrom iso9660 defaults,ro,user,noauto 0 0 > > The defaults directive doesn't make too much sense when combined with > other directives, it should be removed from both those lines. You only > need to specify defaults when you're not specifying anything else.
If i know it correctly, /etc/fstab and /etc/init.d/network looks like as the above. I like it to have it a lilltle bit verbose; my fstab looks: # /etc/fstab: static file system information. # $Id: fstab.sample,v 3.4 1995/02/20 03:30:26 imurdock Exp $ # # The following is an example. Please see fstab(5) for further details. # Please refer to mount(1) for a complete description of mount options. # # Format: # <file system> <mount point> <type> <options> <dump> <pass> # # dump(8) uses the <dump> field to determine which file systems need # to be dumped. fsck(8) uses the <pass> column to determine which file # systems need to be checked--the root file system should have a 1 in # this field, other file systems a 2, and any file systems that should # not be checked (such as MS-DOS or NFS file systems) a 0. # # The `sw' option indicates that the swap partition is to be activated # with `swapon -a'. /dev/sda5 none swap sw 0 0 # # The `bsdgroups' option indicates that the file system is to be mounted # with BSD semantics (files inherit the group ownership of the directory # in which they live). `ro' can be used to mount a file system read-only. #/dev/sda1 /mnt msdos defaults,noauto 0 0 /dev/sda2 / ext2 defaults 0 1 #/dev/sda4 /cdimage msdos defaults,noauto 0 0 /dev/sda6 /home ext2 defaults 0 2 /dev/sda3 /var ext2 defaults 0 2 #/dev/sda8 /tmp ext2 defaults 0 2 #/dev/sda9 /home/ftp ext2 defaults 0 2 /dev/sda7 /project ext2 defaults 0 2 #/dev/sda11 /usr/local ext2 defaults 0 2 # # noauto: file system should not be mounted with 'mount -a' # user : indicates that normal users are allowed to mount # unhide: # /dev/cdrom /cdrom iso9660 ro,user,noauto,unhide 0 0 /dev/fd0 /floppy msdos defaults,noauto,user 0 0 # # NFS file systems: #server:/export/usr /usr nfs defaults 0 0 # # proc file system: proc /proc proc defaults 0 0 # pts file system devpts /dev/pts devpts gid=5,mode=620 0 0 and /etc/init.d/network: #!/bin/sh # network: establish the network connection. # $Id: network,v 1.1 1995/02/19 20:29:29 imurdock Exp $ # Configure the loopback device. /sbin/ifconfig lo 127.0.0.1 /sbin/route add -net 127.0.0.0 netmask 255.0.0.0 dev lo # Configure the ethernet device or start SLIP/PPP below. IPADDR="172.16.10.1" # Your IP address NETMASK="255.255.255.0" # Your netmask NETWORK="172.16.10.0" # Your network address BROADCAST="172.16.10.255" # Your broadcast address (blank if none) GATEWAY="192.129.16.1" # Your gateway address /sbin/ifconfig eth0 ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST} #/sbin/ifconfig dummy ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST} #/sbin/route add -net ${NETWORK} netmask 255.255.255.0 dev eth0 #/sbin/route add -net ${NETWORK} netmask 255.255.255.0 dev dummy #/sbin/route add default gw ${GATEWAY} metric 1 I like also some addings for /etc/profile, but this is maybe off-topic: # /etc/profile: system-wide .profile file for bash(1). PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games" PS1="\\$ " export PATH PS1 export CVS_RSH=ssh alias l='ls -l' alias ll='ls -al' alias lr='ls -ltr' if [ -x /usr/bin/less ] ; then export LESS='-c -e -M' PAGER=/usr/bin/less LESSCHARSET=latin1 export PAGER LESSCHARSET elif [ -x /usr/bin/most ] ; then PAGER=/usr/bin/most export PAGER fi if [ -x /usr/bin/minicom ] ; then MINICOM='-m -c on' export MINICOM fi umask 002 /usr/bin/check-sendfile if [ -f /etc/language ]; then source /etc/language; fi if [ -f /etc/bash_aliases ]; then . /etc/bash_aliases; fi The 'less' entry speedup remote access per less. Users wonders why minicom startsup in monochrome. And 'l', 'll' and 'lr' are useful. Thanks, Hartmut