个人工具

“UbuntuHelp:MountingWindowsPartitions”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(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...)
 
第29行: 第29行:
  
 
* 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.<pre><nowiki>
 
* 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.<pre><nowiki>
mkdir /media/windows</nowiki></code>
+
mkdir /media/windows</nowiki></pre>
 
* 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:  
 
* 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><nowiki>
 
<pre><nowiki>
 
gksudo gedit /etc/fstab  
 
gksudo gedit /etc/fstab  
</nowiki></code>
+
</nowiki></pre>
  
 
and add the following line for each FAT32 partition:
 
and add the following line for each FAT32 partition:
 
** <pre><nowiki>
 
** <pre><nowiki>
/dev/hda1      /media/windows  vfat    iocharset=utf8,umask=000  0      0</nowiki></code>  
+
/dev/hda1      /media/windows  vfat    iocharset=utf8,umask=000  0      0</nowiki></pre>  
 
* 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.
 
* 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  
 
* Then run  
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo mount -a
 
sudo mount -a
</nowiki></code> to mount all the partitions.
+
</nowiki></pre> to mount all the partitions.
  
 
Your FAT32 drive will be now be available in the mount point you selected.  
 
Your FAT32 drive will be now be available in the mount point you selected.  

2007年5月13日 (日) 12:26的版本



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
  • 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:
gksudo gedit /etc/fstab 

and add the following line for each FAT32 partition:

/dev/hda1 /media/windows vfat iocharset=utf8,umask=000 0 0
  • 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
sudo mount -a
to mount all the partitions.

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


CategoryDocumentation CategoryCleanup