Ninja Ubuntu Laptop Vanish: How Can I Remotely Undelete?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Joey I would probably have done the same thing and turned off the computer if it froze up. When that happens, normally during booting it would do a fsck (file system check) and then it would be fine. I don't know why your computer was trashed by you doing that, I don't think it should have happened like that.
You'll see that it has big buttons marked "Show me how" and options you can choose for the kind of computer you want to use for making the bootable CD or USB stick. If you can, use a rewritable DVD or USB stick, because that way you won't end up with a stack of "coasters" if something goes wrong. But this isn't very important, blank DVDs and CDs are cheap.
I don't really know if it will be possible to recover your lost files. I think your best chance is to boot off a USB stick or DVD or CD, then try to access your disk and see what is on there. If you can see the files, you can probably use scp or something to copy the files over the network to your desktop.
Obviously this is a painful experience for you, and hopefully now you see that you absolutely must make backups of your important files. Certainly your home directory must be backed up regularly. All the files you create can be destroyed at any time if you don't have backups. Linux operating system files don't really need to be backed up, because you can easily reinstall them if necessary. Even machine configuration files such as in /etc aren't super important to backup, because you can re-create them if needed.
What I would suggest you do is:
* download a Ubuntu live CD image
* make a bootable DVD, CD, or USB stick from that image
* boot your computer off it, and select that you want to try it without installing
* try to find your files on the laptop disk, if you can, then we can figure out a way to copy the files to your desktop.
Good luck Joey.
Can I only see what is on my computer from a live CD? Because my laptop does boot up. Even through all of the files are gone, I can boot up into Ubuntu (or specifically GNOME Desktop Version: 2.32.1), go into the terminal and type in sudo fdisk -l to get the following outputs: but are these outputs the real outputs? Or do I have to try this again via a live CD? Will that give me different results? Or can I try this from my desktop and ask terminal sudo fdisk -l for my laptop disk? Can fDisk work via ethernet to a remote laptop or computer ever?
Here is the inputs and outputs, again, just for the record:
Do I have to boot from a live Ubuntu CD in order to type in that code in the terminal (Sudo Fdisk -L) in order to get the most accurate results or output or answers?
Like I already said, I lost all of my data and my operating system reverted from Ubuntu 11.10 to 10.04. But since I can still boot up, I typed in sudo fdisk -l in the terminal and got the following output:
Laptop Input:
On my Ubuntu 10.04 broken Lost-Data Laptop, I typed in:
Code:
sudo fdisk -l
Laptop Output:
Code:
o@o-HP-Compaq-6910p-GH715AW-ABA:~$ sudo fdisk -l
[sudo] password for o:
Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000ca236
Device Boot Start End Blocks Id System
/dev/sda1 * 1 14411 115755008 83 Linux
/dev/sda2 14412 14594 1463297 5 Extended
/dev/sda5 14412 14594 1463296 82 Linux swap / Solaris
Hold on a minute.... Do you even know what netcat is, and what it is used for? Read here - http://en.wikipedia.org/wiki/Netcat
I'm sorry, but you seem to be under-educated when it comes to linux. Do you even know what you are doing? I am not being mean.... I just want to know if you really know or not what you are doing.
Somebody suggested NetCat. Thanks for the Wikipedia link. I have never heard of it before. I may not know everything, but I know how to follow directions, if somebody had the right code, the right list of commands I could punch in at the terminal. NetCat seems kind of confusing.
Does anybody know if NetCat can undelete from one computer and restore the data onto a different computer via ethernet?
Somebody suggested NetCat. Thanks for the Wikipedia link. I have never heard of it before. I may not now everything, but I know how to follow directions, if somebody had the right code, the right list of commands I could punch in at the terminal. NetCat seems kind of confusing.
Does anybody know if NetCat can undelete from one computer and restore the data onto a different computer via ethernet?
No - Fully read what it is about, and you will learn what it is used for.
Joey I didn't completely understand the situation, and I probably still don't. But from looking at what you say, you are booting the laptop, and the files are gone. Somehow the OS version changed from 11 to 10. That is very wacky.
You don't need to boot from a live CD, because you've already booted off hard disk.
Looking at your disk configuration from fdisk, you have 3 partitions. sda1 is your main partition, sda 2 is extended, and sda5 is swap. You should look in the /lost+found directory, you would probably need to be root to do this.
But it's not looking good, I think those files are permanently lost. I can't imagine why the OS version changed.
Laptop 11.10 crashed back to 10.04 via OEM-Config error thing
Quote:
Originally Posted by EDDY1
if you installed 11.04 & now you're seeing 10.04, are you able to boot 10.04?
If so try "update-grub" maybe 11.04 will be detected so u can boot
When my laptop crashed, it went from Ubuntu 11.10 back down to 10.04. Free Geek said that happens sometimes because of this OEM-Config file script error bug problem thing that resets everything.
/dev/sda1 * 1 14411 115755008 83 Linux
/dev/sda2 14412 14594 1463297 5 Extended
/dev/sda5 14412 14594 1463296 82 Linux swap / Solaris
t
Someone else may have to comfirm but all you have is / & swap no home partition, if you had important docs or files in home then you need to stop & think about recovering them, I'm no expert , but this is where I stop. Good Luck.
Also iI aplogize for not being able to help you, but Testdisk may recover some of your files
t
Someone else may have to comfirm but all you have is / & swap no home partition, if you had important docs or files in home then you need to stop & think about recovering them, I'm no expert , but this is where I stop. Good Luck.
What would the home directory look like? Can somebody post what it looks like? Is the home directory something like /dev/sda3
Last edited by JoeyArnold; 09-29-2011 at 01:03 AM.
I have never heard anyone in this forum make mention of Hiren's boot cd but it has mini linux & tesy\tdisk on it you may be able to recover your files from mini-linux. Another good 1 that has testdik is Gparted-live-cd
Joey I didn't completely understand the situation, and I probably still don't. But from looking at what you say, you are booting the laptop, and the files are gone. Somehow the OS version changed from 11 to 10. That is very wacky.
You don't need to boot from a live CD, because you've already booted off hard disk.
Looking at your disk configuration from fdisk, you have 3 partitions. sda1 is your main partition, sda 2 is extended, and sda5 is swap. You should look in the /lost+found directory, you would probably need to be root to do this.
But it's not looking good, I think those files are permanently lost. I can't imagine why the OS version changed.
I have never heard anyone in this forum make mention of Hiren's boot cd but it has mini linux & tesy\tdisk on it you may be able to recover your files from mini-linux. Another good 1 that has testdik is Gparted-live-cd
What would the home directory look like? Can somebody post what it looks like? Is the home directory something like /dev/sda3
According to the fdisk output, your root partition is /dev/sda1. You don't have a separate /home partition, so /home would also be on /dev/sda1.
Please post the contents of /etc/fstab, especially the line that has "/" under mount point. Also if there is a line which has "/home" for mount point, that would be very interesting. But I doubt there will be, I'm pretty sure /home would have been on /dev/sda1.
---------- Post added 09-29-11 at 04:09 PM ----------
Quote:
Originally Posted by JoeyArnold
How do I sudo look at my lost and found?
You become root, then you use the ls command to list what is in there.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.