LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cannot write: No space left on device (http://www.linuxquestions.org/questions/linux-newbie-8/cannot-write-no-space-left-on-device-941182/)

louk88 04-22-2012 04:31 PM

Cannot write: No space left on device
 
[SIZE="1"][SIZE="2"][SIZE="3"][SIZE="1"]Hello!
I try to install Asterisk in Centos 5.4 (uname -r) 2.6.18-308.4.1.el5, when i try to make install command i get: Cannot write: No space left on device. Note that i have disk space in my pc.

[root@localhost /]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 3.8G 3.8G 0 100% /
/dev/sda5 33G 3.1G 29G 10% /home
/dev/sda1 46M 16M 28M 37% /boot
tmpfs 506M 0 506M 0% /dev/shm
/dev/sda2 3.8G 3.8G 0 100% /mnt
/dev/sda5 3.8G 3.8G 0 100% /
/dev/sda2 33G 3.1G 29G 10% /home
/dev/sda5 33G 3.1G 29G 10% /home
/dev/sda2 3.8G 3.8G 0 100% /

and

[root@localhost /]# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda2 1022976 129543 893433 13% /
/dev/sda5 8928192 105140 8823052 2% /home
/dev/sda1 12048 41 12007 1% /boot
tmpfs 129334 1 129333 1% /dev/shm
/dev/sda2 1022976 129543 893433 13% /mnt
/dev/sda5 1022976 129543 893433 13% /
/dev/sda2 8928192 105140 8823052 2% /home
/dev/sda5 8928192 105140 8823052 2% /home
/dev/sda2 1022976 129543 893433 13% /

Please help me to find the good solution, i have tried some methods in internet but no way.

Thank u!

fusion1275 04-22-2012 04:37 PM

You have filled up your root partition. Clean it down and then you will be in business again.

Not sure what you are trying to prove with a "df -i". Just go by the "df -h" output and not sure why your output is telling us you have 3x root parts and 3x home dirs?

Start using "du" and find the culprits.

Cheers.

Tinkster 04-22-2012 04:37 PM

Ummm ... root is 100% full; asterisk won't install into /home, and you should
investigate why all your file-systems are mounted more than once.

TB0ne 04-22-2012 04:41 PM

Quote:

Originally Posted by louk88 (Post 4660132)
Hello!
I try to install Asterisk in Centos 5.4 (uname -r) 2.6.18-308.4.1.el5, when i try to make install command i get: Cannot write: No space left on device. Note that i have disk space in my pc.

[root@localhost /]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 3.8G 3.8G 0 100% /

Please help me to find the good solution, i have tried some methods in internet but no way.
Thank u!

If you look at what you posted, you're getting the message because your disk is 100% full. So, free up some disk space...delete something you don't need. Not sure why you only partitioned a 4GB root partition, but that's where /usr, /bin, etc., all live, so it's not surprising it's full. If this is a brand new installation, consider removing it, and doing a fresh install, with a larger partition size.

Also, spell out your words, please, and provide useful details. You don't say what version/distro of Linux you're using, what size your drive is,or what the "some methods" you've found/tried are, and how they failed. All we can tell you from what you posted, is that your disk is full.

louk88 04-22-2012 04:57 PM

Reply
 
There is more than /root that because i wrote this command (mount /dev/sda2 -o /home) more than one.

In fact, because i'm newbie in linux, when i have installed centos, i dont know how i can reserve large space for root partition.

I know very well there is no space, but i dont know how to resolve this problem.

I prefer to count on myself, but I need have some ideas that can help me.

Note: this centos is installed in VMware.

louk88 04-22-2012 05:06 PM

Quote:

Originally Posted by fusion1275 (Post 4660137)
You have filled up your root partition. Clean it down and then you will be in business again.

Not sure what you are trying to prove with a "df -i". Just go by the "df -h" output and not sure why your output is telling us you have 3x root parts and 3x home dirs?

Start using "du" and find the culprits.

Cheers.

There is more than /root that because i wrote this command (mount /dev/sda2 -o /home) more than one.

TB0ne 04-22-2012 05:25 PM

Quote:

Originally Posted by louk88 (Post 4660152)
There is more than /root that because i wrote this command (mount /dev/sda2 -o /home) more than one.
In fact, because i'm newbie in linux, when i have installed centos, i dont know how i can reserve large space for root partition.

It asks you during the installation process. You specify it then.
Quote:

I know very well there is no space, but i dont know how to resolve this problem. I prefer to count on myself, but I need have some ideas that can help me.
Well, not to sound harsh, but if you know there's no space, there is only ONE solution: remove some files, which will free up some space. Nothing else can really be done.
Quote:

Note: this centos is installed in VMware.
Ok...again, re-install CentOS, and follow the installation guide. There is a specific part that walks you through setting up your disks.
https://www.centos.org/docs/5/html/5...oning-x86.html

If you are doing anything with Asterisk but learning it, I'd *HIGHLY* recommend you don't use a virtual machine for a VOIP solution.

Tinkster 04-22-2012 05:35 PM

Quote:

Originally Posted by TB0ne (Post 4660174)
It asks you during the installation process. You specify it then.

Well, not to sound harsh, but if you know there's no space, there is only ONE solution: remove some files, which will free up some space. Nothing else can really be done.

Ok...again, re-install CentOS, and follow the installation guide. There is a specific part that walks you through setting up your disks.
https://www.centos.org/docs/5/html/5...oning-x86.html

If you are doing anything with Asterisk but learning it, I'd *HIGHLY* recommend you don't use a virtual machine for a VOIP solution.

Ummm ... that's not really the Linux way, and there's ALWAYS a different method.
Specially w/ a vmware install, where throwing more disk at a problem is trivial.
  1. Find out which part of the file-system uses most space.
  2. add another "disk" to the VM, a bit bigger than what you currently have
  3. boot the VM of a live CD
  4. create an fstab entry that matches the "full" directory (most likely /usr)
  5. temporarily mount the new disk to a temp dir, e.g. /tmp/new_disk
  6. mv the full dirs content to /tmp/new_disk
  7. reboot, and you're away laughing



Cheers,
Tink

louk_88 04-22-2012 06:25 PM

RE
 
Thank you very much.

TB0ne 04-22-2012 06:43 PM

Quote:

Originally Posted by Tinkster (Post 4660181)
Ummm ... that's not really the Linux way, and there's ALWAYS a different method.
Specially w/ a vmware install, where throwing more disk at a problem is trivial.
  1. Find out which part of the file-system uses most space.
  2. add another "disk" to the VM, a bit bigger than what you currently have
  3. boot the VM of a live CD
  4. create an fstab entry that matches the "full" directory (most likely /usr)
  5. temporarily mount the new disk to a temp dir, e.g. /tmp/new_disk
  6. mv the full dirs content to /tmp/new_disk
  7. reboot, and you're away laughing

I concur with the "always a different method". But, the OP said they were new to Linux...adding a slice to an LVM (especially if it's the root partition), isn't really newbie-friendly. That's why I suggested going with a clean slate, but you are very correct in your suggestion to add disk space.


All times are GMT -5. The time now is 06:14 AM.