I want to move my unallocated space so I can expand my ext4 Linux partition. Here is what  shows now.     /dev/sda 465 GB  Partition   lock filesystem mount pt      size   used   free    flags /dev/sda1   Y   FAT32       /boot/efi    260 MB  38 MB  222 MB   boot hidden esp /dev/sda2   !   unknown                   16 MB                  mftres /dev/sda3       bitlocker                243 GB                  msdtdata unallocated     unallocated              124 GB /dev/sda5   Y   linux-swap                19 GB  19 GB /dev/sda6   Y   ext4        /             79 GB  70 GB    9 GB /dev/sda4       ntfs                       1 GB 551 MB  449 MB   hidden diag   How do I do this? Thank you.
184
Previously, I have installed Windows 7 on my 320 GB laptop with three partitions 173, 84 and 63 GB each. The 63 GB partition was where the Windows was installed. The rest were for file containers.  Now I changed my OS to Ubuntu 12.04 LTS. I installed Ubuntu by replacing the entire Windows 7 on the 63 GB partition. The rest of the partitions remain as an NTFS Windows partition and I can still access them both (the 173 and 84 GB partitions).  Now I want to change the two partitions of Windows into an Ubuntu format partitions plus most importantly, I want to extend the 63 GB partition to more than a 100 GB because at the moment I am running out of disk space. Whenever I try to install any application, especially using wine, it always complains for a shortage of disk space.  How do I do the extending activity before I entirely format my laptop again and lose all the important files on my partitions?
94
I am on Ubuntu 12.04 64-bits  I accidentally deleted a NTFS 255 GB partition using Gparted, and yes it contains LOTS of important data.  Upon realizing the deletion I haven't yet created any file-system on it. So it still shows Unallocated.    I tried Testdisk , but it shows entire partitions created from the beginning.  This sdb is my secondary drive with Xubuntu and Kubuntu on it. And that 255 GB NTFS  partition was cross platform storage drive.  I am currently in sda with Ubuntu and Win7 in dual boot, which enables me to use it as Safe recovery option rather then Live USB drive.   First ,  should i allocate it to ? file-System for better recovery .  Second , i really need to recover data from this drive so please give me possible  suggestions and proven methods of data recovery.  Third ,does Testdisk requires deleted partition to be allocated for its recovery .  I am currently trying the answer seen here  with Testdisk scanning for partition second time, hoping to recover it.   It looks a duplicate but i can't confirm if the OP got it right. Since my first doubt is to allocate it or not.  If any clarification required please do comment ,i will add it.  Edit: TestDisk deeper search results.      The following partitions can't be recovered:          Partition               Start        End    Size in sectors     &gt;  HPFS - NTFS          22241 107 11 55592   3 27  535777280        FAT32 LBA            274460 158 19 460576 228 16 2989957948  NTFS, 274 GB / 255 GiB &amp; for FAT32 LBA 1530 GB / 1425 GiB
31198
I just noticed that the root partition of my not-so-long-ago configured server is only 5gb  thats not much seeing as i allready use 4gb and still need to install a lot of things...  i was foolish enough to use the default config from OVH assuming they know their stuff :P  since i have some data on the data partition it would be a pain in the ... to backup and reconfigure it all  is it possible to repartition the drive to use a new part of the drive say 15-20gb without data loss ? by simply copying the root partition to a new place (from sda2) ? i can live with loosing the 5gb of the start of the drive :P    heres df -h  Filesystem            Size  Used Avail Use% Mounted on /dev/sda1             5.0G  3.9G  897M  82% / tmpfs                 998M     0  998M   0% /lib/init/rw udev                   10M  144K  9.9M   2% /dev tmpfs                 998M     0  998M   0% /dev/shm /dev/sda2             226G  7.2G  208G   4% /home   and fdisk -l  Disk /dev/sda: 250.1 GB, 250059350016 bytes 255 heads, 63 sectors/track, 30401 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0000db26     Device Boot      Start         End      Blocks   Id  System /dev/sda1   *           1         653     5242880+  83  Linux Partition 1 does not end on cylinder boundary.    &lt;== now this is bad.. thx OVH :F /dev/sda2             653       30336   238426112   83  Linux /dev/sda3           30336       30401      526016   82  Linux swap / Solaris
83169
I have a dual-boot laptop with both Windows 10 and Ubuntu 16.04.  Currently, the Windows side has too much disk space, and I want to resize things so that the Ubuntu side has more.  Firstly, I went into the Windows disk management and shrunk the Windows partition by 20GB. I then wanted to expand the Ubuntu partition, but it seemed like this option was greyed out.  Can I expand the Linux partition from Windows or do I need to be in Ubuntu or do I need to create a boot disk and do it that way?  Or do I need third party software?  Any help gratefully received.
39432
I’m trying to install Ubuntu 16.04 alongside with Windows 7. My HDD supports only 4 partitions. Three of the partitions are taken up by windows. The fourth one is labelled as free space.   Now, how do I make root, swap and home partitions? Should I format my free space as primary with EXT4 first (if so, what should be the mount point?) and then create logical partitions for root/Home/swap? How do I go about this?  Edit: I tried to use the automatic installation option for dual boot. However I got the error ubi partman exit code 141. Probably because it tried to create two separate partitions for root and swap.   $ sudo parted -l Model: ATA ST1000DM003-1CH1 (scsi) Disk /dev/sda: 1000GB Sector size (logical/physical): 512B/4096B Partition Table: msdos Disk Flags:   Number  Start   End    Size   Type     File system  Flags  1      1049kB  106MB  105MB  primary  ntfs         boot  2      106MB   277GB  277GB  primary  ntfs  3      277GB   903GB  627GB  primary  ntfs
58088
Long story short, I have an external USB hard drive formatted using a MBR partition table, and I want to install Ubuntu in UEFI mode in a ~23.40 GB unallocated space before a ~442.33 GB NTFS partition that I need to keep:    To install Ubuntu in UEFI mode I need the partition table of the drive to be formatted as gpt.  I don't think there's an easy / direct way to convert a MBR partition table to a gpt partition table, so I'm also looking for the complicated / indirect way.  For example I think something can be done by noting down the NTFS partition start, writing the new partition table and adding the NTFS partition to the new partition table, but I've never done this and I have no idea where to start; furthermore I don't wish to try this for the first time in this case, since I'm not really confident with this stuff and I can't afford losing the NTFS partition I need to keep.
37106
I need to resize root as there is not enough space left in the partition. At present I am not able to install new package nor update ubuntu. I tried sudo apt-get clean and emptying trash but it does not make significant space.  I have dual boot system (windows-7 and Ubuntu 14.04 LTS) with two Internal hard drive. Where Windows is installed in /dev/sda and Ubuntu is installed in  /dev/sdb. I tried to resize root using Gparted but it does not allow. Please let me know the steps of using Gparted for resizing root. I want to transfer space from "/home" to "/".   df -h Filesystem      Size  Used Avail Use% Mounted on /dev/sdb5        14G   13G  271M  98% / none            4.0K     0  4.0K   0% /sys/fs/cgroup udev            3.8G  8.0K  3.8G   1% /dev tmpfs           779M  1.3M  777M   1% /run none            5.0M     0  5.0M   0% /run/lock none            3.8G  160K  3.8G   1% /run/shm none            100M   56K  100M   1% /run/user /dev/sdb1       3.7G  555M  2.9G  16% /boot /dev/sdb7       896G   75G  776G   9% /home   --  sudo fdisk -l 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 / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x38696756 Device Boot      Start         End      Blocks   Id  System /dev/sda1   *        2048      206847      102400    7  HPFS/NTFS/exFAT /dev/sda2          206848   976771071   488282112    7  HPFS/NTFS/exFAT Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x000a1848 Device Boot      Start         End      Blocks   Id  System /dev/sdb1   *        2048     7852031     3924992   83  Linux /dev/sdb2         7854078  1953523711   972834817    5  Extended Partition 2 does not start on physical sector boundary. /dev/sdb5         7854080    37148671    14647296   83  Linux /dev/sdb6        37150720    45043711     3946496   82  Linux swap / Solaris /dev/sdb7        45045760  1953523711   954238976   83  Linux   Thank you
113504
I had a 20GB / partition at work that dual-booted with Windows and it quickly ran out of space. I usually do 20GB / and 160GB (or whatever the rest of the hard drive is) as /home, so I intended on recovering the space Windows was taking up and turning that into /home.  That went fine and I was able to mount the partition and rsync all my files over.  However, I forgot that the partition was encrypted, so now all my files are sitting in /home/.ecrypt and /home/$USER is empty.  How can I recover my files from /home/.ecrypt and move them to /home/$USER?  I followed this tutorial:
121266
My /boot is full. Is there an easy and safe way to resize it? I saw a discussion which said that /boot partition is not required. A /boot directory will be fine. However, I don't think I can have /boot folder while /boot is mounted. Similarly, I can resize /boot because I can't unmount it.  I plan to 1. create a new logical volume, 2. mount it and copy all files from /boot to this new volume, and 3. change mount table to mount new logical volume under /boot.  Since it's /boot, I won't be able to boot if I make mistakes. Could anyone give me instructions?  Steve
111843
I would like to be able to adjust the partitions shown below. Specifically, I want to add an additional 10GB from the unallocated space to /dev/sda5 (Ubuntu install). I will then format the remaining unallocated space as NTFS so it can be shared data between Windows and Ubuntu.   I am unable to increase the size of /dev/sda5 - I am only able to shrink it.  Any assistance would be greately appreciated.
50052
I am not able to expand my Ubuntu partition even though I have unalloacted space adjacent to it. Can someone help me please?
13027
I have a hard disk, which was partitioned before (probably in Windows) like this:   Partition 0 - primary, 20Gb  Partition 1 - extended, 200Gb   I have unallocated space after Partition #1, so I wanted to increase the size of the Partition #0. At first I wanted to move the Partition #1 to the right, so I started Ubuntu from CD and called GParted. All the logical partitions inside the extended partition aren't mounted. I've assigned the Partition #0 as swap (temporarily) because it looks like the Ubuntu needs the swap even when started from CD.  The GParted can resize the extended partition (Partition #1) but it can't move it. The left arrow in the slider is not movable.  What might be a problem?  Also, the Partition #1 has a single flag on - it's "lba" flag. What's it for? Maybe it's the reason the GParted can't move it?
55669
I've currently got an 80&nbsp;GB  (yes, I know, that's why I'm changing it...)  Linux device that's about 80% free, and I want to change it to a 40&nbsp;GB  partition using one of the previous RAID&nbsp;0 partitions. I've got enough spare space on another large partition for all the files, and the best method I thought of doing the switch is:   cp -a all files on the filesystem to a directory under a large partition Repartition cp -a all files back to a new partition   The thing is, I'm worried about special file properties (it's a Linux root device); will cp -a keep all the necessary file properties so the new partition is bootable afterwards? Am I missing another way of doing it?
119443
I have 3 partitions on my computer.  +-----------+-------+----------+---------+----------------------------------------------------------------------------------------------------------+ |  Device   |  Type |   Size   |  Used   |                                                 Comments                                                 | +-----------+-------+----------+---------+----------------------------------------------------------------------------------------------------------+ | /dev/sda1 | ntfs  | 104MB    | 35MB    | This is Windows loader                                                                                   | | /dev/sda2 | ntfs  | 144598MB | 64536MB | Here I want to install UBUNTU                                                                            | | /dev/sda3 | ntfs  | 105353MB | 20227MB | This my backup partition. I don't want to delete anything from here, I have all my necessary information | +-----------+-------+----------+---------+----------------------------------------------------------------------------------------------------------+   The problem is when I select "Device for boot loader installation" /dev/sda2.  I get:  No root file system is defined. Please correct this from the partitioning menu.   How can I resolve this?
68134
Which is the best way in order to resize an encrypted (ecryptfs) ext4 home partition ?  Pros nad Cons of each method are greatly appreciated.  $ fdisk -l Disk /dev/sda: 256.1 GB, 256060514304 bytes 255 heads, 63 sectors/track, 31130 cylinders, total 500118192 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes     Device Boot      Start         End      Blocks   Id  System /dev/sda1   *          63    41945714    20972826    7  HPFS/NTFS/exFAT /dev/sda2       207007744   211206554     2099405+  82  Linux swap / Solaris /dev/sda3        42946560    82008063    19530752   83  Linux /dev/sda4        82008064   207007743    62499840   83  Linux
42014
I have 1TB hard disk drive where 700GB is reserved for my personal files. Remaining space is for Windows 8.1. Problem is that Windows 8.1 with their 4 partitions is at end of disk, so I can't extend space for Windows partition.    I tried two partition apps, but none of these apps can't move EFI System partition, so I also can't move Reserved parition (Other) and my Windows partition. First of all I tried to create System Backup Image, but this just recover all partition to same sectors. Maybe there is some tricks that allow me to choose where recover Windows from System Backup Image?
101016
I installed Ubuntu with Windows. Before installing, I shrunk the space for Ubuntu. Now I have 3.7GB free in my Ubuntu home.That's not enough for me.  So I shrunk my NTFS partition, it's now unalocated. Then I selected ext4 (Ubuntu home) to resize.   But it is 4GB and GParted not allowed to resize more than 4GB. But my 1GB is unallocated.