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-29-2011 02:24 AM

Quote:

Originally Posted by Nylex (Post 4485238)
You don't seem to be learning from what you've been doing. This would probably be good for you to read (particularly the first three parts).



Does this Unix guide apply to my Linux Ubuntu? I am not sure what I should read out of that website. I think I kind of understand the summary at the website.

JoeyArnold 09-29-2011 02:25 AM

Code:

o@o-HP-Compaq-6910p-GH715AW-ABA:~$ ls
Desktop  djs2      Downloads        js1  Music    Public
djs0    djs3      examples.desktop  js2  Pictures  Templates
djs1    Documents  js0              js3  ?po      Videos
o@o-HP-Compaq-6910p-GH715AW-ABA:~$ ls /dev/videos
ls: cannot access /dev/videos: No such file or directory
o@o-HP-Compaq-6910p-GH715AW-ABA:~$ ls /dev
agpgart          mapper              scd0      tty27  tty6      ttyS5
autofs          mcelog              sda      tty28  tty60      ttyS6
block            mem                sda1      tty29  tty61      ttyS7
bsg              net                sda2      tty3  tty62      ttyS8
btrfs-control    network_latency    sda5      tty30  tty63      ttyS9
bus              network_throughput  sg0      tty31  tty7      uinput
cdrom            null                sg1      tty32  tty8      urandom
cdrw            oldmem              shm      tty33  tty9      usbmon0
char            parport0            snapshot  tty34  ttyprintk  usbmon1
console          pktcdvd            snd      tty35  ttyS0      usbmon2
core            port                sr0      tty36  ttyS1      usbmon3
cpu              ppp                stderr    tty37  ttyS10    usbmon4
cpu_dma_latency  psaux              stdin    tty38  ttyS11    usbmon5
disk            ptmx                stdout    tty39  ttyS12    usbmon6
dri              pts                tpm0      tty4  ttyS13    usbmon7
dvd              ram0                tty      tty40  ttyS14    vcs
ecryptfs        ram1                tty0      tty41  ttyS15    vcs1
fb0              ram10              tty1      tty42  ttyS16    vcs2
fd              ram11              tty10    tty43  ttyS17    vcs3
freefall        ram12              tty11    tty44  ttyS18    vcs4
full            ram13              tty12    tty45  ttyS19    vcs5
fuse            ram14              tty13    tty46  ttyS2      vcs6
fw0              ram15              tty14    tty47  ttyS20    vcsa
hpet            ram2                tty15    tty48  ttyS21    vcsa1
input            ram3                tty16    tty49  ttyS22    vcsa2
kmsg            ram4                tty17    tty5  ttyS23    vcsa3
log              ram5                tty18    tty50  ttyS24    vcsa4
loop0            ram6                tty19    tty51  ttyS25    vcsa5
loop1            ram7                tty2      tty52  ttyS26    vcsa6
loop2            ram8                tty20    tty53  ttyS27    vga_arbiter
loop3            ram9                tty21    tty54  ttyS28    zero
loop4            random              tty22    tty55  ttyS29
loop5            rfkill              tty23    tty56  ttyS3
loop6            root                tty24    tty57  ttyS30
loop7            rtc                tty25    tty58  ttyS31
lp0              rtc0                tty26    tty59  ttyS4
o@o-HP-Compaq-6910p-GH715AW-ABA:~$ ls /dev/sda1
/dev/sda1
o@o-HP-Compaq-6910p-GH715AW-ABA:~$ ls /dev/sda2
/dev/sda2
o@o-HP-Compaq-6910p-GH715AW-ABA:~$ ls /dev/sda3
ls: cannot access /dev/sda3: No such file or directory
o@o-HP-Compaq-6910p-GH715AW-ABA:~$ ls /dev/sda4
ls: cannot access /dev/sda4: No such file or directory
o@o-HP-Compaq-6910p-GH715AW-ABA:~$ ls /dev/sda5
/dev/sda5


JoeyArnold 09-29-2011 02:31 AM

Test Disk Results:


Code:

TestDisk 6.11, Data Recovery Utility, April 2009
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org

  TestDisk is free software, and
comes with ABSOLUTELY NO WARRANTY.

Select a media (use Arrow keys, then press Enter):
Disk /dev/sr0 - 212 MB / 202 MiB (RO) - HL-DT-ST RW/DVD GCC-4247N




Sudo shows more in Test Disk:

Code:

TestDisk 6.11, Data Recovery Utility, April 2009
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org

  TestDisk is free software, and
comes with ABSOLUTELY NO WARRANTY.

Select a media (use Arrow keys, then press Enter):
Disk /dev/sda - 120 GB / 111 GiB - ATA FUJITSU MHZ2120B
Disk /dev/sr0 - 212 MB / 202 MiB (RO) - HL-DT-ST RW/DVD GCC-4247N


JoeyArnold 09-29-2011 02:37 AM

test disk


Code:

Disk /dev/sda - 120 GB / 111 GiB - CHS 14594 255 63
    Partition              Start        End    Size in sectors
* Linux                    0  32 33 14410 244 42  231510016
P Linux Swap          14411  22 12 14593  65 48    2926576


snooly 09-29-2011 02:49 AM

Quote:

Originally Posted by JoeyArnold (Post 4485237)
Lost and Found

Code:

o@o-HP-Compaq-6910p-GH715AW-ABA:~$ sudo cat /lost+found
cat: /lost+found: Is a directory


you should have used:

sudo ls -la /lost+found

ls is for listing contents of directories and details of files
cat is for displaying contents of files in this case

snooly 09-29-2011 02:50 AM

Quote:

Originally Posted by JoeyArnold (Post 4485225)
when i typed in
Some of the files have generic names. Others have number or letter code names.

Do you think it would have a list of my lost data here somewhere?

It might be. Can you tell us what sort of data you are looking for? You lost about 60 gigs, right?

JoeyArnold 09-29-2011 02:54 AM

Code:

o@o-HP-Compaq-6910p-GH715AW-ABA:~$ sudo ls -la /lost+found
[sudo] password for o:
total 20
drwx------  2 root root 16384 2011-04-15 12:34 .
drwxr-xr-x 22 root root  4096 2011-09-16 22:50 ..
o@o-HP-Compaq-6910p-GH715AW-ABA:~$


snooly 09-29-2011 02:56 AM

Quote:

Originally Posted by JoeyArnold (Post 4485271)
Code:

o@o-HP-Compaq-6910p-GH715AW-ABA:~$ sudo ls -la /lost+found
[sudo] password for o:
total 20
drwx------  2 root root 16384 2011-04-15 12:34 .
drwxr-xr-x 22 root root  4096 2011-09-16 22:50 ..
o@o-HP-Compaq-6910p-GH715AW-ABA:~$


Nothing in lost+found, not looking good.

JoeyArnold 09-29-2011 02:59 AM

Quote:

Originally Posted by snooly (Post 4485267)
It might be. Can you tell us what sort of data you are looking for? You lost about 60 gigs, right?

My laptop says it has a 120 GB HD. Just one hard drive of course.

How big is the Ubuntu 10.04 or 11.10 operating system? Like 4 GBs or less?

My laptop said it had around 15 to 20 GBs of free space. I think it was exactly 18 GBs free.

Therefore I lost around, or less than, 80 GBs of videos, pictures, documents, files.

It was mostly videos: .mp4 mostly

JoeyArnold 09-29-2011 03:02 AM

Quote:

Originally Posted by snooly (Post 4485274)
Nothing in lost+found, not looking good.



My laptop rewrote itself. That is probably why it can't find anything.

I think it's because my laptop gave itself brand new partitions.

I think you would have to recover the previous partitions before finding the lost data from the lost partitions. It is like my laptop got reincarnated from a guy and into a girl. Of course it is not going to remember that she use to be a guy in her/his previous life.

JoeyArnold 09-29-2011 03:05 AM

test disk

Code:

Disk /dev/sda - 120 GB / 111 GiB - CHS 14594 255 63

The harddisk (120 GB / 111 GiB) seems too small! (< 176 GB / 164 GiB)
Check the harddisk size: HD jumpers settings, BIOS detection...

The following partition can't be recovered:
    Partition              Start        End    Size in sectors
  Linux                7065 209 57 21476 167  3  231510016










[ Continue ]
EXT4 Large file Sparse superblock Recover, 118 GB / 110 GiBo@o-HP-Compaq-6910p-GH715AW-ABA:~$


snooly 09-29-2011 03:06 AM

Quote:

Originally Posted by JoeyArnold (Post 4485278)
Therefore I lost around, or less than, 80 GBs of videos, pictures, documents, files.

It was mostly videos: .mp4 mostly

Did you make the videos yourself, or download them off the internet? If you downloaded them, it's probably time to start downloading them all again, and get an external USB drive to use to make backups.

As for the other files, you have to follow the basic rule: if you want to keep it, you need to have at least two copies, which must be on different disks. If you break this rule, you will sooner or later lose some precious data.

If a hard drive keeps working for 10 years with no problems, you're lucky. A hard drive can break at any time from the first time you start using it, with no warning. You cannot rely on one hard drive to keep your important data safe.

Imagine if pieces of paper regularly caught on fire for no reason and with no warning. People probably wouldn't use pen and paper to store important information. But once it's on a computer, a lot of people think their data is safe, despite computer hard drives being pretty much like pieces of paper that suddenly destroy themselves at any time without warning.

JoeyArnold 09-29-2011 03:07 AM

So is Disk /dev/sr0 my CD drive most likely?

snooly 09-29-2011 03:08 AM

Quote:

Originally Posted by JoeyArnold (Post 4485281)
My laptop rewrote itself. That is probably why it can't find anything.

I think it's because my laptop gave itself brand new partitions.

I think you would have to recover the previous partitions before finding the lost data from the lost partitions. It is like my laptop got reincarnated from a guy and into a girl. Of course it is not going to remember that she use to be a guy in her/his previous life.

I think you are correct. If it made new partitions and then put new filesystems on them, and put new data in those filesystems, you pretty much have no chance of getting back to how it was before. You'll just have to learn from this painful lesson and take more care to keep extra copies of important data in future.

JoeyArnold 09-29-2011 03:10 AM

Quote:

Originally Posted by snooly (Post 4485286)
Did you make the videos yourself, or download them off the internet? If you downloaded them, it's probably time to start downloading them all again, and get an external USB drive to use to make backups.

As for the other files, you have to follow the basic rule: if you want to keep it, you need to have at least two copies, which must be on different disks. If you break this rule, you will sooner or later lose some precious data.

If a hard drive keeps working for 10 years with no problems, you're lucky. A hard drive can break at any time from the first time you start using it, with no warning. You cannot rely on one hard drive to keep your important data safe.

Imagine if pieces of paper regularly caught on fire for no reason and with no warning. People probably wouldn't use pen and paper to store important information. But once it's on a computer, a lot of people think their data is safe, despite computer hard drives being pretty much like pieces of paper that suddenly destroy themselves at any time without warning.




Home videos I was making, things I was writing, things I was drawing.


All times are GMT -5. The time now is 06:02 AM.