Ubuntu:Edgy ja/Windows

From

Contents

Windows

手動でWindowsパーティション(NTFS)をマウント/アンマウントして、すべてのユーザが読めるようにするには

例: /dev/hda1がWindowsパーティション(NTFS)の場所だと仮定します。
ローカルマウントフォルダ: /media/windows
  • Windowsパーティションをマウントするには
sudo mkdir /media/windows
sudo mount /dev/hda1 /media/windows/ -t ntfs -o nls=utf8,umask=0222
  • Windowsパーティションをアンマウントするには
sudo umount /media/windows/

手動でWindowsパーティション(FAT)をマウント/アンマウントして、すべてのユーザが読み書きできるようにするには

例: /dev/hda1がWindowsパーティション(FAT)の場所だと仮定します。
ローカルマウントフォルダ: /media/windows
  • Windowsパーティションをマウントするには
sudo mkdir /media/windows
sudo mount /dev/hda1 /media/windows/ -t vfat -o iocharset=utf8,umask=000
  • Windowsパーティションをアンマウントするには
sudo umount /media/windows/

起動時にWindowsパーティション(NTFS)をマウントして、すべてのユーザが読めるようにするには

例: /dev/hda1がWindowsパーティション(NTFS)の場所だと仮定します。
ローカルマウントフォルダ: /media/windows
sudo mkdir /media/windows
sudo cp /etc/fstab /etc/fstab_backup
gksudo gedit /etc/fstab
  • 以下をファイルの最後に追記してください。
/dev/hda1    /media/windows ntfs  nls=utf8,umask=0222 0    0

起動時にWindowsパーティション(FAT)をマウントして、すべてのユーザが読み書きできるようにするには

例: /dev/hda1がWindowsパーティション(FAT)の場所だと仮定します。
ローカルマウントフォルダ: /media/windows
sudo mkdir /media/windows
sudo cp /etc/fstab /etc/fstab_backup
gksudo gedit /etc/fstab
  • 以下をファイルの最後に追記してください。
/dev/hda1    /media/windows vfat  iocharset=utf8,umask=000  0    0

How to mount Windows partitions (NTFS) on boot-up, and allow users read and write access

Warning: The software you will use is still in Beta. You should not enable it on production machines

sudo apt-get install ntfs-3g
  • #How to list partition tables を読んでください。
  • Create the local mount folder and edit the fstab file to mount the disks to this folder.
e.g. Assumed that /dev/hda1 is the location of Windows partition (NTFS)
Local mount folder: /media/windows
sudo mkdir /media/windows
sudo cp /etc/fstab /etc/fstab.bak
gksudo gedit /etc/fstab
  • Append the following line at the end of file.
/dev/hda1    /media/windows    ntfs-3g    defaults,locale=en_US.utf8    0    0
  • You can adjust your locale. Execute 'locale -a' in a terminal to know which one are supported by your system.
  • Save the edited file.
  • If you reboot now, the disk will be writable to every users. If you want the changes to take effect immediately without rebooting, execute the following command, ignoring the errors about "/" and others not being unmounted.
sudo umount -a && sudo mount -a