General :: Accidently Moved Files In "/" To A Folder?
May 17, 2010
Did a basic mistake . Dnt know how to recover .In root user i gave a commandmv / /home/username/except the home directory all the other folders that is /sbin /lib /optetc was moved to /home/username.Now i am unable to execute any command.I also tried to set the PATH and LD_LIBRARY_PATH to the newly copied localtion but none of the command works. Since "mv" command also not working i am unable to change the location.
I had bad experience with disk checking in windows. Boot checker just moved all more and more of my files to a hidden folder without me knowing. I lost a lot of photos due to this. Afterwards when I checked that folder I found that most of the files were intact and I was able to open them without a problem. How dumb is that a program moves files without your permition to do so So I'm wondering what happens with files on Ubuntu if they get corrupted or are suspected as corrupted? And how can I know if the automatic checking procedure that runs when booting found any corrupted files, bad sectors etc... ?
I accidently reset the SELINUX context on the /var folder from "var_t" to user data. Now I cant go back and set it to "var_t" and i cant access my website anymore
I ran mv -n /desktop /user/local/bin and as a result everything on my desktop is gone. I tried the opposite mv -n /user/local/bin /desktop in the hopes of undoing it but now only one of those directories will exist at one time. What should I do? How badly did I screw things up?
I apologize if something like this is answered in another thread, but im so new im not even quite sure what to look for in the form of an answer.Background on the problem is I am teaching myself how to correct problems users might cause. In this case moving their .evolution folder. The end result is I want to get emails, contacts, and signatures back. Ive got the contacts and sigs back but email still eludes me. How can I get old emails back in the evolution inbox?
How to set the default file permissions on ALL newly created files in linux - but differs in important ways:
I want all files created in (or copied to or moved to) a certain directory to inherit a set of default permissions that is different from the system default.
Rationale: The directory in question is the "intake hopper" for an application. Users in a group place files in the directory, and the app (running under another user id in the same group) takes them and processes them. The problem is that the owner of each file placed in the directory is the user that placed it there, and the permissions are defaulting to "rw-r--r--"; I want to change that to "rw-rw----". The app doing the intake can't do that explicitly, because the user id the app is running under doesn't own the file in question, and the default permissions don't allow the app to chmod on the file! Obviously, the user could do a chmod after putting the file there - but I want to keep the "drop" by the user as simple as possible. (These folks are not linux-literate, they just drag and drop the files from their windows desktop to a (Samba) network share - i.e. they don't even know they are interacting with a linux system.)
umask seems too powerful: I don't want to set default permissions for every file created anywhere by these users - just those created in (or placed in) this directory.
I am trying to set up a Horde Webmail service on my server.Sent emails are not copied into the sent-folder when sent by the user, but there is no error or log-entry.
While experimenting with rsync, I accidently deleted a bunch of files in the /proc directory. I think it was the directories: 1, 2, 3 ... 10.This happened a few days ago and after rebooting a number of times, I do not notice any problems.
I have dual boot ubuntu 10.10 and Windows XP and Accidently, Some files in XP system drive files got deleted and now canot boot into Win XP,These are the files left and nothing happend to folder....
In Linux bash shell, for a given directory, how can I list:The create date for that directory The number of files in that directory The number of subdirectories in that directory.
How would i go about copying all .jpg or .JPG files from a folder and all its subfolders to my /usr/name/pictures folder? I'm guessing I'd have to use some sort of .[jJ][pP][gG] to get all the pictures from other examples i've seen, but really not sure how to use that in a recursive cp.
When I move files from Windows to Linux using a USB drive, all files are marked as executable. Then double clicking on a ".txt" file gets you the ridiculous dialog box asking whether you want to display the file or execute it. (NOTE: The /etc/fstab entry for the USB mount includes the "noexec" option already and it hasn't helped.) Now that my wife and daughters are moving files back and forth between the two OSs, I'm getting pestered for a solution to this and I haven't been able to track anything down. Yet.
What can one do -- presumably on the Windows side of the transfer -- to prevent these files from being marked executable? Or is it a hopeless problem caused by some dainbread decision made by a Windows developer?
I cut paste sys folder, tmp folder, and many more folder to a backup storage place , after that folder icon and other icon converted into txt icon , i can make any folder but can't access, can't open storage, thrash disappear, terminal icon disappear, and also the application and places and system icons, after that someone suggested restarting may help but i can't restart it , so i unplugged the power wire and replugged it and restarted the system but it can't open , all things comes fail, and show INIT: "x" respawning too fast: disabled for 5 minutes. after each 5 mins this msg is repeating
I got a folder that I transfer stuff to all the time. the folder is in chmod 775 but when i upload folders and files, they are given chmod 700, but i want it chmod 775 everytime i upload something. so far i have logged in to my linux computer and did a chmod -R 775 to the folder every time i uploaded something to it. is there a function somewhere to make it 775 everytime i upload or can i have something run a script, so i don't have to go in and write it everytime i upload something?
If I move a file to the trash,I can restore it later.But if I empty the trash,I'll be warned that I cannot recover the files if I proceed.Is this really true or are there Linux applications for recovering files deleted from the trash?Uhm...are the files deleted completely and unrecoverably or are there any traces left behind?
I have Ubuntu 10.10 running here and a Windows 7 desktop. I'm using samba to share files and folders. I have full read/write access to the 7 box, and vice versa. However, whenever a user of the 7 box drops a file on my Desktop, for example (it could be any of my shared directories), it always has a padlock on it and I have to chown it before I can move or delete it.Can anyone tell me how to get myself permanent ownership of these files? I'm pretty sure I had this problem once before, and it was an issue of adding myself to a particular group, but I forget.
I dual boot Windows and Ubuntu dual on my computer. I made the big mistake of moving a bunch of files directly from the ubuntu partition and now all those files are gone. How can I get them back?
I have many files and folders in my source folder. I want to copy some files and folders from that source folder to destination folder. What should be require to given with the "cp" command?
I wanted to queue up all audio files in particular folder which also has .txt files.I tried$find /data/songs -iname '[^txt]' -exec totem --enqueue '{}' ';'Thinking that this will exclude txt like expression in 'grep'.It did not work
I have a Fedora 12 box with a fresh install. I use ktorrent to download something, eg a series, into my home folder. Now, as root, I move (not copy) the folder with the downloaded files to /var/www/html/bob so that when someone opens http://myserver/bob/ they see the list of folders and files I have placed there. I also chmod the whole folder to 755 and chown to root.root. The folder I have just moved there is not displayed. So to work around it (before I realised it was SELINUX) I created a new folder. Now the folder is visible. Good. So now I move the files into the new folder and delete the old one. The files are displayed ... good. But wait, there's more: you cannot access (download) the files, even though they are visible.
1. How do I VIEW what context is assigned to these files?
2. How do I correct the context so that http server can allow people to access them?
3. How do we get the SELINUX authors to consider re-labeling files when they are moved from one place to another so as not to cause this fault?
When I am deleting pictures using gThumb image viewer it asks "The selected images will be moved to Trash, are you sure?" And if I press "yes" button - it moves message to ~/.Trash, can it be configured to move them into "real" trash? I have created symbolic link and it solved part of my problems, but files "restore" option is unavailable to files which were moved in to trash by this method.
Long story short, my Windows had a fatal crash the other day and since I couldn't find the installation disk, I burned the Ubuntu 9.10 disk image to a CD at a friend's place and installed it on one partition of the hard drive. The other partition contained tons of Windows programs and documents in an NTFS system. Ubuntu is cool and all, but when I finally found the Windows disk, I wanted to reinstall it for dual-booting, to use some programs that don't run well in Wine.
To keep some documents safe and not waste any CDs, I moved them over to the Ubuntu partition before installing Windows. As experienced ubuntuists know, the slightly clumsy Windows installer erases GRUB in the process, and it's recommended to install Windows first. So, now I ended up with a working Windows partition and an Ubuntu partition with all of the stored data, which I can access via guest status with the burned CD.
Here's the catch though - as a guest and without Linux properly installed I can't move anything I moved to the Linux partition from the Windows partition back anymore. All the folders have a little X on their top corner. I'd be glad to reinstall Ubuntu now, but I must know how to keep all that tranferred data safe. Can I keep it there during the reinstallation? Should I install Wubi on Windows and access the stuff through it?
Initially, I was trying to get around a Nautilus log in error. Using this, I was able to log in, but I entered what seems to be a perfectly clean version of Ubuntu...with no access to my files. [URL].... Now, I can't seem to find any of my original files. Some of the commands I entered in the terminal included:
[code]...
I'm afraid that I may have deleted the files, or have moved them to another user or someplace on the drive I can't see.
After what feels like weeks have tinkering around trying to get a Samba file server set up, I've finally given up! I have 4 drives and 2 groups:
1) Dev - Available to all users in both groups (normal and admin) 2) Misc - Available to users in admin group only 3) Admin - Available to users in admin group only 4) Accounts - Available to users in admin group only
Drives 1 and 2 are working fine, with the correct access rights. Drives 3 and 4 can be browsed by admins only, but no changes can be made at all - files & directories can't be renamed/moved/deleted. What is most confusing is that Drive 2 is set up exactly the same as Drives 3 and 4. The process I went through to get them working:
I am an Ubuntu refugee. Allow me to explain what happened. I am dual booting with Windows 7 and F15 x64.
(1) I wanted to created a shortcut of my "Documents" folder in my Windows in Nautilus (2) I opened the Windows drive by double clicking the drive under Devices, and navigated to my "Documents" folder (F15 already has ntfs-3g installed so no hassles there) (3) I then dragged the folder to the sidebar to place it under the Trash icon--but for some reason, it would not let me do this, and accidentally got placed in the Trash bin. (4) problem is I can't see this folder in the Trash bin (it is not even hidden) (5) To check if the Trash bin actually captures items when we move files/folders to Trash, I tried sending a folder from my Home directory to Trash, and the folder appears in the Trash; it can even be restored to Home. (6) Only files/folders from the NTFS formatted Windows drive do not appear in the Trash folder if sent there. (7) I have Google searched this problem, but to no avail. (8) I even thought that because the drive is not mounted 'officially' I would mount it using command line:
Code:
(9) But still I can't see the folders in the Trash (10) Interestingly, when I try to unmount the Windows drive 'formally' then I get a message if I want to "empty the Trash"--I obviously chose not to--so I know there is my Windows Documents folder in there somehere.
I'm very new with kubuntu. A friend st work turned me on to it. Seemed very simple. After a few days palying with it on a dual boot...i decided to fully install. I could not get thw wi-fi to work. Decided to reinstall. Could not get the reinstall to initiate. Tried to reinstall 7. no good.