Software :: Duplicated Filenames In The Same Directory?
Apr 3, 2011
The (WD 320GB) drive has a single ext3 FS on it. It has had some problems in the past, but all were fixed with fsck -y. Now there are several directories with duplicate filenames. The files with duplicated names are hard links of each other, but the names are identical. I've run several diagnostics over them, looking for, eg, non-printing characters in the name, but they are completely identical. Here are some examples:
[code]....
These are (obviously) from a directory of mp3s, but similar duplications occur throughout the fs - there are several thousand files affected. Some of the diagnostics were programmes I wrote that accessed the directory itself (through the dirent structure). I always thought duplicate filenames in the same directory were impossible in unix/linux; this appears to prove me wrong. Am I missing something? (Kernel version 2.4.20 with xfs extensions. The installation was originally Red Hat 7, but I've changed almost everything, so it's probably more accurate to call it a custom distro.)
View 7 Replies
ADVERTISEMENT
Jul 11, 2010
I was looking in a dir I haven't used for a while (I use it for data storage) and found a directory was repeated - that is, two directories with the same name. I renamed one of them, on the assumption that one of them has a non-printing character in its name, and that worked without a problem, but ls -i lists their inodes as the same. ls -l says they both have two inodes (. and ..), and the files they contain have the same names. The inodes of the files is the same (that is, the inode of a file in dir A is the same as the file of the same name in dir B.) Each file in each dir is listed as having only one inode, but it's the same as that in the other dir.
View 1 Replies
View Related
May 17, 2010
I would like to search a specific directory and pull out filenames that have this pattern: "_bsc_" Then I want to do some processing and move the file to another directory
View 5 Replies
View Related
Dec 1, 2009
I got a filename called like this:
beach---------20090808-110000.ogg
beach---------20090808-120000.ogg
It's like this:
name----------YYYYMMDD-hhmmss.ogg
Now Im splitting these hourly files into 1 minute files. I get then this output sofar properly:
beach---------20090808-110000_00.mp3
beach---------20090808-110000_01.mp3
beach---------20090808-110000_02.mp3
and so on....
the 00, 01, 02 and up are the minutes it has splitted it. Now I need a script, after it did this, to rename the file names into this:
beach---------20090808-110000.mp3
beach---------20090808-110100.mp3
beach---------20090808-110200.mp3
beach---------20090808-110300.mp3
View 4 Replies
View Related
Jun 15, 2010
why my data is being duplicated. I store all my data in BOB so the 26.2 GB of data is expected. I don't store anything in .ecryptfs so the 26.2 GB of data is completely unexpected. Could you please explain why this is happening and how to fix it.
View 9 Replies
View Related
Apr 28, 2010
I'm using Ubuntu 9.10 (karmic). And, my ~/.pam_environment looks like the following.
PATH DEFAULT=${PATH}:~/Adobe/Reader9/bin:~/texlive/2009/bin/x86_64-linux
GIT_EDITOR DEFAULT=vim
MANPATH DEFAULT=${MANPATH}:~/texlive/2009/texmf/doc/man
INFOPATH DEFAULT=${INFOPATH}:~/texlive/2009/texmf/doc/info
But, echo $PATH returns me duplicated entries as the following.
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:~/Adobe/Reader9/bin:~/texlive/2009/bin/x86_64-linux:~/Adobe/Reader9/bin:~/texlive/2009/bin/x86_64-linux
I've tried replacing DEFAULT by OVERRIDE in my ~/.pam_environment file. But, that didn't help.
View 1 Replies
View Related
Jun 7, 2010
I have a USB hard drive that is called "My Book", which was listed in the Media folder whenever it was connected. Since I upgraded to Lucid, I now have a permanent folder/drive called "My Book" with an X over the folder icon, and whenever I connect the hard drive, it is given the name "My Book_". I can't change anything about the new, permanent folder; apparently I don't have permission. This has meant that all the applications that linked to files on the hard drive - Banshee etc - can no longer find the files because the hard drive now has a different name.
Does anyone know why this has happened and what I can do to fix it - ie. get rid of this new 'drive'. I'm guessing that the reason the underscore is added when I plug the drive in is due to the existing, redundant but unmoveable, drive icon.
View 2 Replies
View Related
Sep 11, 2010
I reckon I waste several tens of gigabytes of storage by holding unwanted copies of personal data and media files over very many partitions. Sometimes they will have identical names, dates and sizes. Other times they may be slightly different in terms of metadata but nonetheless essentially identical in respect of content. It is becoming a nightmare. Any suggestions for how best to get rid of these unwanted files?
View 13 Replies
View Related
Mar 24, 2010
I was trying to install some Windows applications in Wine/PlayOnLinux. The result was not very useful for what I wanted and I removed all the application including wine and Playonlinux completely from my computer (9.10 64bit).But I was not really able to completely clean up what I did because when I right click on any files and use "OPEN WITH", I got a LONG list of application with many of them are uninstalled and duplicated.
View 9 Replies
View Related
Jul 18, 2010
I am trying out Xubuntu 10.04 but after I installed "Gnome-desktop" package to include gnome support I now have duplicated entries on my start menu. Does anyone know how to purge these duplicates? (a terminal based de-duplicating command would be very handy).
View 3 Replies
View Related
Dec 7, 2010
I am trying out Xubuntu 10.04 but after I installed "Gnome-desktop" package to include gnome support I now have duplicated entries on my start menu. Does anyone know how to purge these duplicates? (a terminal based de-duplicating command would be very handy).
View 1 Replies
View Related
Jul 30, 2009
I have couple hard drives from different linux distro's. on the hdd's are logical volumes created. what i want to do is to backup the data from those hdd's. but when I connect some of them and boot up the system it
gives me an error that there are volume group duplicated and it list the UUID. My host system is centos 5. What is the best solution to rename those volume groups or to mount the drives from other systems, so the data will not get lost?
View 2 Replies
View Related
Dec 13, 2010
I synced my Music Folders on all my computers with rsync. Now when I open Rhythmbox it shows the mp3s as duplicated. So, every album will have two of track 1 and two of track 2 and so on except for the new records and files that were put into that computers Music Folder because they weren't there before.
So, obviously I am doing something wrong with the path of the files/folders because the rsync must be giving the same file different paths or tags or some such. I know from google searching that Rhythmbox will not display duplicates that are true duplicates.
So, short of simply deleting my music folder on every computer and then putting all of the songs back into it... is there anything I can do?
I should mention that the files/folders are not in reality duplicated. I checked both in the folders and also I opened a folder with VLC and it produced a list of tracks that was not duplicated. Its only Rhythmbox that shows them as duplicates.
I am talking about Rhythmbox on my Fedora 13 64 bit installation.
View 2 Replies
View Related
Feb 18, 2011
I noticed this weird behaviour yesterday after the last update (not sure if it's really related, but I didn't notice this before).When I do a fresh start and log in - all the gnome related processes are DOUBLED in the memory Of course it causes weird errors, applet hanging or crashes, very sensible slowness while booting and operating, etc, etc.Basically I have 2 gnome-session loaded at once - one as a child process of gdm-binary and another separate one. Both sessions have all the child process loaded, so I turned out to have 2 Nautilus, 2 Metacity, 2 Gnome-panel, 8 python processes and all the set of applets are also doubled.
View 2 Replies
View Related
Nov 7, 2010
I just upgraded from 9.10 to 10.10 and simultaneously added 4 new hard drives. However I can not read or write to any of the disks (without sudo). They are also showing up twice (mounted and removable on top, unmounted underneath) in the "Places" menu. Of course I want them to be mounted, not removable, R/W'able and only show up once. Here'a a screenshot of where I'm at:I believe I set up fstab correctly:
Code:
# /
UUID=4204d07b-c450-4461-a001-1ef6d4ecb1a3 / ext4 errors=remount-ro 0 1
# swap
UUID=bd1aaecb-ab8c-4f44-ab22-fe25893f671b none swap sw 0 0
#DVD/CDROM
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
[Code]...
View 7 Replies
View Related
May 24, 2010
My execution environment is Linux steamboy 2.6.31-21-generic-pae #59-Ubuntu SMP.If I log in and run a program, the program works properly. The program is a shell script, which executes an environment file, so that path and library settings point correctly.If I have cron run the same program as the same user who logged in, one of the libraries cannot be found. I have sourced .bashrc and the same environment setting file, even though .bashrc executes the same environment file . /home/amr/bin/informix_env.sh
View 1 Replies
View Related
Nov 20, 2010
Host machine is a "2.6.32-24-generic-pae #38-Ubuntu" and VMware Workstation version is 7.1.2 build-301548.In addition to those three IP addresses(192.168.1.254/24, 192.168.1.68/24 and 192.168.1.221/24) seen on a drawing, there are four identical virtual machines inside the 192.168.1.68/24 machine. Virtual machines are named Olive0-3. Olive0 has IP address 192.168.1.100, Olive1 has 192.168.1.101, Olive2 has 192.168.1.102 and Olive3 has 192.168.1.103.
View 1 Replies
View Related
Aug 20, 2010
I try to call fopen with path like
Code: char *tmpbuf = (char*) malloc(BUFSIZE);
strcpy(tmpbuf, "/home/schmidt/images/4414b-22.jpg");
FILE *fd = fopen(tmpbuf, "rb"); or
[code]....
View 3 Replies
View Related
May 5, 2010
I am currently working on a script which makes regular backups of some data I have, and I would like to name the compressed TAR files with the date it they were created, in short I want to rename a file:
OriginalName.tar.gz --> AnotherName-30-05-2010.tar.gz
Is there an easy way I can accomplish that? How?
View 14 Replies
View Related
Jun 5, 2010
I want to travel for a while and need winfdows 7 for that. I want to copy my Linux Thunderbird profile with many years of emails across to windows7 then back to Linux when I'm finished with win 7. I copy the "profiles" folder at ~/.thunderbird/profiles folder over to win 7. Being thorough, I then run the windows app "chkdsk" to see if windows dislikes what I did in a filesystem context. Chkdsk finds three illegal filenames in the copied folder. The filenames contain colons.
They are as follows:
a directory named "mailbox:"
a directory named "mailbox:.sdb"
a file named "mailbox:.msf"
I try to manipulate them in windows (e.g. rename, delete, open, whatever) and get error messages about invalid names. It sounds to me like the items really are corrupt. So now I have a partially corrupted Thunderbird that works in Linux and doesn't work in windows and has years of emails in it. How do I straighten out Thunderbird in Linux? (I'll worry about windows later)
View 9 Replies
View Related
Oct 3, 2010
list filenames one-per-line, in BASH without including directories. I think he was either wrong or making that up. There is a way to list just the names and one per line but there aren't any arguments I can find that can be used to exclude directories.
Code:
IFS=', '; files=`ls -m`; for i in $files; do if [ -f $i ]; then echo $i; fi; done That does only use ls as a command, however he said his GSI thought he could do it without all that...
Quote:
ricky@ricky-desktop:~$ ls -l
total 1376
drwxr-xr-x 2 ricky ricky 4096 2010-10-02 22:17 Azureus Downloads
drwxr-xr-x 4 ricky ricky 4096 2010-10-02 22:16 Desktop
[code]....
View 6 Replies
View Related
Oct 1, 2009
I am using Red hat linux .. i just wanted to know, is it possible to arrange or sort filenames numerically?i have saved several files with the follwing names : 1.png, 2.png, 3.png, 4.png ...... 11.png 12.png. and so on.... but the containing folder sorts this alphabetically in the following manner 11,12,13...... 1, 2, 3, and so on...
View 6 Replies
View Related
Nov 30, 2010
if i have a dir with several mp3's files:
example:
[root@xxx]ls -l
-rwxr-xr-x 1 web2 client1 6222573 Nov 26 17:34 01 Artist1 - Song1.mp3
-rwxr-xr-x 1 web2 client1 4989384 Nov 26 17:34 02 Artist2 - Song2.mp3
-rwxr-xr-x 1 web2 client1 6987438 Nov 26 17:36 03 Artist3 - Song3.mp3
and i need to update the id3 tag of all files with the command:
/usr/bin/id3v2 -a "Artist1" -t "Song1" Artist1 - Song1.mp3
how i do a loop to read the filename and execute the id3v2 command for each file, as i have filenames with spaces and special chars ex:"".
View 1 Replies
View Related
Jun 8, 2010
I have filenames like such: abc (e).doc And I want to rename them to abc.doc I have a directory full of files names like this. How can i do this using the sed command? I have looked online for about 2-3 hours now and am frustrated that I can't find an answer.
View 11 Replies
View Related
Jan 3, 2009
I have a large number of files, all of them named /*/*.xyz I need to match them to potential files name /*/*.abc I have tried find -name *xyz |awk '// {print '$NF'}' | awk '{print $NF }' but the result has the full path I just need the filename without the extention, and without the full path.
View 5 Replies
View Related
May 22, 2010
I'm working on changing some badly named files, lots of them. I have a little script I use to change uppercase to lowercase:
[Code]....
Bear in mind all these files have appropriate numbers in the front of each filename. I need help to change ONLY the first letter after each underscore to an uppercase letter. I'm sure this can be done but I've done so much searching in forums and with Google/linux until I'm scrambled.
View 2 Replies
View Related
Jan 29, 2011
I am trying to synchronize the content of the directory my_dir/ from /home to /backup. This directory contains a file which name has a double quote in it, such as to"to. Here is my rsync command:
rsync -Cazh /home/my_dir/ /backup/my_dir/
And I get the following message:
rsync: mkstemp "/backup/my_dir/.to"to.d93PZr" failed: Invalid argument (22)
For info, rsync works well when the synchronized filenames contain single quote, parenthesis and space. Thus, why is it bugging with a double quote?
View 3 Replies
View Related
Mar 18, 2010
I'm trying to access a file and copy it to another location, but the drive name has a space. I'd like to rename that too.
I know that a % sign is sometimes used, but this didn't seem to work in terminal...
View 9 Replies
View Related
Aug 18, 2010
I have just switched to banshee as my media player and imported my films and music. Problem is, the video list is quite hard to read because all the video files have spaces in their names which are replaced by % signs, numbers and letters. I'm wondering if there is a command I can use in the directory that will automatically remove all the spaces from the filenames or better still, replace the spaces with hyphens or underscores?
View 6 Replies
View Related
Nov 2, 2010
Everything was fine after fresh install of kubuntu 10.10 on my laptop, until today. I was exploring system settings (didn't change anything, just looking) when KDE crashed suddenly. After restart I found all my filenames with Russian letters corrupted - just like filesystem was mounted with wrong encoding. How can I get them back to normal?
View 1 Replies
View Related