现在的位置: 首页 > 综合 > 正文

Manually and automatically mount windows file system on Linux

2013年03月20日 ⁄ 综合 ⁄ 共 763字 ⁄ 字号 评论关闭

1. Manually Mount windows file system on Linux:

NTFS: mount -t ntfs /dev/sda5 /mnt/winE
FAT32: mount -t vfat /dev/sda5 /mnt/winE

If don't know the format of your partion use: mount -t auto /dev/sda5 /mnt/winE

If don't know where is your Driver E, use: "/sbin/fdisk -l" to check position of windows partion before  mounting windows partion.

2. Auto mount when boot:


vi /etc/fstab

# /etc/fstab: static file system information.
#
# [mount point] [type] [options] [dump] [pass]
proc /proc proc defaults 0 0
/dev/sda9 / ext3 defaults 0 1
/dev/sda13 none swap sw 0 0
/dev/sdc /media/cdrom iso9660 ro,user,noauto 0 0
/dev/fd0 /media/floppy auto rw,user,noauto 0 0
/dev/sda10 /mnt/debian ext3 defaults 0 0
/dev/sda1 /mnt/winD ntfs utf8,umask=022 0 0
/dev/sda5 /mnt/winE vfat utf8,umask=0 0 0

Note: umask=022, only the root user can write on the partion, umask=0 makes anyone can write on the partion.

 

抱歉!评论已关闭.