How do I know how much freespace do I have on disk?
Andrew Glen-Young
aglenyoung at gmail.com
Mon Oct 22 14:43:08 UTC 2007
On 22/10/2007, Fajar Priyanto <fajarpri at cbn.net.id> wrote:
> On Monday 22 October 2007 17:09:36 Gunawan wrote:
> > Hi All,
> > I would like to know how much freespace that I still have on my harddisk.
> > And also I would like to change the swap volume size, how can I do that?
>
> Hello Gun,
> sudo dd if=/dev/zero of=/swapfile2 bs=1k count=512000
> sudo mkswap /swapfile2
> sudo swapon /swapfile2
>
> Cek with command: top
> See if the memory has been added
>
> Put this into /etc/fstab:
> sudo vi /etc/fstab
> /swapfile2 swap defaults 0 0
>
> Don't edit /etc/fstab if you're not sure how to do it, because if you make a
> typo, you will risk your ubuntu unbootable. Use the sudo swapon /swapfile2
> everytime you need it instead.
Just to add to your post. The command to see the mounted swap
partitions (and usage) is:
sudo swapon -s
- A.
More information about the ubuntu-users
mailing list