LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Reply
 
Search this Thread
Old 09-27-2011, 03:57 PM   #1
JoeyArnold
Member
 
Registered: Nov 2010
Posts: 153

Rep: Reputation: 1
Question Ninja Ubuntu Laptop Vanish: How Can I Remotely Undelete?


When I had a bunch of video programs running, as my Ubuntu (operating system) HP dual-core laptop froze, I forced my computer off (via holding on the power button for around 20 seconds until it turned off).

When I turned my laptop back on, my files were gone, my preferences were gone, my operating system (Ubuntu 11.10) was gone and replaced with Ubuntu 10.04, the name of the computer was changed from Joey Arnold's computer to some random numbers and letters, the fiilesystem was different, my previous partitions were gone and replaced with new ones, and my 120 GB hard drive suddenly went from around 15 GBs of free space to around 80 GBs of free space.

I can connect my laptop to my Ubuntu desktop via an ethernet cable wire. I know how to get online from the desktop via the ethernet attached to my laptop, being that my laptop can get wireless internet.

However, I don't know how to remotely undelete. I don't even know how to transfer files from my laptop to my desktop.

I need to restore over 80 GBs or so of data and I hear that it is better to undelete, to save, to restore, lost data onto a different hard drive.

This seems to be my only option.

I know how to use the terminal. Perhps there is a way to CD, to Change Directories, to go from my laptop and into my desktop via ethernet, and vice versa. Perhaps there is a program or a command that allows for the option for where u want to restore a undeleted file to, because I see that there are options for what folders you want to restore lost data to, so why not restore to a folder in a different computer connected via ethernet or wireless?

Last edited by JoeyArnold; 09-27-2011 at 04:18 PM.
 
Old 09-27-2011, 05:20 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,485
Blog Entries: 54

Rep: Reputation: 2902Reputation: 2902Reputation: 2902Reputation: 2902Reputation: 2902Reputation: 2902Reputation: 2902Reputation: 2902Reputation: 2902Reputation: 2902Reputation: 2902
IMO you should have given the OS more time to "recover" instead of forcing it to power off. (If you have to, and if the keyboard still works, at least try ALT-PRN-S; ALT-PRN-U; ALT-PRN-B; key combos to stand a chance of syncing the file systems before rebooting.) Do you have any backups? BTW after such failures never boot the laptop trying to access the OS. If you do that you'll disturb the file system only more, leading to diminished chance of recovery (if at all possible). Best way to proceed IMO would be to first make a backup before doing anything else (shouldn't need to explain why). Attach a large enough external USB storage device, boot an installer or Live CD (KNOPPIX or Helix) and use 'dd' (dd_rescue, ddrescue, dcfldd, etc, etc) to make a copy of the drive to a file on the external disk. (Sure you could do this over ethernet running netcat on both sides but using USB or Firewire is less error-prone and provides quicker throughput.) After making a backup you can use 'testdisk /debug /log /list /path/to/image' (adjust path) to list what it thinks its partitions are and post the log here.
 
1 members found this post helpful.
Old 09-28-2011, 03:14 AM   #3
JoeyArnold
Member
 
Registered: Nov 2010
Posts: 153

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by unSpawn View Post
IMO you should have given the OS more time to "recover" instead of forcing it to power off. (If you have to, and if the keyboard still works, at least try ALT-PRN-S; ALT-PRN-U; ALT-PRN-B; key combos to stand a chance of syncing the file systems before rebooting.) Do you have any backups? BTW after such failures never boot the laptop trying to access the OS. If you do that you'll disturb the file system only more, leading to diminished chance of recovery (if at all possible). Best way to proceed IMO would be to first make a backup before doing anything else (shouldn't need to explain why). Attach a large enough external USB storage device, boot an installer or Live CD (KNOPPIX or Helix) and use 'dd' (dd_rescue, ddrescue, dcfldd, etc, etc) to make a copy of the drive to a file on the external disk. (Sure you could do this over ethernet running netcat on both sides but using USB or Firewire is less error-prone and provides quicker throughput.) After making a backup you can use 'testdisk /debug /log /list /path/to/image' (adjust path) to list what it thinks its partitions are and post the log here.

You said USB and/or firewire has quicker throughput than ethernet? How much faster?




Why is doing the recovery via USB or firewire less error-prone than ethernet or wireless?

 
Old 09-28-2011, 03:25 AM   #4
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,880

Rep: Reputation: 530Reputation: 530Reputation: 530Reputation: 530Reputation: 530Reputation: 530
I would say that direct or usb disk to disk transfers are much faster than a wireles capability of 56Mb/s or ethernet at 100.
 
Old 09-28-2011, 06:03 AM   #5
snooly
Member
 
Registered: Sep 2011
Posts: 124

Rep: Reputation: Disabled
I've never heard of all that bad stuff happening, like the OS version changing. Is somebody playing a prank on you? Did they knock you out and replace your computer?
 
Old 09-28-2011, 10:07 AM   #6
JoeyArnold
Member
 
Registered: Nov 2010
Posts: 153

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by snooly View Post
I've never heard of all that bad stuff happening, like the OS version changing. Is somebody playing a prank on you? Did they knock you out and replace your computer?

I bought my HP dual-core Ubuntu laptop at Free Geek (http://FreeGeek.org). They say that my problem has something to do with this OEM-Config file. They say that it is sort of like a reset button. That it probably got messed up or activated, which causes the computer to reset.


It might cost money to get a professional to fix my computer. I have no money. I have no job. I live with my dad. I am 26 years old. I live in Forest Grove, Oregon. I can't connect a hard drive via USB or firewire. I only have this Ubuntu desktop that I connect to via ethernet.


Can Ubuntu desktops get viruses? How else could a prank occur?


Last edited by JoeyArnold; 09-28-2011 at 10:11 AM.
 
Old 09-28-2011, 10:08 AM   #7
JoeyArnold
Member
 
Registered: Nov 2010
Posts: 153

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by EDDY1 View Post
I would say that direct or usb disk to disk transfers are much faster than a wireles capability of 56Mb/s or ethernet at 100.
Can't ethernet go up to one thousand (1,000)?
 
Old 09-28-2011, 05:28 PM   #8
JoeyArnold
Member
 
Registered: Nov 2010
Posts: 153

Original Poster
Rep: Reputation: 1
Question OEM-Config reset my laptop. How can I undelete everything from my laptop to my desktop via ethernet?

OEM-Config reset my laptop. How can I undelete everything from my laptop to my desktop via ethernet?
 
Old 09-28-2011, 05:34 PM   #9
snooly
Member
 
Registered: Sep 2011
Posts: 124

Rep: Reputation: Disabled
Try getting a live cd, like ubuntu for example, and boot from that. If you can do that, then you can mount the important partitions from your disk, and see if they look okay. You should also be able to mount an external hard drive while using the live cd. Then you can copy your important data over to the external hard drive, fix your computer, and copy the data back.
 
Old 09-28-2011, 11:32 PM   #10
JoeyArnold
Member
 
Registered: Nov 2010
Posts: 153

Original Poster
Rep: Reputation: 1
Question

Quote:
Originally Posted by snooly View Post
Try getting a live cd, like ubuntu for example, and boot from that. If you can do that, then you can mount the important partitions from your disk, and see if they look okay. You should also be able to mount an external hard drive while using the live cd. Then you can copy your important data over to the external hard drive, fix your computer, and copy the data back.


My only external hard drive is my desktop via ethernet.

Do you know if I should download SSH for my desktop and laptop?
 
Old 09-28-2011, 11:35 PM   #11
JoeyArnold
Member
 
Registered: Nov 2010
Posts: 153

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by snooly View Post
Try getting a live cd, like ubuntu for example, and boot from that. If you can do that, then you can mount the important partitions from your disk, and see if they look okay. You should also be able to mount an external hard drive while using the live cd. Then you can copy your important data over to the external hard drive, fix your computer, and copy the data back.


On my laptop, I don't know how to mount my only external hard drive, which is in my desktop, via ethernet cable wire.
 
Old 09-28-2011, 11:42 PM   #12
JoeyArnold
Member
 
Registered: Nov 2010
Posts: 153

Original Poster
Rep: Reputation: 1
Post No pranks I don't think happened

Quote:
Originally Posted by snooly View Post
I've never heard of all that bad stuff happening, like the OS version changing. Is somebody playing a prank on you? Did they knock you out and replace your computer?


I know for a fact that it wasn't that kind of prank. My computer froze. I forced it off. I know I shouldn't have been that impatient. In my life, I've waited hours before when a computer became frozen. I didn't want to wait. None of the keys were working. The keyboard and the mouse was frozen. None of the short cuts were working. I don't know about all of the tricks, codes, shortcuts, for unfreezing a computer, but I do know the lights were not working. The cap locks wouldn't light on or off when you press on it.

When I turned the computer back on, just seconds after that, everything was gone.

Unless if aliens paused time and then replaced my computer. If not, then it wasn't that kind of prank. I was there the whole time. Nobody else uses my laptop ever. But I did buy this Ubuntu laptop used at Free Geek: http://FreeGeek.org. It probably originally had Windows on it once if that matters at all.

Last edited by JoeyArnold; 09-28-2011 at 11:44 PM.
 
Old 09-28-2011, 11:46 PM   #13
JoeyArnold
Member
 
Registered: Nov 2010
Posts: 153

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by unSpawn View Post
IMO you should have given the OS more time to "recover" instead of forcing it to power off. (If you have to, and if the keyboard still works, at least try ALT-PRN-S; ALT-PRN-U; ALT-PRN-B; key combos to stand a chance of syncing the file systems before rebooting.) Do you have any backups? BTW after such failures never boot the laptop trying to access the OS. If you do that you'll disturb the file system only more, leading to diminished chance of recovery (if at all possible). Best way to proceed IMO would be to first make a backup before doing anything else (shouldn't need to explain why). Attach a large enough external USB storage device, boot an installer or Live CD (KNOPPIX or Helix) and use 'dd' (dd_rescue, ddrescue, dcfldd, etc, etc) to make a copy of the drive to a file on the external disk. (Sure you could do this over ethernet running netcat on both sides but using USB or Firewire is less error-prone and provides quicker throughput.) After making a backup you can use 'testdisk /debug /log /list /path/to/image' (adjust path) to list what it thinks its partitions are and post the log here.


I don't know the difference between Knoppix and Helix.
 
Old 09-28-2011, 11:54 PM   #14
JoeyArnold
Member
 
Registered: Nov 2010
Posts: 153

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by unSpawn View Post
IMO you should have given the OS more time to "recover" instead of forcing it to power off. (If you have to, and if the keyboard still works, at least try ALT-PRN-S; ALT-PRN-U; ALT-PRN-B; key combos to stand a chance of syncing the file systems before rebooting.) Do you have any backups? BTW after such failures never boot the laptop trying to access the OS. If you do that you'll disturb the file system only more, leading to diminished chance of recovery (if at all possible). Best way to proceed IMO would be to first make a backup before doing anything else (shouldn't need to explain why). Attach a large enough external USB storage device, boot an installer or Live CD (KNOPPIX or Helix) and use 'dd' (dd_rescue, ddrescue, dcfldd, etc, etc) to make a copy of the drive to a file on the external disk. (Sure you could do this over ethernet running netcat on both sides but using USB or Firewire is less error-prone and provides quicker throughput.) After making a backup you can use 'testdisk /debug /log /list /path/to/image' (adjust path) to list what it thinks its partitions are and post the log here.



If I want to save my laptop, can I connect my laptop to my desktop via ethernet, then on my desktop, go into the terminal and use the dd-rescue commands to undelete my laptop files and have them recovered into a folder of my choosing, a place of my choosing, even if that place is remote via ethernet, even if that place is my desktop computer?

I know Test Disk. I have used it before several times. I don't think I have ever used dd-rescue or dcfldd, or what else is there?

Should I try NetCat then? Is that the only program that can restore via ethernet?
 
Old 09-28-2011, 11:55 PM   #15
JoeyArnold
Member
 
Registered: Nov 2010
Posts: 153

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by snooly View Post
Try getting a live cd, like ubuntu for example, and boot from that. If you can do that, then you can mount the important partitions from your disk, and see if they look okay. You should also be able to mount an external hard drive while using the live cd. Then you can copy your important data over to the external hard drive, fix your computer, and copy the data back.


I might not have a live Ubuntu CD. Can you get me one?
 
  


Reply

Tags
cd, eject, howto, terminal, ubuntu 11.04, undelete


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mac File Undelete Software, Undelete Mac files liesnsys Linux - Hardware 3 07-23-2009 09:50 PM
gnome parts stop working or vanish from Ubuntu Hardy SaintDanBert Linux - Desktop 1 01-28-2009 11:05 AM


All times are GMT -5. The time now is 07:39 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration