modjtabaf
November 30th, 2015, 06:47 PM
Hi all,
Recently I purchased a mSATA SSD for my ThinkPad X220 laptop. I wanted to have both Windows 10 and Ubuntu installed on my laptop, so I created a 60GB NTFS partition for Windows 10, a 110GB NTFS partition for my data and a 60GB ext4 partition for my Ubuntu installation. After installing both OSs and the grub, I decided to copy my personal files from my old HDD to my data partition. First I tried 'sudo cp -rp' command to copy one directory, but after doing that I noticed all permissions were set to rwxrwxrwx and all files were owned by root. Then I tried 'sudo rsync -a' which resulted the same. I also tried running the commands without 'sudo', copying the files using Ubuntu file manager program and copying in Windows 10, but I always got new files with permissions set to rwxrwxrwx and owned by root user.
For your reference, in order to mount my data partition in Ubuntu, I added this line to '/etc/fstab/':
UUID=xxxxxxxxxxxx /media/D ntfs-3g rw,user,exec,discard,noatime,errors=remount-ro 0 1
I don't know what I am doing wrong. Any ideas?
Recently I purchased a mSATA SSD for my ThinkPad X220 laptop. I wanted to have both Windows 10 and Ubuntu installed on my laptop, so I created a 60GB NTFS partition for Windows 10, a 110GB NTFS partition for my data and a 60GB ext4 partition for my Ubuntu installation. After installing both OSs and the grub, I decided to copy my personal files from my old HDD to my data partition. First I tried 'sudo cp -rp' command to copy one directory, but after doing that I noticed all permissions were set to rwxrwxrwx and all files were owned by root. Then I tried 'sudo rsync -a' which resulted the same. I also tried running the commands without 'sudo', copying the files using Ubuntu file manager program and copying in Windows 10, but I always got new files with permissions set to rwxrwxrwx and owned by root user.
For your reference, in order to mount my data partition in Ubuntu, I added this line to '/etc/fstab/':
UUID=xxxxxxxxxxxx /media/D ntfs-3g rw,user,exec,discard,noatime,errors=remount-ro 0 1
I don't know what I am doing wrong. Any ideas?