If you’re originally a Windows user and going to migrate to Linux, you may still want to use your data formerly on your NTFS harddisk. This is my experience using Kubuntu 10.04, migrating from Windows XP. Please take note that the word ‘migrating’ here does not mean I delete my Windows OS. I’m just doing dual-boot.
Well, installing Kubuntu Linux won’t give you trouble if you’re experienced in installing Windows. Kubuntu will mount your NTFS harddisk on /dev/sda1, /dev/sda2, and so on, depending on how much partitions your harddisk has. You’ll also be given options whether to auto-mount these drives at boot time.
OK, that’s so much for the installing. Now if you have used this Linux (Kubuntu) for some time, installed some applications or else, you’ll notice that some Linux applications cannot access the mounted NTFS disk (I say ‘some time’ because you’ll not notice if you’re not paying attention to these kind of things).
If you do auto-mount, this is the solution:
- Be the root(whether using ‘su’ or ‘sudo’ command), and edit the file /etc/fstab. This file contains the auto-mount configurations. The file content should look like this (varies depends on your hard drive configuration)
# /etc/fstab: static file system information. # # Use 'blkid -o value -s UUID' to print the universally unique identifier # for a device; this may be used with UUID= as a more robust way to name # devices that works even if disks are added and removed. See fstab(5). # # proc /proc proc nodev,noexec,nosuid 0 0 /dev/sda2 / ext4 errors=remount-ro 0 1 # /emerald was on /dev/sda6 during installation UUID=B8C8AF1CC8AED7C0 /emerald ntfs defaults,nls=utf8,umask=007,gid=46 0 0 # /quartz was on /dev/sda5 during installation UUID=C4881CD2881CC4B8 /quartz ntfs defaults,nls=utf8,umask=007,gid=46 0 0 # /windows was on /dev/sda1 during installation UUID=584893BA489394FA /windows ntfs defaults,nls=utf8,umask=007,gid=46 0 0 # swap was on /dev/sda7 during installation UUID=04d66d15-fca5-434c-b0a4-5bdb01a0202a none swap sw 0 0
umask=007code? That’s the culprit. Change it to
umask=000. For more information, see http://en.wikipedia.org/wiki/Fmask
This file permission problem really annoys if you want to use LAMPP with Windows’ XAMPP data. LAMPP won’t be able to access data from NTFS partitions.