青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

隨筆-145  評(píng)論-173  文章-70  trackbacks-0
前段時(shí)間重裝了系統(tǒng),伴隨而來的是硬盤分區(qū)的變化和配置問題。具體來說就是,我使用了Acronis Disk Director Suite軟件,將原來安裝在ext4下面的Ubuntu給格式化掉了,因?yàn)樵瓉淼脑揢buntu因?yàn)楦聝?nèi)核掛掉了,圖形界面不可用,對(duì)我來說,目前使用圖形界面還是很有必要的。在經(jīng)歷過多次嘗試之后,我還是放棄了找回這個(gè)Ubuntu,而直接選擇了重裝,雖然現(xiàn)在有點(diǎn)后悔為何當(dāng)初使用弱爆的wubi安裝,導(dǎo)致現(xiàn)在每次進(jìn)入啟動(dòng)界面都要先進(jìn)入windows引導(dǎo)界面選擇Ubuntu,再啟動(dòng)grub來選擇Ubuntu(導(dǎo)致其實(shí)可以在第一個(gè)界面中選擇Ubuntu,后面一個(gè)又選回去Win7)。早知道如此,當(dāng)初或許會(huì)不給自己留退路,直接搞個(gè)Ubuntu的硬盤安裝算了,少了很多麻煩,而且更省事。(這個(gè)在文章http://www.shnenglu.com/deercoder/archive/2011/09/11/155572.html中也有所描述,權(quán)限的問題還是不好解決,畢竟不是在Linux下面的文件系統(tǒng)下直接進(jìn)行操作)。

廢話說了很多,問題出來了。每次啟動(dòng)后,都要手動(dòng)選擇掛載各個(gè)盤,比如fun盤,learn盤,來聽聽音樂,看看電子書啥的。如果不掛載的話,我的banshee就不能打開列表中的音樂,幾回下來很麻煩,為此嘗試每次啟動(dòng)后手動(dòng)掛載變?yōu)樽詣?dòng)化的過程。

在Google,baidu之后,覺得效果不大理想,主要是說的東西太多,不是我想要的,或者說內(nèi)容太雜了。于是乎看看說明文檔,主要有兩個(gè)部分,一個(gè)是命令mount,另外一個(gè)是fstab,分別看了一點(diǎn)之后,開始嘗試。
(以下操作最好都在sudo下面進(jìn)行,否則可能會(huì)有權(quán)限問題)
現(xiàn)備份文件/etc/fstab,然后編輯該文件。觀察樣例形式,找到了
 <file system> <mount point>   <type>  <options>       <dump>  <pass>
上面這種說明形式,以及實(shí)例中關(guān)于proc的例子。
proc            /proc           proc    nodev,noexec,nosuid 0       0

于是乎試著使用自己的方式來改寫。sudo fdisk -l查看硬盤信息.
  Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        7572    60820168+   7  HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2            7572       11494    31498240    7  HPFS/NTFS
Partition 2 does not end on cylinder boundary.
/dev/sda3           11494       26506   120588288+   5  Extended
Partition 3 does not end on cylinder boundary.
/dev/sda4           26507       30401    31283280    7  HPFS/NTFS
Partition 4 does not end on cylinder boundary.
/dev/sda5           11494       16715    41943040    7  HPFS/NTFS
/dev/sda6           16716       21937    41943040    7  HPFS/NTFS
/dev/sda7           21937       26506    36700160    7  HPFS/NTFS
然后在逐個(gè)掛載分區(qū),看看哪個(gè)是對(duì)應(yīng)的learn盤,fun盤,首先在/media下面新建一個(gè)文件,比如test,然后執(zhí)行命令:
sudo mount /dev/sda1 /media/test
通過對(duì)掛載之后內(nèi)容的判斷,知道上面的分區(qū)分別是哪些盤,然后就好說了。

編輯/etc/fstab文件,在最后面加入我要開機(jī)自動(dòng)掛載的盤的配置信息,如下:
/dev/sda4    /media/Code    ntfs    nodev,noexec,nosuid 0      0    
/dev/sda5     /media/Learn   ntfs    nodev,noexec,nosuid 0      0
/dev/sda6    /media/Fun     ntfs    nodev,noexec,nosuid 0     0
唯一一點(diǎn)需要注意的就是文件類型,這里我的盤都是ntfs類型的,所以通過查看文檔知道有該類型(不知道為何開始使用hpfs也是OK的,后面就不行了),在經(jīng)過幾次測試之后,發(fā)現(xiàn)出現(xiàn)了類型錯(cuò)誤。

信息錯(cuò)誤可以有dmesg | tail來查看。

在找到類型錯(cuò)誤后,修改位ntfs,即可正確的掛載。

然后掛載的話就直接使用sudo mount /media/Fun ......即可。
當(dāng)前,注意由于配置文件中有/media/Code......文件夾,所以需要在/media文件夾下面新建相應(yīng)的文件夾,否則會(huì)失敗,注意還要是管理員權(quán)限。

最后,注銷后再次進(jìn)入,就能夠看到自動(dòng)掛載的盤符了,而且,此時(shí)還不能umount掉哦,提示不是root用戶。至此,達(dá)到了第一個(gè)目的了,能夠開機(jī)自動(dòng)掛載。
如果想要使用更加個(gè)性化的選項(xiàng)和操作,可以查看參考資料,另外,Man文檔中有很多有用的信息,看文檔是最快,最直接的方式。

如果想要取消掛載的話,直接使用umount命令即可。比如取下掛載fun,則使用命令:sudo umount /media/fun即可。

P.S: 如何掛載ISO文檔呢?之前下載了無損音樂,格式是ISO鏡像,不想解壓,那么如何mount上去呢?
Key:
 sudo mount *.iso /mnt -o loop(將*.iso換成你的那個(gè)iso所在的路徑即可,另外,也不一定要掛載在mnt目錄下面,可以另外新建一個(gè)文件夾,類似于前面在media下面新建Fun,Learn等文件夾一樣。)

P.S.S: 在終端輸入命令之后,如果想在前面加入sudo怎么辦?還要移動(dòng)方向鍵來選擇插入點(diǎn),多麻煩啊?
Key:
使用Ctrl+A(不管大小寫)鍵即可跳轉(zhuǎn)到第一個(gè)字符,從而輸入sudo后回車即可。

修改:上面的描述在實(shí)際運(yùn)行的時(shí)候,能夠開機(jī)的時(shí)候mount,但是今天發(fā)現(xiàn),直接用Banshee來打開音樂的話,還是會(huì)出現(xiàn)問題,就像沒有mount一樣,不能打開文件,所以懷疑是權(quán)限問題。再次閱讀了man mount和man fstab的資料(主要資料在man mount中),修改了相應(yīng)的權(quán)限。能夠?qū)崿F(xiàn)mount的時(shí)候打開文件了,而且是開機(jī)自動(dòng)mount。

修改文件如下:
proc            /proc           proc    nodev,noexec,nosuid 0       0
/host/ubuntu/disks/root.disk /               ext4    loop,errors=remount-ro 0       1
/host/ubuntu/disks/swap.disk none            swap    loop,sw         0       0
/dev/sda4       /media/Code    ntfs     users,auto,rw,dev,exec,umask=002     0   0
/dev/sda5       /media/Learn   ntfs     users,auto,rw,dev,exec,umask=002     0   0 
/dev/sda6       /media/Fun     ntfs     users,auto,rw,dev,exec,umask=002     0   0
修改后的option字段增加了很多設(shè)置,具體來說就是:
users:表示任何用戶都能夠umount,之前的設(shè)置不能umount,只能在命令行下面使用sudo權(quán)限才能使用。
rw:表示擁有讀寫權(quán)限。
auto:Can be mounted with the -a option.(使用mount -a的時(shí)候能夠吧fstab中的所有自動(dòng)mount上去)
dev: Interpret character or block special devices on the filesystem.
exec:可執(zhí)行權(quán)限
umask以及fmask:對(duì)于文件和文件目錄的權(quán)限設(shè)置。


下面是一個(gè)資料中關(guān)于fstab的詳細(xì)解釋,在其中有更詳細(xì)的解釋和說明(How to fstab)(http://ubuntuforums.org/showthread.php?t=283131)
摘錄部分資料:

defaults = rw, suid, dev, exec, auto, nouser, and async.

Options for a separate /home : nodev,nosuid,relatime

My recommended options for removable (USB) drives are in green.

auto= mounted at boot
noauto= not mounted at boot

user= when mounted the mount point is owned by the user who mounted the partition
users= when mounted the mount point is owned by the user who mounted the partition and the group users

ro= read only
rw= read/write

說明:option字段中,即上面的 users,auto,rw,dev,exec,umask=002部分,是使用逗號(hào)間隔的一個(gè)設(shè)置,其中auto是在啟動(dòng)的時(shí)候自動(dòng)mount,而noauto則是在啟動(dòng)的時(shí)候不mount(可見之前noauto實(shí)際上還是沒有mount上去吧,這也解釋了為何不能打開,雖然可以看見盤符,能夠進(jìn)去,但是以前保存的列表還是不能打開文件,不過進(jìn)入盤符倒是可以的。) 

users能夠umount,只要是使用者即可,不一定要是root。

掛載點(diǎn)的問題:
掛載在/mnt下面的話,不會(huì)出現(xiàn)在Places和Desktop中,而掛載在/media則會(huì)出現(xiàn)在桌面和位置上面。(默認(rèn)的是在media下面,這也是為何在菜單中點(diǎn)擊某個(gè)盤的時(shí)候?qū)崿F(xiàn)掛載,然后在/media下面會(huì)出現(xiàn)相應(yīng)的盤符,而不是在/mnt下面,其實(shí),可以把ISO文件掛載在/mnt下面,硬盤分區(qū)掛載在/media下面)
  1. /mnt Typically used for fixed hard drives HD/SCSI. If you mount your hard drive in /mnt it will NOT show in "Places" and your Desktop.
  2. /media Typically used for removable media (CD/DVD/USB/Zip). If you mount your hard drive in /media it WILL show in "Places" and your Desktop.

修改2:


今天在VBox中下載的視頻無法拷貝到掛載的盤,后來發(fā)現(xiàn),是因?yàn)樯洗涡薷牧薴stab的原因,經(jīng)過多次測試,終于知道問題處在umask上面,再次修改,將umask修改位0000即可。注意:umask會(huì)奪去默認(rèn)的權(quán)限,比如UNIX上面創(chuàng)建一個(gè)文件默認(rèn)的是644,這個(gè)字段的作用就是:
設(shè)定這個(gè)盤符(或者文件)的存取權(quán)限。之前的umask位004的情況,只能夠讀取,而不能夠?qū)懭搿T蚓驮谶@里!



最后,附上man文檔中關(guān)于這些option的一些設(shè)置:

   The following options apply to any filesystem  that  is being  mounted
       (but  not every filesystem actually honors them - e.g., the sync option
       today has effect only for ext2, ext3, fat, vfat and ufs):
       async  All I/O to the filesystem should be  done  asynchronously.  (See
     also the sync option.)
       atime  Update  inode access time for each access. See also the stricta‐
     time mount option.
       noatime
     Do not update inode access times on this filesystem  (e.g,  for
     faster access on the news spool to speed up news servers).
       auto   Can be mounted with the -a option.(開機(jī)自動(dòng)mount)
       noauto Can  only  be  mounted  explicitly (i.e., the -a option will not
     cause the filesystem to be mounted).
       context=context,  fscontext=context,  defcontext=context  and  rootcon‐
       text=context
     The  context= option is useful when mounting filesystems that do
     not support extended attributes, such as a floppy or  hard  disk
     formatted  with  VFAT,  or systems that are not normally running
     under SELinux, such as an ext3 formatted disk from a non-SELinux
     workstation. You can also use context= on filesystems you do not
     trust, such as a floppy. It also helps  in  compatibility  with
     xattr-supporting filesystems on earlier 2.4.<x> kernel versions.
     Even where xattrs are supported, you can save time not having to
     label  every file by assigning the entire disk one security con‐
     text.
     A commonly used  option  for  removable  media  is  context=sys‐
     tem_u:object_r:removable_t.
     Two  other options are fscontext= and defcontext=, both of which
     are mutually exclusive of the context option. This means you can
     use fscontext and defcontext with each other, but neither can be
     used with context.
     The fscontext= option works for all filesystems, regardless  of
     their  xattr  support. The fscontext option sets the overarching
     filesystem label to a specific security context. This filesystem
     label  is  separate  from the individual labels on the files. It
     represents the entire filesystem for certain kinds of permission
     checks,  such as during mount or file creation.  Individual file
     labels are still obtained from the xattrs  on  the  files  them‐
     selves.  The  context option actually sets the aggregate context
     that fscontext provides, in addition to supplying the same label
     for individual files.
     You  can set  the  default security context for unlabeled files
     using defcontext= option. This overrides the value set for unla‐
     beled  files  in the policy and requires a filesystem that sup‐
     ports xattr labeling.
     The rootcontext= option allows you to explicitly label the  root
     inode of a FS being mounted before that FS or inode because vis‐
     able to userspace. This was found to be useful for  things  like
     stateless linux.
     For more details, see selinux(8)
       defaults
     Use  default  options:  rw,  suid,  dev, exec, auto, nouser, and
     async.
       dev    Interpret character or block special devices on the filesystem.
       nodev  Do not interpret character or block special devices on the  file
     system.
       diratime
     Update  directory inode access times on this filesystem. This is
     the default.
       nodiratime
     Do not update directory inode access times on this filesystem.
       dirsync
     All directory updates within the filesystem should be done  syn‐
     chronously.   This  affects  the following system calls: creat,
     link, unlink, symlink, mkdir, rmdir, mknod and rename.
       exec   Permit execution of binaries.
       noexec Do not allow direct execution of any  binaries  on  the  mounted
     filesystem.   (Until  recently  it  was possible to run binaries
     anyway using a command like /lib/ld*.so /mnt/binary. This  trick
     fails since Linux 2.4.25 / 2.6.0.)
       group  Allow  an ordinary (i.e., non-root) user to mount the filesystem
     if one of his groups matches the group  of  the device.   This
     option  implies  the options nosuid and nodev (unless overridden
     by subsequent options, as in the option line group,dev,suid).
       encryption
     Specifies an encryption algorithm to use.  Used  in  conjunction
     with the loop option.
       keybits
     Specifies  the key size to use for an encryption algorithm. Used
     in conjunction with the loop and encryption options.  nofail  Do
     not  report  errors for this device if it does not exist.  iver‐
     sion Every time the inode is modified, the i_version field  will
     be incremented.
       noiversion
     Do not increment the i_version inode field.
       mand   Allow mandatory locks on this filesystem. See fcntl(2).
       nomand Do not allow mandatory locks on this filesystem.
       _netdev
     The  filesystem resides on a device that requires network access
     (used to prevent the  system  from  attempting  to  mount  these
     filesystems until the network has been enabled on the system).
       nofail Do not report errors for this device if it does not exist.
       relatime
     Update  inode  access  times  relative to modify or change time.
     Access time is only updated if the previous access time was ear‐
     lier  than  the current modify or change time. (Similar to noat‐
     ime, but doesn't break mutt or other applications that  need  to
     know  if a  file has been read since the last time it was modi‐
     fied.)
       norelatime
     Do not use relatime feature.  See  also  the  strictatime  mount
     option.
       strictatime
     Allows  to  explicitly requesting full atime updates. This makes
     it possible for kernel to defaults to relatime  or  noatime  but
     still allow userspace to override it. For more details about the
     default system mount options see /proc/mounts.
       nostrictatime
     Use  the kernel's  default  behaviour  for  inode  access  time
     updates.
       suid   Allow  set-user-identifier  or set-group-identifier bits to take
     effect.
       nosuid Do not allow set-user-identifier or set-group-identifier bits to
     take  effect.  (This seems safe, but is in fact rather unsafe if
     you have suidperl(1) installed.)
       owner  Allow an ordinary (i.e., non-root) user to mount the  filesystem
     if  he  is  the  owner  of  the device.  This option implies the
     options  nosuid  and  nodev  (unless  overridden by  subsequent
     options, as in the option line owner,dev,suid).
       remount
     Attempt  to remount an already-mounted filesystem.  This is com‐
     monly used to change the mount flags  for  a  filesystem,  espe‐
     cially  to  make a  readonly  filesystem writeable. It does not
     change device or mount point.
     The remount functionality follows the standard way how the mount
     command  works  with options from fstab. It means the mount com‐
     mand doesn't read fstab (or mtab) only when a device and dir are
     fully specified.
     mount -o remount,rw /dev/foo /dir
     After this call all old mount options are replaced and arbitrary
     stuff from fstab is ignored, except the loop=  option  which  is
     internally generated and maintained by the mount command.
     mount -o remount,rw  /dir
     After  this  call  mount reads fstab (or mtab) and merges these
     options with options from command line ( -o ).
       ro     Mount the filesystem read-only.
       rw     Mount the filesystem read-write.
       sync   All I/O to the filesystem should be done synchronously. In  case
     of  media  with  limited number of write cycles (e.g. some flash
     drives) "sync" may cause life-cycle shortening.
       user   Allow an ordinary user to mount the filesystem.  The name of the
     mounting user  is  written  to  mtab so that he can unmount the
     filesystem again.   This option implies  the  options  noexec,
     nosuid,  and  nodev (unless overridden by subsequent options, as
     in the option line user,exec,dev,suid).
       nouser Forbid an ordinary (i.e., non-root) user to mount  the  filesys‐
     tem.  This is the default.
       users  Allow  every  user  to  mount  and unmount the filesystem.  This
     option implies the options noexec,  nosuid,  and nodev  (unless
     overridden   by  subsequent  options,  as  in  the  option  line
     users,exec,dev,suid).


附參考資料:
我們?cè)趌inux中常常用mount命令把硬盤分區(qū)或者光盤掛載到文件系統(tǒng)中。/etc/fstab就是在開機(jī)引導(dǎo)的時(shí)候自動(dòng)掛載到linux的文件系統(tǒng)。

在linux中/etc/fstab的數(shù)據(jù)項(xiàng)如下所示:

/dev/device   mountpoint   type   rules   dump   order

設(shè)備名稱        掛載點(diǎn)          分區(qū)類型   掛載選項(xiàng)     dump選項(xiàng)    fsck選項(xiàng)

例如這是一個(gè)普通的/etc/fstab:

/dev/hda2     /                    ext3        defaults   0 1

/dev/hda3     swap             swap      defaults   0 0

/dev/hda5     /usr               ext3        defaults   0 0

/dev/fdo        /mnt/flopy     ext3        noauto     0 0

/dev/cdrom    /mnt/cdrom   iso9660  noauto,ro 0 0

(1)設(shè)備名稱
/dev/device就是需要掛載的設(shè)備,/hda2就是第一個(gè)IDE插槽上的主硬盤的第二個(gè)分區(qū)。如果是第二個(gè)IDE插槽主硬盤的第三個(gè)分區(qū),那就是/dev/hdc3,具體可以在linux下使用fdisk -l  查看。

(2)掛載點(diǎn)
mountpoint 就是掛載點(diǎn)。/、 /usr、 swap 都是系統(tǒng)安裝時(shí)分區(qū)的默認(rèn)掛載點(diǎn)。
如果你要掛載一個(gè)新設(shè)備,你就要好好想想了,因?yàn)檫@個(gè)新設(shè)備將作為文件系統(tǒng)永久的一部分,需要根據(jù)FSSTND(文件系統(tǒng)標(biāo)準(zhǔn)),以及它的作用,用戶需求來決定。比如你想把它做為一個(gè)共享資源,放在/home下面就是一個(gè)不錯(cuò)選擇。

(3)分區(qū)類型
type 是指文件系統(tǒng)類型,下面列舉幾個(gè)常用的:

Linux file systems: ext2, ext3, jfs, reiserfs, reiser4, xfs, swap.
Windows:
vfat = FAT 32, FAT 16
ntfs= NTFS
Note: For NTFS rw ntfs-3g
CD/DVD/iso: iso9660
Network file systems:
nfs: server:/shared_directory /mnt/nfs nfs <options> 0 0
smb: //win_box/shared_folder /mnt/samba smbfs rw,credentials=/home/user_name/winbox-credentials.txt 0 0
auto: The file system type (ext3, iso9660, etc) it detected automatically. Usually works. Used for removable devices (CD/DVD, Floppy drives, or USB/Flash drives) as the file system may vary on thesedevices.

(4)掛載選項(xiàng)
rules 是指掛載時(shí)的規(guī)則。下面列舉幾個(gè)常用的:
auto 開機(jī)自動(dòng)掛載
default 按照大多數(shù)永久文件系統(tǒng)的缺省值設(shè)置掛載定義
noauto 開機(jī)不自動(dòng)掛載
nouser 只有超級(jí)用戶可以掛載
ro 按只讀權(quán)限掛載
rw 按可讀可寫權(quán)限掛載
user 任何用戶都可以掛載
請(qǐng)注意光驅(qū)和軟驅(qū)只有在裝有介質(zhì)時(shí)才可以進(jìn)行掛載,因此它是noauto

(5)dump選項(xiàng)
這一項(xiàng)為0,就表示從不備份。如果上次用dump備份,將顯示備份至今的天數(shù)。

(6)fsck選項(xiàng)
order 指fsck(啟動(dòng)時(shí)fsck檢查的順序)。為0就表示不檢查,(/)分區(qū)永遠(yuǎn)都是1,其它的分區(qū)只能從2開始,當(dāng)數(shù)字相同就同時(shí)檢查(但不能有兩1)。

如果我要把第二個(gè)IDE插槽主硬盤上的windows C 區(qū)掛到文件系統(tǒng)中,那么數(shù)據(jù)項(xiàng)是:

/dev/hdc1 /c vfat defaults 0 0

(/c 是事先建立的文件夾,作為c盤的掛載點(diǎn)。)

當(dāng)你修改了/etc/fstab后,一定要重新引導(dǎo)系統(tǒng)才會(huì)有效。

fstab中存放了與分區(qū)有關(guān)的重要信息,其中每一行為一個(gè)分區(qū)記錄,每一行又可分為六個(gè)部份,下面以/dev/hda7 / ext2 defaults 1 1為例逐個(gè)說明:

1. 第一項(xiàng)是您想要mount的儲(chǔ)存裝置的實(shí)體位置,如hdb或如上例的/dev/hda7。

2. 第二項(xiàng)就是您想要將其加入至哪個(gè)目錄位置,如/home或如上例的/,這其實(shí)就是在安裝時(shí)提示的掛入點(diǎn)。

3. 第三項(xiàng)就是所謂的local filesystem,其包含了以下格式:如ext、ext2、msdos、iso9660、nfs、swap等,或如上例的ext2,可以參見/prco/filesystems說明。

4. 第四項(xiàng)就是您mount時(shí),所要設(shè)定的狀態(tài),如ro(只讀)或如上例的defaults(包括了其它參數(shù)如rw、suid、exec、auto、nouser、async),可以參見「mount nfs」。

5. 第五項(xiàng)是提供DUMP功能,在系統(tǒng)DUMP時(shí)是否需要BACKUP的標(biāo)志位,其內(nèi)定值是0。

6. 第六項(xiàng)是設(shè)定此filesystem是否要在開機(jī)時(shí)做check的動(dòng)作,除了root的filesystem其必要的check為1之外,其它皆可視需要設(shè)定,內(nèi)定值是0。

?

參考鏈接:

http://diamonder.blog.51cto.com/159220/282542

http://blogold.chinaunix.net/u1/55527/showart_449692.html

(設(shè)置fstab需要參考的資料)
http://ubuntuforums.org/showthread.php?t=283131

http://www.tuxfiles.org/linuxhelp/fstab.html
注意主要的問題就在于第四列中的option設(shè)置,這里引用上面一文中的設(shè)置內(nèi)容:

4th column: Mount options >

The fourth column in fstab lists all the mount options for the device or partition. This is also the most confusing column in the fstab file, but knowing what some of the most common options mean, saves you from a big headache. Yes, there are many options available, but I'll take a look at the most widely used ones only. For more information, check out the man page of mount.

auto and noauto With the auto option, the device will be mounted automatically (at bootup, just like I told you a bit earlier, or when you issue the mount -a command).auto is the default option. If you don't want the device to be mounted automatically, use the noauto option in /etc/fstab. With noauto, the device can be mounted only explicitly.

user and nouser These are very useful options. The user option allows normal users to mount the device, whereas nouser lets only the root to mount the device. nouseris the default, which is a major cause of headache for new Linux users. If you're not able to mount your cdrom, floppy, Windows partition, or something else as a normal user, add the user option into /etc/fstab.

exec and noexec exec lets you execute binaries that are on that partition, whereas noexec doesn't let you do that. noexec might be useful for a partition that contains binaries you don't want to execute on your system, or that can't even be executed on your system. This might be the case of a Windows partition.

exec is the default option, which is a good thing. Imagine what would happen if you accidentally used the noexec option with your Linux root partition...

ro Mount the filesystem read-only.

rw Mount the filesystem read-write. Again, using this option might cure the headache of many new Linux users who are tearing their hair off because they can't write to their floppies, Windows partitions, or something else.

sync and async How the input and output to the filesystem should be done. sync means it's done synchronously. If you look at the example fstab, you'll notice that this is the option used with the floppy. In plain English, this means that when you, for example, copy a file to the floppy, the changes are physically written to the floppy at the same time you issue the copy command.

However, if you have the async option in /etc/fstab, input and output is done asynchronously. Now when you copy a file to the floppy, the changes may be physically written to it long time after issuing the command. This isn't bad, and may sometimes be favorable, but can cause some nasty accidents: if you just remove the floppy without unmounting it first, the copied file may not physically exist on the floppy yet!

async is the default. However, it may be wise to use sync with the floppy, especially if you're used to the way it's done in Windows and have a tendency to remove floppies before unmounting them first.

defaults Uses the default options that are rw, suid, dev, exec, auto, nouser, and async.


另外,附上一點(diǎn)小技巧,如何保存man文檔?
man command | col -b > output.txt
如,要把ls命令的man頁輸出到ls.txt文件,只需要:
  man ls | col -b > ls.txt


posted on 2011-10-04 00:20 deercoder 閱讀(23819) 評(píng)論(4)  編輯 收藏 引用 所屬分類: Unix/Linux

評(píng)論:
# re: Ubuntu下硬盤的自動(dòng)掛載 2011-10-04 11:57 | 陳梓瀚(vczh)
真麻煩啊,還要自己掛載。  回復(fù)  更多評(píng)論
  
# re: Ubuntu下硬盤的自動(dòng)掛載 2011-10-04 12:07 | 劉暢
@陳梓瀚(vczh)
還好吧,寫好配置文件就直接OK了,每次啟動(dòng)就會(huì)自動(dòng)掛載滴~  回復(fù)  更多評(píng)論
  
# re: Ubuntu下硬盤的自動(dòng)掛載 2011-10-04 13:06 | 博洋家紡
還要自己掛載  回復(fù)  更多評(píng)論
  
# re: Ubuntu下硬盤的自動(dòng)掛載 2011-10-04 18:24 | 釹鐵硼磁鐵工廠
很多年沒有玩這個(gè)了,學(xué)習(xí)了。  回復(fù)  更多評(píng)論
  
青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            久久综合九色综合欧美狠狠| 亚洲字幕一区二区| 亚洲欧美国产高清| 久久久人人人| 欧美日韩国产区一| 国产一区二区三区在线观看免费| 亚洲激情亚洲| 亚洲在线免费视频| 欧美成人高清| 亚洲色图自拍| 免费不卡在线观看av| 欧美新色视频| 亚洲国产福利在线| 欧美一区二区免费视频| 欧美电影免费观看高清| 亚洲一级高清| 欧美国产日韩精品| 国内精品久久久久久久果冻传媒| 亚洲乱码国产乱码精品精天堂| 欧美一区二区三区在线| 亚洲高清影视| 欧美一区二区三区四区视频| 欧美日韩国产麻豆| 一区在线播放| 欧美一区二区黄色| 日韩天堂av| 鲁大师影院一区二区三区| 国产精品永久入口久久久| 亚洲精品国精品久久99热一| 久久精品水蜜桃av综合天堂| 一本色道久久综合一区| 麻豆精品传媒视频| 国产视频观看一区| 亚洲一卡二卡三卡四卡五卡| 欧美国产综合视频| 午夜亚洲性色福利视频| 欧美色图一区二区三区| 亚洲欧洲精品成人久久奇米网| 久久精品观看| 亚洲视频免费在线| 欧美日韩国产小视频在线观看| 影音先锋久久久| 久久久精品日韩欧美| 亚洲视频免费观看| 欧美日韩亚洲免费| 日韩小视频在线观看专区| 麻豆久久婷婷| 久久不见久久见免费视频1| 国产精品日本精品| 亚洲一级在线观看| 亚洲乱码国产乱码精品精可以看 | 欧美性大战久久久久久久蜜臀| 91久久精品国产91久久| 麻豆freexxxx性91精品| 欧美一区=区| 国产精自产拍久久久久久| 亚洲无玛一区| 一本在线高清不卡dvd| 欧美剧在线观看| 日韩天堂在线视频| 亚洲国产另类 国产精品国产免费| 久久久免费av| 伊人精品在线| 久久综合五月天婷婷伊人| 久久电影一区| 激情成人av在线| 久久一区激情| 久久久免费精品视频| 精品91免费| 久久综合伊人77777麻豆| 久久精品一本| 亚洲国产成人porn| 亚洲国产精品成人精品| 男女精品网站| 99热这里只有精品8| 亚洲美女精品成人在线视频| 欧美日韩一区二区视频在线观看| 一区二区三区.www| 在线视频精品一区| 国产乱码精品一区二区三区忘忧草 | 国产精品美女久久久免费| 亚洲欧美精品中文字幕在线| 亚洲已满18点击进入久久| 国产亚洲va综合人人澡精品| 久久久精品欧美丰满| 久久嫩草精品久久久精品一| 亚洲激情在线视频| 亚洲精品一区二区三区av| 欧美午夜电影在线观看| 性欧美长视频| 久久久久久999| 亚洲精品视频在线观看免费| 亚洲麻豆视频| 国产欧美日韩激情| 免费看黄裸体一级大秀欧美| 欧美高清你懂得| 亚洲永久免费视频| 欧美一区影院| 亚洲日本欧美天堂| 亚洲性夜色噜噜噜7777| 国产一区二区福利| 亚洲电影免费在线| 国产精品盗摄一区二区三区| 久久久久在线| 欧美黄色免费网站| 亚洲欧美三级在线| 久久久在线视频| 中文欧美日韩| 久久精品国产综合| 一区二区三区**美女毛片| 篠田优中文在线播放第一区| 亚洲国产日韩一区二区| 日韩一区二区精品视频| 国产在线乱码一区二区三区| 亚洲福利电影| 国产伦精品一区二区三区免费| 欧美成年网站| 国产精品女人网站| 欧美激情精品久久久六区热门| 国产精品ⅴa在线观看h| 开心色5月久久精品| 欧美日韩人人澡狠狠躁视频| 久久夜色精品| 欧美午夜女人视频在线| 免费亚洲电影在线观看| 国产精品男gay被猛男狂揉视频| 美女诱惑一区| 国产精品毛片高清在线完整版| 欧美成人精品高清在线播放| 国产精品视频一区二区高潮| 亚洲二区在线视频| 国内精品久久久久影院优| 亚洲精品一区二区在线| 在线成人av.com| 亚洲午夜久久久| 99国产精品99久久久久久| 久久精品三级| 午夜在线视频观看日韩17c| 欧美高清视频一区| 麻豆成人91精品二区三区| 国产精品乱码妇女bbbb| 91久久精品国产91久久性色tv| 国语精品一区| 亚洲欧美日韩在线高清直播| 99视频在线精品国自产拍免费观看 | 中文在线一区| 免费观看久久久4p| 久久久久看片| 国产麻豆精品视频| 亚洲最新色图| 99pao成人国产永久免费视频| 久久九九久精品国产免费直播| 午夜亚洲激情| 欧美天天综合网| 亚洲精品日韩欧美| 亚洲日本欧美| 另类激情亚洲| 久久亚洲精品一区| 国产亚洲免费的视频看| 亚洲一区国产| 亚洲欧美精品suv| 欧美午夜剧场| 99精品福利视频| 一本一本久久| 欧美日韩精品免费观看视频| 亚洲电影免费在线观看| 悠悠资源网久久精品| 久久精品91| 看片网站欧美日韩| 韩日视频一区| 久久久久成人精品免费播放动漫| 久久精品首页| 国内综合精品午夜久久资源| 欧美一区二区三区精品电影| 欧美在线一级va免费观看| 国产乱码精品一区二区三区不卡| 亚洲系列中文字幕| 欧美一区二区高清| 国产一区二区成人久久免费影院| 欧美亚洲三区| 久久久久久夜精品精品免费| 黄色欧美日韩| 久久手机免费观看| 欧美激情一区二区| 亚洲精品在线观看免费| 欧美精品一区二区三区一线天视频| 亚洲激情av| 一本色道久久综合一区| 欧美调教vk| 亚洲综合视频一区| 久久免费视频在线观看| 国产在线精品一区二区夜色| 久久男人av资源网站| 亚洲电影第1页| 在线视频你懂得一区二区三区| 欧美三级视频在线| 亚洲欧美卡通另类91av| 欧美专区亚洲专区| 伊人久久大香线蕉av超碰演员| 嫩草成人www欧美|