Recover formatted hard drive?

Discussion in 'Wii U - Hacking & Homebrew' started by steven, Jan 1, 2013.

Jan 1, 2013

Recover formatted hard drive? by steven at 11:04 PM (2,465 Views / 0 Likes) 26 replies

  1. SpaceJump

    Member SpaceJump Where's my new 2D-Metroid?

    Joined:
    Aug 18, 2005
    Messages:
    3,496
    Location:
    Zebes
    Country:
    Germany
    Do I understand correctly that it's possible to not have the Wii U ask for formating? I have a 2TB HDD with 2 partitions (1 wbfs, 1 FAT32 for WiiMC).
     


  2. fatcatfan

    Newcomer fatcatfan Member

    Joined:
    Nov 8, 2009
    Messages:
    11
    Country:
    United States
    Doh! I wish I'd caught that before I spent yesterday evening recompiling kernel to re-enable IDE_TASK_IOCTL for hdparm.

    Based on his previous tests, maybe another solution is a GPT'd drive with the backup table zeroed out? Using a hybrid MBR so unmodified usb loaders can find the partitions. Then it's really a matter of how different OSes respond to that when the drive is plugged into a PC. Hopefully none automatically repair/rewrite the backup GPT when the drive is connected. (http://www.rodsbooks.com/gdisk/hybrid.html#reactions)

    Sorry, I know these theorizing posts don't help anything without some test to prove it one way or another. These I know I can easily test tonight without having to recompile kernel. I'm hoping to find a "set once and forget about it" solution to use a HDD only for backup with the vWii while eliminating the formatting prompt, which can be used right now. It's only a matter of time before my kids accidentally format the drive when prompted, like steven here, and constantly having to plug and unplug the drive reduces the convenience of having it in the first place.
     
  3. Cyan

    Global Moderator Cyan GBATemp's lurking knight

    Joined:
    Oct 27, 2002
    Messages:
    12,514
    Location:
    Engine room, learning
    Country:
    France
    GPT is not compatible with all computers/OS (Windown XP doesn't work with GPT), so forcing GPT for users is not a good solution either.

    Replacing the partition table signature from 0x55AA to 0x55AB is currently working fine (except for WBFS partitions and EmuNAND on USB).
    But I don't like the idea to write the sector 0 on user's HDD. I don't want to be blamed for lost data.
     
  4. fatcatfan

    Newcomer fatcatfan Member

    Joined:
    Nov 8, 2009
    Messages:
    11
    Country:
    United States
    I absolutely agree either solution (yours or mine) involves something of a risky hack and isn't for everyone. I just want it to work for me :) But:

    XP 64-bit can read GPT. XP 32-bit can read the hybrid, GPT protective MBR used by BootCamp for dual-booting Windows on a Mac.
    http://msdn.microsoft.com/en-us/library/windows/hardware/gg463525.aspx

    For a < 2 TB drive with only 1 or 2 necessary PC / vWii accessible partitions (as would likely be the case for my intended usage) the hybrid MBR can exactly match the GPT in number and size of partitions.
     
  5. fatcatfan

    Newcomer fatcatfan Member

    Joined:
    Nov 8, 2009
    Messages:
    11
    Country:
    United States
    This is not working for me on a flash drive. I still get prompted to format when the Wii U restarts.

    Zeroing out the backup GPT also didn't work for me; still got the Wii U format prompt. Perhaps what KDH saw before was a result of the HPA... the location of the backup GPT specified in the primary GPT would have been beyond the limits of drive, in the HPA.
     
  6. DeadMan

    Newcomer DeadMan Member

    Joined:
    Dec 19, 2012
    Messages:
    25
    Location:
    Ekaterinburg
    Country:
    Russia
    last day's i use USB HDD with 55AB in last two bytes in sector 0 (MBR) and don't see any prompt. In my test, WiiU check only this bytes, and if it's 55AA it ask about format.
    I fill all space of my USB flash with zero byte, insert it in WiiU and don't get prompt about format. After that i change last two bytes of the sector 0 to 55AA, insert USB flash to WiiU and now i got the prompt. WiiU check only this signature, i think
     
  7. fatcatfan

    Newcomer fatcatfan Member

    Joined:
    Nov 8, 2009
    Messages:
    11
    Country:
    United States
    It's working for me now. I must have been mistaken. Something else I was doing may have been replacing the correct signature before I moved the flash to the WiiU.
     

Share This Page