[SOLVED] The best way to recover a Partition Table. (LVM)

I just did something really stupid I accidently had a typo in gdisk and changed the wrong hard drive partition table.
So before I do something really stupid I post here.
The hard drive is still mounted and I luckily have the output of the former partition table, this is it:
fdisk -l /dev/sdb
Festplatte /dev/sdb: 2,7 TiB, 3000558944256 Bytes, 732558336 Sektoren
Einheiten: Sektoren von 1 * 4096 = 4096 Bytes
Sektorgröße (logisch/physikalisch): 4096 Bytes / 4096 Bytes
E/A-Größe (minimal/optimal): 4096 Bytes / 4096 Bytes
Festplattenbezeichnungstyp: dos
Festplattenbezeichner: 0x00028375
Device Boot Start End Sectors Size Id Type
/dev/sdb1 256 366211193 366210938 1,4T 83 Linux
/dev/sdb2 366211194 732558335 366347142 1,4T 83 Linux
The partition table was a LVM partition table.
This is the current one:
gdisk -l /dev/sdb
GPT fdisk (gdisk) version 0.8.10
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Disk /dev/sdb: 732558336 sectors, 2.7 TiB
Logical sector size: 4096 bytes
Disk identifier (GUID): DA7956E1-B120-4F78-925A-B5DDE14E7C9C
Partition table holds up to 128 entries
First usable sector is 6, last usable sector is 732558330
Partitions will be aligned on 256-sector boundaries
Total free space is 250 sectors (1000.0 KiB)
Number Start (sector) End (sector) Size Code Name
1 256 131327 512.0 MiB EF00 EFI
2 131328 13238527 50.0 GiB 8E00 Arch
3 13238528 732558330 2.7 TiB 8300 EXT
I really hope someone can help me with that, I'm currently a total nerve wrack.
If its a more or less impossible task (well or there is no guarantee that it works) I will buy a new Drive tomorow to save the currently still mounted files.
Thank You!
[EDIT]
Forget about copying the file system isn't really accessible, I can open a few folders but everything in there are 0byte files
Last edited by theblackdog (2015-03-10 14:16:59)

So because no one gave me a answer so far (ok it's already pretty late and I was a bit imatient) I took the leap of faith and used fdisk to recreate the partition sheme,  so far everything seems to work.
There is only one thing that would interest me, as far as I know a GPT partition table is bigger than a dos partition table, how big is the risk that data got corrupted because of the bigger table?
I will mark the thread as solved after that.

Similar Messages

  • HT5554 how is the best way to recover deleted texts on an iPhone5s?

    I would like to know if there is a product or simply take to Apple?

    The best way and only way is to restore from your backup, if that backup included your text message.
    http://support.apple.com/kb/HT1766
    Apple can't recover your text for you.

  • Whats the best way to Change, Increase partition on Win side.

    I want to up grade to Windows 8 on my bootcamp partition which is 34GB now, I have 500GB free space on my Mac side. IF I understand what others have written,
    I will go into Disck utility and erase the bootcamp and then reinstall bootcamp and increase the partition of boot camp to 200GB. I already back up my mac data and the windows data separately, so I have that if I need it. So Is this the best way to repartition?  Or do I also need to erase and start over on my mac side also?  I have a iMac 2010, 16GB RAM, 1 TB HD, and been running boot camp since I bought it. I also use Parallels (recently upgraded to 10) to go back and forth between them.
       Thanks for any help.

    I just successfully installed Windows 8.1 Update 1 on BootCamp on Mac OS X Yosemite. Here is a step by step I just wrote, hope it helps y'all:
    How to successfully install Windows 8, or above, on Mac OS X Mavericks or above:
    Requirements:
    1- Windows OS ISO Image file
    2- An 8GBs USB Flash Drive
    3- A good Internet connection as you will need to download the Windows compatible drivers for your Mac
    Steps:
    1- Open up Disk Utility and create an additional partition for Windows formatted as ExFat. 100GBs, or above, is recommended as update to the operating system, as well as Apps requiere space on your HD or SSD [This step can be done during Mac OS X's installation process]
    2- Open up BootCamp Assistant
    3- Make sure only the 'Create a Windows 7 or later version install disk' is checked and your USB Flash Drive plugged in and click 'Continue'
    4- Click 'Choose' and select your Windows ISO Image file
    5- Select the USB Flash Drive you will be using during the installation process and click continue to confirm
    6- Once done, restart your Mac and hold down the 'alt/option' key on your keyboard to bring up the Boot Menu
    7- Select the USB Flash Drive named Windows, not the UEFI Boot
    8- Install Windows as you normally would
    * Remember to press and hold the 'alt/option' key, and select the Windows Partition, whenever the installation process requires your Mac to restart
    * http://msdn.microsoft.com/en-us/library/windows/apps/jj945423.aspx
    * http://windows.microsoft.com/en-us/windows-8/install-windows-on-mac

  • What the best way to create User defined table with ADDON purpose

    Hi folks, how are you ?
    I´m beginner in development to business one, and I m studying to develop ISV addons.
    But, during my exercises and analisys, I learned that have two ways to create tables and fields in business one. One way is throght by wizard in business one using Tools Menu > Configuration Tools > User Defined Tables >
    Obs: I ´m using Business One Patch Level 9.
    Other way, is create the tables and fields using DI API
    But, my question is. When I develop one addon, or one UDO form that uses one set of user defined tables or used defined fields that where created by the first way (by wizard in B1), how I deploy this in other business one installation ? The package process will ensure the creation of this tables in another enviroment or I must implement the creation of user defined tables using DI API so that this code is called during the installation?
    If in cases of addon develop I must use DI API to create user defined tables, How can I use my classes with this responsibility in package process ?
    Thanks my friends.

    Hi Renan,
    You just need to put your logic in to the startup of your application, after you've established your connection to the UI API and DI API. All this will be triggered in the constructor of your main class.
    namespace MyNamespace
    public class MyAddon
      bool runAddon = true;
      bool initialised = false;
      const string ADDON_NAME = "My Addon";
      public static void Main()
            MyAddon addOn = new MyAddon();
            if(runAddon)
                  System.Windows.Forms.Application.Run();
            else
             Application.Exit();
      public MyAddon()
            // Connect to SBO session for UI
            if(!SetApplication()) runAddon = false;
      private bool SetApplication()
            // Code goes in here to establish UI API and DI API connections
            // See SDK samples for examples
            // You should also define and filter the UI API events your addon will trap at this stage and create any menus
            // Call your routine to check if the required UDFs/UDTs exist on this company
            initialised = CheckInitialisation();
            if (!initialised)
               //  AddOn not yet intialised on this company so prompt the user to run the intialisation process
              int iResponse = app.MessageBox("The " + ADDON_NAME + " addon will now create all required fields and tables."
                                             + System.Environment.NewLine + System.Environment.NewLine
                                             + "WARNING: It is strongly recommended that all other users are logged out of this company "
                                             + "before running this process. Are you sure you wish to continue?", 2, "Yes", "No", "");
              if (iResponse == 1) initialised = InitialiseAddOn(); // Call your routine to create the objects
            return true;
    Kind Regards,
    Owen

  • What is the best way to recover a corrupted file from a failing Hard Drive?

    I have a 3TB WD internal drive that is starting to fail with Bad blocks. I noticed it when I had some write errors and so got a new disc as fast as possible to get the data off before it dies completely.
    However, some files are failing to be copied with the Finder.  What tools are best for trying to recover these mainly video files?  I have Tech Tool Pro but its utility seems aimed at finding accidently deleted files.  I seem to remember a utility from way back that would repeatedly try to read a back block and re constitute the file. 
    All suggestions are welcome!
    Thanks.

    Choose and use only a single background process to monitor health of a drive, they really are not safe to use multiple tools. And SoftRAID does its scan and checking in background during idle time for weak sectors - they are not really black/white but more xx tries to read/write.
    as I mentioned, and you fit the profile, DW is one trick pony and can be used when you need to mount or access files to recover and backup.
    Yes, DW will create a new directory. It has an advanced deep scan to scavenge for files.
    Sometimes you just need to use DW's Preview to see what the drive volume 'looks like" now and what it would be after a rebuild/create directory. but sometimes you just want Data Rescue 3. both are in the $95 range.
    Too often large backups, like 10 drives, are not well categorized or 'where is what."
    Clone of a drive means you can restore the volume... TM to keep versions. But I don't have the 200% faith in TM sets or backup.
    Sometimes a RAID6 is the ideal method for a large viideo catalogue or collection. And some people or businesses keep duplicate RAID6 sets, to mirror each other.
    I liken 3TB drive sometimes as putting too many or all the eggs in one basket.
    also, to keep any drive to 40% free which may sound wasteful, unless you consider the data' value.
    SoftRAID 4 could be useful to zero and test the drive. Or to to 'take over' the drive even. Then to build a mirror from it.  MPG recommends using it even in non-array use for some of those very reasons.
    choice now going forward: clone with Superduper / CCC / recovery with DR3 / and build the directory (or not) with DW 4.x.
    With externals sometimes the weak link is the case and interface or drive enclosure, plus the bridge if any (SATA native and none is my preference). And controllers, which may be needed.
    Instead of having to order a drive? always have spares and extras. Always have a clone and an extra that can be used to put into service. And order more.

  • What is the best way to recover stolen ipod

    i want all of my pictures back

    - If you previously turned on FIndMyiPod and wifi is on and connect go to iCloud: Find My iPhone, sign in and go to FIndMyiPhone. If the iPod has been restored it will never show up.
    - You can also wipe/erase the iPod and have to iPod play a sound via iCloud.
    - Change the passwords for all accounts used on the iPod and report to police
    - There is no way to prevent someone from restoring the iPod (it erases it) using it.
    - Apple will do nothing
    Reporting a lost or stolen Apple product
    - iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number
    To get photos, if they were taken by or saved to the iPod and you backed up the iPod after adding/taking the photos then resore an iOS device from that backup.

  • What is the best way to recover from an error which requires a reconnect (e.g. ORA-01033)?

    We use 11g with the OCI library.  A session pool was created for the server process (OCISessionPoolCreate), and a session was obtained in a thread (OCISessionGet).  Is it sufficient to call OCISessionRelease(...,OCI_SESSRLS_DROPSESS) in the thread, and then get a new session?  Or should the application call OCISessionPoolDestroy(...,OCI_SPD_FORCE), and then recreate the pool?

    Do the following:
    Copy the backup library package/folder to the Pictures folder on your new Mac. If you have any other libraries there move them to the Desktop first.
    Download and run iPhoto Library Upgrader 1.1 on the library to convert it to the new format.  The app will be in your Applications/Utilities folder.
    Launch iPhoto 9.5.1 and open the "converted" library.
    Now you can delete any libraries that you previously moved to the Desktop.

  • What's the best way to place images in table cells?

    I'm working on a basic tooling catalog/list using a table for all of the information.  One of the columns is for an image of the tool.  Is there a way to place each image in a cell and have it resized to fit the cell dimensions (including my text inset settings)?  I'm using CS4 and the images are all tiff files, although I also have psd files of each.  Any suggestions would be appreciated.

    Table cells don't adjust automatically except in the vertical direction when set to "at least" some dimension, and I suspect you don't really want that anyway. Keep in mind that column width is constant through the whole table, so fitting the cell to the largest image is going to give you a giant coumn width that isn't used for smaller product shots in the same table.
    What about making an image frame the size you want, and setting the fitting options to fit proportionally? Copy that frame and paste into the cell, then place the image in the frame.

  • What is the best way to load 2 seperate tables to a single matrix

    What I would like to do  is create a date sorted list of customer orders and purchase orders for a single item(part) and populate a single matrix.
    and did i mention quick...

    Hi!
    i suppose you sould create for example UNION query:
    SELECT docdate, cardname, 'purch', docnum FROM OPCH
    UNION
    SELECT docdate, cardname, 'order', docnum FROM OPOR
    ORDER BY 1
    Then execute oRS.DoQuery and populate your matrix inside a loop...
    propably, somebody can give you some more advices..
    hope it helps..

  • Best way to outer join a table that is doing a sub query

    RDBMS : 11.1.0.7.0
    Hello,
    What is the best way to outer join a table that is doing a sub query? This is a common scenario in EBS for the date tracked tables.
    SELECT papf.full_name, fu.description
      FROM fnd_user fu
          ,per_all_people_f papf
    WHERE fu.user_id = 1772
       AND fu.employee_id = papf.person_id(+)
       AND papf.effective_start_date = (SELECT MAX( per1.effective_start_date )
                                          FROM per_all_people_f per1
                                         WHERE per1.person_id = papf.person_id)Output:
    No output produced because the outer join cannot be done on the sub queryIn this case I did a query in the FROM clause. Is this my best option?
    SELECT papf.full_name, fu.description
      FROM fnd_user fu
          ,(SELECT full_name, person_id
              FROM per_all_people_f papf
             WHERE papf.effective_start_date = (SELECT MAX( per1.effective_start_date )
                                                  FROM per_all_people_f per1
                                                 WHERE per1.person_id = papf.person_id)) papf
    WHERE fu.user_id = 1772
       AND fu.employee_id = papf.person_id(+)Output:
    FULL_NAME     DESCRIPTION
    {null}            John DoeThanks,
    --Johnnie                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi,
    BrendanP wrote:
    ... See the adjacent thread for the other with Row_Number().Do you mean {message:id=10564772} ? Which threads are adjacent is always changing. Post a link.
    I think RANK suits the requirements better than ROW_NUMBER:
    WITH    all_matches     AS
         SELECT  papf.full_name
         ,      fu.description
         ,     RANK () OVER ( PARTITION BY  papf.person_id
                               ORDER BY          papf.effective_start_date     DESC
                        )           AS r_num
         FROM             fnd_user             fu
         LEFT OUTER JOIN      per_all_people_f  papf  ON  fu.employee_id  = papf.person_id
         WHERE   fu.user_id  = 1772
    SELECT     full_name
    ,     description
    FROM     all_matches
    WHERE     r_num     = 1
    Johnnie: I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    See the forum FAQ {message:id=9360002}

  • Best way to deal with Mutating table exception with Row Level Triggers

    Hello,
    It seems to be that the best way to deal with Mutating Table exception(s) is to have to put all the trigger code in a package & use it in conjunction with a Statement level trigger .
    This sounds quite cumbersome to me . I wonder is there any alternative to dealing with Mutating table exceptions ?
    With Regards

    AskTom has a good article about this,
    http://asktom.oracle.com/tkyte/Mutate/index.html

  • My Macbook pro was stolen 09/12, the police just returned it to me. I want to remove all the data and start over. Format the drive's etc. I have windows 7 on 1 partion and mountain lion OSX on the apple partition. How is the best way to do this?

    My Macbook pro was stolen 09/12, the police just returned it to me. I want to remove all the data and start over. Format the drive's etc. I have windows 7 on 1 partion and mountain lion OSX on the apple partition. How is the best way to do this?

    Have a look here...
    what-to-do-when-your-hard-drive-is-full.html

  • What is the best way to partitioning Macbook Air 13" 2012 solid state drive

    What is the best way to partitioning Macbook Air 13" 2012 solid state drive.

    Tech,
    You don't provide enough information onto which anyone could reasonably formulate an answer.
    As mentioned, you don't indicate the circumstances that would warrant consideration of multiple partitions. Moreover, you also don't indoicate the size of the SSD in question.
    Like Fred said, ordinarily you leave it alone as one. Some people like to keep data and the OS/apps separate, but it is for specific reasons.

  • Should the admin/user folder and all of its sub folders be moved to the hdd or just parts of it? (eg. picture, movies, documents)  What is the best way to go about doing this.  Also should a 2t hdd be partitioned.

    iMac with 256ssd and 2t hdd. Should the admin/user folder and all of its sub folders be moved to the hdd or just parts of it? (eg. picture, movies, documents)  What is the best way to go about doing this.  Also should a 2t hdd be partitioned.

    Yes, you can move your user directories to the HD and keep your OSX and Applications on the SSD drive.
    Whether you partition your HD or not depends on how much data you have and how you propose to use your HD.
    Are you planning to use your iMac as a Time Machine backup volume? If so, partition it off.
    Do you have huge data files, eg video, music, photos?
    How much of your 2tb drive will be "free" once it is loaded with all your data?
    A little more information is required before the optimal configuration can be recommended for your use.

  • Videos emailed from my iPhone4 won't open or play on the recipients' computer.  Is this a quicktime/windows media player issue?   What is the best way to solve this ?  THANKS!

    Videos emailed from my iPhone4 won't open or play on the recipients' computer.  Is this a quicktime/windows media player issue?   What is the best way to solve this ?  THANKS!

    Is the recipient using QuickTime on their PC to view the video?
    What is the error message provided when trying to open/view the video?

Maybe you are looking for

  • Communication problem, deskjet 920c

    I received a note for a repair to a communications problem for my printer.  When I tried to download it, I got to a "dot4 scrubber"  which stalled everything.   I had to reboot my computer to get rid of the note. 

  • Sales Order value updating in the Internal Order Revenue Planning

    Dear All,  We have created an Internal Order and entered the planned value of the Revenue & Costs.When we create the Sales Order ,the Planned Revenue value of the Internal Order is updating by the Sales Order Value,but as per the client requirement ,

  • Qosmio G30 - Question about the Raid driver

    Do i actually need this driver to use RAID? If its set in BIOS, what does the driver actually do? apart from give you health stats? Cheers

  • Getting ORA-01031 while connect target

    Hi, I'm trying to perform a rman duplictate. I've created the orapwd file and setted the remote_login_passwordfile parameter as "EXCLUSIVE". I also have configured the connection to the target database on the tnsnames.ora file I'm getting this error:

  • For videora

    Is it true to use SP/320x240/768kbps Stereo/128kbps