running out of space

Asked by amit

hi ,

I am running out of disk space here is the output of $ df -h

Filesystem Size Used Avail Use% Mounted on
/dev/hdd6 3.7G 2.8G 739M 80% /
varrun 220M 100K 220M 1% /var/run
varlock 220M 0 220M 0% /var/lock
procbususb 220M 136K 220M 1% /proc/bus/usb
udev 220M 136K 220M 1% /dev
devshm 220M 0 220M 0% /dev/shm
lrm 220M 33M 187M 16% /lib/modules/2.6.20-16-generic/volatile
/dev/hdc1 14G 7.5G 6.6G 54% /media/hdc1
/dev/hdc5 9.8G 6.7G 3.2G 69% /media/hdc5
/dev/hdc6 8.9G 4.6G 4.3G 52% /media/hdc6
/dev/hdc7 19G 15G 4.1G 79% /media/hdc7
/dev/hdc8 24G 23G 346M 99% /media/hdc8
/dev/hdd10 35G 33G 1.5G 96% /media/hdd10
/dev/hdd11 35G 33G 1.6G 96% /media/hdd11
/dev/hdd5 35G 32G 2.7G 93% /media/hdd5
/dev/hdd8 7.6G 1.5G 5.7G 21% /media/hdd8
/dev/hdd9 35G 23G 12G 67% /media/hdd9

how can i get more space for ubuntu partition without affecting the OS i.e. without reinstalling it ????
while installing i made 3 partitions 1) root 3.7 GB 2) swap 1GB 3)/home 7.6 GB which is here /dev/hdd8 7.6G 1.5G 5.7G 21% /media/hdd8.......

please help me ..

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Benoit Malet
Solved:
Last query:
Last reply:

This question was reopened

  • by amit
Revision history for this message
amit (amityy2002) said :
#1

I cleaned my caches by $sudo apt-get clean
even then i need space

Revision history for this message
amit (amityy2002) said :
#2

sorry the problem is not solved please help

Revision history for this message
Maurizio Moriconi (bugman) said :
#3

seem you have home dir full, try to remove file here (desktop or in your home) or put those file in another directory

Revision history for this message
amit (amityy2002) said :
#4

actually my /home/amit dir and /media/hdd6/amit both are different .
I don`t have anythings saved in the /home/amit except the system files so there is no question of moving anything ...............

But in my friend`s system both the directories are same i. e. linked ......
what should i do now ?

should linking the /home/amit dir and /media/hdd6/amit will serve my purpose ?? if yes then please tell me how to do it

Revision history for this message
Best Benoit Malet (benoit-malet) said :
#5

Hello !

If you created a partition to be your /home, it's not mounted the right way ... Everything in your /home directory is indeed in your root partition ...

So, you can mount you hdd6 partition (if it is this one meant to be your home) in /home ...

sudo cp -p /home/* /media/hdd6 (copy all you files from /home to the right partition)

Then you can edit /etc/fstab to tell Ubuntu to mount hdd6 to your /home ... If you need help in the edition of fstab, just ask and provide your original one.

Hope this helps !

Regards,
Benoît

Revision history for this message
amit (amityy2002) said :
#6

thanks
sorry actually that partition which i mentioned was hdd8

here is my fstab file :
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/hdd6
UUID=15ba60da-5430-4dde-82cf-3197c2da3c67 / ext3 defaults,errors=remount-ro 0 1
# /dev/hdc1
UUID=02BC2133BC2122A1 /media/hdc1 ntfs defaults,nls=utf8,umask=007,gid=46 0 0
# /dev/hdc5
UUID=45F4-B85D /media/hdc5 vfat defaults,utf8,umask=007,gid=46 0 0
# /dev/hdc6
UUID=5400-10CB /media/hdc6 vfat defaults,utf8,umask=007,gid=46 0 0
# /dev/hdc7
UUID=D84B-338B /media/hdc7 vfat defaults,utf8,umask=007,gid=46 0 0
# /dev/hdc8
UUID=D057-704F /media/hdc8 vfat defaults,utf8,umask=007,gid=46 0 0
# /dev/hdd10
UUID=D17A-1D7B /media/hdd10 vfat defaults,utf8,umask=007,gid=46 0 0
# /dev/hdd11
UUID=174D-7D6C /media/hdd11 vfat defaults,utf8,umask=007,gid=46 0 0
# /dev/hdd5
UUID=45D3-5E8D /media/hdd5 vfat defaults,utf8,umask=007,gid=46 0 0
# /dev/hdd8
UUID=72194262-bada-409e-8c96-ad919e8cdb52 /media/hdd8 ext3 defaults 0 2
# /dev/hdd9
UUID=8BA6-BDF2 /media/hdd9 vfat defaults,utf8,umask=007,gid=46 0 0
# /dev/hdd7
UUID=1fd446da-305a-42d4-8477-b2c5dc265a30 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

how to tell Ubuntu to mount hdd6 to my /home ...

tell me if you need some more information .............thanks again

Revision history for this message
Wrwrwr (wrwrwr) said :
#7

I think you again have written hdd6, when you have meant hdd8. Hdd6 is your root, system partition and is almost full, hdd8 has 5gb of free space.

First you'll have to make the mount point empty, i.e. move all files and directories from /home to /media/hdd8 (also hidden and system files). I would recommend doing this while running the live cd or in recovery mode.

Then replace /media/hdd8 with /home in fstab and that should be all.
old line:
  UUID=72194262-bada-409e-8c96-ad919e8cdb52 /media/hdd8 ext3 defaults 0 2
new line:
  UUID=72194262-bada-409e-8c96-ad919e8cdb52 /home ext3 defaults 0 2

Note that when you do this everything that is currently in /home will be lost, after restart home will have contents of hdd8 (Probably it won't mount unless the mount point is empty, but...)

Alternatively you can use gnome partition editor to remove some of the partitions and resize the root one.

There is also a nice disk analyser utility (baobab, applications-->accessories), that should help you find what's taking space on disk.

Revision history for this message
amit (amityy2002) said :
#8

thanks buddy that solved my problem

Revision history for this message
amit (amityy2002) said :
#9

Thanks Benoit Malet, that solved my question.

Revision history for this message
Benoit Malet (benoit-malet) said :
#10

Hello !

If everything works OK with the /home partition mounted, you should try to umount it (sudo umount /home) and remove everything that was in your original /home directory ...

In fact, if you have something in a directory and that you mount a partition on it afterwsards, the files are still there, but hidden by the new partition ... So you can save the place, as you hopefully copied all your files to the /dev/hdd8 ...

Regards,
Benoît