LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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-29-2011, 12:00 AM   #16
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007

Quote:
Originally Posted by JoeyArnold View Post
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.
 
1 members found this post helpful.
Old 09-29-2011, 12:01 AM   #17
JoeyArnold
Member
 
Registered: Nov 2010
Posts: 153

Original Poster
Rep: Reputation: 1
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?
 
Old 09-29-2011, 12:07 AM   #18
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
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.
 
2 members found this post helpful.
Old 09-29-2011, 12:11 AM   #19
snooly
Member
 
Registered: Sep 2011
Posts: 124

Rep: Reputation: Disabled
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.
 
1 members found this post helpful.
Old 09-29-2011, 12:13 AM   #20
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by JoeyArnold View Post
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.
 
Old 09-29-2011, 12:13 AM   #21
JoeyArnold
Member
 
Registered: Nov 2010
Posts: 153

Original Poster
Rep: Reputation: 1
Question Is this Ubuntu CD the same as a live Ubuntu CD?

Quote:
Originally Posted by corp769 View Post
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.
 
Old 09-29-2011, 12:15 AM   #22
JoeyArnold
Member
 
Registered: Nov 2010
Posts: 153

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by JoeyArnold View Post
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?
 
Old 09-29-2011, 12:16 AM   #23
snooly
Member
 
Registered: Sep 2011
Posts: 124

Rep: Reputation: Disabled
Quote:
Originally Posted by JoeyArnold View Post
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.
 
0 members found this post helpful.
Old 09-29-2011, 12:16 AM   #24
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
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.
 
Old 09-29-2011, 12:18 AM   #25
JoeyArnold
Member
 
Registered: Nov 2010
Posts: 153

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by ajgreeny View Post
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
 
Old 09-29-2011, 12:20 AM   #26
JoeyArnold
Member
 
Registered: Nov 2010
Posts: 153

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by snooly View Post
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.
 
Old 09-29-2011, 12:23 AM   #27
JoeyArnold
Member
 
Registered: Nov 2010
Posts: 153

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by corp769 View Post
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.
 
Old 09-29-2011, 12:28 AM   #28
JoeyArnold
Member
 
Registered: Nov 2010
Posts: 153

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by snooly View Post
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.

Last edited by JoeyArnold; 09-29-2011 at 12:29 AM.
 
Old 09-29-2011, 12:28 AM   #29
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
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.
 
Old 09-29-2011, 12:36 AM   #30
snooly
Member
 
Registered: Sep 2011
Posts: 124

Rep: Reputation: Disabled
Quote:
Originally Posted by JoeyArnold View Post
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.
 
  


Reply

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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:25 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration