[Solved] /dev/sda1 is full

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Donkey
Posts: 3
Joined: 19. Feb 2017, 20:58

[Solved] /dev/sda1 is full

Post by Donkey »

Alright, so I have been searching around for the answer and have tried several different approaches, but I can't seem to get it figured out. I wasn't planning on making an account, but I do plan on getting better use with Kali Linux since information security is where I'm going with my degree.

Anyway, so I have a VirtualBox of Kali Linux with a 50GB dynamic VDI. I continually get that "low disk space" warning and I can't seem to copy anything to the desktop, or whatnot. I figure I'll start with a few commands to help everyone understand since I'm not sure where else to go. Thanks in advance for any help.

Code: Select all

root@kali:/# fdisk -l
Disk /dev/sda: 50 GiB, 53687091200 bytes, 104857600 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
Disklabel type: dos
Disk identifier: 0xbd5a631c

Device     Boot    Start       End  Sectors  Size Id Type
/dev/sda1  *        2048  19791871 19789824  9.4G 83 Linux
/dev/sda2       19793918 104855551 85061634 40.6G  5 Extended
/dev/sda5       19793920  27039743  7245824  3.5G 83 Linux
/dev/sda6       27041792  31234047  4192256    2G 82 Linux swap / Solaris
/dev/sda7       31236096  32614399  1378304  673M 83 Linux
/dev/sda8       32616448 104855551 72239104 34.5G 83 Linux
root@kali:/# df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            989M     0  989M   0% /dev
tmpfs           201M  6.2M  195M   4% /run
/dev/sda1       9.2G  8.5G  245M  98% /
tmpfs          1003M     0 1003M   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs          1003M     0 1003M   0% /sys/fs/cgroup
/dev/sda7       647M  1.5M  598M   1% /tmp
/dev/sda5       3.4G  442M  2.8G  14% /var
/dev/sda8        34G   49M   32G   1% /home
KaliLinux       1.9T  211G  1.6T  12% /media/sf_KaliLinux
tmpfs           201M   32K  201M   1% /run/user/132
tmpfs           201M   32K  201M   1% /run/user/0
/dev/sr0         57M   57M     0 100% /media/cdrom0
Last edited by socratis on 20. Feb 2017, 07:49, edited 1 time in total.
Reason: Marked as [Solved] in the title.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: /dev/sda1 is full

Post by socratis »

Donkey wrote:
/dev/sda1       9.2G  8.5G  245M  98% /
Yes, you run out of disk space in your root. Most probably because you elected to have different partitions for /tmp, /var and /home. I mean just look at the /home directory, total 34GB, 32GB available:
Donkey wrote:
/dev/sda8        34G   49M   32G   1% /home
BTW, strictly speaking, this isn't a VirtualBox problem. Oh, and another thing; dynamic doesn't mean "dynamic growth", it means "dynamic allocation". Just so that you don't expect your HD to magically grow in size...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Donkey
Posts: 3
Joined: 19. Feb 2017, 20:58

Re: /dev/sda1 is full

Post by Donkey »

socratis wrote:
Donkey wrote:
/dev/sda1       9.2G  8.5G  245M  98% /
Yes, you run out of disk space in your root. Most probably because you elected to have different partitions for /tmp, /var and /home. I mean just look at the /home directory, total 34GB, 32GB available:
Yea, I do see that. And when you say that I probably elected to have different partitions for those folders, is that something in the Kali Linux setup? Like do I need to create a new VM for Kali Linux?

Sorry if this isn't a VirtualBox issue, and if this has been beaten to death, but I honestly could not find an answer to why my /dev/sda1 is so small and what I did wrong... to where the rest of the 50GB is elsewhere?

Thanks for replying.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: /dev/sda1 is full

Post by Perryg »

Is the guest formatted in LVM? if so then use the LVM to adjust the partitions. Google shows results on how to do this.
Donkey
Posts: 3
Joined: 19. Feb 2017, 20:58

Re: /dev/sda1 is full

Post by Donkey »

... wish I could delete my post. So I went through and was creating a second Kali VM when I realized that my mistake was during the partition part of the install. I could've swore I selected the one that said "Recommended", as far as installing on a single partition (and not separating /home, /var, etc.), but I guess I selected something other than the recommended option.

Thanks guys... my mistake. All this searching, trying GPart VM, etc...
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: [Solved] /dev/sda1 is full

Post by socratis »

Thanks. Marked as [Solved].
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply