LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 01:11 AM   #46
JoeyArnold
Member
 
Registered: Nov 2010
Posts: 153

Original Poster
Rep: Reputation: 1
Post


Quote:
Originally Posted by snooly View Post
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.
 
Old 09-29-2011, 01:12 AM   #47
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,626

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
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
 
Old 09-29-2011, 01:16 AM   #48
JoeyArnold
Member
 
Registered: Nov 2010
Posts: 153

Original Poster
Rep: Reputation: 1
Code:
 o@o-HP-Compaq-6910p-GH715AW-ABA:~$ ls /etc/fstab
/etc/fstab
 
Old 09-29-2011, 01:19 AM   #49
snooly
Member
 
Registered: Sep 2011
Posts: 124

Rep: Reputation: Disabled
Quote:
Originally Posted by JoeyArnold View Post
Code:
 o@o-HP-Compaq-6910p-GH715AW-ABA:~$ ls /etc/fstab
/etc/fstab
try this:

cat /etc/fstab
 
1 members found this post helpful.
Old 09-29-2011, 01:20 AM   #50
snooly
Member
 
Registered: Sep 2011
Posts: 124

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

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





Thank you. I use to educate my mother about backing up files. I should take my own advice.
 
Old 09-29-2011, 01:27 AM   #52
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,626

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
@snooly
you are most likely right, highlighted in red
Quote:
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.
Quote:
Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
/dev/sda1 * 1 14411 115755008 83 Linux
/dev/sda2 14412 14594 1463297 5 Extended
/dev/sda5 14412 14594 1463296 82 Linux swap / Solaris

Last edited by EDDY1; 09-29-2011 at 01:33 AM.
 
Old 09-29-2011, 01:35 AM   #53
JoeyArnold
Member
 
Registered: Nov 2010
Posts: 153

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by snooly View Post
try this:

cat /etc/fstab



Code:
o@o-HP-Compaq-6910p-GH715AW-ABA:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sda1 during installation
UUID=eb95dfd0-f3df-49c0-aa8f-cbdf43e43798 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=8083536d-0b5b-49a9-ae45-6e051330f7cf none            swap    sw              0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0
o@o-HP-Compaq-6910p-GH715AW-ABA:~$
 
Old 09-29-2011, 01:36 AM   #54
snooly
Member
 
Registered: Sep 2011
Posts: 124

Rep: Reputation: Disabled
Quote:
Originally Posted by JoeyArnold View Post
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.
Linux is "sort of like Unix", but strictly speaking, it is not Unix. That's just a minor detail so don't worry about it. If you can use Linux, you can probably use a Unix machine without too much trouble. Some people will get their knickers twisted if you use the wrong word, but really who cares.

With an ext2 file system, I think there is some chance of recovering deleted files. But apparently ext3 changed some things, and it became a lot harder. Once you post the contents of your /etc/fstab file, we can see what kind of file system you have. It's probably ext3 or ext4.

How big is this OEM-Config file? If it's small, it might be worth posting it here so we can figure out what happened.
 
Old 09-29-2011, 01:37 AM   #55
JoeyArnold
Member
 
Registered: Nov 2010
Posts: 153

Original Poster
Rep: Reputation: 1
Code:
o@o-HP-Compaq-6910p-GH715AW-ABA:~$ cat /
cat: /: Is a directory
 
Old 09-29-2011, 01:39 AM   #56
JoeyArnold
Member
 
Registered: Nov 2010
Posts: 153

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by snooly View Post
Linux is "sort of like Unix", but strictly speaking, it is not Unix. That's just a minor detail so don't worry about it. If you can use Linux, you can probably use a Unix machine without too much trouble. Some people will get their knickers twisted if you use the wrong word, but really who cares.

With an ext2 file system, I think there is some chance of recovering deleted files. But apparently ext3 changed some things, and it became a lot harder. Once you post the contents of your /etc/fstab file, we can see what kind of file system you have. It's probably ext3 or ext4.

How big is this OEM-Config file? If it's small, it might be worth posting it here so we can figure out what happened.



How can I find OEM-Config? Tell me what to type into the terminal.
 
Old 09-29-2011, 01:40 AM   #57
JoeyArnold
Member
 
Registered: Nov 2010
Posts: 153

Original Poster
Rep: Reputation: 1
Code:
o@o-HP-Compaq-6910p-GH715AW-ABA:~$ ls
Desktop  djs2       Downloads         js1  Music     Templates
djs0     djs3       examples.desktop  js2  Pictures  Videos
djs1     Documents  js0               js3  Public
 
Old 09-29-2011, 01:41 AM   #58
JoeyArnold
Member
 
Registered: Nov 2010
Posts: 153

Original Poster
Rep: Reputation: 1
Code:
o@o-HP-Compaq-6910p-GH715AW-ABA:~$ ls ..
o
o@o-HP-Compaq-6910p-GH715AW-ABA:~$ ls ...
ls: cannot access ...: No such file or directory
 
Old 09-29-2011, 01:43 AM   #59
JoeyArnold
Member
 
Registered: Nov 2010
Posts: 153

Original Poster
Rep: Reputation: 1
OEM-Config
Code:
o@o-HP-Compaq-6910p-GH715AW-ABA:~$ ls oem-config
ls: cannot access oem-config: No such file or directory
o@o-HP-Compaq-6910p-GH715AW-ABA:~$ oem-config
debconf: DbDriver "passwords" warning: could not open /var/cache/debconf/passwords.dat: Permission denied
Traceback (most recent call last):
  File "/usr/sbin/oem-config", line 573, in <module>
    main(oem_config)
  File "/usr/sbin/oem-config", line 505, in main
    version_file = open('/var/log/installer/version', 'w')
IOError: [Errno 13] Permission denied: '/var/log/installer/version'
 
Old 09-29-2011, 01:44 AM   #60
snooly
Member
 
Registered: Sep 2011
Posts: 124

Rep: Reputation: Disabled
Quote:
Originally Posted by JoeyArnold View Post
How can I find OEM-Config? Tell me what to type into the terminal.
I've never heard of the file before this thread. So I'm no expert. Bear in mind that I don't know anything about the file apart from what you've posted.

You can try:

locate OEM-Config

That might not work, so then try this:

ls -laR / | less -i

This will do a full search of your filesystem, starting at the root. The output is piped into less, which will let you see one page at a time. You should try searching for the word "oem-config" by typing in "/oem-config" without quotes, then press enter. Then you keep typing in "/" and press enter each time if there is more than one.
 
1 members found this post helpful.
  


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 11:27 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