Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: Cannot see files in Natulis (are they wiped out?)

  1. #1
    Join Date
    Aug 2013
    Beans
    3,106

    Cannot see files in Natulis (are they wiped out?)

    Ok, this is very strange. I have Ubuntu 12.04 on an external hard drive and yesterday I booted it up and was running dxdiag.exe in Wine just for the heck of it. The resolution was kind of screwed up so I rebooted and got the "grub rescue" screen. So I booted up Ubuntu 13.04 (in the internal drive of the same computer) and attached the drive, it didn't mount and blkid showed nothing. fdisk -l showed the drive and the partitions but attempted to mount them resulted in an error which says "unknown filesystem". I started gparted and it couldn't detect the drive either.

    So I ran fsck on each partitions on the drive, it reported a lot of inode errors and offered to fix them, I press yes all the way and now the file system appeared to be restored. So I mount sdb1 (where Ubuntu 12.04's boot partition) and reinstalled grub and then rebooted with the drive attached. But then I got to a grub screen with a prompt instead of Ubuntu 12.04. So I booted into 13.04 again and attached the external drive. All partitions mounted but they appear to be empty in Nautilus, however running gparted showed that the partitions are populated with data.

    What has happened? Are there still data in those partitions or have they been wiped out? If they are still there how can I access them and boot the drive again? Thanks

    fdisk output
    Code:
    Partition table entries are not in disk order
    
    Disk /dev/sdb: 320.1 GB, 320072932352 bytes
    255 heads, 63 sectors/track, 38913 cylinders, total 625142446 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x0006b6bf
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1   *        2048    41945407    20971680   83  Linux
    /dev/sdb2        41947134   415971327   187012097    5  Extended
    /dev/sdb5        41947136   325720063   141886464   83  Linux
    /dev/sdb6       325722112   332015615     3146752   82  Linux swap / Solaris
    /dev/sdb7       332017664   363675647    15828992   83  Linux
    /dev/sdb8       363677696   415971327    26146816   83  Linux
    blkid output

    Code:
    /dev/sdb1: LABEL="ubu1204" UUID="211934fe-e4d8-49aa-b623-9552dec61563" TYPE="ext4" 
    /dev/sdb5: LABEL="ubu1204_home" UUID="bc6ec861-3289-4351-8663-aa71d5a568ca" TYPE="ext4" 
    /dev/sdb6: UUID="9ca2b28f-6052-4091-a97f-f89b0712227c" TYPE="swap" 
    /dev/sdb7: UUID="424769e1-e0a2-4b35-9875-1a66e963f3b7" TYPE="ext4" 
    /dev/sdb8: UUID="d956ffb6-eac3-43eb-8773-975795cc1a0d" TYPE="ext4"


    P.S. I have the whole thing cloned so I could restore it, but I want some idea about what happened and the proper way to fix this kind of problems.

    p.p.s I tried to upload a screenshot from gparted but somehow I couldn't. Basically I can't see anything unusal, it showed sdb1 and sdb5 with the correct label and format and the amount of data.
    Last edited by monkeybrain20122; August 17th, 2013 at 04:22 AM.

  2. #2
    Join Date
    Aug 2013
    Beans
    3,106

    Re: Cannot see files in Natulis (are they wiped out?)

    Update: Just mounted sdb5 and cd into it and run ls, it shows nothing other than lost+found. But gparted showed that it has 135 G of data??!!

  3. #3
    Join Date
    Aug 2009
    Location
    Makati City, Philippines
    Beans
    2,270
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Cannot see files in Natulis (are they wiped out?)

    Any files in the lost+found? Some files that were recovered/repaired would be there.
    Also (sorry, it may seem obvious) have you tried showing hidden files?

  4. #4
    Join Date
    Aug 2013
    Beans
    3,106

    Re: Cannot see files in Natulis (are they wiped out?)

    Hi,

    Yes, I have tried show hidden file and lost+found showed up (it shouldn't be hidden) and I have no way to access its content, but it seems that you are right that the files maybe inside because if I right click Nautilus and choose properties it reported 97G of used space which is about the same as gparted (typo in first post 135G is the total)

  5. #5
    Join Date
    Dec 2009
    Location
    Fareham, UK
    Beans
    2,057
    Distro
    Ubuntu

    Re: Cannot see files in Natulis (are they wiped out?)

    Hi, have you thought about using Testdisk to recover the partition table? It is in the repo's.

    See here for more info. http://www.cgsecurity.org/wiki/TestDisk

  6. #6
    Join Date
    Aug 2013
    Beans
    3,106

    Re: Cannot see files in Natulis (are they wiped out?)

    The drive may be corrupted or damaged. I have repartitioned it with gparted and tried a clean install of 12.04 with / on sdb1 and /home on sdb5. Before the installation I formatted both as ext4 and everything seemed to be in order (ran fsck and reported clean) Then ran the installer and it either aborted complaining that device not found (something like that) if I chose to format the partition at installation, or stuck in "copying installed packages" forever if I chose not to format. After the aborted attempt the drive would become unreadable, gparted indicated that sdb1 and sdb5 have unknown file system.
    Ran fsck on /dev/sdb1 and I got these massive errors (just the begining)

    Code:
    Superblock invalid, trying backup blocks...
    /dev/sdb1 was not cleanly unmounted, check forced.
    Pass 1: Checking inodes, blocks, and sizes
    Pass 2: Checking directory structure
    Pass 3: Checking directory connectivity
    Pass 4: Checking reference counts
    Pass 5: Checking group summary information
    Block bitmap differences:  -(65536--67318) ... a whole lot more
    Hardware problem?
    Last edited by monkeybrain20122; August 17th, 2013 at 12:14 PM.

  7. #7
    Join Date
    Aug 2013
    Beans
    3,106

    Re: Cannot see files in Natulis (are they wiped out?)

    Quote Originally Posted by westie457 View Post
    Hi, have you thought about using Testdisk to recover the partition table? It is in the repo's.

    See here for more info. http://www.cgsecurity.org/wiki/TestDisk
    Hi, thanks for the suggestion. will check it out.

  8. #8
    Join Date
    Dec 2009
    Location
    Fareham, UK
    Beans
    2,057
    Distro
    Ubuntu

    Re: Cannot see files in Natulis (are they wiped out?)

    Testdisk has rescued complete hard -drives for me in the past. Corrupted partitions and accidentally wiped drives.

  9. #9
    Join Date
    Aug 2013
    Beans
    3,106

    Re: Cannot see files in Natulis (are they wiped out?)

    Quote Originally Posted by westie457 View Post
    Testdisk has rescued complete hard -drives for me in the past. Corrupted partitions and accidentally wiped drives.
    Hi, I downloaded testdisk and tried to run it but the script won't start

    Here are the commands and the outputs

    Code:
    $ cd Desktop/testdisk-6.14
    user@raring:~/Desktop/testdisk-6.14$ sudo testdisk_static
    [sudo] password for user: 
    sudo: testdisk_static: command not found
    user@raring:~/Desktop/testdisk-6.14$ sudo ./testdisk_static
    ./testdisk_static: 1: ./testdisk_static: Syntax error: "&" unexpected
    Any idea what went wrong? Thanks.

  10. #10
    Join Date
    Dec 2009
    Location
    Fareham, UK
    Beans
    2,057
    Distro
    Ubuntu

    Re: Cannot see files in Natulis (are they wiped out?)

    Yes, the command is wrong. Try
    Code:
    sudo testdisk

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •