Ubuntu :: Deleting Folders That "don't" Exist?
Jun 26, 2011
My problem is that I have a folder that had been "lost", aning that it isn't seen by either Windows or Ubuntu. I was able to recover the data from the folder by using a program off the Ultimate Boot CD for Windows called Handy Recovery, but I don't know how to get rid of the folder and files I had backed up. "What's the problem if it's gone?" you might ask? Because the hard drive space is being taken up with the files. I can't access these files, yet they are still there taking up space.What programs are available on Ubuntu that will get rid of these files (and these files *only*) without wiping out the partition?
View 9 Replies
ADVERTISEMENT
May 30, 2011
Is their (I assume their is) of searching for and deleting duplicate files that exist in different paths?
View 3 Replies
View Related
Nov 13, 2010
I'm pretty new to Ubuntu and it might not be possible to do what I want to do here. First I'll explain the situation. Throught trying to tidy up my mp3 collection usign various pieces of software I now have a folder structure that I want (My MusicArtistalbum rack), However, in the process, I have been left with lots of other folders - these have had the mp3's removed but they contain other files (artwork, playlists, .nfo files - that kind of thing).
What I'm looking for is either a premade solution or help with a script to do the following : Check all folders in my music folder, if the folder doesn't contain any mp3's then check the subfolders, if none of them contain mp3's then delete the main folder (regardless of what otehr files are within it).
It seems like I should be able to do this - but not sure how. Incidentally, I have backed up my music folder to an external disk - so I can't do any lasting damage
View 2 Replies
View Related
Oct 12, 2010
I have the following script to delete some folders from a text file:
Code:
#!/bin/bash
current_dir=$(pwd)
for folder in `cat dir_list.txt`; do
[Code]....
This does not work. If I delete them manually it works fine, but in the script it just finishes quickly. When the variables are echoed they display the values correctly.
View 4 Replies
View Related
Jul 7, 2011
I accidentally created a folder in my /home directory and its ticking me off because i cant delete it and im anal about my organization on the computer and having this extra empty folder.
View 5 Replies
View Related
Aug 11, 2010
I installed avast anti-virus on my 10.04 T42p thinkpad. It immediately slowed to a walk! and the registration number did not work and caused an error message. I tried to reinstall the program with no improvement/same result. then tried to remove the program from the machine with dpkg. Seemed to get rid of it but some of the folders it created are still there and won't let me trash them. The machine still seems slow, so how do I get rid of all traces of avast?
View 3 Replies
View Related
Apr 21, 2011
So I have a share hosting account with 60 sites all running wordpress.
There is a plugin I want to delete from all 60 wordpress sites.
The plugin is in the same path in all 60 sites.
mysite.com/wp-content/plugins/carter Is there a way I can search the entire home directory with filezilla or another ftp and delete every folder with that name in every site or I have to do it the tedious 1by1 sucky way?
View 4 Replies
View Related
May 18, 2011
I'm trying to clean up a few hundred thousand mp3 files and I'm dying to find a way to automate some of the mechanical tasks I keep doing. It seems like at least two of these tasks could be easily accomplished with something at the command line, but I don't have the chops/know-how to figure out how (and would really rather not trial and error with batch deleting files & folders...).
1) Delete all folders named "_MACOSX" (and all subfolders/files contained therein) -- Basically, I'd like to apply this command to a few hundred directories that may or may not contain a subfolder called "_MACOSX" that I'd really like to get rid of.
2) Delete all files named "*.m3u". -- Similar to the first, I want to automatically scan all directories and subdirectories in a given location for all instances of this file-type and delete them wherever they're found.
3) Move all files named *.txt", "*.doc", "*.pdf" to a specific location. -- Similar to the last, except instead of deleting, I'd like to just move them, so that if there is anything worth keeping, I can keep it.
View 3 Replies
View Related
Aug 28, 2010
new to ubuntu and linux, and using Lucid 10.04 LTS ok, i'm trying to get XBMC going, and following a nice step by step instruction on wiki.xbmc.org, but now i'm stuck at this step... In Ubuntu the SVN Repositories are not automatically added. You must add them manually. First, download the SVN Repo Installer from: [URL] Extract it to the ~/.xbmc/plugins/programs directory. If this directory does not exist, run XBMC one time and then exit back to Ubuntu. The directory should now exist.
i ran xbmc once (after the video driver problem was solved, though it messed up my dual monitors, gotta figure that one out yet.) i got the zip file, it's in my downloads. now my newbness really shows... i can't find an 'extract' command for gnome, can't find the .xbmc directory using the file browser, can't figure out how to hunt for folders instead of files, and don't know how to look inside folders i don't have permission to, that is, i don't know if there's a 'sudo' like option for the file browser. i've been searching the forums, but without the correct search terms, i'm wading in an ocean. i really want to give ubuntu an honest try, but i feel like a foreigner. EDIT: btw, up to this point, the forums have been invaluable, you all are great.
View 2 Replies
View Related
May 12, 2010
I have a shared NTFS partition ("shared") that I use for data for both Windows and Ubuntu. How can I mount the music folder on shared to $Home/Music, and the Videos folder on shared to $Home/Videos? I want to mount the different folders on the partition to different folders in home.
View 2 Replies
View Related
Mar 27, 2010
I am setting up a lubuntu nas with all of my music, movies, etc on it. I want to give my kids access to my mp3 directory, so I can move all of the kid appropiate music into the root of my mp3 dir, in the same order I have all of my music sorted. Under the Music folder, I have them sorted, in folders, by letter. So A, B, C, D, etc... Now, in those folders are the respective artists. So where there may be something approipate in the P folder (say, Paramore), there is something inapproipate (say, Pantera)Now, when the kids go to the P folder, I don't want them to even see the Pantera folder. I just want them to see the Paramore folder. I tried a test using chmod 711 and chmod 700 on a directory with a test user, and the user can't access the directory, but can still see it
View 3 Replies
View Related
Mar 31, 2010
The Problem was I wanted to open my /home/Pictures folder and have it display the contents of the My Pictures folder in my windows partition. This way I could have ubuntu and xp using the same set of music files, picture files, etc. I was having a very hard time understanding how to get from here to there because I'm such a newbie. However I have discovered how to do it and I wanted to post it, in hopes it will make things easier for other newbies.This allows me to see every TYPE of document in /dev/sda8/Media (windows My Documents folder) without having to see any of the folders (My Music, My Pictures, etc).
View 1 Replies
View Related
Feb 23, 2010
If i have ubuntu dual-booted with windows already, and wanted to get rid of windows entirely, how would i delete its partition?
View 8 Replies
View Related
Sep 4, 2010
I have an issue with apt-get that has been bugging me, namely that it tries to delete kernels I did not specify for deletion.
This is an issue that has been present over at least the last three releases and is present for both 32bit and 64bit, so it might actually be a feature and not a bug, however I can't see it's usefulness.
When I use the command:
Code:
sudo apt-get remove --purge 2.6.32-21*
It not only tries to remove the kernel 2.6.32.21 but gives me the following output:
Code:
sudo apt-get remove --purge 2.6.32-22*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting linux-headers-lbm-2.6.32-24-generic for regex '2.6.32-22*'
Note, selecting linux-headers-2.6.32-21-preempt for regex '2.6.32-22*'
[Code]....
When I go through with this command to remove the oldest kernel on the system, it will actually delete all kernels present on my PC (as I painfully learned when I first tried it). Why is that the case? Wouldn't it make more sense to only remove the kernel 2.6.32.22?
View 6 Replies
View Related
May 27, 2011
I tried running a back-up/restore script in a WordPress install to migrate from one server to another... long story made short, I ended up doing it manually and all is well on that front
The one remnant from that botched script is that it tried creating a directory 'wp-backup' and then a file inside that directory - but it tried using '' instead of '/'. So what it created was a file named 'wp-backupindex.php' with a file size of 0 bytes.
The problem is thus: I can't change the permissions nor delete the file, because of the invalid file name. I don't have direct shell access (that cost *extra*, of course) and every time I try with the web-based file manager (Quixplorer) it sees it as 'wp-backupindex.php', as though the '' is acting as an escape sequence in the file name. Same thing in FileZilla, I can't do anything to the file without it complaining about the invalid file name.
how to ixnay this one file given the limitations above (no shell access) short of calling and bugging tech support to delete the file for me?
View 2 Replies
View Related
Jan 6, 2010
Is it exist API to apt-get (or may be to aptitude or dpkg)?For example I want to check through API does package installed or not?
View 4 Replies
View Related
Mar 18, 2010
Is there any way to install ubuntu on a drive without deleting the current data on it:
I have a software raid array set up and it has a few folders in it like /rtorrent, /cod4, but nothing that would conflict with a new ubuntu install.
And its formatted as ext3
Is there any way I can install Ubuntu Server 9.10 onto that raid array keeping it INTACT as a raid array AND preserving the data on it?
And is it easy to boot from a software RAID array?
View 2 Replies
View Related
May 25, 2010
I upgraded to 2.6.33 and my comp will only run in Low graphics mode so i scroll down one level back to 2.6.32-22 and all is fine.How can i 'erase' the 2.6.33 line (and the associated recovery line)from the grub list so i dont have to deal with it till bugs are removed later on.My Grub header says it is version 1.98-1ubuntu6
View 3 Replies
View Related
Jul 2, 2010
I've followed some instructions on installing a new hard drive on Ubuntu ("Installing a New Hard Drive" and "HOWTO move /home to a new hard drive") and I've now successfully got my new drive working with /home. Everything looks to be in perfect working order.Now I'm wondering how to delete my original /home folder. Running "df -h" still shows 97% usage on my / partition and I'd like to clear out the old /home to free up all that space. I just don't know where these files are now is all.
View 9 Replies
View Related
Oct 22, 2010
I was on line and viewed a Picassa slide show. I went to F11 for the full screen and after I closed Picassa,my Firefox browser had been reset,creating all kinds of issues,taking out my status bar,making it impossible to access the three icons in the top right hand corner of the screen,and so forth.
When I removed and reinstalled Firefox from the Synaptic Package Manager,it did not give me the option of not saving the settings and the same issues pertained to the newly installed one.
Does anybody know the shell code to remove and reinstall the Firefox Browser unsullied,pristine,not saving the existing settings?(realizing I'll lose the bookmarks and have to set it up anew?)
View 4 Replies
View Related
Nov 4, 2010
I am a new UBUNTU user. I had installed OS in my computer in the order of XP, Win 7, and finally UBUNTU.With EasyBCD, I managed multi-booting order of XP and Win7. That is, after choosing Win7 or UBUNTU from GRUB, (If I chose Win 7) I should choose XP or Win 7 to boot.
Using UBUNTU, I think that I do not need XP, so I formatted the hard disk where XP was installed. However, after deleting XP, I can not boot Win7 from GRUB, although there is still
View 2 Replies
View Related
Nov 29, 2010
I accidentally hit the delete button on a folder. Luckily, it was still in the trash and I could restore it. However, I was wondering if there was a setting that could display an 'Are you sure?' question before deleting the folder in case this happens in the future again.
View 9 Replies
View Related
Feb 16, 2011
Ok so basically this isn't my harddrive but hear me out. It's a known issue but it only happened after him downloading stuff off priate bay. The harddrive is not detected on BIOS, so you can't boot through it, just the CD Drive is now detected. You can't use SAFE mode as it reverts to another issue, a black screen with a white cursor, no keyboard commands work.
No restoring disks will fix it nor master disks, it's literally a bad *** issue. Thou I can still load things via CD Drive so I used the Acronis Bootable Media and surely enough, it could anaylse data on the harddrives. I thought maybe i'll try PE Bart but once again, loads up to Black screen with White Cursor. So I put in Ubuntu and yes, I can get on the GUI, but I can't install the operating system.
There would always been an issue. something about in/out whilst installing but as long a I can use the tools, then we go onto Disk Utility. When I try to format, the Error Message apprears stating : Eroor creating File System: helped exited with error code 1: Error calling fsync(2) on /dev/sda2: Input/Output error. This would be the same error i would get via installing and I would have to ignore and eventually whilst installing, from being complete on the right hand side, it would say ERROR or ABORTED after 70,000.
View 9 Replies
View Related
Apr 12, 2011
I did a "backup" of my .wine folder by copying it to my network attached storage drive. Now, that folder thinks it has about 200gb of data! Specifically, it's the .wine/dosdevices folder. I didn't grasp that Wine had created some kind of hard links to my ~ folder on my Ubuntu box. Since that folder is clearly recursively linking to all my files, I'm afraid to just delete it. I did delete one file within it as a test and, sure enough, the original file back on my Ubuntu box disappeared!how can I delete the .wine "backup" folder I created on my NAS without deleting all the original files?
View 5 Replies
View Related
May 10, 2011
i recently removed the Ubuntu partition in Windows 7. When I try to reboot I am faced with the the grub rescue error where it says no such partition.. I have tried booting Windows 7 from disc and I have even went into my BIOS and it says CD-ROM boot priority.. boot ready then says the grub rescue error again, stating that there is no such partition.
This is really annoying as all the tutorials on the internet say insert Windows 7 then use the recovery tools but I can't even boot any operating system. I have set the BIOS to boot from my CD drive..
View 6 Replies
View Related
Jun 1, 2011
I am trying to delete a dir (with the CLI), that contains many sub dirs and files:
Hello - DE Important Files Stuff (0000-0001)
I am using the command:
PHP Code:
sudo rm -rf Hello - DE Important Files Stuff (0000-0001)/
But I keep getting this error:
PHP Code:
-sh: Syntax error: "(" unexpected
The between the spaces in the file name isn't showing in the PHP code?!?
View 7 Replies
View Related
Sep 1, 2011
I have a dual boot system which I made from scratch Win7 and then Ubuntu 11.04.After installation all worked fine but each time I have to run Win7starting it from Grub2)when I shut it down and restart the laptop, grub2 is not there anymore and Win7 starts with its bootloader.To get back to Natty I have to go through the Live CD and install Grub + Boot Repair and run it.'m lost. I attach the boot info results.
View 8 Replies
View Related
Sep 1, 2011
OK my problem unity 3d doesn't work on my system the icon's doesn't show on the dock on the left side of the screen thats the only problem.The top bar works and all the icon's work they just don't show a image of the program.Here is what i would like to do delete the side bar or stop it from loading and use a dock something like dockbarx or awn.I have seen a lot of websites of people using ubuntu classic like this but they don't look anything like unity and i like the look of unity.So is this possible and how would i do it?
View 3 Replies
View Related
May 11, 2010
Would it cause any issues to delete the cached archives from the installed packages? I have almost a gig of space being taken up and would like to get the space back.
View 3 Replies
View Related
Dec 15, 2010
I'm trying to install Apache2+PHP5+MySQL-cluster on a Ubuntu 10.10 server. I've done many installs like this but with just plain MySQL so this is my first time using mysql-cluster. After getting mysql-cluster working I went back and installed the packages for apache and php5, but somehow I forgot to install the php5-mysql package (not sure how I missed that!) so when I got back to install it it tells me it wants to uninstall mysql-cluster. The "error" I see is:
mysql-cluster-client will be automatically removed because of dependency errors:
* mysql-cluster-client depends on mysql-cluster-client-5.1 [universe]
I put a lot of time in to get mysql-cluster working and don't want to lose it. How do I tell aptitude to just leave it alone and install the php5-mysql package?
View 1 Replies
View Related