LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   2 small problems with slackware 12.1!!!! (https://www.linuxquestions.org/questions/slackware-14/2-small-problems-with-slackware-12-1-a-679621/)

mpregos 10-28-2008 03:31 PM

2 small problems with slackware 12.1!!!!
 
Hi
i've just install slackware 12.1 and i can't remove empty directory in my ntfs mounted partition.
Here is the output of ls in the preferred directory:
mpregos@zxcvb:/mnt/160GB_Share/music/MP3 - 2008(full albums)/Eleonwra Zouganelh - Ela$ ls
mpregos@zxcvb:/mnt/160GB_Share/music/MP3 - 2008(full albums)/Eleonwra Zouganelh - Ela$

(and as root is same)
and here is the rm -rf output:
root@zxcvb:/mnt/160GB_Share/music/MP3 - 2008(full albums)# rm -rf Eleonwra\ Zouganelh\ -\ Ela/
rm: cannot remove directory `Eleonwra Zouganelh - Ela/': Directory not empty
root@zxcvb:/mnt/160GB_Share/music/MP3 - 2008(full albums)#


My fstab file has the follow:
/dev/hdb1 /mnt/160GB_Share ntfs-3g umask=000 1 0

titopoquito 10-28-2008 06:47 PM

You can't be sure it's empty if you do just "ls" - hidden files for example are not shown. Try it again with "ls -a" and see if something tries to hide in there :cool:

The "rm" command though *should* remove it, even if there is something left. I would make another attempt from X with any file manager of your choice.

mpregos 10-29-2008 04:05 AM

titopoquito u are right about ls command.
i provide ls -al and same result, dir is empty.

I tried via nautilus to delete the directory but same error occurred : the directory is not empty

any other ideas????????????

niels.horn 10-29-2008 04:13 AM

Do you access this partition through Windows as well? If you do, check if there are files with foreign (accented) characters.
Without the proper configuration, ls simply won't show these files.

If you have international characters in your files, try this in your fstab:

Code:

/dev/hdb1 /mnt/160GB_Share ntfs-3g umask=000,locale=<your_locale> 1 0
replacing <your_locale> with the correct setting.
In my case it's pt_BR for 'Portuguese (Brazil)'

mpregos 10-31-2008 04:49 AM

Filesystem type is ntfs of the specific partition.
I boot in Vista and i show that the folders that i want to delete are not empty .
they have mp3 with greek file names.
Perhaps is the locale....i'll try and i'll send feedback as well.

niels.horn 10-31-2008 05:56 AM

OK, then you definitely need to set your locale on mounting the NTFS partition.

I'm not sure about Greek locales, but I guess it should be el_GR or el_GR.utf8 in your case.

mpregos 10-31-2008 11:50 AM

Problem solved.
The fix was about locale definition in fstab.
The new fstab file looks like this:
/dev/hdb1 /mnt/160GB_Share ntfs-3g umask=000,locale=el_GR.utf8 1 0

For greek version.....
Thanks niels


All times are GMT -5. The time now is 05:43 PM.