Recovering broken filesystems

Before I ask my question, here's what the setup involved is:
I have one SSD, which holds / and /boot (not LVMed), and one 2TB HDD that held /var, /tmp, swap, and 2 data partitions.I had run out of space, so I bought 2 more 2TB hard drives. I'd planned to make a degraded RAID5 out of them, put an LVM over top of it with partitions matching my existing ones, copy data over, then wipe the original disk and add it to the array.
Now, what happened:
Basically, I wasn't paying as much attention as I should have when I used fdisk. I knew what the 2TB drive's letter was before I added the two new ones, but of course I didn't consider that adding disks would change it. So, I formatted 2 disks, 1 of the new ones plus the old one, with a full-disk partition with the type set to Linux RAID auto-detect. Before I wrote anything else to them, though, I realized I'd reformatted the wrong disk. So, I formatted it back to an LVM partition, and used /etc/lvm/archive to recreate the physical volume. LVM figured it out and was happy.
Here's where it gets a bit weird. Since LVM configurations are backed up before, not after, a new command is run, the last and largest of the partitions wasn't recreated by this. That was fine, though, the guide I was using ( http://insights.oetiker.ch/linux/lvm/ ) noted that, and had a way to restore that last partition. Since the command creating the backup of the configuration is in the backup, I could just run that with an extra flag. Well, that went fine too, I thought. LVM happily restored, everything was good. But, when I tried to get device-mapper to see them, the other 4 showed up in /dev/mapper, but this 5th one failed with an error about being too large for the target.
But, I have (relatively) recent backups of that one, so I didn't concern myself with it. Restoring /var and the other data volume was my primary concern. So, I kept going. But even though LVM knew about them and device-mapper saw them, something was wrong with those partitions, too. I couldn't mount or fsck them. When I tried, I got a bad superblock/bad magic number error. So I tried one of the backup superblock locations. No dice. None of the partitions would work. Dumpe2fs didn't even see the superblocks.
I thought that was especially strange, because no data apart from one mdadm partition's metadata should have been written. They should still be there, and since I'd "successfully" restored the volumes, their filesystems should be intact.
From there I wasn't sure where to go, for a while. Finally, I took a look at the raw partitions. For example, cat /dev/G2/var | less. I could see my data, and in fact I could see text. Text files still show up undamaged. So why weren't things working?
Next I looked at the volumes in hexdump. From here I'm less sure that my approach was right, because I don't know that much about the filesystems, but:
I looked at the working partitions on another, similarly formatted computer (var, tmp, and a data volumes on a HDD, swap on its own non-LVMed partition, and / and /boot on the SSD). For example, comparing the tmp volumes. When I did hexdump -c -v on the working one, it began with:
0000000 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0
0000010 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0
The broken one, however, starts:
0000000 \0 201 \0 \0 \0 201 001 \0 \0 201 002 \0 \0 201 003 \0
0000010 \0 201 004 \0 \0 201 \f \0 \0 201 \r \0 \0 \0 \0 \0
I wasn't sure what was going on there, but when I looked further down in the working one, I saw something that looked similar...
0002000 002 200 \0 \0 002 200 001 \0 002 200 002 \0 002 200 003 \0
0002010 002 200 004 \0 002 200 \f \0 002 200 \r \0 002 200 030 \0
Similar things show up periodically throughout both volumes, so it's definitely filesystem related. Either inodes or superblock backups, right? (As I said, I don't know enough about the FSes to be confident about anything I say here). Either way, it looks like either when the LVM partition was recreated, or when the volumes were restored, things got shifted by some number of bytes from where they originally were.
So, my questions: Am I right? Am I just totally off base here? Is there anything I can do to recover my data?
I've spent the last couple days trying to get things fixed, so at this point even just a fresh pair of eyes on the problem would really help.

Hi, JoshHardman. Welcome to the Nokia Support Discussions! Just to verify, did you create a backup file before this happened? Which files are you very interested in saving or recovering? Your contacts and paid apps are in sync with your Microsoft account while your media files can be synced to your One Drive account, aside from your memory card.
Have you tried to press and hold the volume down and power keys until it vibrates? This should get your phone to reboot and respond properly again.
Let us know the outcome.

Similar Messages

  • [SOLVED] Filesystem check failed

    Hi all,
    i've just upgraded the system, but when rebooting it gives me that error on sda5 (the linux partition) and suggests me to repair manually and reboot! what should i repair? can you please give me any suggestion?
    Thanks in advance
    Last edited by virusso80 (2010-01-15 15:48:04)

    guisacouto wrote:
    it seems like today is broken filesystem day.. LOL
    I had this problem too in my laptop and that fsck solved it very well!
    unfortunatly I cannot say the same thing about the external hard drive that is connected to the desktop which has a fat32 filesystem corrupted.. I'm trying to find some courage to format it, because testdisk can only recover the files with some default name.. thats not good enough because 320GB of music, movies and documents isnt very usefull without the real names.. x| I guess this is just not my day 
    regards!
    There's a /sbin/fsck.vfat as well.

  • Stuck iMac during 10.6.2 to 10.6.8 OS combo update

    Dear community,
    I recently had to wipe out an iMac HDD and reinstall the OS. The install DVD contained OS X Snow Leopard 10.6.2, and I wished to upgrade to Mavericks (10.9) by doing an intermediate update to 10.6.8, as required by the new OS installer.
    After a successful disk erase & OS installation from DVD, I tried to update the OS by using the 10.6.8 Combo update http://support.apple.com/kb/dl1399, which was located on an external hard drive. Just before finishing the update, the screen went black and there was no way to recover the system. Fan and internal HDD were both spinning, so the system was stuck for an unknown reason.
    After waiting for 15 minutes, I decided to switch off the computer manually with the power button, and since then the iMac won't boot any more. Here's a list of what I tried:
    - Boot from cd ("C" during startup): impossible, another disc is currently in the drive, and can't eject it
    - Safe mode: won't load in 30 minutes, I guess it won't load at all
    - Reset NVRAM: no effect
    - Single user mode:
          - "fsck -fy": no effect, volume is OK;
          - reinstalling the updates from within su mode "softwareupdate -i -a" (hoping to reinstall it and get rid of the possible crap): impossible, there is no network connection.
    Any help would be very welcome

    Thanks for the hint, I managed to eject the disc holding the mouse click and inserted the OS DVD.
    This doesn't solve the problem though, I can't boot from it (holding "C" has no effect, nor has the "Alt" key).
    Reading the verbose boot output, things seem pretty bad:
    jnl: unknown-dev replay_journal: from some_decimal: to some_other_decimal (joffset some_hexadecimal)
    jnl: unknown-dev replay_journal done.
    Maybe broken filesystem, but I can't explain why external boot mode doesn't work…

  • Hyperion Essbase Error: 1002097 Unable to load database [PlanType1]

    Hello,
    I am running Hyperion Essbase 9.2.0.3 version. This has happened 3 times now since last 2 weeks. I had to restore the APP folder from previous backup.
    The message that i see is Error: 1002097 Unable to load database [PlanType1]
    I have searched google and no luck. Anyone knows how to fix this or why we get this message. I don't want to restore from backup everytime.
    Thanks
    Azmat Bhatti

    I think you have currepted backup.
    Try run essmsh script to recover broken block's.
    Backups - Files still locked after beginarchive

  • Cryptsetup: Swap encryption with supend-to-disk doesn't work

    Hello Community,
    i'm trying to get swap encryption with suspend-to-disk support to a working state.
    On my system only the /home partition is encrypted with cryptsetup-LUKS.
    I'm using the howto on "Using a swap file" (with /home/swapfile as swap file) in the wiki: https://wiki.archlinux.org/index.php/Dm … sk_support
    I followed exactly the given instructions:
    From /etc/mkinitcpio.conf
    HOOKS="base udev autodetect encrypt block resume filesystems keymap fsck"
    From /etc/default/grub
    GRUB_CMDLINE_LINUX="pcie_aspm=force pcie_aspm.policy=powersave pcie_port=native ipv6.disable=1 init=/usr/lib/systemd/systemd resume=/dev/mapper/crypthome resume_offset=16721572"
    From /etc/fstab:
    /home/swapfile none swap defaults 0 0
    The swapfile is working. Suspend-to-disk also works. But when resuming, I always get:
    ERROR: failed to open encryption mapping
    The device UUID=... is not a LUKS volume and the crypto= parameter was not specified
    running hook [resume]
    Waiting 10 seconds for /dev/mapper/crypthome
    ERROR: resume: hibernation device /dev/mapper/crypthome not found
    Then the system recovers the filesystem of / and later after the passphrase input of /dev/mapper/home it is forced to recover the filesystem of /home.
    Shouldn't I get a passphrase input when running the [resume] hook?
    Where is the problem I have missed?
    Thanks in advance!
    Last edited by indianahorst (2014-01-23 17:39:31)

    ball wrote:It seems that you've specified your home partition for the resume parameter, that is wrong. It should be the swap partition: https://wiki.archlinux.org/index.php/Su … parameters
    No. Have you read my posting completely?
    I don't use a swap partition.  I'm using a Swapfile on my encrypted home partition. See the link in the first posting and go to "Using a swap file".

  • Cannot enter Service Utilities

    All I can suggest is to clean the contacts on the flex connector for that head and clean the contacts that mate on the printhead.  If that does not work you may hve to try another printhead.

    Have you performed all the steps in the service manual prior to attempting the broken bad recovery? Solution: Try the following:
    ● Press Down + Cancel to see which cartridges have a broken bag. Remove the affected cartridges,
    shake each one three times within 2 seconds through a distance of about 40 cm, and check whether
    the cartridge air tower is contaminated with ink. If at least one cartridge is contaminated, replace
    the Ink Supply Tubes and Trailing Cable Ink Supply Tubes and Trailing Cable on page 256.
    NOTE: If the Ink Supply Tubes are to be replaced, the Ink Cartridges need to be checked
    beforehand to see if they are capable of purging the new tubes. If they are not, new Ink Cartridges
    must also be sent with the parts to be replaced. To check the Ink Cartridges, see Check ink
    supplies on page 91.● If no cartridge seems contaminated, follow the broken bag recovery procedure for more information
    Recover broken bag on page 92. If no broken parts, make sure you remove all ink cartridges and printheads before trying to enter Service Utilities.

  • Problem with Xpress browser in Asha 202.

    Xpress browser in my Asha 202 keeps failing. After clicking and loading 3-4 times it shows "browser can't load " . There is no problem with my network because same problem occured about a 20 times now.
    And my Nokia Mail App isn't working. Its there in the Menu. But when i select it nothing happens. It acts like a disabled option. What to do?

    Your symptoms sound like a broken filesystem which has to be re-created. Because a Nokia Series 40 does not allow a hard reset like Nokia Symbian phones, all you have is that tool. Please, find a acquaintance with a Windows 7 computer.

  • Update from build 9860 to 9879 breaks permissions

    After windows 10 applied the update from Build 9860 to 9879, I have experienced a host of problems that appear to be due to broken filesystem permissions caused by the update process itself -:
    # Onedrive keeps crashing when asking to configure itself
    # Modern UI apps all fail to load with the "application does not support the contract specified" or stating Windows cannot find ""
    Trying to fix the filesystem permissions also seems to make things worse -:
    # You cannot change/modify permissions at all on C:\Program Files
    # Trying to restore the C:\Users permissions as suggested in a Miscrosoft document to fix Modern UI apps causes even more permission problems, such as Internet explorer not functioning. I have had to give my user account explicit full control on the
    folder to even be able to use the PC at all.
     It would be good if Microsoft could provide a "FixIt" to correctly set the permissions on these locations, but more importantly fixed the update process to not break them in the first place.

    I did a reinstall which was working OK - until I installed the visual studio c++ runtime(s). I have installed the 2008, 2010, 2012 and 2013 ones but am unsure which has caused this breakage but am now getting the same contract messages and am
    unable to launch any metro apps again?

  • Success full database EXPDP means healthy database?

    Hi,
    Does an full export with expdp means all database data is ok ?
    I had to recover a filesystem with e2fsck and i've successfully open the database without any warnings... after that i made a full export of the database.... no warnings about bad blocks or anything like that... Does this mean that the database is ok?
    Regards
    Ricardo

    See MOS Note: 836658.1
    Also, there are obscure bugs and not-bugs one may run into at times. Not-bug 6897520 is kinda interesting. Some bugs are dependent on features, platform and so forth, like doc 794705.1.
    It may be possible at times to export a messed up database - in fact, there have been situations in the past where support might tell you to set undocumented flags to get a corrupted database going, then immediately export it so you can create a new uncorrupted database.
    Perhaps the best way to show a database isn't corrupted is to recover a physical backup elsewhere. But even that can be fooled, or hit false-positive corruption bugs.

  • HT1688 I have a damaged I-Phone and I need the contents of my calendar off of it. I did not have Mobile me at the time.  Can I swap out the sim card from the broken phone to a new phone and recover this calendar?

    I have an older I-Phone (3G) that for some reason the body of the phone has split in two.  This phone was a business phone and it had a lot of important information on it. I have a second phone that is also a 3G.  On the broken phone there is a lot of important information that I need in my calendar. Im not worried about anything else but the calendar.  I didn't have the Mobile Me account at that time or I would be having this problem. Does anybody know if I can ust switch out the sim cards. I just need to recover the old calendar, so im hoping that the calendar will transfer when I switch the sim card into the good 3G. If that doesn't work does anybody know of anyway that I can retrieve this information off of this phone?

    Nothing is stored on the sim card on an iPhone.  If you backed up to your computer the backup will contain your calendar events.  Otherwise, if your phone isn't functioning there is no way to back up or extract your calendar at this point.

  • Can i recover the data from a broken XD card?

    Can i recover the data from a broken XD card? any software Power Data Recovery. but it failed

    Accidentally deleted data from XD card, don't panic. I suggest an advance and professional XD card recovery software, you can use third-party software Kernel for Digital Media Recovery Tool. It can quickly restore all lost data from XD card. This software
    also supports all kinds of multimedia files such as SD Card (Secure Digital), Multi Media Card (MMC), Compact Flash (CF), XD Card, Micro SD card, , Memory Stick. To more details kindly read this post : http://digitalmediarecovery.blogspot.com/2013/12/retrieve-lost-data-from-memory-card.html

  • Trying to Recover Data from broken Hard Drive - Device Wont Show in Finder

    I just had the hard drive replaced in my intel iMac (the old one isn't working properly). The apple store folks told me they would not do any data recovery off the old drive, but suggested I might be able to get a SATA to USB adapter and plug the old drive in the computer.
    The first time I plugged the old hard drive it showed up in the finder and I began transferring the old file. 6 GB into it the transfer stopped and the the old hard drive disappeared from the finder. Now the drive wont appear in the finder HOWEVER when I unplug it I get the "Device Removal" error.
    A little about my broken drive:
    Its a Western Digital 320 GB. Its not making any clicking sounds or anything, which makes me think it might just be the circuit board which is replaceable. But I don't want to waste $50 on a new circuit board if thats not the problem.
    Any suggestions?

    Basics of File Recovery
    If you stop using the drive it's possible to recover deleted files that have not been overwritten by using recovery software such as Data Rescue II, File Salvage or TechTool Pro.  Each of the preceding come on bootable CDs to enable usage without risk of writing more data to the hard drive.  Two free alternatives are Disk Drill and TestDisk.  Look for them and demos at MacUpdate or CNET Downloads.
    The longer the hard drive remains in use and data are written to it, the greater the risk your deleted files will be overwritten.
    Also visit The XLab FAQs and read the FAQ on Data Recovery.

  • TS1373 Can a broken iPod's data be recovered?

    My iPod has a sad iPod icon. The Genius bar told me that the iPod probably could not be fixed and that I should buy a new one. That is fine with me, but is there any way to get the music off of this broken iPod? Do iPods have removable hard drives like computers? My laptop with all of my music broke and the hard drive is too damaged to recover any of my data. The iPod was the only other place I had my music. Please tell me there is something I can do! Thanks.

    I don't think the two are interchangeable like that. You're lucky to get a discount on the iPod. However, that's up to the store/Apple.
    Get whatever fits your needs.

  • How do i recover music from old computer. its broken and i did not have the music backed up on any other hard drive.

    how do i recover music from old computer. its broken and i did not have the music backed up on any other hard drive.

    OK, well, seems like you need to lose the attitude if you really want help.
    There are several ways to get music from iTunes on your computer to your device.
    The easiest is to sync directly with iTunes by connecting your device to your computer, selecting the device, setting up your Profile pages, and then clicking the Sync button to sync.
    First you want to open iTunes and under Preferences>Devices, make sure that you are not syncing automatically:
    Make sure that box is checked.
    Then follow the instructions in the article below for either your computer or your Mac to set up your Profile pages and to sync your music via iTunes:
    WINDOWS IOS SYNC ITUNES 11
    iTunes 11 for Mac: Set up syncing for iPod, iPhone, or iPad
    You can also directly download music from iTunes to your device by going to the iTunes icon, going to "Purchased", and selecting the items that are not on your device that show a little cloud next to them. Click on the cloud and the music will download.
    You might also want to familiarize yourself with your iPhone 5 manual. It has all the answers you cannot find on Google or by trying to just do it by brute force. If you would take a little time to read about your device and how to use it, you might not be so frustruated and unnecessarily snarky to people who are trying to help:
    http://manuals.info.apple.com/MANUALS/1000/MA1565/en_US/iphone_user_guide.pdf
    Best of luck,
    GB

  • Solaris cluster 3.2 with zfs failover filesystem failed. How can I recover?

    Hi all,
    I have just install and configure Solaris cluster 3.2U3 using zfs for both of root filesystem and shared storage file system.
    This cluster operate clearly. Today, I can not see the zpool for shared storage. I can see the storage volume in the output of format command.
    So all my resources change to offline status. and my application is failed.
    How can I recover this cluster??????
    is there any body can help me :(

    Have you used a SUNW.HAStoragePlus (HASP) resource to control your zpool? If not, the zpool is probably needs importing. That is what the HASP resource would do for you. You would also need a dependency from your application on the HASP resource to ensure that your application does not try to start up before the storage is avaialable.
    Regards,
    Tim
    ---

Maybe you are looking for