Ubuntu Install Unknown Partitions

728

Solution 1

Your disk is set up with the Windows Logical Disk Manager (LDM) system (aka "dynamic disks"), which is a proprietary Microsoft layer atop regular partitions. LDM is conceptually similar to the Linux Logical Volume Manager (LVM), but the two are incompatible formats. In any event, you cannot install Ubuntu on the disk in its current state -- at least, not easily. (It might be possible to cobble something together, but even for a Linux guru, that would be a bit of a challenge.)

The easiest solution is to convert from LDM to a more conventional partitioning setup. Some commercial Windows tools, such as EaseUS Partition Master and Partition Wizard, are supposed to be able to do this losslessly. The tools that come with Windows can do the conversion, too, but only by starting with a clean set of partitions (thus effectively wiping your data). Of course, if you're willing to back up your data and know how to restore your system to bootability upon restoring it, this may be an acceptable solution. (For that matter, I strongly recommend backing up all your data before attempting to convert the disk in any way; although the conversion is likely to be simple, the consequences of a bug, power failure at an inopportune moment, or other problem could be catastrophic.) Some people have reported success with wiping the partition table and then using TestDisk to create a new set of partitions, but I recommend against this because there's no guarantee that the filesystems in an LDM setup will be contiguous, which is an assumption of TestDisk. Thus, TestDisk will work if that assumption is met, but if it's not, you could end up with corrupted filesystems and at least some lost data.

Another option is to buy another disk and install Linux on it. That way, you can leave the Windows LDM configuration alone and let Linux control the new disk.

FWIW, Windows has a habit of converting from a conventional configuration to LDM whenever you create a setup with more than four partitions on a disk. AFAIK, Windows doesn't warn you about what it's doing -- or if it does, the message seems to leave little impression, because I have yet to see anybody ever mention it. Thus, you should never use the standard Windows partitioning tools to add partitions, particularly if you know you'll be exceeding four partitions, unless you're willing to use an LDM setup. (A common newbie mistake is to use Windows to create a partition for Linux prior to running the Linux installer. This often pushes the partition count over four and creates more work to undo this problem.)

Solution 2

Shrink LDM partitions from inside Windows

Then free space appears and you can install Ubuntu there.

Shown at: https://askubuntu.com/a/521195/52975

Disable Page File and System Protection to shrink disk fully

As shown at: https://superuser.com/questions/1017764/how-to-shrink-a-windows-10-partition/1060508#1060508

Otherwise, Windows has some unmovable files, and you can't shrink the partition as much as you'd like.

Share:
728

Related videos on Youtube

Afsan Rezaei
Author by

Afsan Rezaei

Updated on September 18, 2022

Comments

  • Afsan Rezaei
    Afsan Rezaei over 1 year

    This is my code, I want to extract web's 'title' from an URL that user inputs, but it doesn't work.

        import re
        import urllib.request
    
        url = input('Please enter website URL : ')
        h = urllib.request.urlopen(url)
        code = h.read()
        pattern = re.compile(r'<title>(.+)</title>', re.M)
    
        title = re.findall(pattern, code)
        print("%s title is : %s") % (url, title)
    

    the answer must be like this:

    >>> url = raw_input('Please enter website URL : ') 
    Please enter website URL : http://www.google.com/ 
    >>> h = urllib.urlopen(url) >>> code = h.read() 
    >>> pattern = re.compile(r'<title>(.+)</title>', re.M) 
    >>> title = re.findall(pattern, code) 
    >>> print("%s title is : %s") % (url, title) 
    >>>output: http://www.google.com/ title is : ['Google']
    
    • Dillmo
      Dillmo about 10 years
      @rusty If he has a UEFI computer, this could contain the bootloader. If so, he should NEVER delete that unless he knows EXACTLY what he is doing.
    • Dillmo
      Dillmo about 10 years
      As for your issue, just shrink your last (830gb) partition to make space for Ubuntu. Don't shrink it beyond the amount of space that is used, since it will cause data loss and possibly corruption. Ubuntu itself only needs a small linux-swap partition and its own ext4 partition. If you plan on upgrading, I recommend having a large ext4 /home partition and a smaller ext4 / partition (like 20 GB). Good luck!
    • Scanevaro
      Scanevaro about 10 years
      @Dillmo i do have something like UEFI BIOS (im dont know much about computers...).
    • Scanevaro
      Scanevaro about 10 years
      @saiarcot895 it seems it allows more than 4 partitions. i dont know where did the 830 partition came from, i have 3 partitions on win7 and only the system one is the one it recognizes
    • Scanevaro
      Scanevaro about 10 years
      @Dillmo about upgrading... i dont know what are you talking about, im so new at this
    • Scanevaro
      Scanevaro about 10 years
      @Dillmo it doesnt let me shrink the 830gb partition, and after a few tries.... installation crashed
    • precise
      precise about 10 years
      Scanevaro first boot into a live environment and check the partition/partition table style using GParted (View -> Device Information) or with sudo fdisk -l or, to check your partition table style, you can install gdisk with sudo apt-get install gdisk and run sudo gdisk -l /dev/sda ..and you can attach the information in you question to make it more clear.
    • Scanevaro
      Scanevaro about 10 years
      @rusty edited my question...
    • precise
      precise about 10 years
      okay that shows you have MBR. Please include o/p of sudo fdisk -l too..
    • precise
      precise about 10 years
      Scanevaro this post already seems to have answered your question: Partition does not start on physical sector boundary?.. please check to see if the answers there help you.
    • Scanevaro
      Scanevaro about 10 years
      @rusty it does not. it doesnt tell me how it affects ubuntu installation or im just way to new to this. Thanks a ton for your effort tho
    • precise
      precise about 10 years
      a suggested link: rodsbooks.com/fixparts ..about using fixpart utility.
    • Ali
      Ali about 7 years
      whats the output Afasn?
  • saiarcot895
    saiarcot895 about 10 years
    This has come up here and here.
  • precise
    precise about 10 years
    RodSmith so it's MBR with LDM. ..I am just curious about what SFS stands for; Smart File System, Siebel FS, or something else? (googled it, but confused)
  • Rod Smith
    Rod Smith about 10 years
    According to win.tue.nl/~aeb/partitions/partition_types-1.html, "SFS" stands for "Secure Filesystem"; however, that's a DOS product. Today, the type-0x42 partition type code is much more likely to hold an LDM configuration. (Note that MBR type codes have sometimes been re-used, either accidentally or intentionally. That's one of MBR's problems that GPT is intended to fix.) fdisk's mapping type-0x42 to "SFS" is arguably a bug in today's fdisk. At the very least, it's a reflection of fdisk's age.
  • Dillmo
    Dillmo about 10 years
    Wiping the partition table is by far the best option for manual partitioning, provided you have a backup and can restore Windows. The Arch Linux wiki seems to have a good guide for partitioning. That's what I used my first time.