My problem is that when attempting to resize the dev / sda2, both the minimum and the maximum size, are of the same value (which is the disk size: 708 862 MB).  What should I do?
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?
56385
I have a Virtual machine using centos 7 with 200GB disk.For some reason my layout is:  df -h Filesystem               Size  Used Avail Use% Mounted on /dev/sda1                100GB  95GB  5GB      Running fdisk -l:  Disk /dev/sda: 204.8 GB, 204803670016 bytes,400007168 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 Disk label type: dos Disk identifier: 0x0006c283  Device Boot      Start         End      Blocks   Id  System /dev/sda1            2048   199997439    99997696     Linux   I would like to increase my space on my partision /dev/sda1.
9027
I have 200 MB assigned for the /boot partition.  Whenever I try to update the kernel, I receive an error message that basically states /boot is full.  What can I do to cleanup /boot and remove/backup the older kernels?
7772
I have a drive, sda. It has two partitions:  sda1: /boot sda2: LVM managed in Volume Group volgrp01   volgrp01 contains the following Logical Volumes:  lv_root (30 GB) lv_swap (8 GB) lv_scratch (430 GB)   What I want to do is reduce lv_scratch to 50 GB, and re-allocate that newly freed 380 GB into a new partition, sda3 (which I'll then add to another Volume Group).  I've attached an image of my desired BEFORE and AFTER. I'm right in the middle of learning about LVM, and while I can grasp the idea of resizing Logical Volumes within a Volume Group, I'm unsure of how one would re-allocate that space into a new partition.  I'm using RHEL6.
93576
I have Ubuntu 10.10 installed inside of Windows using . I am running out of space on my Ubuntu disk (currently  405.1 MB free). I have a 180 GB hard drive and when I installed Ubuntu I only allocated 10 GB to it.   How can I resize my disk to give Ubuntu some more space?
57656
I have a strange discrepancy in the amount of free disk space that's being reported. The finder says:  My iStat Menus says:  Which is the same as df -h reports: remco@Prosperpine ~  $ df -h Filesystem                          Size   Used  Avail Capacity  iused   ifree %iused  Mounted on /dev/disk0s2                       148Gi  127Gi   21Gi    87% 33479179 5383643   86%   / devfs                              187Ki  187Ki    0Bi   100%      646       0  100%   /dev map -hosts                           0Bi    0Bi    0Bi   100%        0       0  100%   /net map auto_home                        0Bi    0Bi    0Bi   100%        0       0  100%   /home  Why would such a large difference occur? I've checked the disk using the disk utility and it does not report having any issues. Specs: Late 2011 MacBook Pro 17&quot;, non-Apple Intel 160GB SSD, OSX Mountain Lion 10.8.2
89110
I bought a 16G SD card to put Android on to put in my Nook Color.  I downloaded a Honeycomb distribution and wrote the disk image to it.  Then I found the Nook Color takes Micro-SD cards, and decided to use this SD card for casual file storage and sneakernet.  Right now, it reports its size as 117 MB.  Sticking it into a Windows 7 computer, I can reformat it in several different ways, including NTFS and FAT variations, but always 117 MB.  The reformat to default configuration shows 117 MB.  Is there something I can do to make this hold actual GB again?  Any ideas what happened?
103255
I am trying to create a new partition on my laptop (XPS 12 9Q33, 128GB SSD) by shrinking the C:\ partition. However, despite the fact that it indicates there is enough space, it displays an error message. I have successfully done this on my desktop, but for some reason it fails on my laptop.     There is not enough space available on the disk(s) to complete this operation.   I am trying to shrink C:\ (which has ~25GB free) by 10GB.  I have:   ensured there are no files at the end of the sector (disabling pagefile, etc.). See  for how to do that (and you do need to do that). turned off my antivirus temporarily. disabled BitLocker encryption.   And it still fails. I've even tried Paragon's Partition Manager, which claims there is not enough space on the disk, which is not true.  I have even tried shrinking different sizes (down to 256MB), but to no avail (it still displays the same error).  Screenshots:      Any help would be appreciated.
56143
I've just had a message today from Ubuntu 11.04 that I have only 100 MB left, so I cleaned up some files, and I got 200 MB. Then, after a couple of hours, suddenly I have only 26 MB?! I tried df, du via mount --bind, /forcefsck with reboot - nothing could should what the culprit is - finally I searched big files, realized /var/log/syslog is 100MB+ and /var/log/kern.log is 200MB+ - blanked them with sudo bash -c 'echo &gt; ...' and rebooted, and now I have some spare MB.  But now, I realize I have another problem with df:  $ df -h Filesystem            Size  Used Avail Use% Mounted on /dev/sda5             9,7G  8,8G  385M  96% / none                  963M  696K  962M   1% /dev none                  969M   12K  969M   1% /dev/shm none                  969M  252K  969M   1% /var/run none                  969M     0  969M   0% /var/lock /dev/sda6             9,7G  8,1G  1,1G  89% /media/disk  $ df -h --block-size M Filesystem           1M-blocks      Used Available Use% Mounted on /dev/sda5                9845M     8960M      385M  96% / none                      963M        1M      962M   1% /dev none                      969M        1M      969M   1% /dev/shm none                      969M        1M      969M   1% /var/run none                      969M        0M      969M   0% /var/lock /dev/sda6                9845M     8235M     1110M  89% /media/disk   Note so for /, it says there are 9845M total; and Used 8960M - then remaining would be 9845-8960 = 885 M, however, here I have only 385M Available.  Also, for /media/disk, it says total 9845M, Used 8235M - then remaining would be 9845-8235 = 1610, however, here I have only 1110M Available.  In both cases, there is exactly 500 MB difference.  Where did this difference come from - and can I reclaim it?  Here is also lsof | grep 'deleted' - can't see nothing suspicious here:  $ lsof | grep 'deleted' nautilus  1911 user   21u      REG        8,5   142760     260562 /home/user/.local/share/gvfs-metadata/home (deleted) nautilus  1911 user   22w      REG        8,5    32768     268807 /home/user/.local/share/gvfs-metadata/home-fe882154.log (deleted) python    1919 user    8u      REG        8,5     4096     392258 /tmp/ffiqRK968 (deleted) python    2165 user    5w      REG        8,5        0     132261 /home/user/.[SNIP].lock (deleted) python    2166 user    5w      REG        8,5        0     132261 /home/user/.[SNIP].lock (deleted) python    2185 user   21r      REG        8,5   142760     260562 /home/user/.local/share/gvfs-metadata/home (deleted) python    2185 user   22r      REG        8,5    32768     268807 /home/user/.local/share/gvfs-metadata/home-fe882154.log (deleted) gnome-ter 2279 user   27u      REG        8,5      640     392575 /tmp/vte5KDX2X (deleted) gnome-ter 2279 user   28u      REG        8,5     4936     392605 /tmp/vteKRDX2X (deleted) gnome-ter 2279 user   29u      REG        8,5      648     392947 /tmp/vteMZDX2X (deleted) ubuntuone 2544 user   17u      REG        8,5     4096     392335 /tmp/ffiMErq0V (deleted) bamfdaemo 3235 user   12r      REG        8,5   143868     269077 /home/user/.local/share/gvfs-metadata/root (deleted) bamfdaemo 3235 user   13r      REG        8,5    32768     272310 /home/user/.local/share/gvfs-metadata/root-18092a02.log (deleted) firefox   5291 user   59u      REG        8,5    33288     132262 /var/tmp/etilqs_YdeZiWSd5iQwJ4U (deleted) firefox   5291 user   60w      REG        8,5    32768     132271 /var/tmp/etilqs_MNLXhEaEqoXMm9b (deleted) firefox   5291 user   70u      REG        8,5    34952     132297 /var/tmp/etilqs_yXDdwVeMxmmdpNz (deleted)
79900
I've tried to deal with this for days now with no luck. In this forum and also in other ones I can see a lot of discussion about this but none of the solutions have worked for me.  My current situation is that I've got some GBs "missing" that I can't free or find anywhere. I guess this is some kind of problem like memory leaks that only get fixed when rebooting, but I just would like to ask if someone has a better idea because there are currently a few customers on that server.  Here are some of the commands I've seen in other threads and my particular outputs:  df -h  Filesystem            Size  Used Avail Use% Mounted on /dev/sda1              19G   16G  1.8G  90% / tmpfs                 384M     0  384M   0% /lib/init/rw udev                   10M  1.2M  8.9M  12% /dev tmpfs                 384M     0  384M   0% /dev/shm   du -Pshx /* 2>/dev/null  4.8M    /bin 27M /boot 0   /cdrom 1.2M    /dev 8.8M    /emul 504M    /etc 4.0K    /grubconf 88K /home 60K /images 0   /initrd.img 147M    /lib 0   /lib32 0   /lib64 16K /lost+found 12K /media 4.0K    /mnt 4.4M    /opt 777M    /proc 57M /root 4.7M    /sbin 4.0K    /selinux 4.0K    /srv 0   /sys 4.0K    /tmp 332M    /usr 471M    /var 0   /vmlinuz   lsof +L1  (no output)   lsof | grep -i delete  (no output)   find / -size +50000 -exec ls -lah {} +;  -r-------- 1 root    root 777M 2015-07-21 06:19 /proc/kcore -rw------- 1 root    root  64M 2015-07-09 03:31 /sys/devices/pci0000:00/0000:00:06.0/0000:01:04.0/resource0 -rw-r----- 1 root    adm   49M 2015-07-21 06:19 /var/log/auth.log -rw-r----- 1 root    adm  174M 2015-07-19 06:25 /var/log/auth.log.1 -rw-rw---- 1 control mail 100M 2015-07-21 06:00 /var/mail/control   If you make the maths from du, for example, you get a few GBs, but nothing close to 16GB.  / is ext3.  OS is Debian 6.0  is there anything am I missing here?
119661
This has been perplexing me for some time. I'm on Ubuntu 11.04. My root partition is filling up and I can't figure out what's causing it. Even stranger, when I run df -h, this is the output:  Filesystem            Size  Used Avail Use% Mounted on /dev/sda2             9.2G  8.8G     0 100% /   As you see, there should be about 400 MB free, but Avail shows 0. What could be causing this? I've even uninstalled some programs to free the space and it fills up again. Suggestions on how to find out which, if any, files are filling up the space are also welcome.
67809
When I first installed Ubuntu (actually ElementaryOS) I didn't think that it would take up that much space, so I made the OS partition 15GB and /home 100GB. sda5 and sda6 are my Linux partitions.  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 I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x1b518505     Device Boot      Start         End      Blocks   Id  System /dev/sda1   *        2048      823295      410624    7  HPFS/NTFS/exFAT /dev/sda2          823296   410943487   205060096    7  HPFS/NTFS/exFAT /dev/sda3       410943488   738621439   163838976    7  HPFS/NTFS/exFAT /dev/sda4       738623486   976771071   119073793    5  Extended /dev/sda5       738623488   767918079    14647296   83  Linux /dev/sda6       767920128   976771071   104425472   83  Linux     The thing is, I don't actually have anything new installed on the OS now compared to when it was fresh. Just a browser and sublime text. Over time, installing system updates, the size just keeps on going up and up.    /usr/src has 2.2 GB of folders named linux-headers-X.XX.X-XX  /lib/modules has 3.9 GB of X.XX.X-XX-generic folders  Advice on what to do would be appreciated.   If I choose to increase the size of the 15GB partition, how do I do it? What are /usr/src and /lib/modules and how do I delete them safely?
10374
I have only one disk in my computer, a 80 GB SSD. It is formatted as a single ext4 partition (no swap), and all the usual folders are installed on it (I keep lots of data on external media, but /home and all the rest is on the SSD).   Today I booted it and I got a message that the drive is full. I opened Disk Usage Analyzer to look at what takes up space. It insists that 67.8 GB of the disk are used, and that / is taking up 36.4 GB. Which leads to the question, where are the missing 30 GB, if not on the file system?!    Just to have a comparison, I added up all the sizes of all readable folders listed in Nautilus as subfolders of / (including the hidden ones). I got 20.9 GB. Trash was unreadable, but I know it has 16.2 GB, so the sum is 36.1 GB, around the same as what Disk Usage Analyzer is reporting. There were some system folders which were unreadable, like proc, but I doubt that they add up to 30 GB - else it wouldn't be possible to install Ubuntu on small disks, and I've seen it run on 2.5 GB. I think they must be the 0.3 GB difference between my calculation and the Disk Usage Analyzer's report.   So I'd like to know, what is eating up these 30 GB and how do I get it to free them?     Edit with answers to CYREX's questions   Booted from Ubuntu 10.10 64-bit live CD (same as my system).  fsck result:   root@ubuntu:~# fsck /dev/sda1 fsck from util-linux-ng 2.17.2 e2fsck 1.41.12 (17-May-2010) /dev/sda1: clean, 265956/4890624 files, 18073343/19537408 blocks  Booted from the SSD. Emptied the trash, and the 16 GB from there are now free. The 30 GB are still missing.    I'm not experienced enough to know what counts as weird in a log. Here are my messages log and my syslog since last boot. Maybe you can find something in them:       Here it got really strange. I plugged in an external 500 GB HDD. Disk Usage Analyzer overreported the available space, then showed space missing (76 GB used, but only 24 in folders).      Booted again from the LiveCD, started the Disk Usage Analyzer from it and got the same results as from the installed Ubuntu, within 1-2 GB.   Edit with answer to CodeMonk:  That would have been a nice solution, but the partition is really 80 GB - I mean 74 GB + marketing "error", anyway the whole disk is formatted. It also shows that over 50 GB are used, so where are the 30 GB if not in files and folders?    GParted also reports the correct size of the external HDD.
44579
As it can be seen from the screenshot below my APPLE SSD is of size 500GBs, but my Apple_APFS Container disk1 is of size 450GBs. There was a Container disk 2 of size 50GBs before but I successfully removed it using:   sudo diskutil eraseVolume "Free Space" %noformat% /dev/disk0s4   I tried resizing the main APFS cotnainer with the following command:  diskutil apfs resizeContainer disk0s2 0   but I am getting the following error:     Error: -69519: The target disk is too small for this operation, or a   gap is required in your partition map which is missing or too small,   which is often caused by an attempt to grow a partition beyond the   beginning of another partition or beyond the end of partition map   usable space   Following some screenshots displaying the current state of the sysetm:   diskutil list /dev/disk0 (internal, physical):    #:                       TYPE NAME                    SIZE       IDENTIFIER    0:      GUID_partition_scheme                        *500.3 GB   disk0    1:                        EFI EFI                     209.7 MB   disk0s1    2:                 Apple_APFS Container disk1         449.3 GB   disk0s2    3:       Apple_KernelCoreDump                         655.4 MB   disk0s3  /dev/disk1 (synthesized):    #:                       TYPE NAME                    SIZE       IDENTIFIER    0:      APFS Container Scheme -                      +449.3 GB   disk1                                  Physical Store disk0s2    1:                APFS Volume Macintosh HD            362.2 GB   disk1s1    2:                APFS Volume Preboot                 55.2 MB    disk1s2    3:                APFS Volume Recovery                517.2 MB   disk1s3    4:                APFS Volume VM                      1.1 GB     disk1s4
7805
I am trying to update Xcode to 8.0. My OS is 10.11.6 El Capitan. However I am getting:     We could not complete your update   There is not enough disk space available to install the product.   I have got 14.22 GB free space. How much do I need?  UPDATE: I do not know the exact figure, though I did manage to update with 17.21 GB free space later on.
29721
I am experiencing some weird issue lately. I am using this machine as a web server. When I try to write a file in a directory it says there is no more space. I deleted some files and it worked for a little while. After few minutes I get the problem again:  root@web1:/home# mkdir test mkdir: cannot create directory ‘test’: No space left on device root@web1:/home# df -h Filesystem             Size  Used Avail Use% Mounted on /dev/mapper/web1-root   43G  4.5G   37G  11% / none                   4.0K     0  4.0K   0% /sys/fs/cgroup udev                   3.9G  4.0K  3.9G   1% /dev tmpfs                  798M  828K  798M   1% /run none                   5.0M     0  5.0M   0% /run/lock none                   3.9G     0  3.9G   0% /run/shm none                   100M     0  100M   0% /run/user /dev/sda1              228M   91M  126M  42% /boot /dev/sdb1              197G   75G  113G  40% /home   df -i reports a partition with 100% usage:  root@web1:/home# df -i | grep 100% /dev/sdb1 13107200 13107200 0 100% /home
73297
According to  I just expand my sda4 to include unallocated space, my question is after create 2 new partitions sda7, sda8, do I need to move the swap partition to the most right of the disk? (I really don't know this, I saw  which moving the swap partition to the right side)  Thanks.