Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed Debian inside a Virtual Machine on my mac using WMWare Fusion using the default settings (8gig harddrive space) but it's now full.

I've upped the disk allowance in the VWWare settings but is there any way of having Debian use this space - repartition/reconigure - without wiping the data already on the partion (I've already configured most of everything which took a while and obviously I don't want to have to do that all again).

Output of df -h:

Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1             7.5G  7.2G     0 100% /
tmpfs                 126M     0  126M   0% /lib/init/rw
udev                   10M   80K   10M   1% /dev
tmpfs                 126M     0  126M   0% /dev/shm 
overflow              1.0M     0  1.0M   0% /tmp

Output of mount:

/dev/sda1 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
overflow on /tmp type tmpfs (rw,size=1048576,mode=1777)

Output of fstab:

# /etc/fstab: static file system information.
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/sda1       /               ext3    errors=remount-ro 0       1
/dev/sda5       none            swap    sw              0       0
/dev/hda        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0
share|improve this question
up vote 3 down vote accepted

Once you have increased the disc space try:

resizefs /dev/sda1

There are two parts to this question.

  • Adding the disc space to the machine
  • Using the new disc space

Add the new disc space by powering down the machine and then going to settings and make the disc bigger.

To use the disc space it depends which file system you are using and whether you are using LVM or not.

Look at pvresize and lvresize if you are using LVM, after that look at xfs_growfs if you are using xfs. If it is ext3 then look at resize2fs

This might help. I think adding the contents of /etc/fstab would help us help you.

share|improve this answer
ive added that output, going to look at that article and those commands too. thanks – Adam Taylor Jul 23 '09 at 10:17
that doesn't work on its own. i'm going to follow this guide: does it seem resonable? – Adam Taylor Jul 23 '09 at 10:57
I had forgotten that /dev/sda would have grown but not /dev/sda1. I feel nervous around that, if you don't have the requirement for the system to be up then look at the parted system. There is a live cd – James Jul 23 '09 at 11:09
gparted worked a trick, thanks. – Adam Taylor Jul 23 '09 at 12:52

I suggest you use a boot up disk of GParted, available from distrowatch, to do the changes to your partition.

share|improve this answer

protected by splattne Dec 14 '11 at 10:54

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.