想让 “Add/Remove Software”使用本地的DVD境像,先要挂载ISO,不知道文件格式等后面怎么写,搜了下。顺便复习一下fstab的用法:
以下内容摘自:http://wiki.linuxquestions.org/wiki/Fstab
/etc/fstab is a configuration file that is used to tell Linux what file systems to mount on boot and where.
The format of every line is
[Device] [Mount Point] [Filesystem] [Options] [dump] [fsck order]
the character # allows to write comments into the file. A typical /etc/fstab file can look like this:
/dev/hda2 / ext2 defaults 1 1
/dev/cdrom /mnt/cdrom iso9660 noauto,ro,user 0 0
/dev/hda1 /mnt/dos/c msdos defaults 0 0
/dev/fd0 /mnt/floppy ext2 noauto,user 0 0
/dev/hdb1 /mnt/hdb1 auto defaults 0 0
/dev/hda3 none swap sw
mynfsserver:/vol/vol1 /mnt/filer nfs defaults 0 0
//mysambaserver/share /mnt/sambashare smbfs rw,credentials=/home/joe/winbox-credentials.txt 0 0
This is the physical location of the file system, e.g
It can also be a file system volume label or UUID, using this has the advantage that adding/removing disks won't effect what gets mounted. The format to use instead of the device name in the fstab file is:
LABEL=
(Where
UUID=
(Where
How the label and the UUID are set depends on the file system type used. It can normally be set when creating/formatting the file system and the file system type usually has some tool to change it later on (e.g. e2tunefs, xfs_admin, reiserfstune etc.)
The mount point is what folder the filesystem is to be available under from system root, e.g.
Note: Make sure folder exists
This specifies what filesystem the device uses. Typically you will be mounting iso9660 for CDs and ext2/ext3/ReiserFS for hard drives/floppies. It can also be NFS which means the mount operation can only start after the network is up. If it is not a network drive and you just want it to be mounted (no matter which filesystem), use auto .
This field describes how kernel should handle filesystem, i.e. will it be writable by the user.
Dump field sets whether the backup utility dump will backup file system. If set to "0" the file system is ignored, with "1" it is backed up.
Fsck order is to tell fsck what order to check the file systems, if set to "0" the file system is ignored.
/iso-archiv/image.iso /mnt/image1 iso9660 ro,loop,auto 0 0
( first mkdir /mnt/image1 !)