个人工具

UbuntuHelp:MountingWindowsPartitions

来自Ubuntu中文

Oneleaf讨论 | 贡献2007年5月13日 (日) 11:00的版本 (New page: {{From|https://help.ubuntu.com/community/MountingWindowsPartitions}} {{Languages|php5}} == Accessing the Files on Your Windows Partition == Ubuntu can read and write files on your Windo...)

(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航, 搜索



Accessing the Files on Your Windows Partition

Ubuntu can read and write files on your Windows partition. Windows partitions are normally formatted as NTFS (the default for Windows Vista, XP and 2000) or, rarely, FAT32. If unsure, you can find out which format your Windows partition uses by right-clicking the partition in Windows Explorer and selecting Properties.


For NTFS partitions

Ubuntu 7.04 can read and write files on the NTFS drives commonly used by Windows. It is necessary to install the NTFS 3G driver Reference. Follow the steps below.

Ubuntu 6.06 LTS and 6.10 came with older, beta versions of the NTFS 3G driver. These worked well for many users but were not guaranteed to be stable. Use Ubuntu 7.04 for stable access to NTFS partitions. Alternatively, a stable version of NTFS 3G for older versions of Ubuntu can be obtained from a third-party software repository - see using a third-party NTFS 3G.

Installing NTFS 3G Driver

  • Click ApplicationsSystem ToolsNTFS Configuration Tool
  • The upcoming tool will detect NTFS partitions on your system. Check each partition you wish to access, and, if you wish to, click the mount directory to change it. When finished, click Apply.
  • On the next screen Enable write support for internal device will be selected by default. Click OK.

Your NTFS drive will be now be available in the mount point you selected.

For FAT32 partitions

Linux uses a driver called 'vfat' to support FAT32 partitions.

  • Create a folder where the partition will be accessed (or mounted). Default for Ubuntu is to create all filesystem mount points in the /media directory.

mkdir /media/windows</code>

  • To automatically mount partitions at boot-up, you will need to edit the filesystem table, /etc/fstab. This is a configuration file that contains the information about all filesystems on your computer. Open the file with this command:

<pre> gksudo gedit /etc/fstab </code>

and add the following line for each FAT32 partition:

    • <pre>

/dev/hda1 /media/windows vfat iocharset=utf8,umask=000 0 0</code>

  • Two additional parameters are "shortname=mixed" and "user=user,group=group". The first will take care that all-caps short filenames show up in all-caps instead of in small characters. The second will take care that you are the owner of all files on the vfat partition, this will allow you to maintain file modification date/time when copying files to the FAT32 partition.
  • Then run

<pre> sudo mount -a </code> to mount all the partitions.

Your FAT32 drive will be now be available in the mount point you selected. ---- CategoryDocumentation CategoryCleanup

[[category:UbuntuHelp]]