Score:0

tried installing ubuntu as dual boot, but messed up due to unaligned extended partition

br flag
Device     Boot      Start        End    Sectors   Size Id Type
/dev/sda1             2048    2050047    2048000  1000M  b W95 FAT32
/dev/sda2          2050048  419597299  417547252 199.1G  7 HPFS/NTFS/exFAT
/dev/sda3        419598336  421478399    1880064   918M 27 Hidden NTFS WinRE
/dev/sda4        421480446 1953523711 1532043266 730.5G  f W95 Ext'd (LBA)
/dev/sda5        421480448 1429233663 1007753216 480.5G  7 HPFS/NTFS/exFAT
/dev/sda6       1489240064 1505239039   15998976   7.6G 82 Linux swap / Solaris
/dev/sda7  *    1505241088 1507239935    1998848   976M ef EFI (FAT-12/16/32)
/dev/sda8       1507241984 1953523711  446281728 212.8G 83 Linux
/dev/sda9       1429235712 1489225727   59990016  28.6G 83 Linux

Partition 4 does not start on physical sector boundary.
Partition table entries are not in disk order.

Snapshot from gparted

I tried resizing the partition sda4, but unable to do so using gparted. Plus i am very hesitant to try anything around sda5 as it has useful data. Any options?

Problem2: The windows boot is messed up too, if there is an easy way to restore that, it would be great.

Will avatar
id flag
This doesn’t answer your question, but whatever you do *back up all your data before you start* - even in partitions you aren’t planning on touching; things can and do go wrong when partitioning. It’s probably the single riskiest thing most users ever do in terms of data loss.
oldfred avatar
cn flag
Do not try to align sda4. The extended partition is really more of a container for other partitions and is not directly written into. So alignment is not required. You have mixed BIOS Windows with UEFI Ubuntu. Windows in old BIOS/MBR mode requires boot flag on its boot partition, probably sda2? And UEFI requires boot flag on ESP which you now have on sda7. Move flag with gparted. Microsoft has required vendors to install in UEFI/gpt mode since 2012, so why is Windows in BIOS/MBR mode?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.