|
|
发表于 2007-3-28 13:03:18
|
显示全部楼层
最好能够在安装的时候创建一个独立的分区,然后把自己下载的文件都放在这个分区里。这样做的好处是,万一linux出了问题,那么就算是重装linux,也不会破坏这个独立分区上的数据。我有4个这样的独立分区:/data、/software、/material、/films 重装N次,没有损失。- 7dehao ~ # cat /etc/fstab
- # /etc/fstab: static file system information.
- # $Header: /var/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.18.4.1 2005/01/31 23:05:14 vapier Exp $
- #
- # noatime turns off atimes for increased performance (atimes normally aren't
- # needed; notail increases performance of ReiserFS (at the expense of storage
- # efficiency). It's safe to drop the noatime options if you want and to
- # switch between notail / tail freely.
- #
- # See the manpage fstab(5) for more information.
- # <fs> <mountpoint> <type> <opts> <dump/pass>
- # NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
- /dev/hda5 /boot ext3 defaults 1 2
- /dev/hda6 / reiserfs defaults 1 1
- /dev/hdb1 none swap sw 0 0
- /dev/hda7 /home reiserfs defaults 1 2
- /dev/hda8 /opt reiserfs defaults 1 2
- /dev/hda9 /tmp reiserfs defaults 1 2
- /dev/hda10 /var reiserfs defaults 1 2
- /dev/hda11 /usr reiserfs defaults 1 2
- /dev/hdb2 /data reiserfs defaults 1 2
- /dev/hdb3 /software reiserfs defaults 1 2
- /dev/hdb4 /films reiserfs defaults 1 2
- /dev/hda12 /material reiserfs defaults 1 2
- /dev/hdc /mnt/cdrom iso9660 user,noauto,ro 0 0
- /dev/hdc /mnt/dvd iso9660 user,noauto,ro 0 0
- /dev/hdd /mnt/cdr iso9660 user,noauto,rw 0 0
- #/dev/fd0 /mnt/floppy auto noauto 0 0
- # NOTE: The next line is critical for boot!
- proc /proc proc defaults 0 0
- # glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
- # POSIX shared memory (shm_open, shm_unlink).
- # (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
- # use almost no memory if not populated with files)
- shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
- none /tmp tmpfs defaults 0 0
复制代码 |
|