LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-28-2008, 03:31 PM   #1
mpregos
Member
 
Registered: Oct 2006
Location: Greece
Distribution: Slackware
Posts: 64

Rep: Reputation: 16
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
 
Old 10-28-2008, 06:47 PM   #2
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,644

Rep: Reputation: 145Reputation: 145
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

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.

Last edited by titopoquito; 10-28-2008 at 06:49 PM.
 
Old 10-29-2008, 04:05 AM   #3
mpregos
Member
 
Registered: Oct 2006
Location: Greece
Distribution: Slackware
Posts: 64

Original Poster
Rep: Reputation: 16
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????????????
 
Old 10-29-2008, 04:13 AM   #4
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 91
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)'

Last edited by niels.horn; 10-29-2008 at 04:25 AM.
 
Old 10-31-2008, 04:49 AM   #5
mpregos
Member
 
Registered: Oct 2006
Location: Greece
Distribution: Slackware
Posts: 64

Original Poster
Rep: Reputation: 16
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.
 
Old 10-31-2008, 05:56 AM   #6
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 91
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.
 
Old 10-31-2008, 11:50 AM   #7
mpregos
Member
 
Registered: Oct 2006
Location: Greece
Distribution: Slackware
Posts: 64

Original Poster
Rep: Reputation: 16
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Very small slackware installation vivekjoshi Slackware 13 06-02-2006 01:09 PM
small problem after slackware upgrade kierse Slackware 7 02-13-2005 06:59 AM
Small Slackware Install Drahcir Slackware - Installation 1 04-08-2004 05:06 PM
Small Slackware Install?? tweakedout Linux - General 5 04-12-2003 11:59 PM
3 small problems in 1 small post vzzt! Linux - Software 10 02-27-2003 07:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration