[問題]如何mount vfat partition 且屬性為774

如果您覺得您的問題不屬於 debian desktop 或是 debian server 版的範圍內,請在這裡發問。

版主: mufa

[問題]如何mount vfat partition 且屬性為774

文章mike0 » 週二 12月 03, 2002 11:05 pm

小弟下了這段指令,但無效,還請各位高手幫幫小弟
代碼: 選擇全部
debian:~# mount -t vfat -o iocharset=cp950,mode=774,gid=1002,exec /dev/hda1 /mnt/newc
debian:~# ls -la /mnt|grep newc
drwxr--r--   13 root     localhd      8192 1970-01-01 08:00 newc
mike0
懵懂的國中生
懵懂的國中生
 
文章: 107
註冊時間: 週二 9月 10, 2002 1:12 pm

re:[問題]如何mount vfat partition 且屬性為774

文章阿信 » 週二 12月 03, 2002 11:13 pm

mount -t vfat -o iocharset=cp950,gid=1002,umask=003 /dev/hda1 /mnt/newc

這樣就可以了。
頭像
阿信
版面大總管
版面大總管
 
文章: 4756
註冊時間: 週二 9月 03, 2002 11:58 pm
來自: 台灣 - 嘉義

re:[問題]如何mount vfat partition 且屬性為774

文章mike0 » 週二 12月 03, 2002 11:21 pm

果然厲害,8分鐘就回我,感謝
mike0
懵懂的國中生
懵懂的國中生
 
文章: 107
註冊時間: 週二 9月 10, 2002 1:12 pm

re:[問題]如何mount vfat partition 且屬性為774

文章mike0 » 週二 12月 03, 2002 11:42 pm

不好意思,在請教mount ext3 partion要怎麼作,我下了指令後得到錯誤訊息
麻煩高手再次解答
代碼: 選擇全部
debian:~# mount -t ext3 -o gid=1002,umask=003 /dev/hda4 /mnt/linux
mount: wrong fs type, bad option, bad superblock on /dev/hda4,
       or too many mounted file systems
mike0
懵懂的國中生
懵懂的國中生
 
文章: 107
註冊時間: 週二 9月 10, 2002 1:12 pm

re:[問題]如何mount vfat partition 且屬性為774

文章阿信 » 週三 12月 04, 2002 9:40 am

ext3 不能用gid,umask這個參數,man mount就可以看到

先mount好之後,比如 mount -t ext3 /dev/hda4 /mnt/linux之後

在用chgrp 1002 /mnt/linux ; chmod 774 /mnt/linux

以下是ext3的option
Mount options for ext3
The `ext3' file system is version of the ext2 file system which has
been enhanced with journalling. It supports the same options as ext2
as well as the following additions:

journal=update
Update the ext3 file system's journal to the current format.

journal=inum
When a journal already exists, this option is ignored. Other-
wise, it specifies the number of the inode which will represent
the ext3 file system's journal file; ext3 will create a new
journal, overwriting the old contents of the file whose inode
number is inum.

noload Do not load the ext3 file system's journal on mounting.

data=journal / data=ordered / data=writeback
Specifies the journalling mode for file data. Metadata is
always journaled.

journal
All data is committed into the journal prior to being
written into the main file system.

ordered
This is the default mode. All data is forced directly
out to the main file system prior to its metadata being
committed to the journal.

writeback
Data ordering is not preserved - data may be written into
the main file system after its metadata has been commit-
ted to the journal. This is rumoured to be the highest-
throughput option. It guarantees internal file system
integrity, however it can allow old data to appear in
files after a crash and journal recovery.
頭像
阿信
版面大總管
版面大總管
 
文章: 4756
註冊時間: 週二 9月 03, 2002 11:58 pm
來自: 台灣 - 嘉義


回到 debian misc

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 1 位訪客