LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Ninja Ubuntu Laptop Vanish: How Can I Remotely Undelete? (https://www.linuxquestions.org/questions/linux-newbie-8/ninja-ubuntu-laptop-vanish-how-can-i-remotely-undelete-905288/)

JoeyArnold 09-27-2011 03:57 PM

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?

unSpawn 09-27-2011 05:20 PM

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.

JoeyArnold 09-28-2011 03:14 AM

Quote:

Originally Posted by unSpawn (Post 4483844)
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?


EDDY1 09-28-2011 03:25 AM

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.

snooly 09-28-2011 06:03 AM

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?

JoeyArnold 09-28-2011 10:07 AM

Quote:

Originally Posted by snooly (Post 4484312)
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?


JoeyArnold 09-28-2011 10:08 AM

Quote:

Originally Posted by EDDY1 (Post 4484181)
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)?

JoeyArnold 09-28-2011 05:28 PM

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?

snooly 09-28-2011 05:34 PM

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.

JoeyArnold 09-28-2011 11:32 PM

Quote:

Originally Posted by snooly (Post 4484852)
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?

JoeyArnold 09-28-2011 11:35 PM

Quote:

Originally Posted by snooly (Post 4484852)
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.

JoeyArnold 09-28-2011 11:42 PM

No pranks I don't think happened
 
Quote:

Originally Posted by snooly (Post 4484312)
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.

JoeyArnold 09-28-2011 11:46 PM

Quote:

Originally Posted by unSpawn (Post 4483844)
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.

JoeyArnold 09-28-2011 11:54 PM

Quote:

Originally Posted by unSpawn (Post 4483844)
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?

JoeyArnold 09-28-2011 11:55 PM

Quote:

Originally Posted by snooly (Post 4484852)
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?

corp769 09-29-2011 12:00 AM

Quote:

Originally Posted by JoeyArnold (Post 4485075)
I might not have a live Ubuntu CD. Can you get me one?

You can always get it yourself by going to the Ubuntu website and downloading the ISO file, and burn it to a CD/DVD.

JoeyArnold 09-29-2011 12:01 AM

should I use Net Cat to undelete my lost laptop files and have them recovered onto my desktop tower computer via ethernet wire?

If so, how do I find Net Cat? Which version works best for Ubuntu 10.04? Where do I download it from? Are there different Net Cat programs? Which one should I use exactly?

corp769 09-29-2011 12:07 AM

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.

snooly 09-29-2011 12:11 AM

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 can get a copy of a Ubuntu live CD from here: http://www.ubuntu.com/download/ubuntu/download

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.

unSpawn 09-29-2011 12:13 AM

Quote:

Originally Posted by JoeyArnold (Post 4485067)
I don't know the difference between Knoppix and Helix.

That is something you could have searched this forum or the 'net for.

Here's in short how you run 'dd' over your network:
- Make both machines connect over ethernet cable using static IP addresses in your router.
- Boot your laptop using a Live CD as I suggested before. Run 'fdisk -l' to see which disks are available (usually one: let's assert for the example it's /dev/sda).
- If you don't know the size of /dev/sda run 'hdparm -I /dev/sda|grep size;'.
- On your desktop, locate a partition that is as big as, but preferably larger than, your laptops /dev/sda. Mount it as root and ensure it's got enough free space. Let's assert for this example the partition is mounted at "/mnt/salvage".
- On your desktop as root run 'netcat -l -p 1234|dd of=/mnt/salvage/sda.dd'.
- On your laptop as root run 'dd if=/dev/sda|netcat ipaddressofdesktop 1234;', where you substitute "ipaddressofdesktop" with the actual static IP address of your desktop.
* As running 'dd' is destructive you best ask questions and post your proposed list of commands to run before you commence.

JoeyArnold 09-29-2011 12:13 AM

Is this Ubuntu CD the same as a live Ubuntu CD?
 
Quote:

Originally Posted by corp769 (Post 4485077)
You can always get it yourself by going to the Ubuntu website and downloading the ISO file, and burn it to a CD/DVD.

Good answer. http://www.ubuntu.com/. They use to mail people CDs for free. Now it cost like a dollar. I found some of my CDs but I don't know if they are specifically the live CDs or not. Does it matter if it says live on it or not? I have this CD that does not say live on it but it does say Ubuntu 10.04 LTS Desktop Edition. I have used it before It can install Ubuntu 10.04 onto most computers. There is also the option of trying it out before installing it. Meaning that you can boot onto the CD. So, is that the same as a live CD then? If so, then I should be able to get onto this live Ubuntu 10.04 CD then. But I can't get online from a live CD yet because my wireless internet device stops working during a live Ubuntu CD session. That is why I want a plan before going live.

JoeyArnold 09-29-2011 12:15 AM

Quote:

Originally Posted by JoeyArnold (Post 4485096)
Good answer. http://www.ubuntu.com/. They use to mail people CDs for free. Now it cost like a dollar. I found some of my CDs but I don't know if they are specifically the live CDs or not. Does it matter if it says live on it or not? I have this CD that does not say live on it but it does say Ubuntu 10.04 LTS Desktop Edition. I have used it before It can install Ubuntu 10.04 onto most computers. There is also the option of trying it out before installing it. Meaning that you can boot onto the CD. So, is that the same as a live CD then? If so, then I should be able to get onto this live Ubuntu 10.04 CD then. But I can't get online from a live CD yet because my wireless internet device stops working during a live Ubuntu CD session. That is why I want a plan before going live.



One CD says G Parted Ed 0.4.6. Can this CD help with anything?

snooly 09-29-2011 12:16 AM

Quote:

Originally Posted by JoeyArnold (Post 4485096)
Good answer. http://www.ubuntu.com/. They use to mail people CDs for free. Now it cost like a dollar. I found some of my CDs but I don't know if they are specifically the live CDs or not. Does it matter if it says live on it or not? I have this CD that does not say live on it but it does say Ubuntu 10.04 LTS Desktop Edition. I have used it before It can install Ubuntu 10.04 onto most computers. There is also the option of trying it out before installing it. Meaning that you can boot onto the CD. So, is that the same as a live CD then? If so, then I should be able to get onto this live Ubuntu 10.04 CD then. But I can't get online from a live CD yet because my wireless internet device stops working during a live Ubuntu CD session. That is why I want a plan before going live.

Yes boot off that CD, and select that you want to try it without installing. Try connecting your computer with an ethernet cable (you know the blue cables?). Then you don't need to worry about getting wireless working.

corp769 09-29-2011 12:16 AM

http://www.ubuntu.com/download/ubuntu/download
Scroll down a bit and read what is on the website.... It tells you everything you need to know.

JoeyArnold 09-29-2011 12:18 AM

Quote:

Originally Posted by ajgreeny (Post 11291544)
If you can boot to a live Ubuntu CD it would be useful if you use the command
Code:

sudo fdisk -l
and report the output back here. That will tell us what partitions are on your hard disk.

I find it hard to believe that a hard reset would erase all your files and operating system, though it can occasionally make it impossible to boot the machine. However, I presume your comments about partition sizes means you have already looked with a live system of some sort.

More information please about exactly what happened and what you have already done to find out what you've said here.



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


JoeyArnold 09-29-2011 12:20 AM

Quote:

Originally Posted by snooly (Post 4485100)
Yes boot off that CD, and select that you want to try it without installing. Try connecting your computer with an ethernet cable (you know the blue cables?). Then you don't need to worry about getting wireless working.



My internet is coming from my neighbors via wifi wireless.

JoeyArnold 09-29-2011 12:23 AM

Quote:

Originally Posted by corp769 (Post 4485101)
http://www.ubuntu.com/download/ubuntu/download
Scroll down a bit and read what is on the website.... It tells you everything you need to know.



Ok. Scrolling down. Ok. I see. I have read this before. I have seen other special CDs at the Free Geek (http://FreeGeek.org) place. These CDs specifically say something like Ubuntu Live Desktop Edition. But I understand the CDs I have are similar.

JoeyArnold 09-29-2011 12:28 AM

Quote:

Originally Posted by snooly (Post 4485100)
Yes boot off that CD, and select that you want to try it without installing. Try connecting your computer with an ethernet cable (you know the blue cables?). Then you don't need to worry about getting wireless working.



I don't pay for internet. I can only get it via wifi. I can only get wireless internet via my wireless device, which picks up internet from my neighbors.

My desktop can only get it via ethernet attached to my laptop. I might be able to connect my wireless device directly to my laptop. But that is another story. Because that may not help with undeleting my laptop files.

corp769 09-29-2011 12:28 AM

Well I am saying that it has instructions on how to use the live CD's. If you have any other questions about this, feel free to ask.

snooly 09-29-2011 12:36 AM

Quote:

Originally Posted by JoeyArnold (Post 4485111)
I don't pay for internet. I can only get it via wifi. I can only get wireless internet via my wireless device, which picks up internet from my neighbors.

My desktop can only get it via ethernet attached to my laptop. I might be able to connect my wireless device directly to my laptop. But that is another story. Because that may not help with undeleting my laptop files.

So are you using the broken laptop now to access the internet? I think you should try to boot off one of those CDs you have, tell it to "try without installing", to see if it works. It should work.

Also please say what kind of wireless card you have, we might be able to set it up so that you can get the wireless working off the live CD.

JoeyArnold 09-29-2011 12:38 AM

Does it have to be from a live Ubuntu CD?
 
Quote:

Originally Posted by snooly (Post 4485094)
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 can get a copy of a Ubuntu live CD from here: http://www.ubuntu.com/download/ubuntu/download

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


EDDY1 09-29-2011 12:49 AM

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

JoeyArnold 09-29-2011 12:50 AM

Quote:

Originally Posted by corp769 (Post 4485086)
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?

corp769 09-29-2011 12:51 AM

Quote:

Originally Posted by JoeyArnold (Post 4485128)
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.

snooly 09-29-2011 12:53 AM

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.

JoeyArnold 09-29-2011 12:55 AM

Laptop 11.10 crashed back to 10.04 via OEM-Config error thing
 
Quote:

Originally Posted by EDDY1 (Post 4485127)
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.

EDDY1 09-29-2011 12:57 AM

Quote:

/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

JoeyArnold 09-29-2011 01:00 AM

Quote:

Originally Posted by corp769 (Post 4485130)
No - Fully read what it is about, and you will learn what it is used for.


I am not questioning the things that it says it can do. I am just wondering if there it has any tricks.

I can see that it say: Netcat is a computer networking service for reading from and writing network connections using TCP or UDP.

I want to assume that this program doesn't seem to remotely undelete things. But I still wanted to ask people what they think.

JoeyArnold 09-29-2011 01:02 AM

Quote:

Originally Posted by EDDY1 (Post 4485140)
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

Nylex 09-29-2011 01:04 AM

Quote:

Originally Posted by JoeyArnold (Post 4485144)
What would the home directory look like? Can somebody post what it looks like? Is the home directory something like /dev/sda3

No, /dev/sda3 is a partition (technically it'll be a block device). Your home directory is usually /home/username. You might want to read this.

snooly 09-29-2011 01:05 AM

Quote:

Originally Posted by JoeyArnold (Post 4485143)
I can see that it say: Netcat is a computer networking service for reading from and writing network connections using TCP or UDP.

I want to assume that this program doesn't seem to remotely undelete things. But I still wanted to ask people what they think.

Netcat doesn't do that. There is no "undelete" on unix-type systems. People are expected to delete with care, and have backups if they make a mistake.

EDDY1 09-29-2011 01:05 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

JoeyArnold 09-29-2011 01:06 AM

Quote:

Originally Posted by snooly (Post 4485134)
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.




How do I sudo look at my lost and found?

JoeyArnold 09-29-2011 01:07 AM

Quote:

Originally Posted by EDDY1 (Post 4485149)
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



I have this CD labeled GPartedEd 0.4.6

snooly 09-29-2011 01:08 AM

Quote:

Originally Posted by JoeyArnold (Post 4485144)
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 (Post 4485150)
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.

sudo su -
ls -la /lost+found

JoeyArnold 09-29-2011 01:11 AM

Quote:

Originally Posted by snooly (Post 4485147)
Netcat doesn't do that. There is no "undelete" on unix-type systems. People are expected to delete with care, and have backups if they make a mistake.

Is unix-type systems the same as linux-type? I hear that Linux is based on Unix.

People tell me that when a file is deleted, that the file simply moves to a different part of the hard drive disk. That it pretends to be deleted but that it is in fact still there but invisible and in a blocked sector, capable of recovery, that is until you write over it.

Because I have 80 GBs of free space, I am assuming that I didn't write over all of my deleted files yet.

EDDY1 09-29-2011 01:12 AM

Quote:

What would the home directory look like? Can somebody post what it looks like? Is the home directory something like /dev/sda3
Because sda5 takes up all of sda2 there would've been another partition being sda3, I don't know whqt happened to it but it is missing unless you also had an external drive for home.

Quote:

/dev/sda1 * 1 14411 115755008 83 Linux
/dev/sda2 14412 14594 1463297 5 Extended
/dev/sda5 14412 14594 1463296 82 Linux swap / Solaris

JoeyArnold 09-29-2011 01:16 AM

Code:

o@o-HP-Compaq-6910p-GH715AW-ABA:~$ ls /etc/fstab
/etc/fstab


snooly 09-29-2011 01:19 AM

Quote:

Originally Posted by JoeyArnold (Post 4485160)
Code:

o@o-HP-Compaq-6910p-GH715AW-ABA:~$ ls /etc/fstab
/etc/fstab


try this:

cat /etc/fstab

snooly 09-29-2011 01:20 AM

Quote:

Originally Posted by EDDY1 (Post 4485158)
Because sda5 takes up all of sda2 there would've been another partition being sda3, I don't know whqt happened to it but it is missing unless you also had an external drive for home.

Of course I'm guessing, but I assume that /home was on /dev/sda1. sda2 is an extended partition, and sda5 is a logical partition. I don't think there ever was sda3 or sda4. But I guess we would have to see what OEM-Config has in it to be sure.


All times are GMT -5. The time now is 11:50 AM.