特殊:Badtitle/NS100:MountingWindowsPartitions:修订间差异
小 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></ | 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></ | </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></ | /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></ | </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的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/MountingWindowsPartitions }} |
点击翻译: |
English {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}MountingWindowsPartitions}}/af | • {{#if: php5|Afrikaans| [[::MountingWindowsPartitions/af|Afrikaans]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}MountingWindowsPartitions}}/ar | • {{#if: php5|العربية| [[::MountingWindowsPartitions/ar|العربية]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}MountingWindowsPartitions}}/az | • {{#if: php5|azərbaycanca| [[::MountingWindowsPartitions/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}MountingWindowsPartitions}}/bcc | • {{#if: php5|جهلسری بلوچی| [[::MountingWindowsPartitions/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}MountingWindowsPartitions}}/bg | • {{#if: php5|български| [[::MountingWindowsPartitions/bg|български]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}MountingWindowsPartitions}}/br | • {{#if: php5|brezhoneg| [[::MountingWindowsPartitions/br|brezhoneg]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}MountingWindowsPartitions}}/ca | • {{#if: php5|català| [[::MountingWindowsPartitions/ca|català]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}MountingWindowsPartitions}}/cs | • {{#if: php5|čeština| [[::MountingWindowsPartitions/cs|čeština]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}MountingWindowsPartitions}}/de | • {{#if: php5|Deutsch| [[::MountingWindowsPartitions/de|Deutsch]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}MountingWindowsPartitions}}/el | • {{#if: php5|Ελληνικά| [[::MountingWindowsPartitions/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}MountingWindowsPartitions}}/es | • {{#if: php5|español| [[::MountingWindowsPartitions/es|español]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}MountingWindowsPartitions}}/fa | • {{#if: php5|فارسی| [[::MountingWindowsPartitions/fa|فارسی]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}MountingWindowsPartitions}}/fi | • {{#if: php5|suomi| [[::MountingWindowsPartitions/fi|suomi]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}MountingWindowsPartitions}}/fr | • {{#if: php5|français| [[::MountingWindowsPartitions/fr|français]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}MountingWindowsPartitions}}/gu | • {{#if: php5|ગુજરાતી| [[::MountingWindowsPartitions/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}MountingWindowsPartitions}}/he | • {{#if: php5|עברית| [[::MountingWindowsPartitions/he|עברית]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}MountingWindowsPartitions}}/hu | • {{#if: php5|magyar| [[::MountingWindowsPartitions/hu|magyar]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}MountingWindowsPartitions}}/id | • {{#if: php5|Bahasa Indonesia| [[::MountingWindowsPartitions/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}MountingWindowsPartitions}}/it | • {{#if: php5|italiano| [[::MountingWindowsPartitions/it|italiano]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}MountingWindowsPartitions}}/ja | • {{#if: php5|日本語| [[::MountingWindowsPartitions/ja|日本語]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}MountingWindowsPartitions}}/ko | • {{#if: php5|한국어| [[::MountingWindowsPartitions/ko|한국어]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}MountingWindowsPartitions}}/ksh | • {{#if: php5|Ripoarisch| [[::MountingWindowsPartitions/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}MountingWindowsPartitions}}/mr | • {{#if: php5|मराठी| [[::MountingWindowsPartitions/mr|मराठी]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}MountingWindowsPartitions}}/ms | • {{#if: php5|Bahasa Melayu| [[::MountingWindowsPartitions/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}MountingWindowsPartitions}}/nl | • {{#if: php5|Nederlands| [[::MountingWindowsPartitions/nl|Nederlands]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}MountingWindowsPartitions}}/no | • {{#if: php5|norsk| [[::MountingWindowsPartitions/no|norsk]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}MountingWindowsPartitions}}/oc | • {{#if: php5|occitan| [[::MountingWindowsPartitions/oc|occitan]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}MountingWindowsPartitions}}/pl | • {{#if: php5|polski| [[::MountingWindowsPartitions/pl|polski]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}MountingWindowsPartitions}}/pt | • {{#if: php5|português| [[::MountingWindowsPartitions/pt|português]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}MountingWindowsPartitions}}/ro | • {{#if: php5|română| [[::MountingWindowsPartitions/ro|română]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}MountingWindowsPartitions}}/ru | • {{#if: php5|русский| [[::MountingWindowsPartitions/ru|русский]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}MountingWindowsPartitions}}/si | • {{#if: php5|සිංහල| [[::MountingWindowsPartitions/si|සිංහල]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}MountingWindowsPartitions}}/sq | • {{#if: php5|shqip| [[::MountingWindowsPartitions/sq|shqip]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}MountingWindowsPartitions}}/sr | • {{#if: php5|српски / srpski| [[::MountingWindowsPartitions/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}MountingWindowsPartitions}}/sv | • {{#if: php5|svenska| [[::MountingWindowsPartitions/sv|svenska]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}MountingWindowsPartitions}}/th | • {{#if: php5|ไทย| [[::MountingWindowsPartitions/th|ไทย]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}MountingWindowsPartitions}}/tr | • {{#if: php5|Türkçe| [[::MountingWindowsPartitions/tr|Türkçe]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}MountingWindowsPartitions}}/vi | • {{#if: php5|Tiếng Việt| [[::MountingWindowsPartitions/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}MountingWindowsPartitions}}/yue | • {{#if: php5|粵語| [[::MountingWindowsPartitions/yue|粵語]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}MountingWindowsPartitions}}/zh | • {{#if: php5|中文| [[::MountingWindowsPartitions/zh|中文]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}MountingWindowsPartitions}}/zh-hans | • {{#if: php5|中文(简体)| [[::MountingWindowsPartitions/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}MountingWindowsPartitions}}/zh-hant | • {{#if: php5|中文(繁體)| [[::MountingWindowsPartitions/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:php5|:MountingWindowsPartitions|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :MountingWindowsPartitions/zh | | {{#ifexist: MountingWindowsPartitions/zh | | {{#ifeq: {{#titleparts:MountingWindowsPartitions|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:MountingWindowsPartitions|1|-1|}} | zh | | }}
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
- Enable the universe repository and install the ntfs-config package. See Installing Software.
- Click Applications → System Tools → NTFS 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