Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: Ubuntu installer doesn't detect my windows installation/HDD partitions

  1. #11
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Ubuntu installer doesn't detect my windows installation/HDD partitions

    +1 on srs5694 suggestions and kudos to YesWeCan for seeing the partition error.

    Another way, first backup partition table and then use sfdisk to repair it.

    Backup partition table to text file & save to external device.
    sudo sfdisk -d /dev/sda > PT.txt

    sfdisk to fix extended beyond end -partition outside the disk! But requires some math to calculate size to get end sector.
    http://ubuntuforums.org/showthread.php?t=1012825
    Last edited by oldfred; September 1st, 2011 at 10:35 PM.
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  2. #12
    Join Date
    Mar 2010
    Location
    Woonsocket, RI USA
    Beans
    3,195

    Re: Ubuntu installer doesn't detect my windows installation/HDD partitions

    Quote Originally Posted by oldfred View Post
    +1 on srs5694 suggestions and kudos to YesWeCan for seeing the partition error.

    Another way, first backup partition table and then use sfdisk to repair it.
    You could do the same thing with fdisk -- delete the partition and then create a new one with the same start point and a legal end point. You'd have to be careful to check that the start point is identical in sector values (not just in cylinder values). Under some circumstances, fdisk uses cylinder values or rounds the values you give it, so you've got to be sure it doesn't change those values.

    The trouble with this approach, whether you use fdisk or sfdisk, is that it doesn't resize the filesystem inside the partition. Thus, this partition resizing isn't a complete fix, unless the contained filesystem is small enough to fit on the disk (which may be the case, but we can't be sure without seeing some NTFS diagnostics).

    The bottom line: If you try this, you should follow up by using CHKDSK to check the filesystem or perhaps using other tools to verify the validity of the filesystem or resize it to fit inside the partition. I'm not an expert on NTFS repair, so I can't offer more specific suggestions about how to fix this up.
    If I've suggested a solution to a problem and you're not the original poster, do not try my solution! Problems can seem similar but be different, and a good solution to one problem can make another worse. Post a new thread with your problem details.

  3. #13
    Join Date
    Aug 2011
    Beans
    6

    Re: Ubuntu installer doesn't detect my windows installation/HDD partitions

    Ok srs5694, i did just as you said and it killed my windows installation, i recovered it, and then the Ubuntu installer recognized the disc properly, I created a 30 GB partition with the Ubuntu partition manager, and installed Ubuntu Successfully.
    Now the problem is that, the Ubuntu Installer didnt install on the 30 GB partition I created, It installed on a 166 GB space Im not sure where it came from, I didn't think of that as a problem, i thought i would be able to shrink the Ubuntu partition and add up to the Windows partition, but apparently it installed in such way that it killed my Windows installation and i don't understand my partitions anymore.

    here's the new disk information, please someone tell me what happened.

    Code:
    Boot Info Script 0.60    from 17 May 2011
    
    
    ============================= Boot Info Summary: ===============================
    
     => Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 1 of 
        the same hard drive for core.img. core.img is at this location and looks 
        for (,msdos6)/boot/grub on this drive.
    
    sda1: __________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Windows Vista/7
        Boot sector info:   No errors found in the Boot Parameter Block.
        Operating System:  
        Boot files:        /bootmgr /Boot/BCD
    
    sda2: __________________________________________________________________________
    
        File system:       ext2
        Boot sector type:  -
        Boot sector info:  
        Operating System:  
        Boot files:        
    
    sda3: __________________________________________________________________________
    
        File system:       Extended Partition
        Boot sector type:  Unknown
        Boot sector info:  
    
    sda5: __________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Windows Vista/7
        Boot sector info:   According to the info in the boot sector, sda5 starts 
                           at sector 2048.
        Operating System:  
        Boot files:        
    
    sda6: __________________________________________________________________________
    
        File system:       ext4
        Boot sector type:  -
        Boot sector info:  
        Operating System:  Ubuntu 11.04
        Boot files:        /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
    
    sda7: __________________________________________________________________________
    
        File system:       swap
        Boot sector type:  -
        Boot sector info:  
    
    sda4: __________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Windows Vista/7
        Boot sector info:   No errors found in the Boot Parameter Block.
        Operating System:  
        Boot files:        /BOOTMGR /BOOT/BCD
    
    ============================ Drive/Partition Info: =============================
    
    Drive: sda _____________________________________________________________________
    
    Disk /dev/sda: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    
    Partition  Boot  Start Sector    End Sector  # of Sectors  Id System
    
    /dev/sda1    *          2,048     3,074,047     3,072,000   7 NTFS / exFAT / HPFS
    /dev/sda2           3,074,048   327,911,647   324,837,600  83 Linux
    /dev/sda3         327,913,470   932,866,047   604,952,578   f W95 Extended (LBA)
    /dev/sda5         869,951,488   932,866,047    62,914,560   7 NTFS / exFAT / HPFS
    /dev/sda6         327,913,472   861,695,999   533,782,528  83 Linux
    /dev/sda7         861,698,048   869,935,103     8,237,056  82 Linux swap / Solaris
    /dev/sda4         932,866,048   976,771,071    43,905,024   7 NTFS / exFAT / HPFS
    
    
    "blkid" output: ________________________________________________________________
    
    Device           UUID                                   TYPE       LABEL
    
    /dev/sda1        E202520F0251E8D5                       ntfs       TOSHIBA System Volume
    /dev/sda2        8be6fb3c-7e45-47b8-94b7-fdd2b0cf9fcb   ext2       
    /dev/sda4        1A6655F16655CE5F                       ntfs       HDDRECOVERY
    /dev/sda5        3610C2F010C2B661                       ntfs       New Volume
    /dev/sda6        cf395592-5899-494f-8940-5b44888a7f11   ext4       
    /dev/sda7        c32040ad-f009-4b3e-9715-32acbc41b835   swap       
    
    ================================ Mount points: =================================
    
    Device           Mount_Point              Type       Options
    
    /dev/sda1        /media/TOSHIBA System Volume fuseblk    (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
    /dev/sda4        /media/HDDRECOVERY       fuseblk    (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
    /dev/sda5        /media/New Volume        fuseblk    (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
    /dev/sda6        /                        ext4       (rw,errors=remount-ro,commit=0)
    /dev/sr0         /media/Repair disc Windows 7 64-bit udf        (ro,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,iocharset=utf8,umask=0077,dmode=0500)
    
    
    =========================== sda6/boot/grub/grub.cfg: ===========================
    
    --------------------------------------------------------------------------------
    #
    # DO NOT EDIT THIS FILE
    #
    # It is automatically generated by grub-mkconfig using templates
    # from /etc/grub.d and settings from /etc/default/grub
    #
    
    ### BEGIN /etc/grub.d/00_header ###
    if [ -s $prefix/grubenv ]; then
      set have_grubenv=true
      load_env
    fi
    set default="0"
    if [ "${prev_saved_entry}" ]; then
      set saved_entry="${prev_saved_entry}"
      save_env saved_entry
      set prev_saved_entry=
      save_env prev_saved_entry
      set boot_once=true
    fi
    
    function savedefault {
      if [ -z "${boot_once}" ]; then
        saved_entry="${chosen}"
        save_env saved_entry
      fi
    }
    
    function recordfail {
      set recordfail=1
      if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
    }
    
    function load_video {
      insmod vbe
      insmod vga
      insmod video_bochs
      insmod video_cirrus
    }
    
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos6)'
    search --no-floppy --fs-uuid --set=root cf395592-5899-494f-8940-5b44888a7f11
    if loadfont /usr/share/grub/unicode.pf2 ; then
      set gfxmode=auto
      load_video
      insmod gfxterm
    fi
    terminal_output gfxterm
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos6)'
    search --no-floppy --fs-uuid --set=root cf395592-5899-494f-8940-5b44888a7f11
    set locale_dir=($root)/boot/grub/locale
    set lang=en_US
    insmod gettext
    if [ "${recordfail}" = 1 ]; then
      set timeout=-1
    else
      set timeout=10
    fi
    ### END /etc/grub.d/00_header ###
    
    ### BEGIN /etc/grub.d/05_debian_theme ###
    set menu_color_normal=white/black
    set menu_color_highlight=black/light-gray
    if background_color 44,0,30; then
      clear
    fi
    ### END /etc/grub.d/05_debian_theme ###
    
    ### BEGIN /etc/grub.d/10_linux ###
    if [ ${recordfail} != 1 ]; then
      if [ -e ${prefix}/gfxblacklist.txt ]; then
        if hwmatch ${prefix}/gfxblacklist.txt 3; then
          if [ ${match} = 0 ]; then
            set linux_gfx_mode=keep
          else
            set linux_gfx_mode=text
          fi
        else
          set linux_gfx_mode=text
        fi
      else
        set linux_gfx_mode=keep
      fi
    else
      set linux_gfx_mode=text
    fi
    export linux_gfx_mode
    if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
    menuentry 'Ubuntu, with Linux 2.6.38-8-generic' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        set gfxpayload=$linux_gfx_mode
        insmod part_msdos
        insmod ext2
        set root='(/dev/sda,msdos6)'
        search --no-floppy --fs-uuid --set=root cf395592-5899-494f-8940-5b44888a7f11
        linux    /boot/vmlinuz-2.6.38-8-generic root=UUID=cf395592-5899-494f-8940-5b44888a7f11 ro   quiet splash vt.handoff=7
        initrd    /boot/initrd.img-2.6.38-8-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.38-8-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        set gfxpayload=$linux_gfx_mode
        insmod part_msdos
        insmod ext2
        set root='(/dev/sda,msdos6)'
        search --no-floppy --fs-uuid --set=root cf395592-5899-494f-8940-5b44888a7f11
        echo    'Loading Linux 2.6.38-8-generic ...'
        linux    /boot/vmlinuz-2.6.38-8-generic root=UUID=cf395592-5899-494f-8940-5b44888a7f11 ro single 
        echo    'Loading initial ramdisk ...'
        initrd    /boot/initrd.img-2.6.38-8-generic
    }
    ### END /etc/grub.d/10_linux ###
    
    ### BEGIN /etc/grub.d/20_linux_xen ###
    ### END /etc/grub.d/20_linux_xen ###
    
    ### BEGIN /etc/grub.d/20_memtest86+ ###
    menuentry "Memory test (memtest86+)" {
        insmod part_msdos
        insmod ext2
        set root='(/dev/sda,msdos6)'
        search --no-floppy --fs-uuid --set=root cf395592-5899-494f-8940-5b44888a7f11
        linux16    /boot/memtest86+.bin
    }
    menuentry "Memory test (memtest86+, serial console 115200)" {
        insmod part_msdos
        insmod ext2
        set root='(/dev/sda,msdos6)'
        search --no-floppy --fs-uuid --set=root cf395592-5899-494f-8940-5b44888a7f11
        linux16    /boot/memtest86+.bin console=ttyS0,115200n8
    }
    ### END /etc/grub.d/20_memtest86+ ###
    
    ### BEGIN /etc/grub.d/30_os-prober ###
    menuentry "Windows 7 (loader) (on /dev/sda1)" --class windows --class os {
        insmod part_msdos
        insmod ntfs
        set root='(/dev/sda,msdos1)'
        search --no-floppy --fs-uuid --set=root E202520F0251E8D5
        chainloader +1
    }
    menuentry "Windows Recovery Environment (loader) (on /dev/sda4)" --class windows --class os {
        insmod part_msdos
        insmod ntfs
        set root='(/dev/sda,msdos4)'
        search --no-floppy --fs-uuid --set=root 1A6655F16655CE5F
        drivemap -s (hd0) ${root}
        chainloader +1
    }
    ### END /etc/grub.d/30_os-prober ###
    
    ### BEGIN /etc/grub.d/40_custom ###
    # This file provides an easy way to add custom menu entries.  Simply type the
    # menu entries you want to add after this comment.  Be careful not to change
    # the 'exec tail' line above.
    ### END /etc/grub.d/40_custom ###
    
    ### BEGIN /etc/grub.d/41_custom ###
    if [ -f  $prefix/custom.cfg ]; then
      source $prefix/custom.cfg;
    fi
    ### END /etc/grub.d/41_custom ###
    --------------------------------------------------------------------------------
    
    =============================== sda6/etc/fstab: ================================
    
    --------------------------------------------------------------------------------
    # /etc/fstab: static file system information.
    #
    # Use 'blkid -o value -s UUID' to print the universally unique identifier
    # for a device; this may be used with UUID= as a more robust way to name
    # devices that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    proc            /proc           proc    nodev,noexec,nosuid 0       0
    # / was on /dev/sda6 during installation
    UUID=cf395592-5899-494f-8940-5b44888a7f11 /               ext4    errors=remount-ro 0       1
    # swap was on /dev/sda7 during installation
    UUID=c32040ad-f009-4b3e-9715-32acbc41b835 none            swap    sw              0       0
    --------------------------------------------------------------------------------
    
    =================== sda6: Location of files loaded by Grub: ====================
    
               GiB - GB             File                                 Fragment(s)
    
     240.495864868 = 258.230468608  boot/grub/core.img                             1
     184.547019958 = 198.155853824  boot/grub/grub.cfg                             1
     158.010044098 = 169.661992960  boot/initrd.img-2.6.38-8-generic               2
     240.494144440 = 258.228621312  boot/vmlinuz-2.6.38-8-generic                  1
     158.010044098 = 169.661992960  initrd.img                                     2
     240.494144440 = 258.228621312  vmlinuz                                        1
    
    ======================== Unknown MBRs/Boot Sectors/etc: ========================
    
    Unknown BootLoader on sda3
    
    00000000  53 97 9e 11 7a 69 50 f2  6e 35 52 c9 a6 3b 2d 4a  |S...ziP.n5R..;-J|
    00000010  60 b3 12 8c d0 24 e2 79  d4 79 50 ba f6 5d 46 ec  |`....$.y.yP..]F.|
    00000020  34 44 35 5f e9 03 50 bf  92 e0 17 05 51 3c 1e 68  |4D5_..P.....Q<.h|
    00000030  b6 43 c6 1a e1 74 68 74  5a 95 44 bc 5c 50 f8 a2  |.C...thtZ.D.\P..|
    00000040  dc 3f 8e 16 e3 f4 7e 4a  f8 bb c8 9e 42 97 62 e2  |.?....~J....B.b.|
    00000050  5f 03 40 fc 60 25 a1 9c  a6 66 42 57 95 52 9f a7  |_.@.`%...fBW.R..|
    00000060  52 8d 3a 5c 4f 21 ac 9d  6f 57 07 93 c9 cc ad 1e  |R.:\O!..oW......|
    00000070  b7 05 29 28 0f 07 d9 e4  33 14 68 d5 e7 2d 91 b5  |..)(....3.h..-..|
    00000080  c4 54 01 f1 3a 7c 7a 4f  f5 51 dc e9 61 74 8a 30  |.T..:|zO.Q..at.0|
    00000090  43 21 95 2a 11 85 da 2c  84 9c e7 19 d0 4b 51 e7  |C!.*...,.....KQ.|
    000000a0  51 94 8a 8c 98 2e 84 b6  c6 58 d0 25 66 8b 71 8c  |Q........X.%f.q.|
    000000b0  af 48 cc af 5f 3b 50 d5  c1 31 38 99 4e 21 eb 24  |.H.._;P..18.N!.$|
    000000c0  27 49 76 63 56 a1 a1 69  1d 2a 25 61 cc 61 2d 1c  |'IvcV..i.*%a.a-.|
    000000d0  cf 53 e8 b5 0c 04 2d 40  d8 7b a0 59 05 28 b7 1a  |.S....-@.{.Y.(..|
    000000e0  e6 22 94 c1 2e eb 89 15  c5 9a 55 8d 72 9f b4 16  |."........U.r...|
    000000f0  95 4b 02 d3 0c f4 96 8f  1a d4 a8 73 0a 62 0a 6a  |.K.........s.b.j|
    00000100  29 99 71 c9 bd 55 55 55  55 55 55 55 55 55 55 55  |).q..UUUUUUUUUUU|
    00000110  55 55 55 55 55 55 55 55  55 55 55 55 55 55 55 55  |UUUUUUUUUUUUUUUU|
    *
    00000150  55 55 55 55 55 55 55 55  00 0e 00 94 8b 4e 73 67  |UUUUUUUU.....Nsg|
    00000160  e8 0c 14 0c 06 31 92 21  3d d3 17 eb 78 d4 c7 9c  |.....1.!=...x...|
    00000170  ec 22 1b eb 18 48 cc a8  0f d1 e8 4c 21 6a aa 26  |."...H.....L!j.&|
    00000180  d9 90 c5 09 90 7e 8a 43  c7 84 ae 0b d3 71 3a 8b  |.....~.C.....q:.|
    00000190  1b c3 2b 48 c7 c8 28 f3  b1 33 48 6e 1b f0 d5 25  |..+H..(..3Hn...%|
    000001a0  d4 e6 5c 2b 4d b5 00 ae  96 15 6b 5a 5d 3a f5 7c  |..\+M.....kZ]:.||
    000001b0  fe 38 f4 2d a9 56 23 91  89 04 d6 d1 11 b9 00 fe  |.8.-.V#.........|
    000001c0  ff ff 07 fe ff ff 02 d8  4e 20 00 00 c0 03 00 fe  |........N ......|
    000001d0  ff ff 05 fe ff ff 01 00  00 00 01 e0 d0 1f 00 00  |................|
    000001e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
    000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
    00000200
    
    
    =============================== StdErr Messages: ===============================
    
    unlzma: Decoder error

  4. #14
    Join Date
    Oct 2009
    Beans
    2,199
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Ubuntu installer doesn't detect my windows installation/HDD partitions

    Here are my calcs for oldfred's suggestion. This will fix the partition table and the Ubuntu installer should work. But there is some risk of damaging the file system inside the sda4 as srs5694 points out.

    When you run sudo sfdisk -d /dev/sda > PT.txt, the PT.txt should look like this:
    Code:
    /dev/sda1 : start=     2048, size=  3072000, Id=27, bootable
    /dev/sda2 : start=  3074048, size=866873493, Id= 7
    /dev/sda3 : start=869949440, size= 62916608, Id= f
    /dev/sda5 : start=869951488, size= 62914560, Id= 7
    /dev/sda4 : start=932866048, size= 43918082, Id=17
    The number in red is too big.
    The total sectors on the disk are 976773168.
    The start sector of sda4 is 932866048 so the maximum size of sda4 is
    976773168 - 932866048 = 43907120

    So the number in red has to be changed. You can use gedit to edit PT.txt so it looks like this:
    Code:
    /dev/sda1 : start=     2048, size=  3072000, Id=27, bootable
    /dev/sda2 : start=  3074048, size=866873493, Id= 7
    /dev/sda3 : start=869949440, size= 62916608, Id= f
    /dev/sda5 : start=869951488, size= 62914560, Id= 7
    /dev/sda4 : start=932866048, size= 43907120, Id=17
    And then write the new PT back to the MBR
    sudo sh -c "cat PT.txt | sfdisk /dev/sda"

    The sda4 partition is too big by 10962 sectors = 5.6MB. This is a very small % of the total size so the odds are fair that cutting this off won't damage the file system. But there is no guarantee unless you find a way to see what % of the file system has been used.
    Last edited by YesWeCan; September 2nd, 2011 at 03:36 AM.
    ASRock P67 Extreme6, Intel i5 2500K, 8GB RAM, nVidia 6600GT, 4x1TB RAID1+0

  5. #15
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Ubuntu installer doesn't detect my windows installation/HDD partitions

    Partition sda2 was your windows install, but now it says it is ext2 format. Did you change that? ext2 is not used much now for anything. Either ext3 or ext4 is more common. You might use ext2 on a flash drive so you do not have the journal and reduce writes.

    Ubuntu installed in sda6 and sda7 for swap. If you used one of the automatic installs it tries to shrink something and create new partitions. Did you use auto install or the Something else or manual install where you choose which partition to use for / and which to use for swap?

    If all you did was change the partition table entry for sda2, you may be able to change it back to NTFS, but if you overwrote it with any data you most likely will not be able to recover a working windows as any system file overwritten will prevent it from working.
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  6. #16
    Join Date
    Mar 2010
    Location
    Woonsocket, RI USA
    Beans
    3,195

    Re: Ubuntu installer doesn't detect my windows installation/HDD partitions

    Daniel090,

    It's very unclear to me precisely what each of the partitions on your disk actually is or how you got to the current state. The only thing that's clear is that Linux is installed in /dev/sda6 (with its swap space in /dev/sda7). /dev/sda6 is a 255 GiB (273 GB) partition. You say that Linux is installed in a 166 GB space, but the only such space that I see is /dev/sda2, which is 155 GiB (166 GB) in size. It holds a Linux ext2 filesystem, but it doesn't seem to hold any boot files or be referenced in the GRUB configuration files, so I don't think Linux is installed there.

    You've got three NTFS (Windows) partitions:


    • /dev/sda1, which is tiny (1.5 GiB). It's got its boot flag set, as it did in the output you posted in post #6, which makes me think it holds critical Windows boot files, with Windows itself stored elsewhere.
    • /dev/sda5, which is 30 GiB in size, but that doesn't seem to hold any Windows boot files. My suspicion is that you intended to install Linux here but accidentally installed it in /dev/sda6 instead.
    • /dev/sda4, which is 21 GiB in size. This is big enough to hold a Windows installation, and GRUB includes an entry to boot it, but GRUB seems to think it's a Windows Recovery Environment partition. If this is the same as the /dev/sda4 from your post #6 (and it does begin on the same sector), then I'm a bit doubtful that this is your Windows boot partition.



    Notably absent from this list is anything akin to post #6's /dev/sda2, which at that time held a number of critical Windows boot files. Therefore, I suspect that you've accidentally deleted your Windows partition in your attempt to install Linux. If so, I hope you've got good backups, because you're likely to have a hard time recovering otherwise. If you're very lucky, you might be able to get the partition back with the help of a low-level tool like TestDisk, but it's likely to have suffered enough damage that Windows won't boot.

    It's hard to offer advice about what to do next because there are many possibilities in the abstract, but what will be possible, much less practical, for you now depends on factors such as whether you've got good backups, whether you're willing to start with a "blank slate" for both Windows and Linux, whether there are critical personal files on the disk that are in danger, and precisely what your goals are. I therefore recommend that you post back with this information.
    If I've suggested a solution to a problem and you're not the original poster, do not try my solution! Problems can seem similar but be different, and a good solution to one problem can make another worse. Post a new thread with your problem details.

  7. #17
    Join Date
    Mar 2010
    Location
    Woonsocket, RI USA
    Beans
    3,195

    Re: Ubuntu installer doesn't detect my windows installation/HDD partitions

    Quote Originally Posted by oldfred View Post
    If all you did was change the partition table entry for sda2, you may be able to change it back to NTFS, but if you overwrote it with any data you most likely will not be able to recover a working windows as any system file overwritten will prevent it from working.
    The Boot Info Script outputs in posts #6 and #13 indicate that /dev/sda2 changed in size (866,873,493 sectors to 324,837,600 sectors), and #13 indicates that it holds an ext2 filesystem. The latter determination is made by probing the data inside the partition, so it's not just the partition table's type code that's changed. In other words, the data has been altered. That said, some NTFS data structures almost certainly remain -- but I don't know if enough NTFS data remains to enable reconstructing the original filesystem. Even if that can be done, writing the ext2fs data in the new /dev/sda2 (and the data in /dev/sda6 and /dev/sda7, which overlap the old /dev/sda2) will almost certainly have trashed some files. Therefore, I'm not optimistic about recovering the old /dev/sda2 data except by restoring it from a backup or using a low-level tool like PhotoRec.
    If I've suggested a solution to a problem and you're not the original poster, do not try my solution! Problems can seem similar but be different, and a good solution to one problem can make another worse. Post a new thread with your problem details.

  8. #18
    Join Date
    Aug 2011
    Beans
    6

    Re: Ubuntu installer doesn't detect my windows installation/HDD partitions

    Well It doesn't really matter if i lose the data on my Windows partition, i have all the important personal files backed up on a external HDD/CDs and what i dont have backed up can be found on the internet even if it would take quite a wile to re download.
    My priority right now is getting rid of the Ubuntu partition and recovering/reinstalling windows to a partition of its original size [idk what it was right now but it can be figured out][ id say my priority is actually to get things like they where before this whole mess ].

  9. #19
    Join Date
    Mar 2010
    Location
    Woonsocket, RI USA
    Beans
    3,195

    Re: Ubuntu installer doesn't detect my windows installation/HDD partitions

    The easiest way to recover everything is probably to wipe the partition table clean and then restore from backups (or re-install Windows). There are several ways to wipe the partition table clean. One is this, typed in a Terminal from the Ubuntu disc in "live CD" mode:

    Code:
    sudo parted /dev/sda mklabel msdos
    The disk will then have not partitions defined, and you'll be able to re-install Windows from scratch and/or restore everything from backups, as if you'd replaced the disk with a new one.

    A less drastic option would be to use fdisk, parted, GParted, or whatever to delete everything except /dev/sda6 and /dev/sda7. This will leave Linux installed, and you'll be able to re-install or restore Windows in the resulting blank space. After installing Windows, you'll probably have to re-install GRUB to get Linux booting again. Also, there are issues with where blank space exists on your disk right now and the size of the extended partition; you might need to move and/or resize partitions to get a clean Windows installation.
    If I've suggested a solution to a problem and you're not the original poster, do not try my solution! Problems can seem similar but be different, and a good solution to one problem can make another worse. Post a new thread with your problem details.

Page 2 of 2 FirstFirst 12

Tags for this Thread

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
  •