I had some bad luck today when I was trying to fix an account that had trouble with FTP. I decided to remove the user and add him again and reset all configuration. Anyhow, to make things short, I accidently typed rm /* -R -f and without looking hit the enter button, as soon as I realised what I wrote I hit ctrl+c. Too bad the /bin/ folder was gone by this time and standard commands like ls didn't execute anymore.
My question is if there is any way to recover these files by a system repair or something? The server is used to host a heavy loaded site which can't afford any downtime, and silly me didn't make a backup of the whole HDD, just the important folders (not the system files).
Currently I don't have the balls to restart the server as I know this will probably turn into a dissaster. I also don't have straight access to this server since it is located in a datacenter (I can go there if absolutely necessary but I rather don't).
I did something really dumb and accidentally removed the e2fsprog package. Now it deleted all these executables (openssh,scp, yum, etc). If I could just recover the /usr/bin direcotry I was thinking I can reinstall the e2fsprog package. Trying to scp over these executables from other servers won't do because scp and ssh is gone. I still have a sesssion opened right now.
we know that /etc/passwd - is a replica of /etc/passwd file and acts as a backup in any damage done to /etc/passwd file..i have observed a strange thing in RHEL 5.4....for example... if /etc/passwd has 100 accounts.. then /etc/passwd - is having only 99 accounts....when i add 101 useraccount with "useradd" then /etc/passwd has 101 accounts and /etc/passwd is having the 100th account of /etc/passwd - ..when i delete /etc/passwd and recover it with /etc/passwd - from runlevel 1 the lastly created user is not having his account after recovery.. what is the solution? this is same case even with /etc/shadow and /etc/shadow -
I have an external 250gb hard drive where I had copied all my documents, pictures, etc etc. I wanted to reinstall windows xp on internal hard drive but I made a mistake and deleted the partition on the 250gb external hard drive. Is there a way to recover those files? I didn't format the 250gb hard drive. If yes, which software do you guys recommend? If this needs to be posted on another forum please let me know.
My laptop has two os. one is windows vista. and other is Ubuntu. I am currently on ubuntu system, this is my primary OS.There are 4 partitions of my hard diskWindows OSLinux(Ubuntu OSData Now the problem part. The data partition is NTFS. I have mounted this partition on the location /media/windrive-a under ubuntu OS.A little while back i decided to delete the mounting of the data partition and i fired command rm -r /media/windrive-a/. To give me a shock; all my data on data drive is gone.Now, I know this is not the command to remove mounted partition. But I have committed the wrong. Is there any way i can get my data back. These are very important data for me.
I'm trying to recover a lost partition from a faulty SSD . I've used Linux last time, hence I'm a bit rusty. Still I'm trying to recover a damaged SSD filesystem on a eeePC 900 of a friend of mine ...Here are the details.
Asus eeePC 900
- 4GB primary SSD (OS is installed in here and works fine)
- 16GB secondary SSD (this one is faulty; after a few weeks of problems this friend of mine made some sort of system restore, but Linux couldn't use it correctly and trashed it away with all of it's data ... he couldn't explain it better to me. I'd like to recover the files from within this SSD)
Here's what I did on the eeePC:
1) fdisk -l Disk /dev/sdb: 16.1GB, 16139354112 bytes ... /dev/sdb 1 1962 15759733+ 83 Linux
I'm trying to find out the right words without generating any inflammatory answers from the community ... I currently kinda have only a Windows Seven installation available to work with ...
If you're still with me I add a few more details. That's all been done on the Win machine.I've managed to load the sdb.img file with Gizmo (it's a little software that mounts img files). Gizmo couldn't load the sdb1 partition inside of it but ... another program called PhotoRec managed to access the mounted disk, found the ext3 partition inside of it (gave me a few errors though) and successfully recover a lot of files :-) Well, a lot, not all of them, and not every recovered file was good That's a first improvement, that tells me sdb.img actually contains valid data even if only partially valid. I don't know if PhotoRec is to be blamed for the failed ones or the SSD image file did not contain enough valid data to let PhotoRec do a good job.
Now I would go back to Linux. I'm well aware that Linux has more potentials than Windows when it comes to handling disk images, loopback devices and so on; but, as I already said earlier, I'm a bit rusty.I'm willing to make a fresh installation of Linux (maybe Ubuntu) on a spare harddisk in order to get full advantage of that and dig deeper but I need directions when it comes to recover that lost partition. I'd like to try and recover the entire partition (not only a few files), maybe rebuilding the ext3 superblock or whatever.Here I'm lost, I don't know what has been developed in the last years regarding partition recovery in Linux, what tools are available, which forums deal with such techniques, I'd like to be pointed in the right direction.
I was syncing my palm pilot but some setting must've been wrong: instead of putting the files from my hard disk to the palm pilot it took the blank files from the palm pilot and wrote them over my back-up. Anyway, I'm about sick of palm but I want to get this file back. Is there anyway I can restore to an earlier version of this file? I'm about to reboot with sys rescue cd.
I spent about a year on linux and had all sorts of very very important documents and files saved in my system. I cannot stress the importance of these documents and know that I am retarded for not making backups. We will start another thread for people to yell at me if you want. Heres the deal, XP was installed on this computer yesterday. They did a boot from disc install, deleting the partition and installing a fresh copy of XP.
Now XP is back on this cpu. My question is, is there ANYWAY long, short, whatever that I can find those files or maybe go back to my old install of ubuntu? I've heard a lot about bootloaders and whatnot but I have to get those files. I have a bunch of assignments due and need these files.
I put dual OS in my desktop. One is XP, and another one is RedHat EL5. when i installed EL5 in my system, the XP content and my personal files gone. XP is in D drive and EL5 in E drive. My personal files are in C & F drive. Now I would like to recover C & F drive files.
I tried to to install Kubuntu on a usb port to make it portable. I used my buddies laptop and when the program asked if i wanted to erase the Hard drive I made it erase the USB port and install on there. When I was finished windows would no load up from the Hard drive on the Laptop and the message I got was a code and grub rescue. How can I recover Windows with out erasing the files?
I run a server where multiple people can access it via SSH and have access to the same folder. Someone recently decided to stop using my server so I deleted their login account inside the User and Group GUI inside gnome. I accidentally selected delete files owned by this user. I didn't think much of it because the user didn't actually own any of the files since it was shared among all of them. Anyway, ALL the files in that shared home directory vanished, including the home directory. How can I recover this? It didn't move all the files to the root trash or my local user's trash folder. Are the permanently deleted?
I've been using Linux for a few years and have managed to find what I need searching (including this great site) until now. I have managed to mess up a substantial partition and don't want to possibly make a bad situation worse by bungling around an area I know next to nothing about. I'll try to explain it fully.I finally built a new PC (750GB internal HDD, 4GB RAM). I'm used to Kubuntu so I installed that (10.04 x86_64bit); partitioned sda1 1GB swap / sda2 OS 20GB ext4 / balance sda3 home ext4 for time being. Everything runs sweet. My old PC (very, PIII, but more recent 500GB internal HDD) partitioned sda1 486.31MB swap / sda2 OS 22.82GB ext4 / balance (442.46GB) sda3 home ext3 (ext3 because /home was inherited from an earlier install prior to Kubuntu going ext4). Old PC was having PSU prob. I don't have an external HDD or any other large HDD and not enough DVDRs for 280GB or so of data current in /home. So I backed up what I could risking the old PC working long enough. Got the critical stuff, business etc. There remained some 150GB or so, years of pictures, videos, info on car repairs etc (some but by no means all on semi annual DVDR backups). Free space current in new PC's /home partition ~500GB. So I took out the HDD from the old PC and put it in the new in order to copy the remainder then use it in the new PC; made sure BIOS of new PC indicated this 2nd drive did not have boot priority. The correct install booted.
To my surprise (maybe not yours?) during boot with zero indication, Kubuntu decided to use the 2nd HDD's /home partition for its new 442.46GB swap partition instead! I was horrified. I unmounted it immediately but... according to GParted the partition with all those files to copy is now:/dev/sbd3 File System: unknown 442.46GB Used: --- Unused: --- no flags
I was surprised by kubuntu changing its partitions without input and assuming a ext3 file system on a secondary HD for a 442.46GB swap partition. But, mistake's on me. Call it a lesson. Now I need to know more but don't want to experiment unduly on this drive and possibly make things worse: What should I do next?
I removed my Ubuntu install and decided to replace it with Debian. I backed up the /home directory onto the Windoze installation on the other hard drive. That was a "home.disk" file. Now, I copied the file over to the Debian hard drive, and can't figure out how to recover the files. Is this possible to do in Debian?
I used Total Commander and connected FTP to write website. Today I accidently deleted some files. How to recover them?Recover using Total Commander or log in Putty? If using Putty, what commands are used to recover?
I will begin by announcing that I really know very little about Linux, not having dealt with it previously. That being said, a hard drive that has important files on it was given to me to back up without having been told it was Linux. I piggy backed it into a Windows PC and initialized the hard drive. When it showed there were no files to access I then realized this must be a Linux based hard drive. I attempted to access files with both Linux Reader and Linux Recovery but they both act as though the hard drive has no files on it. And no I did not format the drive, I only intialized it.Is there any way to retrieve files from this hard drive being initialized in Windows? I do have a Linux machine that I could piggy back it into but I have never messed with this machine before, or Linux for that matter, so wouldn't know where to begin.
My main hard disk died and I replaced it. After installing windows in a small partition in /dev/sda, I thought I will try linux mint and went for it. (I need windows to play AOE, but ubuntu is my primary OS)I didnt see the options properly or some distraction, I choose the "install alongside windows" option probably expecting it to install it in the unallocated partition next to the windows installation. I had completely forgotten my second internal drive /dev/sdb which has the backup data. Linux mint went and installed itself on that drive.
Is there a way to recover individual files from the second harddrive. Now if I boot or open it through live cd, all I see in the linux mint file systems. I want to aleast recover my CV/resume from the second drive. The second drive is a single ext4 file system The old drive is completely dead, it doesnt even get recognized when I attach it to SATA.
I just can't stand knowing that there's a slight problem with my PC.I have roughly 12.5 Gigs of files, mostly movies that are multiple clones of a particular movie (which was an entirely different problem altogether) and I CANNOT DELETE THESE THINGS! There has to be a simple way to do it from terminal, problem is, I can't seem to find the trash directory in terminal.
I have a script running as a cronjobIt outputs logs upon each run to /var/log/mylog.logIs there anyway I can delete this or compress it when it gets too large?A cheap and dirty way is to setup another cronjob to delete the log every X interval.... although I'm not sure if that's the proper way