1

I'm fairly new to file system's issues especially mounting a file system. I've poked around and found no optimal solution
I've had Kali Linux on a partition with EXT4 or EXT3 (I'm not sure) and Windows on another. In order to install Ubuntu on Kali's partition and format it to EXT4 in the process, I've moved my files to the Windows partition in a folder called temp. After installing Ubuntu, the folder is normally accessed and all of it content from Ubuntu, but on Windows 7 side I see an empty folder with a size of zero, even if that partition is a Windows' partition.

What happened there and how do make that folder accessible under Windows again??

2 Answers2

4

Judging by the discussion in the comments, it seems to me that this is an issue with the permissions set in Ubuntu, when copying/creating the content on the mounted NTFS partition - so your windows does not see the files.

A sensible(*) set of permissions would be the following entry in /etc/fstab

# Mount internal Windows partition with linux compatible permissions, i.e. 755 for directories (dmask=022) and 644 for files (fmask=133)
/dev/NTFS-partition  /mnt/windows  ntfs-3g uid=username,gid=users,dmask=022,fmask=133 0 2

You can edit your fstab with your favorite editor

sudo nano /etc/fstab

and modify it accordingly, with the correct paths for /dev and the mount point /mnt/.

The options uid=username,gid=users map the files and directories created under Linux on the NTFS partition to your Linux user.

While the options dmask=022,fmask=133 are the mask values (the bit values for the permissions that are not present) for the octal permission sets of "755" and "644" respectively.

dmask is for directory creation and fmaskfor file creation.

Here is a great Ubuntu wiki entry on the whole Linux permission system, which covers much more than I could in one answer here.

For ease of use to translate to octal permissions, you could use a converter homepage like this on the net

If you are content with your mount options you can either mount the partition with

sudo mount /mnt/your/windows/path

or, if it is already auto-mounted by ubuntu and giving you device busyerrors, you'd have to first unmount it via

sudo umount /dev/NTFS-partition

or simply reboot.

(*)Taken from the Arch Wiki entry on mounting NTFS partitions.

Robert Riedl
  • 4,401
0

You might try creating what folders you need, from a Windows session, putting a dummy Windows-side-created file in each. Then go to Linux. You're not supposed to be able to write into a Windows partition unless you're running as the super-user, so sudo bash first, then copy the files one by one.