¡¾ÍƼö¡¿½â¾ö6.06²»ÄÜ·ÃÎÊNTFSÎÊÌâµÄ·½·¨
±à¼¹ÒÔØ½Å±¾autowinfsgedit /usr/sbin/autowinfs
-------------
#!/bin/sh
#
#autowinf auto mount windows disls
#
# Copyright (c) 2005 jiahua huang <jhuangjuahua@gamil.com>
#
# /usr/bin/sutowinfs
#ÓÃÀ´×Ô¶¯¹ÒÔÚ»úÆ÷ÉϵÄwindows·ÖÇø¡£²¢Ð´È룯etc/fstab
#ÎåÔÂ2ºÅ
mkdir -p /windows/
rmdir /windows/* 1> /dev/null
grep -v '/windows/' /etc/fstab > /etc/fstab,swp
ÕâÊÇjiahua huangÌṩµÄ¡£ ºÃºóÔÚ¡°¼ÆËã»ú¡±£>Îļþϵͳ£>windowsÀï¿ÉÒÔ¿´¼ûNTFSµÄ¶«Î÷ÁË
ÔÎĵØÖ·forum.ubuntu.org.cn/weblog.php?w=52 ºÇ£¬Õâ²»»áÕæµÄÊÇ2005Äêʱ»ª»ªµÄ½Å±¾Ë®Æ½°É£¿
LZתÌûÔõô¾Íûת¸öÍêÕûÄØ
£¨ÎÒ×Ô¼ºÒ²Ã»ÊÔ¹ý¡£¡£¡££©
×Ô¶¯¹ÒÔØwindows·ÖÇø
±à¼¹ÒÔØ½Å±¾ autowinfs
gedit /usr/sbin/autowinfs
--------------
[code]
#!/bin/sh
#
#autowinfs auto mount windows disks
#
# Copyright (c) 2005 Jiahua Huang <jhuangjiahua@gmail.com>
#License: GPLv2
#
# /usr/bin/sutowinfs
# ÓÃÀ´×Ô¶¯¹ÒÔØ»úÆ÷É쵀 Windows ·ÖÇø £¬ ²¢Ð´Èë /etc/fstab
# Îå 2ÔÂ 18 14:06:12 CST 2005
mkdir -p /windows/
rmdir /windows/* 1> /dev/null
grep -v '/windows/' /etc/fstab > /etc/fstab.swp
# ±¾½Å±¾ÓÃÓÚ UTF-8 µÄ Locale ÏÂ
# µ¥¶ÀµÄ fdisk -l ²»ÄÜÁгö·ÖÇøµÄÇé¿öºÜÉÙÁË £¬ ËùÒÔ°Ñ /dev/[hs]d[a-z] È¥µô
## fdisk -l /dev/[hs]d[a-z] | grep -E 'FAT|NTFS' | cut -d' ' -f1 | cut -d/ -f3 | while read WDISKS
# ²éÕÒ NTFS ·ÖÇø £¬ ÐÂÄÚºËµÄ auto ºÃÏñÓеãÎÊÌâ £¬ ËùÒÔÏÖÔÚ°Ñ NTFS ºÍ VFST ·Ö¿ªÀ´
fdisk -l /dev/[hs]d[a-z] | grep 'NTFS' | cut -d' ' -f1 | cut -d/ -f3 | while read WDISKS
do echo "/dev/$WDISKS /windows/$WDISKS ntfs auto,user,nls=utf8,umask=0 0 0" >> /etc/fstab.swp
mkdir "/windows/$WDISKS"
done
fdisk -l /dev/[hs]d[a-z] | grep 'FAT' | cut -d' ' -f1 | cut -d/ -f3 | while read WDISKS
do echo "/dev/$WDISKS /windows/$WDISKS vfat auto,user,utf8,umask=0 0 0" >> /etc/fstab.swp
mkdir "/windows/$WDISKS"
done
mv /etc/fstab.swp /etc/fstab
mount -a
exit 0
---------------------
ÔËÐÐÃüÁî(Ó²ÅÌ·ÖÇøºóÒªÖØÐÂÔËÐÐÒÔÏÂÓï¾ä£¬²ÅÄܳɹ¦¹ÒÔØ):
chmod +x /usr/sbin/autowinfs
/usr/sbin/autowinfs
[/code]
ÄÚºËÐèÒªÖ§³Öntfs
ºÃÏñhiweed desktop 1.0ÒѾ¸Ä¶¯ÁËһЩ°É
ʹÓÃntfs-3g ÎÒÓùý¡£¿ÉÒÔµÄ
Ò³:
[1]