Announcement

Collapse
No announcement yet.

Help with HDD. Is it a Partitioning Problem?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Qqmike
    replied
    I need to put this down for awhile. Two possible tasks remain:
    google like the dickens and try to locate more information;
    and/or
    try to investigate deeper, at the level that starman talks about, to try to track down exactly what is on that disk.

    This morning, I wrote this down to organize some thinking -->

    So is this a valid decision analysis? ;-) WhoTH knows for sure (except, perhaps, Rod Smith).

    1 Your "bad" laptop failed to start.

    2 Is the HDD damaged? SMART => it seems to be OK
    Caveat: TestDisk did refer to a "bad sector" ... is that a bad hardware sector or a bad code embedded in a protective MBR?

    3 Is the laptop damaged? You can boot live CDs and other HDDs in it (correct?) => the "bad" laptop seems to work.

    Assuming the HDD and the laptop work hardware-wise (and this may not be true), continue -->


    4 GParted, TestDisk and, fdisk see empty, unallocated space; TestDisk does find some partitions though.

    5 There are many indicators this was/is/could be a GPT booting by UEFI. Ex.: it was a new Windows 8 machine and should come UEFI+GPT ready; the ee code; the EFI GPT strings; and the presence of GRUB EFI files in your Kubuntu /usr/lib/grub (confusingly, though, you also had a legacy grub-pc in there, suggesting an MBR). BUT the acid test is that gdisk doesn't see it as a GPT; it doesn't see it as a damaged GPT; it doesn't offer any repair options when you run gdisk /dev/sdx; it does not tell you that it sees any backup partition headers or partition table; it doesn't warn that it could be a hybrid MBR (and it doesn't look like one BUT could it have been done by some 3rd party utility--run by Dell or Windows-- in an unexpected way?), see:
    http://www.rodsbooks.com/gdisk/hybrid.html


    --> I'm confused about HOW this thing boots--by GRUB2-EFI? by Windows bootloader? But you did say that you see a GRUB menu. It is not GRUB Legacy, so it must be GRUB-EFI.


    6 Would this then work, and what is the risk? -->

    Use TestDisk to recover those partitions it is finding, using MBR -- see if it goes OK.
    After doing so, will it boot? Do you have to adjust /etc/fstab? re-install GRUB2? (if so, where?, would Boot Repair help here? would rEFInd get your booted up? would this damage a needed protective MBR?) => issues to prepare BEFORE you did this.

    Then use gdisk to convert this MBR to GPT.
    Do you have room for the GPT header, partition table, backup header, and backup partition table? It seems so, yes -- see Note below.

    http://www.rodsbooks.com/gdisk/mbr2gpt.html

    Issue:
    In your current protective MBR, I do not see any sign that GRUB is installed there (in the first 446 bytes, where it should be). So, was the laptop booting by UEFI? If so, then where is the ESP--we do not see any EF00, EFI System, Windows System Partition, GParted's boot_esp, etc. -- no sign of any ESP. However, you did find grub efi files in your Kubuntu root file system, /usr/lib/grub.
    Can you use a live CD to investigate this--try to locate the ESP, look for a directory /EFI/ubuntu (and grubx64.efi etc.) and /EFI/Windows/ ?


    Are we missing something here?
    Is the Protective MBR damaged and thus misleading us at every turn?


    7 Instead of 6 above, how about letting TestDisk restore the partitions as GPT.

    Would it also restore/fix the Protective MBR (if necessary) and the GPT partition header, partition table, and backup header and table? Only the author of TestDisk would know (he has been very helpful responding by email in the past). Or, would it fix it "enough" so gdisk could be used to put things in final order? There is, again, the issue of booting: by UEFI? if so, is there an ESP in place that can be used? this must be confirmed. There may or may not be room to create a new one and install GRUB2-EFI to it. For booting, you could install rEFInd instead of GRUB, though, if you can get booted into an OS to do so.


    8 Other options:
    Write Rod Smith (and donate maybe $10 or $20 -- I'm going to do it now as I've already bugged him last week about some issue).
    Call Dell.
    Google until you drop.


    9 Comment:
    If you had a Windows 8 disk to re-install it, you'd have another option:
    wipe the entire disk, re-format as GPT, re-install all OSs in 64-bit UEFI mode.


    - - - - -

    Note:

    It seems you have room for a GPT (header, partition table, backup header, and backup partition table), from your output of various utilities (remember, the WINRETOOLS and the PBR are Windows backup partitions):


    k /dev/sda - 500 GB / 465 GiB - CHS 7600 255 63 Partition Start End
    Size in sectors > HPFS - NTFS
    10 168 31 18 119 37 125440 [WINRETOOLS] Sector 31 =>
    there is space available for a protective MBR and a GPT partition table header and partition table


    Last sector?
    Command (? for help): pDisk /dev/sda: 122096646 sectors, 465.8 GiB Logical sector size: 4096 bytes Disk identifier (GUID):
    CC1C1049-6685-49DD-89B2-1E1380A65B27 Partition table holds up to 128 entries

    First usable sector is 6, last usable sector is
    122096640 Partitions will be aligned on 256-sector
    boundaries Total free space is
    122096635 sectors (465.8 GiB) TestDisk:

    Disk /dev/sda - 500 GB / 465 GiB - CHS 7600 255
    63 Partition Start End Size in sectors >P MS Data 171264
    296703 125440 [WINRETOOLS] P MS Data 296704 62838783
    62542080 [OS] P MS Data 62838784 62953983
    115200 P Linux Swap 62953984 65203965
    2249982 P MS Data 65203968 72703999
    7500032 P MS Data 72704000 118788351
    46084352 P MS Data 118788352 118877951
    89600 P MS Data 118877952 122096389 3218438 [PBR Image]

    gdisk: verify v ==>
    No problems found. 122096635 free sectors
    (465.8 GiB) available in 1 segments, the
    largest of which is 122096635 (465.8 GiB) in size.

    => It looks like there is space at the end of the disk beyond the PBR.
    The caution is that you do not want to disturb Windows PBR recovery partition.
    Last edited by Qqmike; Jul 26, 2015, 10:26 AM.

    Leave a comment:


  • Qqmike
    replied
    I realize you are still working on this, researching. The open question is what would happen if you let TestDisk use the INTEL search and restore from that ... or the GPT search, but this is just not clear at all. I suspect that utilities can't see this HDD because of some upfront damage/contamination to some header info (like the GPT partition Header, though nothing is admitting it is a GPT). It's a big crap-shoot. If TestDisk did some partition-restoring, would it also check to make sure everything is "hooked up" correctly (headers and all)? That would be nice if it did, or at least render some message about it. Open questions.

    Leave a comment:


  • Qqmike
    replied
    https://www.kubuntuforums.net/showth...838#post376838
    I know you know, but what the heck ...

    Leave a comment:


  • technomancer
    replied
    Originally posted by Qqmike View Post
    His CD-R image,
    http://www.rodsbooks.com/refind/getting.html
    works like a breeze. Extract the files to a folder (with a right-click), see the refind-cd-0.8.7.iso, use k3b to burn it to a CD, re-boot with it, and it sees all my OSs (several), and it boots them, as selected.

    You could also do this in Windows. BUT, then, ... how would it see your non-functioning, invisible bad hard drive? would it?
    Yeah, I did all of that, but with Roxio on my spare laptop. I'll give open source a try ;-)

    Leave a comment:


  • Qqmike
    replied
    His CD-R image,
    http://www.rodsbooks.com/refind/getting.html
    works like a breeze. Extract the files to a folder (with a right-click), see the refind-cd-0.8.7.iso, use k3b to burn it to a CD, re-boot with it, and it sees all my OSs (several), and it boots them, as selected.

    You could also do this in Windows. BUT, then, ... how would it see your non-functioning, invisible bad hard drive? would it?

    Leave a comment:


  • Qqmike
    replied
    could I still replace my new home folder with the one on my broken HDD, and still have it work? Also, does it matter that my broken HDD is a dual-boot system, and the new install is single-boot?
    It would not matter that it was a dual boot--those settings are under /boot.

    re your /home:
    There are two classes of things there: your data (pics, docs, etc.) and your configuration settings.
    Presumably -- -- you have backups of your personal data. The issue is about your configurations-settings: all you can do is try! In theory, people like to think you can re-use your home; but you only have to follow this kubuntuforum to see people encountering problems when doing so, when re-using their home settings. In your case, you are still using the same OS and same versions of apps: 15.04, so that should increase the probability of success.

    Leave a comment:


  • technomancer
    replied
    Originally posted by Qqmike View Post
    I figured. Just curious if you had found/rigged up a live Windows CD or something, as we do in Linux.
    Thanks for making sure! ;-)

    Also, I had trouble getting rEFInd to run off a liveCD.

    In the meantime, I need a good computer soon so I can continue applying for jobs. I put an older spare HDD into my broken laptop, and I have installed Kubuntu 15.04 onto it. I know there are tutorials about migrating a home folder from an old Linux system into a new one.

    Given the problems on my broken HDD, could I still replace my new home folder with the one on my broken HDD, and still have it work? Also, does it matter that my broken HDD is a dual-boot system, and the new install is single-boot?

    If we get the broken one working again, I will just switch it out again. If we cannot, I'll have to re-install a dual boot Win8/Linux system.

    Thanks,
    TM
    Last edited by technomancer; Jul 24, 2015, 02:48 PM.

    Leave a comment:


  • Qqmike
    replied
    I figured. Just curious if you had found/rigged up a live Windows CD or something, as we do in Linux.

    Leave a comment:


  • technomancer
    replied
    Originally posted by Qqmike View Post
    For example, post #92: if you can't boot into the Windows 8 on the bad HDD, how are you running those Windows disk commands?
    By plugging it into my spare laptop, the one that runs on Win 7.

    Leave a comment:


  • Qqmike
    replied
    For example, post #92: if you can't boot into the Windows 8 on the bad HDD, how are you running those Windows disk commands?

    Leave a comment:


  • Qqmike
    replied
    re GPT vs MBR, I must admit that with a GPT one sees a special partition, the ESP = EFI System Partition, and we don't see such a thing listed. It may be listed as EF00, boot_esp, Windows System Partitions, etc. It is usually 100-500 MB, and always FAT32, and you usually find it as sda1 or sda2.

    TestDisk did find some partitions, they just don't seem to have a home.

    Leave a comment:


  • Qqmike
    replied
    Heres a question. Could MBR be nested within a GPT, or vice versa? Is it possible that I have BOTH MBR and GPT?
    I reviewed you history getting the new laptop with Windows 8. It is completely inconceivable to me that with Windows 8 it would NOT come with UEFI+GPT. That is, surely it did not ship with Windows 8 installed to anything but GPT?

    Between Dell and Windows, I'm beginning to think anything is possible; thus, my occasional references to the possibility of a "hybrid" partition table. It would not be both MBR and GPT; but it would be a hybrid MBR, which may only be a matter of terminology.

    Your changing boot menus is not too big a deal, it happens, and usually it can be adjusted or changed after upgrades. You can adjust GRUB, and you can (in theory) adjust Windows' boot menus.

    Here's another test--and maybe solution (though I'm beginning to loose faith in such): install the boot manager rEFInd. Authored by Rod Smith (the author of gdsik). rEFInd is a boot manager: it would use Windows boot loader and GRUB and the Kubuntu kernel to get things booted for you. If it can.

    Now the big issue is how to get it installed! You can't boot into Kubuntu, you can't boot into Windows 8, can you? Can it be installed into Windows from a live CD? I have no clue. I'm 100% Linux here. Can you use it on a Live CD/USB and make it boot your OSs (I think so, but have never taken time to read the fine print).


    http://www.rodsbooks.com/refind/getting.html

    Btw, you do not want to "initialize" that disk -- that usually/always means you would lose your existing data/partitions. TestDisk, though, might still "see" it all, but recovery could be a mess.

    Remember the starman link, how he explains the entries: did Dell/Windows mess with one of those settings in the Protective MBR so this disk is not seen as it should be seen? BUT, your computer and this HDD did, once upon a time, work OK. Did some setting in that MBR get damaged now? Questions.

    Leave a comment:


  • technomancer
    replied
    Also, when my hard drive worked, it would boot up and offer a menu to pick which OS I wanted. The strange thing is, if I picked Windows, it would take me to another menu that asked me what version of Windows I wanted.

    Prior to my upgrade to Kubuntu 15.04, that secondary menu would offer WIndows 8 AND Kubuntu.

    After my upgrade, the secondary menu only offered windows 8.

    Heres a question. Could MBR be nested within a GPT, or vice versa? Is it possible that I have BOTH MBR and GPT?

    Leave a comment:


  • technomancer
    replied
    TestDisk also autodetects the offending HDD to have an intel map. Ay!

    Also, when I plug it into my spare laptop and open DiskManager, I get a notice that says,

    you must initialize a disk before logical disk manager can access it
    It then gives me an option to do MBR or GPT.

    Apparently that means that Windows thinks it is a brand new disk that has never been used, and needs to be pre-formatted before I go any further.

    http://answers.microsoft.com/en-us/w...4-ac2d59078008

    I will look into this, and see what Google has to offer.

    Thanks,
    TM
    Last edited by technomancer; Jul 24, 2015, 09:51 AM.

    Leave a comment:


  • Qqmike
    replied
    I thought so -- same commands.

    It's interesting, because it also says I have all 465 GB on the disk free.
    Yes, that fact continue to appear through this. The partition table is not seen. If it is not GPT, then what is it?!
    If it is GPT but the GPT header is damaged, then I would think it won't be seen by some utilities. But some GPT-aware utilities should then see the backup header and partition table at the end of the disk. That's why I wondered if gdisk would go ahead and try to do something. Did Windows encode some crap in that Protective MBR we talked about, a code causing this NOT to be seen as anything standard? A rhetorical question, but something about this makes no sense.

    I don't know. Very unusual. As you saw in some posts, some people wipe their disks of this Dell-Windows stuff, but then that's another major commitment and risk.

    Stumped, at this point.

    Leave a comment:

Users Viewing This Topic

Collapse

There are 0 users viewing this topic.

Working...
X