Ubuntu:Edgy/Windows

From

Jump to: navigation, search

Contents

Windows

How to mount/unmount Windows partitions (NTFS) manually, and allow all users to read only


e.g. Assumed that /dev/hda1 is the location of Windows partition (NTFS)
Local mount folder: /media/windows
  • To mount Windows partition
sudo mkdir /media/windows
sudo mount /dev/hda1 /media/windows/ -t ntfs -o nls=utf8,umask=0222
  • To unmount Windows partition
sudo umount /media/windows/

How to mount/unmount Windows partitions (FAT) manually, and allow all users to read/write

e.g. Assumed that /dev/hda1 is the location of Windows partition (FAT)
Local mount folder: /media/windows
  • To mount Windows partition
sudo mkdir /media/windows
sudo mount /dev/hda1 /media/windows/ -t vfat -o iocharset=utf8,umask=000
  • To unmount Windows partition
sudo umount /media/windows/

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

e.g. Assumed that /dev/hda1 is the location of Windows partition (NTFS)
Local mount folder: /media/windows
sudo mkdir /media/windows
sudo cp -a /etc/fstab /etc/fstab_backup
sudo echo -e "/dev/hda1\t/media/windows\tntfs\tnls=utf8,umask=0222\t0 0" >>/etc/fstab

How to mount Windows partitions (FAT) on boot-up, and allow all users to read/write

e.g. Assumed that /dev/hda1 is the location of Windows partition (FAT)
Local mount folder: /media/windows
sudo mkdir /media/windows
sudo cp -a /etc/fstab /etc/fstab_backup
sudo echo -e "/dev/hda1\t/media/windows vfat\tiocharset=utf8,umask=000\t0 0" >>/etc/fstab

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

sudo apt-get install ntfs-3g
  • 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 -a /etc/fstab /etc/fstab.bak
sudo echo -e "/dev/hda1\t/media/windows\tntfs-3g\tdefaults,locale=en_US.utf8\t0 0" >>/etc/fstab
  • 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 user. 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
Personal tools
Sponsor
LinuCity