You are not logged in.

#1 2009-03-26 20:07:26

Nazgulled
Member
Registered: 2009-03-08
Posts: 102

Hide folders/files mounted in NTFS partition

Is it possible to make the linux filesystem to see hidden folders in a NTFS partition as hidden folders? I mean, right now, all hidden folders in my NTFS mounted partition show up in the filesystem but I would like for them to be hidden, just like they had a dot before the name.

Is this possible somehow? To make the linux filesystem to hide folders which are defined as "hidden folders" in the NTFS partition?

Offline

#2 2009-03-27 07:34:42

robmaloy
Member
From: Germany
Registered: 2008-05-14
Posts: 263

Re: Hide folders/files mounted in NTFS partition

Nazgulled wrote:

Is it possible to make the linux filesystem to see hidden folders in a NTFS partition as hidden folders? I mean, right now, all hidden folders in my NTFS mounted partition show up in the filesystem but I would like for them to be hidden, just like they had a dot before the name.

Is this possible somehow? To make the linux filesystem to hide folders which are defined as "hidden folders" in the NTFS partition?

put a dot before them or put your porn somewhere noone would expect it (inside a system directory) tongue

ntfs-3g doesn't seem to have an option to hide 'hidden' files


☃ Snowman ☃

Offline

#3 2009-03-27 13:38:40

rwd
Member
Registered: 2009-02-08
Posts: 658

Re: Hide folders/files mounted in NTFS partition

Why do you want to hide them? if you really want to hide files on ntfs, but still want to be able to read them from linux you can use a cross platform encryption like truecrypt.

Last edited by rwd (2009-03-27 13:40:08)

Offline

#4 2009-03-27 14:08:55

Nazgulled
Member
Registered: 2009-03-08
Posts: 102

Re: Hide folders/files mounted in NTFS partition

No, I want them hidden in both places but I don't want to rename thing.

I want them hidden because I'm sharing some files within the network and some folders, I just want them hidden. It's to hide them from someone discovering them, it's just to hide them in the filesystem cause I don't want to see them all the time when I navigate to that folder.

Offline

#5 2009-03-27 15:42:08

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,540

Re: Hide folders/files mounted in NTFS partition

Here's someone who couldn't see hidden files, posted their fstab, and someone else posted their fstab with which they could see hidden files: http://ubuntuforums.org/showthread.php?p=1440315
You could probably use that to help smile

Offline

#6 2009-03-27 16:53:08

thisperishedmin
Member
Registered: 2008-11-04
Posts: 164

Re: Hide folders/files mounted in NTFS partition

so would the "gid=46" option be the thing hiding them? I cant test where I'm at now...

but this always bothered me too...its not that I want them "hidden" to hide them from people - its just annoying seeing a million folders that dont matter haha.

Offline

#7 2009-03-27 17:01:08

Nazgulled
Member
Registered: 2009-03-08
Posts: 102

Re: Hide folders/files mounted in NTFS partition

I don't think so, at least on my machine, there's no group with id '46'...

Offline

#8 2009-03-27 17:08:14

thisperishedmin
Member
Registered: 2008-11-04
Posts: 164

Re: Hide folders/files mounted in NTFS partition

I suppose I left that ambiguous tongue

It appears that the person who CANT see the hidden files on the ntfs drives has that "gid=46" option in their fstab.

the posted fstab that DOES show the hidden files DOES NOT have that "gid=46" option.

so if you want to hide the "hidden" files, try adding that option.  For example, just do a mount something like:

mkdir /media/test
/dev/sda1 /media/test ntfs-3g silent,umask=007,gid=46,locale=es_ES.utf8,no_def_opts,allow_other 0 0

and then see if it accomplishes what you were hoping for!

Offline

#9 2009-03-27 19:31:40

Nazgulled
Member
Registered: 2009-03-08
Posts: 102

Re: Hide folders/files mounted in NTFS partition

Didn't work for me...

Offline

#10 2009-03-30 11:45:52

thisperishedmin
Member
Registered: 2008-11-04
Posts: 164

Re: Hide folders/files mounted in NTFS partition

interesting...after some more googling / reading i wouldnt expect it to either haha tongue

Currently, ntfs-3g has no real interest in adding support to hide windows "flagged" files as hidden and provide that consistency. Older versions of ntfs-3g hide them all, but then you apparently cant view any.  Adding dots to hide it in Linux obviously screws the pooch if you would try to launch windows again. Consider this, it seems like you have 2 potential solutions.

1. browse your drive using WINE's explorer (not a good solution)
or
2. build a .hidden file and put it in your folders that you regularly visit (not pretty or perfect either, but workable)

Grabbed from another forum:

I feel where you're coming from with this. Maybe it helps to know that there is a second way to hide files and folders in linux. You can place a textfile called ".hidden" in a directory and in it you can list files and folders you want to hide. So if you place a file called ".hidden" in the root of an ntfs partition that lists on separate lines 'System Volume Information' and 'RECYCLER', then at least those directories won't show up in Nautilus.

You could add more files or folders to the list, like your Windows directory, or even list individual system files. Toggling the hidden view (CTRL-H) will show both the listed files and the ".hidden" file again. Of course this will add one more non-hidden 'dot' file when you're in Windows... Hope this partial solution satisfies you.

Last edited by thisperishedmin (2009-03-30 11:46:12)

Offline

#11 2021-03-04 23:20:07

FirstAirBender
Member
Registered: 2019-09-13
Posts: 11

Re: Hide folders/files mounted in NTFS partition

Look at the mount options for ntfs and you will find hide_hid_files and hide_dot_files. Set either or both of those in your /etc/fstab file

Offline

#12 2021-03-04 23:25:58

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 3,576

Re: Hide folders/files mounted in NTFS partition

This thread is twelve years old and the OP has not been here since 2012. Please do not necrobump.

Closing.

Offline

Board footer

Powered by FluxBB